:root {
  --ink: #10251e;
  --muted: #556760;
  --paper: #f8f6f0;
  --white: #ffffff;
  --green: #0a5c42;
  --green-dark: #073b2d;
  --mint: #dcece5;
  --lime: #c5e86c;
  --gold: #d5a84b;
  --line: rgba(16, 37, 30, 0.14);
  --shadow: 0 24px 70px rgba(10, 54, 40, 0.14);
  --radius: 26px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:target, section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h1 { font-size: clamp(3.6rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.5rem, 4.7vw, 4.6rem); }
h3 { line-height: 1.25; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px;
  background: var(--white); color: var(--green-dark); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; z-index: 100; top: 0; background: rgba(248, 246, 240, .92);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand-mark {
  display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%;
  background: var(--green); color: var(--white); font-size: .78rem; letter-spacing: .04em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--green); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { overflow: hidden; padding: 76px 0 82px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 74px; align-items: center; }
.eyebrow, .section-kicker, .card-label, .pub-type {
  margin-bottom: 18px; color: var(--green); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.hero h1 { max-width: 900px; margin-bottom: 28px; }
.hero-lede { max-width: 750px; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.34rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; font-size: .92rem; font-weight: 700; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: var(--white); box-shadow: 0 12px 28px rgba(10, 92, 66, .2); }
.button-secondary { border-color: var(--line); background: var(--white); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; color: var(--muted); list-style: none; font-size: .86rem; }
.hero-meta li:not(:last-child)::after { content: "•"; margin-left: 22px; color: var(--gold); }
.portrait-wrap { position: relative; max-width: 430px; margin-inline: auto; }
.portrait { position: relative; z-index: 2; width: 100%; height: 600px; object-fit: cover; object-position: 50% 28%; border-radius: 220px 220px 30px 30px; box-shadow: var(--shadow); }
.portrait-note {
  position: absolute; z-index: 3; right: -40px; bottom: 28px; display: grid; max-width: 235px;
  padding: 18px 20px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow);
}
.portrait-note strong { color: var(--green); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.portrait-note span { font-size: .87rem; line-height: 1.35; }

.signal-strip { padding: 28px 0; background: var(--green-dark); color: var(--white); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.signal-grid div { display: flex; gap: 12px; align-items: baseline; }
.signal-grid span { color: var(--lime); font-size: .72rem; }
.signal-grid strong { font-size: .9rem; }

.section { padding: 118px 0; }
.section-tint { background: var(--mint); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.intro-section h2 { margin-bottom: 0; }
.prose { color: var(--muted); font-size: 1.08rem; }
.section-heading { max-width: 800px; margin-bottom: 56px; }
.section-heading > p:last-child { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.heading-row h2 { margin-bottom: 0; }
.publication-summary { max-width: 690px; margin: 16px 0 0; color: var(--muted); }
.text-link { color: var(--green); font-weight: 700; text-underline-offset: 5px; }

.research-project { margin: 0 0 26px; }
.research-project h3 { max-width: 620px; margin-bottom: 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.research-project > p:not(.card-label) { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.tag-list-light { margin-top: 18px; }
.tag-list-light li { border-color: rgba(10, 92, 66, .22); background: rgba(255, 255, 255, .7); color: var(--green-dark); }

.strip-heading { margin: 44px 0 18px; font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.science-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.science-card { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--green-dark); box-shadow: 0 16px 42px rgba(10, 54, 40, .12); }
.science-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.science-card figcaption { padding: 16px 18px 20px; color: rgba(255, 255, 255, .78); font-size: .82rem; line-height: 1.5; }
.science-card figcaption strong { display: block; margin-bottom: 6px; color: var(--lime); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.research-figure { margin: 0 0 22px; overflow: hidden; border-radius: var(--radius); box-shadow: 0 16px 42px rgba(10, 54, 40, .14); }
.research-figure img { width: 100%; height: auto; background: #000; }
.research-figure figcaption { padding: 22px 26px; background: var(--green-dark); color: rgba(255, 255, 255, .78); font-size: .9rem; line-height: 1.55; }
.research-figure figcaption strong { display: block; margin-bottom: 6px; color: var(--lime); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.research-card { position: relative; min-height: 330px; padding: 38px; border-radius: var(--radius); background: rgba(255, 255, 255, .68); border: 1px solid rgba(10, 92, 66, .12); }
.research-card.featured { grid-column: span 2; display: grid; grid-template-columns: 90px 1fr; min-height: auto; background: var(--green-dark); color: var(--white); }
.research-card h3 { max-width: 620px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.research-card p:not(.card-label) { color: var(--muted); }
.research-card.featured p:not(.card-label) { color: rgba(255, 255, 255, .75); }
.research-card.featured .card-label { color: var(--lime); }
.card-number { color: var(--green); font-family: "Newsreader", serif; font-size: 2.4rem; }
.featured .card-number { color: var(--lime); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.tag-list li { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: .8rem; }

.publication-list { border-top: 1px solid var(--line); }
.publication { display: grid; grid-template-columns: 100px 1fr; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.publication-featured { margin-inline: -22px; padding-inline: 22px; background: linear-gradient(90deg, rgba(220, 236, 229, .7), rgba(220, 236, 229, 0)); border-radius: 18px 18px 0 0; }
.pub-year { color: var(--green); font-family: "Newsreader", serif; font-size: 1.7rem; }
.publication h3 { max-width: 900px; margin-bottom: 10px; font-size: clamp(1.25rem, 2.3vw, 1.75rem); }
.publication p { margin-bottom: 8px; color: var(--muted); }
.publication .pub-type { margin-bottom: 8px; color: var(--green); }
.publication a { color: var(--green); font-size: .88rem; font-weight: 700; text-underline-offset: 4px; }
.pub-note { margin-bottom: 8px; color: var(--muted); font-size: .82rem; font-style: italic; }
.latest-badge { display: inline-flex; margin-right: 10px; padding: 5px 9px; border-radius: 999px; background: var(--green); color: var(--white); font-size: .67rem; letter-spacing: .08em; }

.gallery-section { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 18px; }
.gallery-card { grid-column: span 4; position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--green-dark); box-shadow: 0 16px 42px rgba(10, 54, 40, .12); }
.gallery-card-wide { grid-column: span 8; }
.gallery-card-tall { grid-row: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card-tall img { object-position: 50% 25%; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-card figcaption { position: absolute; inset: auto 0 0; margin: 0; padding: 44px 20px 18px; background: linear-gradient(transparent, rgba(5, 43, 33, .9)); color: var(--white); font-size: .86rem; font-weight: 700; }

.section-dark { background: var(--green-dark); color: var(--white); }
.section-dark .section-kicker { color: var(--lime); }
.timeline { margin-bottom: 64px; border-top: 1px solid rgba(255, 255, 255, .2); }
.timeline-item { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.timeline-date { color: var(--lime); font-weight: 700; }
.timeline-item h3 { margin-bottom: 4px; }
.timeline-item p { margin: 0; color: rgba(255, 255, 255, .68); }
.education-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.education-card { padding: 28px; border-radius: 18px; background: rgba(255, 255, 255, .08); }
.education-card span { color: var(--lime); font-size: .8rem; font-weight: 700; }
.education-card h3 { margin: 12px 0 8px; }
.education-card p { margin: 0; color: rgba(255, 255, 255, .65); }

.section-sticky { align-self: start; position: sticky; top: 120px; }
.section-sticky p:last-child { color: var(--muted); }
.stack-list { border-top: 1px solid var(--line); }
.stack-item { display: grid; grid-template-columns: 75px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.stack-item > span { color: var(--green); font-weight: 700; }
.news-list .stack-item { grid-template-columns: 108px 1fr; }
.news-source { display: inline-block; margin-top: 10px; color: var(--green); font-size: .84rem; font-weight: 700; text-underline-offset: 4px; }
.stack-item h3 { margin-bottom: 6px; }
.stack-item p { margin: 0; color: var(--muted); }

.recognition { background: #efe9dc; }
.recognition-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.recognition-image { position: relative; }
.recognition-image img { width: 100%; max-height: 680px; object-fit: cover; object-position: center top; border-radius: var(--radius); box-shadow: var(--shadow); }
.recognition-image p { position: absolute; right: -22px; bottom: 24px; max-width: 250px; margin: 0; padding: 15px 18px; background: var(--white); border-radius: 14px; font-size: .83rem; font-weight: 700; }
.recognition-lede { color: var(--muted); font-size: 1.08rem; }
.award-list { padding: 0; margin: 32px 0 0; list-style: none; border-top: 1px solid var(--line); }
.award-list li { display: grid; grid-template-columns: 65px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.award-list span { color: var(--green); font-size: .85rem; font-weight: 700; }

.contact-section { padding: 100px 0; background: var(--green); color: var(--white); }
.contact-section .section-kicker { color: var(--lime); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }
.contact-grid h2 { margin: 0; }
.contact-grid p { color: rgba(255, 255, 255, .8); font-size: 1.08rem; }
.button-light { margin: 16px 0 26px; background: var(--white); color: var(--green-dark); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.social-links a { font-size: .9rem; font-weight: 700; text-underline-offset: 4px; }
.site-footer { padding: 28px 0; background: #052b21; color: rgba(255, 255, 255, .68); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; font-size: .82rem; }
.footer-inner a { font-size: .82rem; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 1240px) {
  .nav-links { gap: 18px; }
}

@media (max-width: 1100px) {
  .menu-toggle { display: block; cursor: pointer; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); }
  .hero-grid, .two-column, .recognition-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 60px; }
  .hero-copy { order: 0; }
  .portrait-wrap { order: 1; max-width: 360px; }
  .portrait { height: 520px; }
  .portrait-note { right: -10px; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .two-column, .recognition-grid, .contact-grid { gap: 46px; }
  .section-sticky { position: static; }
  .education-grid { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card-wide { grid-column: span 6; }
  .science-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-card-tall { grid-row: span 1; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(3.1rem, 15vw, 4.9rem); }
  .section { padding: 82px 0; }
  .hero { padding-top: 50px; }
  .hero-meta { display: grid; gap: 4px; }
  .hero-meta li::after { display: none; }
  .portrait-wrap { width: 88%; }
  .portrait-note { right: -12px; bottom: 18px; }
  .signal-grid, .research-grid { grid-template-columns: 1fr; }
  .science-strip { grid-template-columns: 1fr; }
  .research-card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .research-card { min-height: auto; padding: 30px; }
  .research-figure figcaption { padding: 18px 20px; }
  .heading-row { display: block; }
  .heading-row .text-link { display: inline-block; margin-top: 20px; }
  .publication { grid-template-columns: 1fr; gap: 8px; }
  .publication-featured { margin-inline: 0; padding-inline: 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 330px; }
  .gallery-card, .gallery-card-wide { grid-column: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .recognition-image p { position: static; max-width: none; margin-top: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  :root { --shell: calc(100% - 24px); }
  .hero-actions .button { width: 100%; }
  .signal-grid { grid-template-columns: 1fr; }
  .portrait-note { position: static; max-width: none; margin-top: 12px; }
  .portrait { height: 460px; }
  .stack-item, .award-list li, .news-list .stack-item { grid-template-columns: 1fr; gap: 3px; }
}
