:root {
  --ink: #14252b;
  --muted: #607078;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --teal: #0b6b67;
  --teal-dark: #074b49;
  --mint: #cbe6dc;
  --coral: #dc745f;
  --line: #dce3de;
  --shadow: 0 20px 50px rgba(20, 37, 43, 0.08);
  --radius: 22px;
  --max-width: 1160px;
}

* {
  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.65;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(203, 230, 220, 0.65), transparent 26rem),
    radial-gradient(circle at 92% 28%, rgba(220, 116, 95, 0.12), transparent 22rem);
  content: "";
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-dark);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 227, 222, 0.85);
  background: rgba(247, 248, 244, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 76px;
  margin: auto;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.55rem;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
}

.menu-button {
  display: none;
  padding: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: currentColor;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-block: 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 500;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
}

h3 {
  font-size: 1.4rem;
}

.accent {
  color: var(--teal);
  font-style: italic;
}

.lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--teal-dark);
  color: white;
  box-shadow: 0 10px 22px rgba(11, 107, 103, 0.2);
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--teal);
}

.button.secondary:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.portrait {
  position: relative;
  display: grid;
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  place-items: center;
  overflow: hidden;
  border: 10px solid white;
  border-radius: 48% 48% 18px 18px;
  background: var(--mint);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: 52% 42%;
}

.portrait::before,
.portrait::after {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  content: "";
}

.portrait::before {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -100px;
}

.portrait::after {
  width: 140px;
  height: 140px;
  bottom: -30px;
  left: -55px;
}

.portrait-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat {
  padding: 1.2rem;
  border-top: 2px solid var(--coral);
  background: rgba(255, 255, 255, 0.55);
}

.stat strong {
  display: block;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.75rem;
}

.page-hero {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section.tint {
  background: rgba(203, 230, 220, 0.22);
}

.section-head {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-head > :first-child {
  max-width: 650px;
}

.section-head p {
  max-width: 470px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(20, 37, 43, 0.035);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-number {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #edf3ef;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.publication {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 1.25rem;
  padding-block: 1.7rem;
  border-top: 1px solid var(--line);
}

.publication:last-child {
  border-bottom: 1px solid var(--line);
}

.pub-year {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.publication h3 {
  margin-bottom: 0.55rem;
}

.publication p {
  margin: 0.3rem 0;
  color: var(--muted);
}

.pub-links a {
  margin-right: 1rem;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.publication[hidden] {
  display: none;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 2rem;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0.4rem;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline li {
  position: relative;
  margin-bottom: 2.2rem;
}

.timeline li::before {
  position: absolute;
  top: 0.4rem;
  left: calc(-2rem - 1px);
  width: 11px;
  height: 11px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.timeline time {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.timeline h3 {
  margin: 0.3rem 0;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.academic-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.academic-list > li {
  padding-block: 1.3rem;
  border-top: 1px solid var(--line);
}

.academic-list > li:last-child {
  border-bottom: 1px solid var(--line);
}

.academic-list h3 {
  margin-bottom: 0.35rem;
}

.academic-list p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.role-meta {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--teal-dark);
  color: white;
  box-shadow: var(--shadow);
}

.contact-panel > div {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.contact-panel > div:last-child {
  background: rgba(255, 255, 255, 0.08);
}

.contact-panel a {
  color: #d8fff1;
}

.contact-panel .eyebrow {
  color: #93d6c6;
}

.contact-panel h2 {
  color: white;
}

.contact-panel dl {
  margin: 0;
}

.contact-panel dt {
  margin-top: 1.4rem;
  color: #93d6c6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 0.25rem 0 0;
}

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.placeholder-note {
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--coral);
  background: rgba(220, 116, 95, 0.09);
  color: #784338;
  font-size: 0.86rem;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: center;
  text-align: center;
}

@media (max-width: 1020px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    padding: 1.25rem 1rem 1.75rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem;
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4rem;
  }

  .portrait {
    width: min(75vw, 310px);
  }

  .grid.three,
  .grid.two,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.9rem;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    display: block;
  }

  .footer-links {
    margin-top: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
