:root {
  --bg: #090b0f;
  --bg-top: #11151b;
  --panel: rgba(17, 21, 27, 0.72);
  --panel-strong: rgba(20, 25, 32, 0.76);
  --panel-soft: rgba(16, 21, 28, 0.58);
  --ink: #f2f5f7;
  --muted: #9eabb6;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --accent: #63d2ff;
  --accent-strong: #8ae1ff;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(99, 210, 255, 0.14), transparent 24%),
    radial-gradient(circle at right 14% top 16%, rgba(99, 210, 255, 0.08), transparent 16%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 55%, #07090c 100%);
}

body:not(.home-page) {
  --bg: #dde4de;
  --bg-top: #eef3ef;
  --panel: rgba(248, 250, 247, 0.9);
  --panel-strong: rgba(252, 253, 251, 0.96);
  --panel-soft: rgba(239, 244, 241, 0.94);
  --ink: #1f312a;
  --muted: #617168;
  --line: rgba(49, 63, 54, 0.08);
  --line-strong: rgba(49, 63, 54, 0.14);
  --accent: #567d8a;
  --accent-strong: #3f6673;
  --shadow: 0 20px 54px rgba(74, 89, 86, 0.12);
  --header-bg: rgba(47, 57, 66, 0.9);
  --header-line: rgba(255, 255, 255, 0.08);
  --header-ink: #f5f0e4;
  --header-muted: rgba(245, 240, 228, 0.8);
  --header-hover: rgba(255, 255, 255, 0.08);
  --header-active-bg: rgba(128, 172, 190, 0.32);
  --header-active-ink: #d9f1ff;
  --body-copy-size: 1.16rem;
  background:
    radial-gradient(circle at top left, rgba(191, 211, 205, 0.28), transparent 22%),
    radial-gradient(circle at right 18% top 12%, rgba(183, 203, 214, 0.18), transparent 18%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 58%, #d1d9d3 100%);
}

a {
  color: inherit;
}

.site-frame {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.home-page .site-frame {
  width: 100%;
  padding-top: 0;
}

.site-header,
.hero,
.page-hero,
.section-block,
.site-footer {
  background: var(--panel);
  border: 1px solid transparent;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 20px;
  padding: 18px 22px;
}

body:not(.home-page) .site-header {
  background: var(--header-bg);
  border-color: var(--header-line);
  box-shadow: 0 18px 44px rgba(40, 45, 43, 0.22);
  justify-content: center;
}

.brand {
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

body:not(.home-page) .brand {
  color: var(--header-ink);
}

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

body:not(.home-page) .site-nav {
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body:not(.home-page) .site-nav a {
  color: var(--header-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(24, 36, 44, 0.05);
  outline: none;
}

body:not(.home-page) .site-nav a:hover,
body:not(.home-page) .site-nav a:focus-visible {
  color: var(--header-ink);
  background: var(--header-hover);
}

.site-nav a.is-active {
  background: rgba(47, 135, 168, 0.12);
  color: var(--accent-strong);
}

body:not(.home-page) .site-nav a.is-active {
  background: var(--header-active-bg);
  color: var(--header-active-ink);
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.home-page main {
  gap: 0;
  margin-top: 0;
}

.hero,
.page-hero {
  border-radius: 28px;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 22px;
  padding: clamp(28px, 6vw, 64px);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 135, 168, 0.18) 0%, rgba(47, 135, 168, 0) 70%);
  pointer-events: none;
}

.page-hero {
  padding: clamp(28px, 5vw, 54px);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.profile-hero-copy {
  min-width: 0;
}

.profile-hero-photo {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.people-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
}

.people-hero-photo {
  align-self: stretch;
}

.people-collage {
  width: 100%;
  max-width: 450px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  border: none;
  background: var(--panel);
  box-shadow: none;
}

.profile-photo-ring {
  width: clamp(180px, 18vw, 240px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(47, 135, 168, 0.16), rgba(47, 135, 168, 0.04));
  box-shadow: inset 0 0 0 1px rgba(47, 135, 168, 0.12);
}

.profile-photo-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 50%;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.split-callout h2,
.site-footer h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  max-width: 12ch;
  margin-top: 8px;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.eyebrow,
.section-label,
.kicker,
.time-label {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
  max-width: 760px;
  margin: 16px 0 0;
}

body:not(.home-page) .lead {
  font-size: var(--body-copy-size);
}

.lead.compact {
  max-width: 56ch;
}

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

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

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

.button-solid {
  background: var(--accent);
  color: #f9fcfe;
}

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

.hero-panel,
.card,
.timeline-item {
  background: var(--panel-strong);
  border: 1px solid transparent;
  border-radius: 18px;
}

.hero-panel {
  padding: 22px;
  align-self: end;
}

.hero-list,
.detail-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

body:not(.home-page) .hero-list,
body:not(.home-page) .detail-list {
  font-size: var(--body-copy-size);
}

.section-block,
.site-footer {
  border-radius: 24px;
  padding: 28px;
}

.section-accent {
  background:
    linear-gradient(180deg, rgba(233, 244, 250, 0.98), rgba(221, 236, 244, 0.98));
  border-color: rgba(47, 135, 168, 0.18);
}

.section-accent .section-label,
.section-accent .lead,
.section-accent .card p,
.section-accent .split-callout a,
.section-accent h2 {
  color: inherit;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.section-heading h2,
.split-callout h2,
.site-footer h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  padding: 22px;
}

.foldable-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding-right: 34px;
  position: relative;
}

.foldable-summary::-webkit-details-marker {
  display: none;
}

.foldable-summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--accent-strong);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 500;
}

.foldable[open] .foldable-summary::after {
  content: "-";
}

.foldable-summary h2,
.foldable-summary h3,
.foldable-summary p {
  margin: 0;
}

.foldable-body {
  margin-top: 14px;
}

.card,
.timeline-item,
.section-block,
.site-footer,
.site-header,
.page-hero {
  outline: none;
}

.card h2,
.card h3,
.timeline-item h3 {
  margin: 0 0 10px;
}

.card p,
.timeline-item p,
.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

body:not(.home-page) .card p,
body:not(.home-page) .timeline-item p,
body:not(.home-page) .site-footer p {
  font-size: var(--body-copy-size);
}

.card-wide {
  min-height: 100%;
}

.member-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.surface-strong {
  background: var(--panel-soft);
}

.split-callout {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.mini-links,
.footer-links {
  display: grid;
  gap: 10px;
}

.mini-links a,
.footer-links a,
.text-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-strong);
}

.mini-links a:hover,
.footer-links a:hover,
.text-link:hover,
.mini-links a:focus-visible,
.footer-links a:focus-visible,
.text-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 18px 20px;
}

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

.site-footer {
  margin-top: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-shell {
  display: grid;
  gap: 18px;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 2px 0 8px;
}

.page-hero .section-nav {
  margin: 32px 0 0;
}

.section-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-nav a.is-active,
.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.section-index {
  display: grid;
  gap: 12px;
}

.section-index-item {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.section-index-item:first-child {
  border-top: none;
  padding-top: 0;
}

.section-index-item h3,
.section-index-item p {
  margin: 0;
}

.section-index-item p {
  color: var(--muted);
  line-height: 1.7;
}

body:not(.home-page) .section-index-item p,
body:not(.home-page) .list-plain,
body:not(.home-page) .subpage-item p {
  font-size: var(--body-copy-size);
}

.section-meta {
  display: grid;
  gap: 8px;
}

.list-plain {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

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

.subpage-item {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.subpage-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.subpage-item h3,
.subpage-item p {
  margin: 0 0 8px;
}

.subpage-item .foldable-body p:last-child,
.card .foldable-body p:last-child,
.section-index-item .foldable-body p:last-child {
  margin-bottom: 0;
}

.news-stack,
.topic-cluster,
.link-stack {
  display: grid;
  gap: 14px;
}

.news-stack .subpage-item h3,
.topic-cluster .subpage-item h3 {
  margin-bottom: 10px;
}

.research-layout {
  align-items: start;
}

.research-layout > .card:first-child {
  min-width: 0;
}

.sidebar-stack {
  display: grid;
  gap: 16px;
}

.funding-logos {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-top: 8px;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 12, 0.08), rgba(5, 9, 12, 0.12)),
    url("assets/images/home-hero.jpg") center 52% / cover no-repeat;
}

.home-nav {
  position: absolute;
  top: 18px;
  right: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
}

.home-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-nav a.is-active {
  font-weight: 800;
}

.home-hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.home-hero-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 980px);
  padding: 0 32px;
  text-align: center;
}

.home-hero-copy h1 {
  margin: 0 0 18px;
  max-width: 13ch;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
}

.home-subtitle {
  margin: 0;
  max-width: 28ch;
  color: rgba(242, 245, 247, 0.92);
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  line-height: 1.18;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
}

.home-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  text-decoration: none;
  font-size: 3.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
  z-index: 3;
}

.home-intro {
  width: 100%;
  max-width: none;
  display: block;
  background: #fff;
  color: #2a3238;
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 26px 0 10px;
  scroll-margin-top: 0;
}

.home-copy {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
}

.home-copy p {
  margin: 0 0 18px;
  color: #2f3940;
  font-size: 1rem;
  line-height: 1.82;
}

.home-copy a,
.home-paper-line a {
  color: #526875;
  text-decoration: underline;
}

.home-paper {
  width: 100%;
  background: #fff;
  color: #2a3238;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 8px 0 40px;
}

.home-paper h2 {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto 16px;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home-paper-line {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  color: #2f3940;
  font-size: 1rem;
  line-height: 1.8;
}

.home-paper-line strong {
  color: #20262b;
}

@media (max-width: 980px) {
  .hero,
  .profile-hero,
  .three-up,
  .two-up,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero,
  .site-footer {
    display: grid;
  }

  .split-callout {
    flex-direction: column;
  }

  .profile-hero-photo {
    justify-content: flex-start;
  }

  .profile-photo-ring {
    width: min(220px, 100%);
  }

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

  .people-hero-photo {
    justify-content: flex-start;
  }

  .people-collage {
    max-width: 300px;
  }

  .home-intro {
    padding-top: 22px;
  }
}

@media (max-width: 720px) {
  .site-frame {
    width: min(100% - 18px, 1160px);
  }

  .site-header {
    position: static;
    border-radius: 16px;
    padding: 16px;
  }

  .hero,
  .page-hero,
  .section-block,
  .site-footer {
    border-radius: 20px;
    padding: 22px;
  }

  .home-hero {
    min-height: 92vh;
    border-radius: 0;
  }

  .profile-hero {
    gap: 22px;
  }

  .home-hero-overlay {
    min-height: 92vh;
  }

  .home-hero-copy {
    width: min(100%, 760px);
    padding: 0 18px;
  }

  .home-hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 11vw, 4.4rem);
  }

  .home-subtitle {
    max-width: 18ch;
    font-size: clamp(1.1rem, 5.5vw, 1.7rem);
  }

  .home-scroll {
    bottom: 18px;
    font-size: 2.7rem;
  }

  .home-nav {
    left: 18px;
    right: 18px;
    top: 14px;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-nav a {
    font-size: 0.92rem;
  }

  .home-copy,
  .home-paper h2,
  .home-paper-line {
    width: min(100% - 36px, 1280px);
  }
}
