:root {
  --navy: #0b1f3a;
  --blue: #174a7c;
  --orange: #f15a24;
  --orange-dark: #c24114;
  --ink: #172033;
  --muted: #5c6878;
  --line: #dbe2ea;
  --surface: #ffffff;
  --surface-muted: #f4f7fa;
  --surface-cool: #edf5f8;
  --shadow: 0 24px 70px rgba(11, 31, 58, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.08;
}

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  max-width: 860px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -44px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 226, 234, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--container);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.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;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--navy);
}

.nav-links .nav-cta {
  background: var(--orange);
  color: #fff;
  margin-left: 6px;
}

.nav-links .nav-cta:hover {
  background: var(--orange-dark);
  color: #fff;
}

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

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(237, 245, 248, 0.92) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 1) 100%),
    radial-gradient(circle at 85% 12%, rgba(241, 90, 36, 0.18), transparent 32%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 52px;
  padding-block: 40px 42px;
}

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

.hero-role {
  max-width: 680px;
  margin-top: 16px;
  color: var(--blue);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-summary {
  max-width: 720px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(241, 90, 36, 0.22);
}

.button.primary:hover {
  background: var(--orange-dark);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.profile-panel {
  align-self: center;
}

.portrait-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-muted);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.95rem;
}

.contact-card h2 {
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-card p + p {
  margin-top: 14px;
}

.section {
  padding-block: 88px;
}

.section-anchor {
  scroll-margin-top: 98px;
}

.section-label {
  margin-bottom: 12px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading p:not(.section-label) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.news-band {
  background: var(--navy);
  color: #fff;
  padding-block: 58px;
}

.news-band h2,
.news-band .section-label {
  color: #fff;
}

.split-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
}

.news-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.news-list article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  background: var(--navy);
}

.news-list time {
  color: #ffb28f;
  font-weight: 800;
}

.about-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.research-item,
.people-grid article,
.project-stack article,
.project-list article,
.project-facts article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.research-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 190px;
  padding: 18px 28px 18px 18px;
  overflow: hidden;
}

.research-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.research-item h3,
.people-grid h3,
.project-stack h3,
.project-list h3,
.publication h3,
.project-facts h2 {
  margin-bottom: 10px;
}

.research-item p,
.project-stack p,
.project-list p,
.publication p,
.project-facts p,
.lead {
  color: var(--muted);
}

.lab-preview {
  background: linear-gradient(180deg, var(--surface-cool), #fff);
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.lab-grid p:not(.section-label) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--orange-dark);
  font-weight: 800;
}

.project-stack {
  display: grid;
  gap: 14px;
}

.project-stack article {
  padding: 24px;
}

.project-stack span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.publication.highlight {
  padding-left: 18px;
  border-left: 4px solid var(--orange);
}

.publication .pub-meta {
  margin-bottom: 7px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-list.long {
  gap: 0;
}

.inline-action {
  margin-top: 28px;
}

.muted {
  background: var(--surface-muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 56px;
}

.activity-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.activity-panel {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.activity-panel h2 {
  margin-bottom: 20px;
}

.clean-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.page-hero {
  padding-block: 110px 84px;
  background:
    linear-gradient(120deg, rgba(237, 245, 248, 0.92), rgba(255, 255, 255, 1)),
    radial-gradient(circle at 90% 20%, rgba(241, 90, 36, 0.16), transparent 34%);
  border-bottom: 1px solid var(--line);
}

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

.page-hero p {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.2rem;
}

.people-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.4fr;
  gap: 18px;
}

.people-grid article,
.project-facts article {
  padding: 26px;
}

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

.project-list article {
  padding: 26px;
}

.publication-page {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.toc a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.pub-content h2 {
  margin-bottom: 20px;
}

.journal-section {
  margin-top: 70px;
}

.project-hero {
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.96), rgba(23, 74, 124, 0.9)),
    radial-gradient(circle at 86% 18%, rgba(241, 90, 36, 0.3), transparent 28%);
}

.project-hero h1,
.project-hero p {
  color: #fff;
}

.project-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.project-facts {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 18px;
}

.site-footer {
  padding-block: 34px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

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

  .nav-links {
    position: absolute;
    inset: 76px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .hero-grid,
  .split-section,
  .lab-grid,
  .two-column,
  .activity-grid,
  .publication-page,
  .project-facts {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    padding-block: 58px 72px;
  }

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

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

  .research-item {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .toc {
    position: static;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100vw - 24px, 1120px);
  }

  .brand small {
    display: none;
  }

  .section {
    padding-block: 64px;
  }

  .page-hero {
    padding-block: 78px 62px;
  }

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

  .button {
    width: 100%;
  }

  .news-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .research-item,
  .people-grid article,
  .project-list article,
  .project-stack article,
  .project-facts article {
    padding: 22px;
  }

  .research-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
