:root {
  --ink: #101820;
  --ink-soft: #46515b;
  --paper: #ffffff;
  --paper-warm: #f5f3ed;
  --line: #d8d5cb;
  --gold: #b3a369;
  --gold-dark: #756629;
  --charcoal: #151a1e;
  --charcoal-soft: #aeb6bd;
  --max-width: 1180px;
  --header-height: 72px;
  --radius: 6px;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(16, 24, 32, 0.06);
}

.nav-shell {
  width: min(calc(100% - 48px), var(--max-width));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 28px);
}

.site-nav a {
  position: relative;
  padding-block: 22px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 17px;
  height: 2px;
  background: var(--gold-dark);
  transition: right 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after { right: 0; }

.nav-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 22px;
  height: 2px;
  margin: 0;
  background: var(--ink);
  transition: top 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: min(700px, calc(100vh - var(--header-height) - 80px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-warm);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--gold) 0 34%, var(--ink) 34% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.45fr);
  align-items: center;
  gap: clamp(40px, 4.5vw, 64px);
  padding-block: clamp(44px, 5vw, 60px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero .eyebrow {
  display: inline-block;
  padding: 4px 0 4px 14px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.35;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-role {
  margin: 24px 0 0;
  color: var(--gold-dark);
  font-size: 1.28rem;
  font-weight: 800;
}

.hero-thesis {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.45;
}

.hero-summary {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.62;
}

.hero-affiliation {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-actions,
.profile-links,
.inline-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions { gap: 12px; margin-top: 34px; }
.profile-links { gap: 24px; margin-top: 28px; }

.profile-links a,
.contact-links a {
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.profile-links a:hover,
.contact-links a:hover { color: var(--gold-dark); }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--ink); }
.button-primary:hover { background: #27323a; }
.button-secondary { color: var(--ink); background: transparent; }
.button-secondary:hover { color: var(--paper); background: var(--ink); }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.52; transform: none; }

.portrait-wrap {
  position: relative;
  margin: 0;
  width: min(100%, 248px);
  justify-self: end;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 72%;
  height: 46%;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.portrait {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.mobile-portrait { display: none; }

.hero-rule {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  height: 10px;
  background: var(--gold);
}

.section { padding-block: clamp(58px, 6vw, 86px); }
.section-muted { background: var(--paper-warm); }

.section-intro { border-bottom: 1px solid var(--line); }

.two-column-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 5vw, 64px);
}

.section h2,
.contact-section h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.15rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.16rem;
  line-height: 1.62;
}
.intro-copy p:last-child { margin-bottom: 0; }

.section-heading { max-width: 780px; margin-bottom: clamp(34px, 4vw, 48px); }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--ink-soft); font-size: 1.13rem; line-height: 1.55; }

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.6fr);
  gap: 40px;
  align-items: end;
}

.split-heading > p:last-child { margin: 0; }

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.research-item {
  min-height: 200px;
  padding: clamp(26px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.item-number { color: var(--gold-dark); font-size: 1.1rem; font-weight: 800; }

.research-item h3,
.project h3,
.publication h3,
.timeline-item h3,
.education-item h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

.research-item h3 { margin-top: 22px; font-size: 1.45rem; }
.research-item p { margin: 12px 0 0; color: var(--ink-soft); font-size: 1.1rem; }

.research-item-foundation {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: 140px minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.research-item-foundation h3,
.research-item-foundation p { margin-top: 0; }

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

.project {
  padding-block: clamp(30px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}

.project-featured {
  margin-inline: -24px;
  padding-inline: 24px;
  border-top: 6px solid var(--gold);
  background: #f8f6ef;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  align-items: center;
  color: #51460d;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.status-neutral::before { background: var(--ink-soft); }

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.project h3 { max-width: 760px; font-size: 1.6rem; }
.project p { max-width: 760px; margin: 14px 0 0; color: var(--ink-soft); font-size: 1.12rem; }

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-facts div { border-left: 2px solid var(--gold); padding-left: 13px; }
.project-facts strong, .project-facts span { display: block; }
.project-facts strong { font-size: 1.3rem; line-height: 1.15; }
.project-facts span { margin-top: 6px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.4; }

.tag-list,
.skill-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li,
.skill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 650;
}
.tag-list li { padding: 6px 10px; }

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--gold-dark);
  font-size: 1.1rem;
  font-weight: 800;
  text-underline-offset: 5px;
}
.inline-links { gap: 22px; }

.section-dark { color: var(--paper); background: var(--charcoal); }
.section-dark .section-kicker { color: #d6c67f; }
.section-dark .section-heading > p:last-child { color: var(--charcoal-soft); }
.publication-note { margin: -18px 0 28px; color: var(--charcoal-soft); font-size: 1rem; }

.publication-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #3b4248; }
.publication {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 50px);
  padding-block: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid #3b4248;
}
.pub-year { color: #d6c67f; font-size: 1.1rem; font-weight: 800; }
.publication h3 { max-width: 900px; font-size: 1.48rem; }
.pub-authors { margin: 10px 0 0; color: #d9dde0; font-size: 1.1rem; }
.pub-venue { margin: 10px 0 0; color: #d6c67f; font-size: 1.1rem; font-weight: 750; }
.publication p:not(.pub-venue) { max-width: 800px; margin: 12px 0 0; color: var(--charcoal-soft); font-size: 1.1rem; }
.text-link-light { color: #e4d796; }

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 88px);
}
.sticky-heading { position: sticky; top: calc(var(--header-height) + 46px); align-self: start; margin-bottom: 0; }
.sticky-heading h2 { font-size: 2.75rem; }
.timeline { border-top: 1px solid var(--line); }
.timeline-group-label {
  padding: 28px 0 8px;
  color: var(--gold-dark);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.timeline-item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 30px;
  padding-block: 28px 36px;
  border-bottom: 1px solid var(--line);
}
.timeline-date { color: var(--gold-dark); font-size: 1.1rem; font-weight: 800; }
.timeline-item h3 { font-size: 1.32rem; }
.timeline-org { margin: 5px 0 0; color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.timeline-item p:not(.timeline-org) { margin: 12px 0 0; color: var(--ink-soft); font-size: 1.1rem; }
.timeline-item-compact { padding-block: 20px 24px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.skill-list li { padding: 6px 10px; }
.sticky-heading .skill-list { margin-top: 28px; }

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.education-item { min-height: 190px; padding: clamp(26px, 3vw, 34px); background: var(--paper); }
.education-year { color: var(--gold-dark); font-size: 1.1rem; font-weight: 800; }
.education-item h3 { margin-top: 32px; font-size: 1.28rem; }
.education-item p { margin: 9px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.education-detail { font-size: 1.1rem; }
.education-item .education-affiliation { color: var(--ink); font-weight: 700; }
.education-detail + .education-detail { margin-top: 4px; }

.contact-section { padding-block: clamp(60px, 6vw, 88px); color: var(--paper); background: var(--ink); }
.contact-section .section-kicker { color: #d6c67f; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr); gap: clamp(48px, 7vw, 84px); align-items: end; }
.contact-panel > p { margin: 0; color: #c2c9ce; }
.contact-email { display: inline-block; margin-top: 24px; color: var(--paper); font-size: 1.65rem; font-weight: 700; text-underline-offset: 6px; }
.contact-links { gap: 22px; margin-top: 30px; }
.contact-links a { color: #d9dde0; }

.site-footer { color: #c2c9ce; background: var(--ink); border-top: 1px solid #374048; }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 1.05rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: inherit; font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 980px) {
  :root { --header-height: 66px; }
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    padding: 14px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(16, 24, 32, 0.1);
  }
  .site-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a { padding: 12px; }
  .site-nav a::after { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr); gap: 36px; }
  .hero h1 { font-size: 4.85rem; }
  .section h2, .contact-section h2 { font-size: 2.8rem; }
  .sticky-heading h2 { font-size: 2.5rem; }
  .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-item-foundation { grid-template-columns: 120px minmax(220px, 0.8fr) minmax(0, 1fr); }
  .project-body { grid-template-columns: 1fr; }
  .timeline-layout { grid-template-columns: 1fr; }
  .sticky-heading { position: static; }
  .education-grid { grid-template-columns: 1fr 1fr; }
  .education-item:first-child { grid-column: 1 / -1; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .research-item:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container, .nav-shell { width: min(calc(100% - 32px), var(--max-width)); }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 34px 38px; }
  .hero h1 { font-size: 3.35rem; }
  .hero-role { margin-top: 18px; font-size: 1.16rem; }
  .hero-thesis { margin-top: 14px; font-size: 1.2rem; }
  .hero-summary { margin-top: 10px; font-size: 1.03rem; }
  .hero-affiliation { margin-top: 8px; }
  .hero-actions { margin-top: 28px; }
  .profile-links { margin-top: 22px; }
  .section { padding-block: 52px; }
  .contact-section { padding-block: 58px; }
  .section h2, .contact-section h2, .sticky-heading h2 { font-size: 2.2rem; }
  .portrait-wrap { display: none; }
  .mobile-portrait {
    display: block;
    width: 96px;
    height: 128px;
    margin: 0 0 24px;
    object-fit: cover;
    object-position: center top;
    box-shadow: var(--shadow);
  }
  .two-column-intro, .split-heading, .contact-grid { grid-template-columns: 1fr; }
  .split-heading { gap: 22px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-item { min-height: 0; }
  .research-item-foundation { grid-template-columns: 1fr; gap: 12px; }
  .project-featured { margin-inline: -16px; padding-inline: 16px; }
  .project-meta { align-items: flex-start; flex-direction: column; gap: 7px; letter-spacing: 0.055em; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div { padding-block: 2px 10px; }
  .publication { grid-template-columns: 1fr; gap: 14px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .education-grid { grid-template-columns: 1fr; }
  .education-item:first-child { grid-column: auto; }
  .education-item { min-height: 180px; }
  .contact-email { font-size: 1.35rem; }
  .contact-grid { align-items: start; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 3rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .profile-links { gap: 14px 20px; }
  .site-nav.is-open { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
