:root {
  --bg: #f8f6f1;
  --paper: #ffffff;
  --ink: #202124;
  --muted: #596070;
  --line: #ded8ce;
  --red: #b21f2d;
  --red-dark: #821923;
  --blue: #17127a;
  --blue-dark: #100b5f;
  --blue-soft: #efeffb;
  --gold: #d8b45a;
  --green: #52705b;
  --shadow: 0 20px 60px rgba(32, 33, 36, 0.09);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 246, 241, 0.94);
  border-bottom: 1px solid rgba(222, 216, 206, 0.75);
  backdrop-filter: blur(16px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #3d4148;
  font-size: 14px;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 800;
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 18, 122, 0.24);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding-top: 56px;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 96px;
  height: 5px;
  margin-bottom: 28px;
  background: var(--blue);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 9vw, 108px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  color: #41464d;
  font-size: 23px;
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

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

.button.subtle {
  background: transparent;
}

.button:not(.primary):hover {
  border-color: var(--blue);
  color: var(--blue);
}

.profile-panel {
  padding: 24px;
  background: var(--paper);
  border: 1px solid rgba(23, 18, 122, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-wrap {
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: #eee7dc;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.facts {
  display: grid;
  gap: 16px;
  margin: 0;
}

.facts div {
  padding-top: 16px;
  border-top: 1px solid rgba(23, 18, 122, 0.14);
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.intro-grid,
.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.prose {
  color: #41464d;
  font-size: 18px;
}

.maintained-note {
  padding-left: 18px;
  border-left: 4px solid var(--blue);
  color: var(--ink);
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.theme-card,
.highlight-list article,
.application-list article,
.publication-preview article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.theme-card {
  min-height: 280px;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-card:hover {
  border-color: rgba(23, 18, 122, 0.42);
  box-shadow: 0 16px 42px rgba(23, 18, 122, 0.09);
}

.theme-number {
  display: inline-flex;
  margin-bottom: 72px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.theme-card p,
.highlight-list p,
.muted {
  color: var(--muted);
}

.highlight-band {
  max-width: none;
  background: var(--blue);
  color: #fff;
}

.highlight-band .section-kicker {
  color: var(--gold);
}

.highlight-band .section-heading,
.highlight-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.highlight-list article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.highlight-list p {
  color: #e7e4f8;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #090820;
}

.media-card div {
  padding: 22px 24px 24px;
}

.publication-preview {
  display: grid;
  gap: 12px;
}

.publication-preview article {
  padding: 18px 20px;
}

.publication-preview span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.publication-preview p {
  margin-bottom: 0;
  font-weight: 700;
}

.application-list {
  display: grid;
  gap: 12px;
}

.application-list article {
  padding: 20px;
}

.application-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover,
.inline-link:hover {
  text-decoration: underline;
}

.inline-link {
  color: var(--blue);
  font-weight: 800;
}

.page-hero {
  padding-top: 76px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(44px, 7vw, 82px);
}

.research-stack {
  display: grid;
  gap: 18px;
}

.research-stack article {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.research-stack article:last-child {
  border-bottom: none;
}

.research-stack h2 {
  grid-column: 1;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.research-stack p {
  grid-column: 2;
  max-width: 780px;
  color: #41464d;
  font-size: 18px;
}

.research-copy {
  grid-column: 2;
  max-width: 820px;
}

.research-copy p {
  grid-column: auto;
}

.research-stack .section-kicker {
  grid-column: 1;
  margin-bottom: -18px;
}

.research-figure {
  overflow: hidden;
  margin: 28px 0 0;
  background: var(--paper);
  border: 1px solid rgba(23, 18, 122, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(23, 18, 122, 0.08);
}

.research-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #0b0b0f;
}

.research-figure figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.paper-section {
  padding-top: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.paper-section h2 {
  max-width: 840px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 46px);
}

.paper-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0;
  padding-left: 24px;
  color: #333840;
  font-size: 17px;
}

.paper-list li {
  padding-left: 8px;
}

.paper-list em {
  color: var(--blue-dark);
  font-style: italic;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 72px;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  font-size: 42px;
}

address {
  color: #41464d;
  font-style: normal;
}

address a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero,
  .intro-grid,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-panel {
    max-width: 480px;
  }

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

  .research-stack article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .research-stack h2,
  .research-stack p,
  .research-copy,
  .research-stack .section-kicker {
    grid-column: 1;
  }

  .research-stack .section-kicker {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 18px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 13px;
  }

  .site-header[data-open] .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--blue);
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 19px;
  }

  .theme-grid,
  .highlight-list,
  .application-list {
    grid-template-columns: 1fr;
  }

  .theme-card {
    min-height: auto;
  }

  .theme-number {
    margin-bottom: 36px;
  }
}
