:root {
  --ink: #171713;
  --muted: #625f55;
  --paper: #fbf6eb;
  --white: #ffffff;
  --moss: #718c60;
  --moss-deep: #29351f;
  --sage: #dce5d4;
  --orange: #e5a23f;
  --orange-pale: #f3d7a4;
  --orange-soft: #f9ecd4;
  --line: #ded6c7;
  --shadow: 0 18px 45px rgba(23, 23, 19, 0.12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--moss-deep); }
a:hover { color: var(--moss); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--white);
  padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 235, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 214, 199, 0.86);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 58px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 8px rgba(23, 23, 19, 0.12));
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  font-size: 0.94rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--orange-pale);
  color: var(--ink);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 700;
}

main { overflow: hidden; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-tight { padding: 3.2rem 0; }
.section.alt { background: var(--white); }
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-top: 0;
}
h1 { font-size: clamp(3rem, 7vw, 6.5rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.65rem; }
.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #4f5549;
  max-width: 800px;
}
.prose { max-width: 780px; }
.prose p { color: #50554a; }

.hero {
  min-height: calc(100vh - 76px);
  position: relative;
  display: grid;
  align-items: end;
  background: var(--moss-deep);
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(23, 23, 19, 0.12) 0%, rgba(41, 53, 31, 0.24) 38%, rgba(23, 23, 19, 0.88) 100%),
    url("assets/images/team-cathedral.jpeg");
  background-position: center;
  background-size: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.25rem 4.4rem;
}
.hero h1 { max-width: 970px; }
.hero .lead { color: rgba(255,255,255,0.9); max-width: 760px; }
.hero-kicker {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid transparent;
}
.btn.primary { background: var(--orange-pale); color: var(--ink); }
.btn.secondary { border-color: rgba(255,255,255,0.38); color: white; background: rgba(255,255,255,0.08); }
.btn.green { background: var(--moss-deep); color: white; }
.btn.green:hover { background: var(--moss); color: var(--ink); }
.btn.outline { border-color: var(--line); background: white; color: var(--moss-deep); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 1.8rem; color: var(--moss-deep); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem;
}
.card.soft { background: var(--sage); border-color: transparent; }
.card p { color: #575a50; margin-bottom: 0; }
.card .number {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--orange-pale); color: var(--ink); font-weight: 800; margin-bottom: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.image-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sage);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame.landscape { aspect-ratio: 4 / 3; }
.image-frame.wide { aspect-ratio: 16 / 10; }
.image-frame.portrait { aspect-ratio: 4 / 5; }

.moss-intro { padding-bottom: 5rem; }
.community-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.community-photo { background: var(--sage); }
.community-photo img { width: 100%; height: auto; object-fit: contain; }
.community-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.community-copy .prose { max-width: 900px; }
.moss-definition {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: 3rem;
  align-items: center;
  margin-top: 2.25rem;
}
.moss-definition > div > p:last-child { max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.moss-diagram {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.moss-diagram img { width: 100%; height: auto; }
.project-aim { max-width: 940px; }
.wp-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.82fr);
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.5rem;
}
.wp-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.wp-figure img { width: 100%; height: auto; }
.wp-list { display: grid; gap: 0.75rem; }
.wp-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.wp-item:last-child { border-bottom: 0; }
.wp-item > span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 10px;
  background: var(--orange-pale);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}
.wp-item h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.wp-item p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.45; }

.partner-groups { display: grid; gap: 1.15rem; }
.partner-group {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.partner-group h2, .partner-group h3 { margin-bottom: 0.65rem; }
.partner-group h2 { font-size: clamp(2rem, 3vw, 3rem); }
.partner-group p:last-child { margin-bottom: 0; color: var(--muted); }
.partner-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 2rem;
  align-items: center;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.6rem 2rem;
}
.partner-logo-item {
  width: min(210px, 100%);
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}
.partner-logo-frame {
  width: 100%;
  height: 96px;
  display: grid;
  place-items: center;
  padding: 0.35rem;
  overflow: hidden;
}
.partner-logo-frame-dark {
  padding: 0.8rem;
  border-radius: 12px;
  background: #14213d;
}
.partner-logo-item figcaption {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}
.partner-logo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.partner-logo-frame .logo-astrazeneca {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.funder-logos .partner-logo-item { width: min(300px, 100%); }
.funder-logos .partner-logo-frame { height: 150px; }
.funder-logos img { width: auto; height: 145px; max-height: 145px; }
.university-logos .partner-logo-item { width: min(175px, 100%); }
.university-logos .partner-logo-frame { height: 82px; }
.partner-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.partner-category-grid .partner-group { display: grid; align-content: start; }
.infrastructure-logos, .council-logos { min-height: 170px; }
.infrastructure-logos .partner-logo-item { width: min(190px, 100%); }
.council-logos .partner-logo-item { width: min(285px, 100%); }
.council-logos .partner-logo-frame { height: 92px; }
.council-logos .partner-logo-frame img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.companies-group { grid-column: 1 / -1; }
.company-logos { justify-content: space-around; min-height: 170px; }
.company-logos .partner-logo-item { width: min(190px, 100%); }
.partner-category-grid h3 { min-height: 2.4rem; }
.partner-group .eyebrow { margin-bottom: 0.55rem; }
.partner-group > .partner-logos:last-child {
  margin-top: 1.2rem;
}
.partner-groups > .btn { justify-self: start; }

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 240px 240px;
  gap: 1rem;
}
.gallery figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #ddd;
}
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0.8rem; bottom: 0.8rem;
  padding: 0.4rem 0.65rem;
  background: rgba(20,34,29,0.72);
  color: white;
  border-radius: 999px;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}

.page-hero {
  padding: 6.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 78% 12%, rgba(229,162,63,.28), transparent 30%),
    linear-gradient(180deg, var(--sage), var(--paper));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.7rem); }
.page-hero .lead { max-width: 820px; }

.outreach-intro { max-width: 860px; margin-bottom: 2.2rem; }
.outreach-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.outreach-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(23, 23, 19, 0.09);
}
.outreach-image { margin: 0; background: var(--sage); }
.outreach-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.outreach-image figcaption {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--orange-soft);
  color: var(--muted);
  font-size: 0.76rem;
}
.outreach-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}
.outreach-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.outreach-meta span {
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--moss-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.outreach-card h3 { font-size: 1.55rem; }
.outreach-card p { margin-top: 0; color: var(--muted); }
.outreach-card .text-link {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.outreach-note {
  margin-top: auto !important;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
}
.outreach-contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.outreach-contact h2 { max-width: 760px; }
.outreach-contact p:not(.eyebrow) { max-width: 760px; color: var(--muted); }
.outreach-contact .btn { flex: 0 0 auto; }

.callout {
  padding: 1.5rem;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 0 16px 16px 0;
  color: #4f493f;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.person-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}
.person-row strong { font-size: 1rem; }
.person-row span { color: var(--muted); font-size: 0.88rem; text-align: right; }

.pub-list { display: grid; gap: 1rem; }
.pub {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
}
.pub .meta { color: var(--moss); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pub h3 { margin: 0.35rem 0 0.45rem; }
.pub p { color: var(--muted); margin: 0; }
.pub a { display: inline-block; margin-top: 0.8rem; font-weight: 750; }

.contact-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem;
  border-radius: 26px;
  padding: 2rem;
  background: var(--ink);
  color: white;
}
.contact-eyebrow { color: var(--orange-pale); }
.contact-box p { color: rgba(255,255,255,0.82); }
.contact-box a { color: white; }
.contact-details {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.contact-item {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 1rem;
}
.contact-item small { display:block; color: rgba(255,255,255,.68); text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.project-manager-card {
  max-width: 480px;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}
.project-manager-card small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--orange-pale);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-manager-card h3 { margin-bottom: 0.25rem; }
.project-manager-card p { margin: 0 0 0.35rem; }
.project-manager-card a { font-weight: 750; }
.project-manager-card.standalone {
  max-width: none;
  margin-top: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 0;
  background: var(--moss-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}
.project-manager-card.standalone p { color: rgba(255,255,255,.8); }
.project-manager-card.standalone a { color: var(--white); }

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.82);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: white; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-bottom {
  margin-top: 2.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display:flex;
  justify-content:space-between;
  gap:1rem;
  font-size:.85rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 0.8rem 1.25rem 1.1rem;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 12px; }
  .split, .contact-box, .wp-layout, .moss-definition, .partner-feature, .partner-category-grid { grid-template-columns: 1fr; }
  .companies-group { grid-column: auto; }
  .partner-category-grid h3 { min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .outreach-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outreach-card:last-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 220px 220px; }
  .gallery figure:first-child { grid-column: 1/3; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav-wrap { padding: 0 0.75rem; }
  .brand { gap: 0.55rem; }
  .brand-logo { width: 50px; height: 52px; }
  .funder-logos .partner-logo-frame { height: 125px; }
  .funder-logos img { height: 120px; max-height: 120px; }
  .brand-text { font-size: 0.88rem; }
  .nav-toggle { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
  .section { padding: 3.5rem 0; }
  .hero { min-height: 82vh; }
  .hero-content { padding-bottom: 2.7rem; }
  .hero-kicker { font-size: 0.69rem; letter-spacing: 0.03em; padding: 0.4rem 0.6rem; }
  .stats { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .grid-2, .grid-3, .grid-4, .team-list { grid-template-columns: 1fr; }
  .outreach-activity-grid { grid-template-columns: 1fr; }
  .outreach-card:last-child { grid-column: auto; }
  .outreach-contact { align-items: flex-start; flex-direction: column; }
  .gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(5, 240px); }
  .gallery figure:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .brand-text small { display: none; }
}

/* 2026 website expansion: quieter typography, blog/news/challenge pages */
h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
h3 { font-size: 1.22rem; }
.page-hero { padding: 5rem 0 3rem; }
.page-hero h1 { font-size: clamp(2.7rem, 5vw, 4.35rem); }
.section { padding: 4.4rem 0; }
.nav-wrap { max-width: 1320px; }
.nav-links { gap: 0.08rem; }
.nav-links a { padding: 0.58rem 0.64rem; font-size: 0.86rem; white-space: nowrap; }
.nav-links a[href="challenge.html"] { background: var(--sage); color: var(--moss-deep); }
.nav-links a[href="challenge.html"]:hover,
.nav-links a[href="challenge.html"][aria-current="page"] { background: var(--moss-deep); color: white; }
.footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
.btn.orange { background: var(--orange); color: var(--ink); }
.btn.orange:hover { background: var(--orange-pale); color: var(--ink); }
.text-link { font-weight: 800; text-underline-offset: 0.2em; }
.source-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.86rem; }

.home-hero {
  padding: 4.4rem 0 4.9rem;
  background:
    radial-gradient(circle at 85% 14%, rgba(229,162,63,.28), transparent 28%),
    radial-gradient(circle at 7% 90%, rgba(113,140,96,.20), transparent 28%),
    linear-gradient(180deg, #fffaf1, var(--paper));
  border-bottom: 1px solid var(--line);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 3.5rem;
  align-items: center;
}
.home-hero-copy h1 { margin-bottom: .75rem; max-width: 760px; }
.home-tagline {
  max-width: 760px;
  margin: 0 0 1.2rem;
  color: var(--moss-deep);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.25;
  font-weight: 760;
  letter-spacing: -.025em;
}
.dark-kicker { color: var(--moss-deep); border-color: rgba(41,53,31,.18); background: rgba(255,255,255,.58); }
.pill-hero {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--orange-soft);
  aspect-ratio: 1 / 1;
}
.pill-hero img { width: 100%; height: 100%; object-fit: cover; }
.home-hero + .container .stats { margin-top: -1.6rem; }

.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.impact-card {
  min-height: 180px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23,23,19,.07);
}
.impact-card:nth-child(2), .impact-card:nth-child(3) { background: var(--sage); }
.impact-card span { display: block; margin-bottom: .7rem; color: var(--moss-deep); font-size: 1.15rem; font-weight: 850; }
.impact-card p { margin: 0; color: var(--muted); }
.statement-panel {
  padding: clamp(2rem, 5vw, 4.3rem);
  border-radius: 30px;
  background: var(--moss-deep);
  color: white;
  box-shadow: var(--shadow);
}
.statement-panel > p { margin: 0 0 .75rem; color: var(--orange-pale); font-weight: 800; }
.statement-panel h2 { max-width: 970px; margin-bottom: 1.8rem; color: white; }
.feature-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1.2rem; align-items: stretch; }
.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23,23,19,.08);
}
.feature-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-card-body { padding: 1.45rem; }
.feature-card-body h3 { font-size: 1.45rem; }
.feature-card-body p:not(.eyebrow) { color: var(--muted); }
.challenge-card { background: var(--orange-soft); }

.blog-feature {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}
.blog-feature-image {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.blog-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-feature-copy { max-width: 700px; }
.blog-feature-copy .lead { font-style: italic; }

.news-list { display: grid; gap: 1.4rem; }
.news-item {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(23,23,19,.07);
}
.news-image { min-height: 300px; background: var(--sage); }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-copy { padding: 2rem 2rem 2rem 0; align-self: center; }
.news-copy h2 { font-size: clamp(1.6rem, 2.4vw, 2.35rem); }
.news-copy p:not(.eyebrow) { color: var(--muted); }

.challenge-hero {
  padding: 4.8rem 0;
  background: linear-gradient(135deg, var(--moss-deep), #1d2817);
  color: white;
}
.challenge-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.challenge-hero h1 { max-width: 800px; }
.challenge-hero h1 span { color: var(--orange-pale); }
.challenge-hero .lead { color: rgba(255,255,255,.84); }
.challenge-hero .eyebrow { color: var(--orange-pale); }
.challenge-pill { margin: 0; overflow: hidden; border-radius: 28px; box-shadow: 0 25px 55px rgba(0,0,0,.25); aspect-ratio: 1 / 1; }
.challenge-pill img { width: 100%; height: 100%; object-fit: cover; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.process-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.process-grid article p { color: var(--muted); }
.process-number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: var(--orange-pale); color: var(--ink); font-weight: 850; }
.challenge-callout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.2rem; border: 1px solid var(--line); border-radius: 26px; background: var(--orange-soft); }
.challenge-callout > div { max-width: 800px; }
.challenge-callout p:not(.eyebrow) { color: var(--muted); }
.resource-status { display: inline-block; margin-top: .9rem; padding: .35rem .6rem; border-radius: 999px; background: var(--orange-soft); color: var(--moss-deep); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 1120px) {
  .brand-text small { display: none; }
  .brand-text { font-size: .92rem; }
  .brand-logo { width: 50px; height: 52px; }
  .nav-wrap { min-height: 68px; }
  .nav-links a { padding: .52rem .52rem; font-size: .8rem; }
}

@media (max-width: 900px) {
  .home-hero-grid, .blog-feature, .news-item, .challenge-hero-grid { grid-template-columns: 1fr; }
  .home-hero { padding-top: 3rem; }
  .pill-hero, .challenge-pill { max-width: 620px; width: 100%; justify-self: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-image { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr; }
  .news-copy { padding: 0 1.5rem 1.7rem; }
  .news-image { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  h1 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
  h2 { font-size: clamp(1.7rem, 8vw, 2.35rem); }
  .page-hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .home-hero { padding: 2.4rem 0 3.6rem; }
  .home-tagline { font-size: 1.35rem; }
  .impact-grid, .feature-grid { grid-template-columns: 1fr; }
  .feature-card-image { grid-column: auto; }
  .challenge-callout { align-items: flex-start; flex-direction: column; }
  .blog-feature { gap: 1.8rem; }
  .news-item { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* Team directory, contact refinements, EPSRC lockup and event news */
.team-intro { margin-bottom: 2.2rem; }
.site-team { margin-top: 2rem; }
.site-team + .site-team { margin-top: 3.2rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.site-team-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.site-team-heading .eyebrow { margin-bottom: .35rem; }
.site-team-heading h3 { margin: 0; font-size: clamp(1.7rem, 2.7vw, 2.5rem); }
.site-team-count { flex: 0 0 auto; padding: .38rem .68rem; border-radius: 999px; background: var(--orange-soft); color: var(--moss-deep); font-size: .78rem; font-weight: 850; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.person-card { min-width: 0; display: grid; grid-template-columns: 54px minmax(0,1fr); gap: .9rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 8px 22px rgba(23,23,19,.045); }
.person-avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: var(--moss-deep); font-weight: 900; letter-spacing: -.02em; }
.person-avatar-orange { background: var(--orange-pale); color: var(--ink); }
.person-card h4 { margin: 0 0 .15rem; font-size: 1rem; line-height: 1.2; }
.person-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.contact-lead-name { font-size: clamp(1.65rem, 2.6vw, 2.35rem); }
.email-obfuscated { display: inline-block; margin-top: .12rem; color: white; font-weight: 700; overflow-wrap: anywhere; }
.epsrc-lockup { width: min(660px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 2rem; align-items: center; padding: .7rem 1rem; background: white; }
.epsrc-lockup-name { color: #292969; font-size: clamp(1.45rem, 2.4vw, 2.3rem); line-height: 1.18; font-weight: 650; letter-spacing: -.025em; }
.epsrc-lockup img { width: 255px; height: auto; object-fit: contain; }
.funder-logos .epsrc-lockup img { width: 255px; height: auto; max-height: none; }
.news-image-collage { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 330px; }
.news-image-collage img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.news-image-collage .news-main-photo { grid-row: 1 / 3; }
.event-news .news-copy p:not(.eyebrow) { max-width: 760px; }

@media (max-width: 900px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .epsrc-lockup { grid-template-columns: 1fr 190px; }
  .epsrc-lockup img, .funder-logos .epsrc-lockup img { width: 190px; }
}
@media (max-width: 620px) {
  .people-grid { grid-template-columns: 1fr; }
  .site-team-heading { align-items: flex-start; flex-direction: column; }
  .epsrc-lockup { grid-template-columns: 1fr; gap: 1rem; justify-items: start; }
  .epsrc-lockup img, .funder-logos .epsrc-lockup img { width: 190px; }
  .news-image-collage { min-height: 300px; }
}


/* MoSS v3 typography, image fitting and directory refinements */
body { font-size: 16px; }
.home-hero-copy h1 { font-size: 38px; }
.page-hero h1, .challenge-hero h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
.pill-hero { width: 70%; justify-self: end; }
.blog-feature { grid-template-columns: minmax(0, 1fr); }
.person-card { grid-template-columns: minmax(0, 1fr); }
.news-image { overflow: hidden; }
.news-image img { min-height: 300px; object-fit: cover; object-position: center; }
.news-image img[src*="presentation.jpeg"] { object-position: center 38%; }
.outreach-activity-grid { direction: ltr; }
@media (max-width: 900px) { .pill-hero { width: min(70%, 440px); justify-self: center; } }
@media (max-width: 620px) { .home-hero-copy h1 { font-size: 38px; } .page-hero h1, .challenge-hero h1 { font-size: 32px; } h2 { font-size: 26px; } h3 { font-size: 22px; } .pill-hero { width: min(70%, 360px); } }

.news-copy h2, .site-team-heading h3, .outreach-card h3, .feature-card-body h3 { font-size: 26px; }
.resource-feature, .science-visual { display: grid; grid-template-columns: minmax(190px, .45fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.resource-feature img, .science-visual img { width: 100%; max-height: 440px; border-radius: 24px; object-fit: cover; object-position: center; box-shadow: var(--shadow); }
.science-visual-section { background: var(--white); }
@media (max-width: 620px) { .resource-feature, .science-visual { grid-template-columns: 1fr; gap: 1.5rem; } .resource-feature img, .science-visual img { max-height: 360px; } }

.outreach-highlight { display: grid; grid-template-columns: minmax(200px, .5fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin: 2rem 0 3rem; padding: 1.5rem; background: var(--orange-soft); border-radius: 24px; }
.outreach-highlight img { width: 100%; max-height: 320px; object-fit: cover; object-position: center; border-radius: 16px; }
.outreach-highlight h3 { font-size: 22px; }
@media (max-width: 620px) { .outreach-highlight { grid-template-columns: 1fr; } }

/* Final type scale corrections */
.challenge-hero h1 { font-size: 38px; }
.news-copy h2 { font-size: 26px; }
.site-team-heading h3, .outreach-card h3, .feature-card-body h3 { font-size: 22px; }
.contact-lead-name { font-size: 24px; }
@media (max-width: 620px) { .challenge-hero h1 { font-size: 38px; } }

/* Navigation and team-gallery refinements */
.nav-links a { font-size: 1rem; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 280px; }
.gallery figure:first-child { grid-row: auto; grid-column: auto; }
@media (max-width: 1120px) { .nav-links a { font-size: .925rem; } }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 220px 220px; } }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 240px); } }

/* About page: show the package hexagon without a square card frame. */
.wp-figure { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.wp-figure img { width: 100%; height: auto; }
.science-visual-photo { width: 100%; height: 440px; margin: 0; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
.science-visual-photo img { width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: cover; object-position: center; transform: scale(1.25); }
@media (max-width: 620px) { .science-visual-photo { height: 420px; } }

.challenge-pill { width: 50%; justify-self: center; }

.person-linkedin { color: inherit; text-decoration: none; }
.person-linkedin:hover, .person-linkedin:focus-visible { color: var(--moss); text-decoration: underline; text-underline-offset: .16em; }
.epsrc-lockup { display: block; width: min(620px, 100%); padding: 0; background: transparent; }
.epsrc-lockup img { display: block; width: 100%; height: auto; object-fit: contain; }
.partner-logo-item figcaption { display: none; }
.funder-logos .epsrc-lockup img { width: 100%; height: auto; }
.person-linkedin::after { content: "in"; display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; margin-left: .4rem; border-radius: 3px; background: #0a66c2; color: white; font-size: .66rem; font-weight: 800; letter-spacing: -.04em; vertical-align: middle; }
