:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3f5f2;
  --text: #151918;
  --muted: #66706d;
  --line: #dde2de;
  --accent: #234f4b;
  --accent-soft: #edf3f0;
  --max: 1200px;
  --reading: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration: underline; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img { max-width: 100%; }

.shell {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 226, 222, 0.92);
}

.nav-shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--text);
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 14px;
  font-weight: 620;
}

.site-nav a {
  color: var(--muted);
  padding: 23px 0 20px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.hero {
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 78px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.page-header h1,
.project-copy h2,
.feature-copy h3,
.cv-section h2,
.pub-group h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.075;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  max-width: 820px;
  margin: 30px 0 0;
  color: #39413f;
  font-size: 19px;
  line-height: 1.62;
}

.method-line {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 30px;
}

.button-link {
  display: inline-block;
  padding: 2px 0 3px;
  border-bottom: 1px solid #aeb9b5;
  color: var(--text);
  font-size: 14px;
  font-weight: 730;
}

.button-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-portrait {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 4px;
  justify-self: end;
  border: 1px solid var(--line);
}

.section {
  padding: 84px 0;
}

.section + .section { border-top: 1px solid var(--line); }

.approach-section { background: var(--surface-soft); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.page-header h1 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.026em;
}

.section h2 { font-size: clamp(34px, 3.8vw, 48px); line-height: 1.14; }

.section-intro {
  max-width: var(--reading);
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 760;
}

.research-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 58px;
  align-items: center;
  padding: 36px 0 58px;
}

.research-feature + .research-feature { border-top: 1px solid var(--line); }

.research-feature.reverse .feature-media { order: 2; }
.research-feature.reverse .feature-copy { order: 1; }

.feature-media { margin: 0; }

.feature-media img {
  display: block;
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e8e5;
}

.feature-media figcaption,
.project-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.feature-copy h3 {
  margin: 0 0 16px;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.feature-copy p { margin: 0 0 16px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 23px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid #d2dbd7;
  border-radius: 2px;
  background: transparent;
  color: #3a5550;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 38px;
}

.approach-item {
  padding: 23px 0 0;
  border-top: 2px solid var(--accent);
}

.approach-item h3 {
  margin: 0 0 11px;
  font-size: 18px;
  line-height: 1.3;
}

.approach-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.output-list,
.publication-list,
.cv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.output-item,
.publication-item {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.output-item:first-child,
.publication-item:first-child { border-top: 0; }

.output-meta,
.pub-meta {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 670;
  letter-spacing: 0.01em;
}

.output-title,
.pub-title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 730;
  line-height: 1.42;
}

.output-title a,
.pub-title a { color: inherit; }

.page-header {
  padding: 82px 0 56px;
  border-bottom: 1px solid var(--line);
}

.compact-header { padding-bottom: 48px; }

.page-header h1 { font-size: clamp(43px, 4.8vw, 62px); line-height: 1.1; }

.page-lede {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.project-deepdive {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.project-deepdive:nth-of-type(even) { background: var(--surface-soft); }
.project-deepdive:last-child { border-bottom: 0; }

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 64px;
  align-items: start;
}

.project-copy h2 {
  margin: 0 0 11px;
  font-size: 39px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.project-copy .project-subtitle {
  margin: 0 0 25px;
  color: var(--accent);
  font-weight: 720;
}

.project-copy h3 {
  margin: 31px 0 10px;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-copy p { margin: 0 0 16px; }

.project-copy ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.project-copy li { margin: 8px 0; }

.project-figure {
  margin: 0;
  position: sticky;
  top: 102px;
}

.project-figure img {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e8e5;
}

.cv-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 60px;
  padding: 64px 0 94px;
}

.cv-toc {
  position: sticky;
  top: 102px;
  align-self: start;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.cv-toc a {
  color: var(--muted);
  padding: 3px 0;
}

.cv-toc a:hover { color: var(--text); }

.cv-section { padding: 0 0 58px; }

.cv-section + .cv-section {
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.cv-section h2 {
  margin: 0 0 28px;
  font-size: 34px;
  font-weight: 500;
}

.cv-entry { margin-bottom: 39px; }
.cv-entry:last-child { margin-bottom: 0; }

.cv-entry-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 10px;
}

.cv-entry h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.cv-role {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.cv-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.cv-entry ul {
  padding-left: 21px;
  margin: 14px 0 0;
}

.cv-entry li { margin: 9px 0; }

.cv-entry details {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.cv-entry summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.pub-group { margin-bottom: 58px; }

.pub-group h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 500;
}

.pub-authors {
  margin: 6px 0 3px;
  color: #46504e;
  font-size: 14px;
  line-height: 1.55;
}

.pub-venue {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 72px;
  align-items: start;
}

.about-copy { max-width: 790px; }

.about-copy p {
  margin: 0 0 24px;
  font-size: 18px;
}

.about-aside {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.about-aside h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.about-aside h3:not(:first-child) { margin-top: 26px; }

.about-aside p,
.about-aside li {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 52px;
  color: var(--muted);
  font-size: 13px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  .hero-grid,
  .research-feature,
  .project-grid,
  .about-grid,
  .cv-shell {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    width: 140px;
    height: 140px;
    justify-self: start;
    order: -1;
  }

  .research-feature.reverse .feature-media,
  .research-feature.reverse .feature-copy { order: initial; }

  .approach-grid { grid-template-columns: 1fr; }
  .project-figure { position: static; }
  .cv-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .nav-shell { min-height: 62px; align-items: flex-start; padding: 14px 0 10px; }
  .site-nav { gap: 12px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { padding: 4px 0 7px; }
  .hero { padding: 62px 0 54px; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: 40px; }
  .hero-subtitle { font-size: 18px; }
  .hero-links { gap: 15px; }
  .section { padding: 60px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .research-feature { gap: 27px; padding: 27px 0 39px; }
  .feature-copy h3 { font-size: 27px; }
  .page-header { padding: 58px 0 42px; }
  .page-header h1 { font-size: 41px; }
  .page-lede { font-size: 18px; }
  .project-deepdive { padding: 50px 0; }
  .project-copy h2 { font-size: 32px; }
  .cv-shell { padding: 44px 0 70px; gap: 34px; }
  .cv-entry-head { grid-template-columns: 1fr; gap: 4px; }
  .cv-date { white-space: normal; }
  .footer-shell { flex-direction: column; }
}
