:root {
  --blue-950: #061945;
  --blue-900: #082462;
  --blue-800: #07358f;
  --blue-700: #0b4fd7;
  --blue-600: #0569ff;
  --cyan-500: #00b5ff;
  --cyan-300: #66e0ff;
  --eu-yellow: #ffcc00;
  --ink: #111827;
  --muted: #5c6a7f;
  --line: #dbe7f7;
  --surface: #f7fbff;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 25, 69, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

::selection {
  color: var(--blue-950);
  background: var(--eu-yellow);
}

.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--eu-yellow));
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 64px);
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(219, 231, 247, 0.8);
  backdrop-filter: blur(20px);
  transition: background 240ms ease, box-shadow 240ms ease, height 240ms ease;
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(6, 25, 69, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  width: 188px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: rgba(6, 25, 69, 0.82);
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-700);
  background: rgba(5, 105, 255, 0.08);
  outline: none;
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--blue-700);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--white);
  background: var(--blue-800);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(8, 36, 98, 0.18);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-950);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 84vh;
  padding: 136px clamp(22px, 6vw, 76px) 72px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 25, 69, 0.92) 0%, rgba(6, 25, 69, 0.78) 46%, rgba(6, 25, 69, 0.35) 100%),
    url("assets/hero-data-flow.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -6vw -20vh auto;
  z-index: -1;
  width: 48vw;
  min-width: 420px;
  aspect-ratio: 1;
  border: 1px solid rgba(102, 224, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 45%, rgba(0, 181, 255, 0.18), transparent 34%),
    radial-gradient(circle at 58% 30%, rgba(255, 204, 0, 0.12), transparent 22%);
}

.hero-canvas,
.hero-overlay,
.hero-shape {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-canvas {
  z-index: -1;
  opacity: 0.62;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 25, 69, 0.35), rgba(6, 25, 69, 0.12)),
    radial-gradient(circle at 76% 16%, rgba(0, 181, 255, 0.22), transparent 30%);
}

.hero-shape {
  z-index: -1;
  clip-path: polygon(80% 0, 100% 0, 100% 100%, 64% 100%);
  background:
    linear-gradient(160deg, rgba(5, 105, 255, 0.88), rgba(6, 25, 69, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(102, 224, 255, 0.18) 18px 19px);
  mix-blend-mode: screen;
  opacity: 0.48;
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-300);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 6.2rem;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-kicker {
  position: relative;
  margin: 24px 0 0;
  padding-top: 26px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 850;
}

.hero-kicker::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 280px;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600), var(--eu-yellow));
}

.hero-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-primary {
  color: var(--blue-950);
  background: var(--eu-yellow);
  box-shadow: 0 12px 34px rgba(255, 204, 0, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd83d;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.hero-badge {
  position: absolute;
  right: clamp(22px, 6vw, 76px);
  bottom: 34px;
  display: grid;
  gap: 4px;
  width: min(280px, calc(100% - 44px));
  padding: 16px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(6, 25, 69, 0.52);
  backdrop-filter: blur(18px);
}

.hero-badge span {
  color: var(--cyan-300);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-badge strong {
  font-size: 1rem;
}

.impact-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - 44px));
  margin: -30px auto 0;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 247, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 132px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--blue-800);
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 900;
}

.metric span {
  display: block;
  max-width: 190px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 108px 0;
}

.section-grid,
.consortium-layout,
.benefits-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.benefits-content h2,
.stakeholder-content h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.section-copy p,
.section-heading p,
.benefits-content p,
.stakeholder-content p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.section-heading .eyebrow,
.section-copy .eyebrow,
.benefits-content .eyebrow,
.stakeholder-content .eyebrow {
  color: var(--blue-700);
}

.problem-board {
  display: grid;
  gap: 14px;
}

.problem-board article,
.pillar,
.target-card,
.coordinator-card,
.facts-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.problem-board article {
  position: relative;
  min-height: 142px;
  padding: 22px;
  overflow: hidden;
}

.problem-board article::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 6px;
  background: linear-gradient(180deg, var(--blue-700), var(--cyan-500));
}

.problem-board span,
.coordinator-card span {
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.problem-board strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-950);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.problem-board p {
  margin: 12px 0 0;
  color: var(--muted);
}

.image-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.85fr;
  gap: 14px;
  margin-top: 58px;
}

.image-strip img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(6, 25, 69, 0.12);
}

.image-strip img:nth-child(2) {
  margin-top: 34px;
}

.image-strip img:nth-child(3) {
  margin-top: -24px;
}

.framework-section {
  width: 100%;
  max-width: none;
  padding: 112px max(22px, calc((100% - var(--max)) / 2)) 118px;
  background:
    linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

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

.pillar {
  min-height: 250px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(6, 25, 69, 0.08);
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-500), var(--eu-yellow));
}

.pillar-index {
  color: var(--cyan-500);
  font-size: 0.8rem;
  font-weight: 900;
}

.pillar h3 {
  margin: 24px 0 12px;
  color: var(--blue-950);
  font-size: 1.5rem;
  line-height: 1.08;
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

.flow-lab {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  align-items: center;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(5, 105, 255, 0.18);
  border-radius: 8px;
  background: var(--blue-950);
  box-shadow: var(--shadow);
}

.flow-node {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 90% 12%, rgba(0, 181, 255, 0.2), transparent 32%);
}

.flow-node span {
  color: var(--cyan-300);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-node strong {
  font-size: 1.1rem;
}

.flow-node.active {
  border-color: rgba(255, 204, 0, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.3);
}

.flow-line {
  height: 2px;
  background:
    linear-gradient(90deg, rgba(102, 224, 255, 0.2), var(--cyan-500), rgba(255, 204, 0, 0.8));
  position: relative;
}

.flow-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--eu-yellow);
  border-right: 2px solid var(--eu-yellow);
  transform: translateY(-50%) rotate(45deg);
}

.benefits-section {
  align-items: stretch;
}

.visual-panel {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-950);
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.scan-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(255, 204, 0, 0.18) 42% 43%, transparent 43%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px);
  animation: scan 4.4s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% {
    transform: translateY(-24%);
    opacity: 0.44;
  }
  50% {
    transform: translateY(24%);
    opacity: 0.82;
  }
}

.benefits-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tabs {
  margin-top: 28px;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tab-list button {
  min-height: 44px;
  padding: 0 10px;
  color: var(--blue-950);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.tab-list button[aria-selected="true"] {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(5, 105, 255, 0.22);
}

.tab-list button:focus-visible {
  outline: 2px solid var(--eu-yellow);
  outline-offset: 2px;
}

.tab-panel {
  min-height: 190px;
  margin-top: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tab-panel h3 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-size: 1.4rem;
}

.tab-panel p {
  margin: 0;
}

.pilots-section {
  width: 100%;
  max-width: none;
  padding: 112px max(22px, calc((100% - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 25, 69, 0.96), rgba(8, 36, 98, 0.9)),
    url("assets/automated-device.jpg") center / cover no-repeat;
}

.pilots-section .section-heading h2,
.pilots-section .section-heading p {
  color: var(--white);
}

.pilots-section .eyebrow {
  color: var(--eu-yellow);
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.target-card {
  min-height: 190px;
  padding: 24px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.target-card strong {
  display: block;
  color: var(--eu-yellow);
  font-size: 2.65rem;
  line-height: 1;
}

.target-card span {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.consortium-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.coordinator-card {
  min-height: 220px;
  padding: 28px;
  background:
    linear-gradient(160deg, var(--blue-950), var(--blue-800));
  color: var(--white);
  box-shadow: var(--shadow);
}

.coordinator-card span {
  color: var(--cyan-300);
}

.coordinator-card strong {
  display: block;
  margin-top: 22px;
  font-size: 2.2rem;
  line-height: 1;
}

.coordinator-card p {
  color: rgba(255, 255, 255, 0.8);
}

.partner-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-tile:hover {
  transform: translateY(-2px);
  border-color: var(--blue-600);
  box-shadow: 0 6px 18px rgba(11, 31, 64, 0.10);
}

/* Partner tiles and the coordinator card are anchors: keep them looking
   exactly like the original blocks, but keyboard-focusable. */
a.partner-tile {
  color: inherit;
  text-decoration: none;
}

/* The coordinator card is a dark navy panel: keep its text white even as an
   anchor (a bare `color: inherit` would pick up the page's dark body color). */
a.coordinator-card {
  color: var(--white);
  text-decoration: none;
}

.coordinator-card strong {
  transition: color 0.2s ease;
}

a.coordinator-card:hover strong,
a.coordinator-card:focus-visible strong {
  color: var(--cyan-300);
}

a.partner-tile:focus-visible,
a.coordinator-card:focus-visible {
  outline: 3px solid var(--eu-yellow);
  outline-offset: 3px;
}

a.coordinator-card {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.coordinator-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 74px rgba(6, 25, 69, 0.24);
}

.partner-tile img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.4) contrast(0.96);
  opacity: 0.92;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.partner-tile:hover img {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}

/* Coordinator card uses a dark navy background, so the TEAM-NB logo
   has to render white. Invert filter handles the multicolour PNG. */
.coordinator-logo {
  display: block;
  max-width: 200px;
  max-height: 52px;
  width: auto;
  height: auto;
  margin: 18px 0 4px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

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

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

.facts-grid > div {
  min-height: 160px;
  padding: 22px;
}

.facts-grid dt {
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.facts-grid dd {
  margin: 14px 0 0;
  color: var(--blue-950);
  font-size: 1.08rem;
  font-weight: 780;
}

.objectives-block {
  margin-top: 56px;
}

.objectives-title {
  margin: 0 0 22px;
  color: var(--blue-950);
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 900;
}

.objectives-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.objective-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.objective-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-500), var(--eu-yellow));
}

.objective-index {
  display: block;
  color: var(--cyan-500);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.objective-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.stakeholder-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: center;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto 88px;
  padding: 52px;
  overflow: hidden;
  color: var(--white);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 204, 0, 0.22), transparent 26%),
    linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.stakeholder-content h2,
.stakeholder-content p {
  color: var(--white);
}

.stakeholder-content .eyebrow {
  color: var(--eu-yellow);
}

.stakeholder-subtitle {
  margin: 28px 0 10px;
  color: var(--white);
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 900;
}

.stakeholder-content p + .stakeholder-subtitle::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--eu-yellow);
}

.stakeholder-content .button {
  margin-top: 26px;
}

.stakeholder-visual {
  position: relative;
  min-height: 260px;
}

.stakeholder-visual span {
  position: absolute;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(102, 224, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(102, 224, 255, 0.32), rgba(255, 255, 255, 0.04) 58%, transparent 59%);
}

.stakeholder-visual span:nth-child(1) {
  inset: 14px auto auto 42%;
}

.stakeholder-visual span:nth-child(2) {
  inset: 96px auto auto 18%;
  width: 74px;
  height: 74px;
}

.stakeholder-visual span:nth-child(3) {
  inset: 118px 20% auto auto;
  width: 122px;
  height: 122px;
}

.stakeholder-visual span:nth-child(4) {
  inset: auto auto 0 36%;
  width: 64px;
  height: 64px;
}

.stakeholder-visual span:nth-child(5) {
  inset: 58px 6% auto auto;
  width: 46px;
  height: 46px;
  background: var(--eu-yellow);
}

.site-footer {
  padding: 26px clamp(22px, 6vw, 76px) 16px;
  color: var(--blue-950);
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* Row 1: EU emblem + the two funding paragraphs side by side, so the
   mandatory text spreads horizontally instead of stacking. */
.footer-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px clamp(24px, 4vw, 56px);
  align-items: center;
}

/* Row 2: slim baseline strip for small print. */
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--blue-700);
  text-decoration: underline;
}

.eu-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 850;
}

/* Official EU emblem: real flag SVG + bold text per EU style guide */
.eu-flag {
  flex: 0 0 auto;
  width: 80px;
  height: auto;
  display: block;
}
.eu-mark p {
  margin: 0;
  line-height: 1.18;
  font-size: 1.02rem;
  font-weight: 850;
  color: var(--blue-950);
}

.funding-copy,
.credits {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.credits {
  font-size: 0.8rem;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding: 0 9px;
    font-size: 0.86rem;
  }

  .impact-ribbon,
  .target-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-grid,
  .benefits-section,
  .consortium-layout,
  .stakeholder-section {
    grid-template-columns: 1fr;
  }

  .flow-lab {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-line {
    width: 2px;
    height: 42px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(102, 224, 255, 0.2), var(--cyan-500), rgba(255, 204, 0, 0.8));
  }

  .flow-line::after {
    top: auto;
    right: 50%;
    bottom: -2px;
    transform: translateX(50%) rotate(135deg);
  }

  .facts-grid,
  .objectives-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 68px;
  }

  .brand img {
    width: 156px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 46px;
    justify-content: center;
  }

  .hero {
    min-height: 86vh;
    padding-top: 116px;
    padding-bottom: 140px;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero-kicker {
    font-size: 1.6rem;
  }

  .hero-copy {
    font-size: 1.06rem;
  }

  .hero-badge {
    left: 22px;
    right: auto;
    bottom: 24px;
  }

  .section {
    padding: 82px 0;
  }

  .section-copy h2,
  .section-heading h2,
  .benefits-content h2,
  .stakeholder-content h2 {
    font-size: 2.24rem;
    line-height: 1.06;
  }

  .image-strip {
    grid-template-columns: 1fr;
  }

  .image-strip img,
  .image-strip img:nth-child(2),
  .image-strip img:nth-child(3) {
    height: 260px;
    margin-top: 0;
  }

  .pillars,
  .facts-grid,
  .objectives-list {
    grid-template-columns: 1fr;
  }

  .stakeholder-subtitle {
    font-size: 1.14rem;
  }

  .visual-panel {
    min-height: 420px;
  }

  .stakeholder-section {
    padding: 34px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-kicker::before {
    width: 190px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .impact-ribbon,
  .target-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 116px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .section-copy h2,
  .section-heading h2,
  .benefits-content h2,
  .stakeholder-content h2 {
    font-size: 1.9rem;
  }

  .stakeholder-visual {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === CONSORTIUM MAP ========================================== */
.consortium-map {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 3.5vw, 44px);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--blue-950), var(--blue-800));
  box-shadow: var(--shadow);
  color: var(--white);
}

.consortium-map .map-wrap { position: relative; }
.consortium-map .map-wrap svg { width: 100%; height: auto; display: block; }
.consortium-map .country {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(102, 224, 255, 0.25);
  stroke-width: 0.4;
}
.consortium-map .country.off { opacity: 0.3; }
.consortium-map .country.member {
  fill: var(--eu-yellow);
  stroke: #ffe066;
  stroke-width: 0.5;
  transition: fill 0.6s ease;
  transition-delay: var(--d, 0ms);
}
.js .consortium-map .map-wrap.pending .country.member {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(102, 224, 255, 0.25);
}
.consortium-map .map-wrap.settled .country.member { transition: none; }
.consortium-map .country.member.hot { fill: var(--white); stroke: var(--white); transition-delay: 0ms; }

.map-side span {
  color: var(--cyan-300);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.map-side h3 {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--white);
}
.country-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
}
.country-chips li {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: default;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.country-chips li:hover {
  border-color: var(--eu-yellow);
  color: var(--white);
  background: rgba(255, 204, 0, 0.08);
}

@media (max-width: 1024px) {
  .consortium-map { grid-template-columns: 1fr; }
}

/* map tooltip: partners per country */
.consortium-map .country.member { cursor: pointer; }
.map-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 150px;
  max-width: 240px;
  padding: 12px 16px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-950);
  box-shadow: 0 14px 38px rgba(6, 25, 69, 0.38);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.map-tooltip.show { opacity: 1; transform: none; }
.map-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.map-tooltip ul { list-style: none; margin: 0; padding: 0; }
.map-tooltip li { font-size: 0.95rem; font-weight: 700; line-height: 1.55; }

/* Objective bridge — single-statement block between #challenge and #framework */
.objective-bridge {
  padding: 64px 0 56px;
}

.objective-bridge .eyebrow {
  color: var(--blue-700);
}

.objective-bridge h2 {
  margin: 0;
  max-width: 900px;
  color: var(--blue-950);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  line-height: 1.18;
}
