:root {
  --ink: #202124;
  --muted: #5f6673;
  --line: #d7deea;
  --blue: #2f5f9f;
  --blue-dark: #1f3f68;
  --blue-soft: #eaf1fb;
  --teal: #2b7a78;
  --gold: #b5892e;
  --bg: #f7f8fb;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(18, 42, 76, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

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

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

.top-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(32, 32, 32, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.top-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.brand__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.22);
}

main {
  padding-top: 64px;
}

.page-title {
  background: var(--white);
  padding: 58px 20px 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
}

.hero {
  background: #434343;
  color: var(--white);
}

.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 44px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 18px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
  line-height: 1.18;
  text-align: center;
}

.hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  text-align: justify;
}

.hero__copy {
  width: 100%;
}

.hero__image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--white);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.hero__image img {
  width: 100%;
  height: auto;
}

.section {
  background: var(--white);
  padding: 44px 20px;
}

.section--muted {
  background: var(--bg);
}

.logo-strip-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.logo-strip-image {
  width: min(760px, 100%);
  margin: 0 auto;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.22;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 1.08rem;
  color: #343946;
}

.highlight {
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.highlight__meta,
.news-item__meta {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card p:last-child,
.highlight p:last-child,
.news-item p:last-child {
  margin-bottom: 0;
}

.entry-date {
  color: #999999;
  font-size: 0.88rem;
  margin-top: 14px;
  text-align: left;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 6px 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

.work-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-list li {
  border-left: 4px solid var(--teal);
  padding-left: 14px;
}

.rationale-list {
  margin-top: 22px;
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 20px;
}

.support-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 34px;
  align-items: center;
}

.support-block {
  text-align: center;
}

.support-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.support-funding-image {
  width: min(500px, 100%);
  margin: 0 auto;
}

.support-lab-image {
  width: min(300px, 82%);
  margin: 0 auto 14px;
}

.footer {
  background: #2e2e2e;
  color: rgba(255, 255, 255, 0.84);
  padding: 28px 20px;
  font-size: 0.92rem;
}

.footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--white);
}

@media (max-width: 860px) {
  .top-nav__inner {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .brand {
    max-width: calc(100% - 92px);
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    justify-content: center;
  }

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

  main {
    padding-top: 64px;
  }

  .hero__inner,
  .split,
  .grid,
  .grid--two,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-top: 38px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .brand__text {
    max-width: 220px;
  }

  .nav-links a {
    padding: 7px 10px;
  }

  .section {
    padding: 34px 16px;
  }
}
