:root {
  --paper: #f7faf5;
  --surface: #ffffff;
  --surface-strong: #eef5f1;
  --ink: #13211f;
  --muted: #5b6965;
  --line: #d7e1dc;
  --teal: #0b6974;
  --teal-dark: #094d57;
  --blue: #1f5b9d;
  --green: #4e875f;
  --gold: #c98c2c;
  --shadow: 0 18px 50px rgba(18, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  background: rgba(247, 250, 245, 0.92);
  border-bottom: 1px solid rgba(215, 225, 220, 0.9);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: max-content;
}

.brand-logo {
  height: auto;
  width: clamp(158px, 17vw, 232px);
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 26px);
  justify-content: flex-end;
}

.nav-links a {
  color: #263d39;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--teal);
}

.hero {
  align-items: end;
  display: grid;
  min-height: min(78svh, 760px);
  overflow: hidden;
  padding: clamp(90px, 12vw, 128px) clamp(20px, 6vw, 72px)
    clamp(44px, 8vw, 72px);
  position: relative;
}

.hero-image,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
  z-index: 0;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(9, 38, 39, 0.86) 0%,
      rgba(9, 38, 39, 0.58) 34%,
      rgba(9, 38, 39, 0.14) 72%
    ),
    linear-gradient(180deg, rgba(9, 38, 39, 0.12), rgba(9, 38, 39, 0.44));
  z-index: 1;
}

.hero-content {
  color: #ffffff;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 800;
  line-height: 0.88;
  margin: 10px 0 22px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  margin: 0;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.1;
  min-height: 48px;
  padding: 14px 18px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: #17201d;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.54);
  color: #ffffff;
}

.signal-strip {
  background: #103f45;
  color: #ffffff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-strip div {
  background: rgba(255, 255, 255, 0.06);
  min-height: 116px;
  padding: 28px clamp(20px, 5vw, 64px);
}

.signal-strip strong {
  color: #f0c776;
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.signal-strip span {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-weight: 700;
  margin-top: 8px;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 72px);
}

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

.section-grid {
  display: grid;
  gap: clamp(28px, 6vw, 96px);
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1fr);
  margin-top: 18px;
}

.section h2 {
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  font-weight: 800;
  line-height: 0.98;
  margin: 0;
  max-width: 850px;
}

.rich-copy {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.rich-copy p {
  margin: 0 0 20px;
}

.section-heading-row {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 480px);
  margin: 18px 0 34px;
}

.section-heading-row p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
  margin: 0;
}

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

.pillar-card,
.output-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 230px;
  padding: 24px;
}

.pillar-card h3,
.output-card h3 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.pillar-card p,
.output-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

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

.work-list li {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 78px;
  padding: 14px 18px;
}

.work-list span {
  color: var(--blue);
  font-weight: 800;
}

.work-list p {
  color: #273d39;
  font-size: 1.03rem;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.impact-section {
  background: #eaf3ef;
}

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

.output-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.output-card span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.output-card a {
  color: var(--teal);
  font-weight: 800;
  margin-top: auto;
  padding-top: 22px;
}

.contact-band {
  background: #0e4248;
  color: #ffffff;
}

.contact-layout {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
}

.contact-layout p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 22px 0 0;
  max-width: 680px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-actions .button {
  width: min(100%, 360px);
}

.consortium-hero {
  align-items: center;
  background: #0e4248;
  color: #ffffff;
  display: grid;
  gap: clamp(26px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  min-height: 320px;
  padding: clamp(54px, 7vw, 78px) clamp(20px, 6vw, 72px)
    clamp(42px, 6vw, 64px);
}

.consortium-hero h1 {
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  font-weight: 800;
  line-height: 0.98;
  margin: 12px 0 0;
  max-width: 960px;
}

.consortium-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.consortium-section {
  background: var(--paper);
  padding-top: clamp(44px, 6vw, 76px);
}

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

.member-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: 108px minmax(0, 1fr);
  min-height: 390px;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.member-card:hover,
.member-card:focus-visible {
  border-color: rgba(11, 105, 116, 0.48);
  box-shadow: 0 18px 44px rgba(18, 33, 31, 0.12);
  transform: translateY(-2px);
}

.member-logo {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #ffffff;
  display: flex;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 800;
  justify-content: center;
  line-height: 1.1;
  padding: 22px;
  text-align: center;
}

.logo-ous {
  background: #005b97;
}

.logo-ukfr {
  background: #24368b;
  color: #ffffff;
}

.logo-igr {
  background: #3a3535;
}

.logo-umcu {
  background: #0050a4;
}

.logo-nki {
  background: #0072b1;
}

.logo-biog {
  background: #23417e;
}

.logo-osa {
  background: #2c187d;
}

.logo-dnv {
  background: #10285c;
}

.logo-siog {
  background: var(--teal);
}

.member-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.member-meta {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.member-body strong {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.25;
}

.member-body span:not(.member-meta):not(.member-link) {
  color: var(--muted);
  line-height: 1.62;
}

.member-link {
  color: var(--teal);
  font-weight: 800;
  margin-top: auto;
}

.consortium-contact {
  background: #0e4248;
  color: #ffffff;
}

.consortium-contact p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 22px 0 0;
  max-width: 680px;
}

.eu-funding {
  align-items: center;
  background: #2c9b9f;
  color: #ffffff;
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  grid-template-columns: minmax(126px, 168px) minmax(0, 1fr);
  padding: clamp(18px, 3vw, 28px) clamp(22px, 6vw, 72px);
}

.eu-funding-mark {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.eu-funding-mark strong {
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  font-weight: 800;
  line-height: 1.18;
}

.eu-flag {
  aspect-ratio: 3 / 2;
  background: #24459a;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(11, 77, 87, 0.2);
  position: relative;
  width: min(100%, 132px);
}

.eu-flag span {
  color: #ffdf00;
  font-size: 0.5rem;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.eu-flag span:nth-child(1) {
  left: 50%;
  top: 18%;
}

.eu-flag span:nth-child(2) {
  left: 65%;
  top: 22%;
}

.eu-flag span:nth-child(3) {
  left: 78%;
  top: 35%;
}

.eu-flag span:nth-child(4) {
  left: 82%;
  top: 50%;
}

.eu-flag span:nth-child(5) {
  left: 78%;
  top: 65%;
}

.eu-flag span:nth-child(6) {
  left: 65%;
  top: 78%;
}

.eu-flag span:nth-child(7) {
  left: 50%;
  top: 82%;
}

.eu-flag span:nth-child(8) {
  left: 35%;
  top: 78%;
}

.eu-flag span:nth-child(9) {
  left: 22%;
  top: 65%;
}

.eu-flag span:nth-child(10) {
  left: 18%;
  top: 50%;
}

.eu-flag span:nth-child(11) {
  left: 22%;
  top: 35%;
}

.eu-flag span:nth-child(12) {
  left: 35%;
  top: 22%;
}

.eu-funding p {
  font-size: clamp(0.78rem, 1.05vw, 0.96rem);
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  max-width: 980px;
}

.analytics-consent {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  gap: 18px;
  left: 50%;
  max-width: min(760px, calc(100vw - 28px));
  padding: 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 50;
}

.analytics-consent p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.analytics-consent div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: max-content;
}

.analytics-consent button {
  border: 1px solid var(--teal);
  border-radius: 6px;
  font-weight: 800;
  padding: 10px 12px;
}

.analytics-consent button:first-child {
  background: var(--teal);
  color: #ffffff;
}

.analytics-consent button:last-child {
  background: transparent;
  color: var(--teal);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .section-grid,
  .section-heading-row,
  .contact-layout,
  .consortium-hero,
  .eu-funding {
    grid-template-columns: 1fr;
  }

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

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

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    min-height: auto;
  }

  .nav-links {
    gap: 10px 16px;
  }

  .nav-links a {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 74svh;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
  }

  .button,
  .contact-actions .button {
    width: 100%;
  }

  .signal-strip,
  .pillar-grid,
  .output-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    min-height: 0;
  }

  .signal-strip div {
    min-height: 92px;
  }

  .work-list li {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .analytics-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-consent div {
    min-width: 0;
  }

  .analytics-consent button {
    flex: 1 1 140px;
  }

  .eu-funding {
    justify-items: start;
  }

  .eu-funding-mark {
    justify-items: start;
    text-align: left;
  }
}
