:root {
  --ink: #16211f;
  --muted: #52605d;
  --line: #d9dfdc;
  --paper: #f7f6f2;
  --white: #ffffff;
  --deep: #0a1718;
  --teal: #007f78;
  --teal-dark: #005f5a;
  --amber: #c97318;
  --rose: #a13d53;
  --green: #497b4a;
  --shadow: 0 18px 50px rgba(22, 33, 31, 0.13);
  --max: 1180px;
}

* {
  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;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 246, 242, 0.94);
  border-bottom: 1px solid rgba(22, 33, 31, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--green));
  border-radius: 6px;
  font-size: 14px;
}

.brand-text {
  white-space: nowrap;
}

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

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: #263330;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(0, 127, 120, 0.1);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle svg,
.button svg,
.theme-card svg,
.text-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 56px;
  min-height: 72svh;
  padding: 90px max(24px, calc((100vw - var(--max)) / 2)) 110px;
  color: var(--ink);
  background: var(--paper);
}

.hero-content {
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--teal-dark);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: 34px;
  font-weight: 780;
}

h3 {
  font-size: 20px;
  font-weight: 760;
}

.hero-role {
  margin: 18px 0 0;
  color: #243330;
  font-size: 21px;
  font-weight: 620;
}

.hero-summary {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-portrait {
  justify-self: end;
  width: min(280px, 100%);
  margin: 0;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(22, 33, 31, 0.12);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(22, 33, 31, 0.16);
}

.button-secondary:hover {
  border-color: var(--teal);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 48px));
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.quick-stats div {
  min-width: 0;
  padding: 22px;
  background: var(--white);
}

.stat-value {
  display: block;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
  font-weight: 830;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.section-muted {
  width: 100%;
  padding: 86px max(24px, calc((100vw - var(--max)) / 2));
  background: #eef2ef;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading > .eyebrow {
  grid-column: 1;
}

.section-heading > h2 {
  grid-column: 1 / -1;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
}

.intro-section .section-heading {
  display: block;
  margin: 0;
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
}

.intro-copy p:first-child {
  margin-top: 0;
}

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

.theme-card,
.panel {
  min-width: 0;
  padding: 26px;
  background: var(--white);
  border: 1px solid rgba(22, 33, 31, 0.1);
  border-radius: 6px;
}

.theme-card {
  border-top: 5px solid var(--teal);
}

.theme-card svg {
  margin-bottom: 20px;
  color: var(--teal);
}

.theme-card p,
.project-item p,
.publication-item p,
.metric-summary p,
.panel p,
.panel li,
.timeline-item p {
  color: var(--muted);
}

.accent-rose {
  border-top-color: var(--rose);
}

.accent-rose svg {
  color: var(--rose);
}

.accent-amber {
  border-top-color: var(--amber);
}

.accent-amber svg {
  color: var(--amber);
}

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

.project-item,
.publication-item,
.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.project-date,
.pub-year,
.timeline-item time {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 820;
}

.publication-heading {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.publication-list {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.publication-item {
  padding: 22px;
  border-top: 1px solid var(--line);
}

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

.publication-item[hidden] {
  display: none;
}

.publication-item a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
}

.publication-item a:hover,
.text-link:hover {
  text-decoration: underline;
}

.more-publications {
  margin-top: 22px;
}

.metrics-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: end;
}

.metric-summary {
  font-size: 18px;
}

.citation-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(34px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 300px;
  padding: 26px;
  background: #172321;
  border-radius: 6px;
}

.bar {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: end;
  min-height: 230px;
  color: #e8efec;
  font-size: 12px;
  text-align: center;
}

.bar::before {
  content: "";
  display: block;
  width: 100%;
  height: var(--value);
  min-height: 6px;
  background: linear-gradient(180deg, #f4a43b, #21afa4);
  border-radius: 4px 4px 0 0;
}

.bar span {
  margin-top: 10px;
  color: #b9c8c4;
}

.bar strong {
  color: var(--white);
}

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

.clean-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.clean-list li + li {
  margin-top: 10px;
}

.supervision-status {
  margin: 14px 0 0;
  font-weight: 720;
}

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

.contact-section {
  padding: 84px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 95, 90, 0.94), rgba(22, 33, 31, 0.98)),
    var(--deep);
}

.contact-content {
  width: min(860px, 100%);
}

.contact-content .eyebrow {
  color: #b8eee7;
}

.contact-content h2 {
  color: var(--white);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px max(24px, calc((100vw - var(--max)) / 2));
  color: #d5dfdc;
  background: #0b1414;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

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

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

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .quick-stats,
  .theme-grid,
  .hero,
  .intro-section,
  .metrics-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 38px;
  }

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

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .intro-section {
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding-inline: 16px;
  }

  .site-nav {
    right: 16px;
    left: 16px;
  }

  .brand-text {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
    padding: 64px 20px 78px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 18px;
  }

  .hero-role,
  .hero-summary,
  .intro-copy,
  .metric-summary {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .quick-stats {
    width: calc(100% - 32px);
    margin-top: -28px;
  }

  .section,
  .section-muted {
    width: 100%;
    padding: 64px 20px;
  }

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

  .citation-chart {
    gap: 6px;
    padding: 18px;
    overflow-x: auto;
  }

  .bar {
    min-width: 38px;
  }

  .contact-section {
    padding: 64px 20px;
  }

  .site-footer {
    padding: 24px 20px;
  }
}
