:root {
  --ink: #142221;
  --muted: #5a6663;
  --paper: #ffffff;
  --soft: #f4f7f6;
  --line: #dfe7e4;
  --teal: #0d6f68;
  --teal-dark: #084f4a;
  --clay: #b54d3f;
  --gold: #b88b28;
  --shadow: 0 18px 55px rgba(12, 35, 34, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 231, 228, 0.88);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(20, 34, 33, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--clay));
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 100px));
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center right;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 18, 20, 0.94) 0%, rgba(8, 18, 20, 0.82) 33%, rgba(8, 18, 20, 0.24) 68%, rgba(8, 18, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 18, 20, 0.1), rgba(8, 18, 20, 0.26));
}

.hero-content {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 104px 0 84px;
  color: #ffffff;
}

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

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: 4.2rem;
  line-height: 1.02;
}

.hero h1 span {
  display: inline;
}

.hero-lede {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.24rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-profile {
  justify-self: end;
  width: min(100%, 300px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(6, 18, 18, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-profile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-profile strong,
.hero-profile span {
  display: block;
}

.hero-profile strong {
  margin-top: 16px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.hero-profile span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.profile-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.profile-links a {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--teal-dark);
  background: #ffffff;
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: grid;
  grid-template-columns: 0.92fr 0.92fr 1.3fr;
  gap: 14px;
  max-width: 840px;
  margin-top: 48px;
}

.hero-facts div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(6, 18, 18, 0.34);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin-top: 7px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
}

.section {
  padding: 88px 0;
}

.band {
  background: var(--soft);
}

.intro-grid,
.split,
.recognition-grid,
.contact-panel {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
  align-items: start;
}

.section h2 {
  max-width: 760px;
  margin-top: 12px;
  font-size: 2.45rem;
  line-height: 1.14;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-visual {
  grid-column: 2;
  margin: 10px 0 0;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

.stat-card,
.topic-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stat-card {
  padding: 24px;
  box-shadow: 0 14px 36px rgba(20, 34, 33, 0.05);
}

.stat-card strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1.1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.section-heading {
  margin-bottom: 36px;
}

.card-grid,
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card,
.project-card {
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.topic-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 111, 104, 0.35);
  box-shadow: var(--shadow);
}

.topic-card h3,
.project-card h3,
.publication-list h3,
.timeline-item h3,
.education-list h3,
.recognition-list h3,
.two-column-list h3,
.callout h3 {
  font-size: 1.08rem;
  line-height: 1.34;
}

.topic-card p,
.project-card p,
.timeline-item p,
.education-list p,
.publication-list p,
.recognition-list p,
.project-list p,
.callout p {
  margin-top: 10px;
  color: var(--muted);
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.image-strip figure,
.lab-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(20, 34, 33, 0.05);
}

.image-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-strip figcaption,
.lab-gallery figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lab-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lab-gallery .gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.lab-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lab-gallery .gallery-large img {
  aspect-ratio: 16 / 10;
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline-item time {
  color: var(--teal-dark);
  font-weight: 900;
}

.education-list,
.recognition-list,
.project-list {
  display: grid;
  gap: 18px;
}

.education-list article,
.recognition-list article,
.publication-list article,
.project-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.education-list span,
.project-card span,
.project-list span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
}

.project-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}

.project-list article {
  min-width: 0;
}

.publication-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.publication-list {
  display: grid;
  gap: 18px;
}

.publication-list a {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.publication-list a:hover,
.publication-list a:focus-visible {
  text-decoration: underline;
}

.callout {
  position: sticky;
  top: 104px;
  padding: 26px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--teal-dark);
}

.callout p {
  color: rgba(255, 255, 255, 0.78);
}

.callout a {
  display: inline-block;
  margin-top: 18px;
  margin-right: 14px;
  color: #ffffff;
  font-weight: 900;
}

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

.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.two-column-list ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.two-column-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.two-column-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--teal);
  border-radius: 50%;
}

.recognition-section {
  background:
    linear-gradient(90deg, rgba(13, 111, 104, 0.08), transparent 38%),
    var(--paper);
}

.contact-section {
  padding-top: 0;
}

.contact-panel {
  padding: 42px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(181, 77, 63, 0.92), rgba(13, 111, 104, 0.96)),
    var(--teal-dark);
}

.contact-panel .section-kicker,
.contact-panel h2 {
  color: #ffffff;
}

.contact-portrait {
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin-top: 24px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: block;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-link strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 920px) {
  .site-header {
    padding-inline: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    display: none;
    width: min(280px, calc(100vw - 48px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 18, 20, 0.94) 0%, rgba(8, 18, 20, 0.76) 58%, rgba(8, 18, 20, 0.35) 100%),
      linear-gradient(180deg, rgba(8, 18, 20, 0.2), rgba(8, 18, 20, 0.58));
  }

  .hero-content {
    padding: 82px 0 58px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-profile {
    justify-self: start;
    width: min(100%, 280px);
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-lede {
    font-size: 1.12rem;
  }

  .hero-facts,
  .stat-grid,
  .card-grid,
  .research-grid,
  .image-strip,
  .lab-gallery,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-gallery .gallery-large {
    grid-column: span 2;
    grid-row: auto;
  }

  .intro-grid,
  .split,
  .recognition-grid,
  .contact-panel,
  .publication-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .callout {
    position: static;
  }

  .about-visual {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .wrap,
  .hero-content {
    width: min(100% - 32px, var(--max));
  }

  .brand small {
    display: none;
  }

  .hero-image {
    object-position: 70% center;
  }

  .hero-content {
    padding-top: 66px;
  }

  .hero-profile {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.22rem;
  }

  .hero h1 .degree {
    display: block;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .profile-links {
    flex-direction: column;
  }

  .hero-facts,
  .stat-grid,
  .card-grid,
  .research-grid,
  .image-strip,
  .lab-gallery,
  .project-grid,
  .project-list,
  .two-column-list {
    grid-template-columns: 1fr;
  }

  .lab-gallery .gallery-large {
    grid-column: auto;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-panel {
    padding: 28px 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
