:root {
  --bg: #fcfcfa;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-soft: #f1f3ee;
  --text: #1e2530;
  --muted: #606977;
  --line: rgba(30, 37, 48, 0.12);
  --navy: #223045;
  --navy-deep: #172230;
  --teal: #274e55;
  --teal-deep: #1e3e44;
  --link: #274e55;
  --shadow: 0 8px 24px rgba(19, 28, 40, 0.04);
  --shadow-soft: 0 4px 16px rgba(19, 28, 40, 0.03);
  --radius: 22px;
  --radius-sm: 14px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
}

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

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 252, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand,
.site-nav a {
  color: var(--navy-deep);
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  opacity: 0.68;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #fcfcfa;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  display: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  padding: 4.3rem 0 3.7rem;
  text-align: center;
}

.hero-small {
  padding: 3rem 0 2.4rem;
}

.hero-kicker {
  margin: 0 0 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  opacity: 1;
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  line-height: 1.02;
}

.hero-home h1 {
  max-width: 9ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  text-align: left;
}

.hero-copy {
  max-width: 680px;
}

.hero-lead {
  margin: 1.2rem 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 34ch;
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-note-label,
.section-label {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-content {
  padding: 2.5rem 0 4rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.portrait-card,
.content-card,
.content-section,
.cv-card,
.summary-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.portrait-card {
  padding: 0;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #e9ece6;
}

.portrait-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.portrait-meta span {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.86rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--teal-deep);
  color: #fff;
}

.button-secondary {
  background: var(--teal-deep);
  color: #fff;
  padding-inline: 1.5rem;
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--navy-deep);
  background: transparent;
}

.button-subtle {
  border-color: rgba(39, 78, 85, 0.24);
}

.content-card,
.content-section,
.cv-card,
.summary-card {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.content-card h2,
.content-section h2,
.cv-card h2,
.summary-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.spotlight-card h2 {
  max-width: 18ch;
}

.content-card p,
.content-section p,
.work-item p,
.publication p,
.research-intro,
.theme-item p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.inline-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.inline-links a,
.text-link {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
}

.content-section {
  margin-bottom: 1rem;
}

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

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.work-grid {
  display: grid;
  gap: 1.2rem;
}

.publication,
.work-item {
  padding-top: 0.4rem;
}

.publication-featured {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.work-item {
  padding: 0 0 1.2rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.meta {
  font-weight: 700;
  color: var(--text);
}

.publication h3,
.work-item h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.12rem;
  line-height: 1.45;
}

.publication h3 a {
  color: inherit;
}

.journal {
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.research-layout {
  max-width: 860px;
}

.research-intro {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.cv-shell {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.cv-card {
  width: min(100%, 520px);
  text-align: center;
  background: transparent;
}

.cv-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-band {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.contact-header h2 {
  margin-bottom: 0;
}

.contact-links {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
}

.icon-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--teal-deep);
  line-height: 1;
  flex: 0 0 auto;
}

.icon-mail svg {
  width: 1rem;
  height: 1rem;
  fill: #fff !important;
}

.icon-academic {
  width: 2rem;
  height: 2rem;
}

.icon-academic svg {
  width: 0.95rem;
  height: 0.95rem;
}

.contact-link {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 600;
}

.contact-link:visited,
.contact-link:hover,
.contact-link:focus-visible,
.contact-link:active {
  color: var(--teal-deep);
}

.contact-band h2,
.contact-band p,
.contact-band a,
.contact-band .section-label {
  color: var(--text);
}

.contact-section a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 840px) {
  .nav-shell {
    min-height: 64px;
  }

  .hero-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    max-width: 320px;
    justify-self: center;
    width: 100%;
  }

  .hero-shell {
    padding: 3.6rem 0 3rem;
  }

  .section-heading-row,
  .contact-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 1rem), var(--shell));
  }

  .nav-shell {
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 0;
  }

  .site-nav {
    gap: 1rem;
  }

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

  .content-card,
  .content-section,
  .cv-card,
  .portrait-card,
  .summary-card {
    padding: 1rem 0;
  }

  .portrait-card {
    margin-inline: auto;
  }
}
