:root {
  --navy: #071f45;
  --deep: #081932;
  --blue: #1769ff;
  --accent: #0755cf;
  --ink: #405472;
  --rule: #d7e2ee;
  --wash: #eef4fc;
  --white: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.15rem; letter-spacing: -.015em; }
a { color: var(--accent); text-underline-offset: .19em; }
a:focus-visible { outline: 3px solid #edaa16; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 2.5rem, 1170px); margin-inline: auto; }
.skip { position: absolute; inset: 0 auto auto .8rem; z-index: 11; transform: translateY(-140%); background: white; padding: .6rem; }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: .65rem; gap: .55rem 1.35rem; }
.brand { display: inline-block; }
.brand img { width: 158px; height: auto; }
.main-nav, .language, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .95rem; }
.main-nav { margin-inline-start: auto; }
.main-nav[hidden] { display: none; }
.header-tools { order: 2; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--wash);
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { background: var(--navy); color: white; }
.menu-toggle .menu-close, .menu-toggle[aria-expanded="true"] .menu-bars { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: block; }
.menu-toggle:focus-visible { outline: 3px solid #edaa16; outline-offset: 3px; }
.main-nav a, .language a, .language span { font-size: .88rem; font-weight: 650; }
.main-nav a { padding: .45rem .15rem; color: var(--navy); text-decoration: none; }
.main-nav a:hover, .main-nav [aria-current], .main-nav .nav-section { text-decoration: underline; color: var(--accent); }
.main-nav .contact-link { padding: .55rem .75rem; background: var(--navy); color: white; }
.main-nav .contact-link:hover, .main-nav .contact-link[aria-current] { color: white; }
.language { gap: .3rem; }
.language a, .language span { display: inline-grid; min-width: 34px; min-height: 40px; place-items: center; }
.language span { background: var(--wash); }
.hero, .banner { background: var(--navy); color: white; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.2rem, 5vw, 4.7rem); }
.hero h1 { max-width: 18ch; font-size: clamp(2.1rem, 4.5vw, 4.1rem); margin-block: .65rem 1rem; }
.hero-location { margin-top: 1.15rem; color: #a9c9ff; font-weight: 700; }
.hero-photo { margin: 0; min-width: 0; }
.hero-photo img { width: 100%; height: auto; border-radius: .4rem; }
.hero-photo figcaption { margin-top: .5rem; font-size: .83rem; }
.hero-facts { background: var(--deep); border-top: 1px solid #d8e8ff28; }
.hero-facts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin-block: 0; list-style: none; }
.hero-facts li + li { border-inline-start: 1px solid #d8e8ff28; }
.hero-facts a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .8rem .35rem; color: #dbe8fb; text-align: center; text-decoration: none; }
.hero-facts a:hover span { text-decoration: underline; }
.hero-facts strong { color: #a9c9ff; font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.1; }
.hero-facts span { font-size: clamp(.76rem, 1.5vw, .95rem); overflow-wrap: anywhere; }
.kicker { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; color: var(--accent); }
.hero .kicker { color: #a9c9ff; }
.lede { font-size: clamp(1.05rem, 1.65vw, 1.24rem); max-width: 66ch; }
.hero .lede, .banner .lede { color: #dbe8fb; }
.actions { margin-top: 1.55rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; padding: .55rem .95rem; text-decoration: none; background: var(--navy); color: white; font-weight: 650; }
.button:hover { background: var(--accent); color: white; }
.hero .button { background: white; color: var(--navy); }
.hero .button:hover { background: #dbe8fb; }
.light-link, .crumb { color: #e2edff; }
.section { padding-block: clamp(2.25rem, 5vw, 4.5rem); }
.section h2, .band-inner h2 { margin-block: .35rem 1rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.1rem; gap: .7rem; border: 1px solid var(--rule); border-top: 3px solid var(--blue); }
.card p { color: var(--ink); }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .text-link { margin-top: auto; }
.text-link { font-weight: 650; }
.funding-band, .about-band { background: var(--wash); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 2.6rem; }
.banner { padding-block: clamp(2.8rem, 6vw, 5rem); }
.banner h1 { margin-block: .65rem .85rem; max-width: 25ch; }
.meta { color: #c1d7f6; margin-top: 1.15rem; font-weight: 650; }
.detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr); align-items: start; gap: clamp(1.5rem, 5vw, 4rem); padding-block: 3rem 4rem; }
.article { max-width: 72ch; }
.service-workflow { margin-block: 1.65rem 2rem; }
.service-workflow h2, .service-outputs h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .7rem; }
.service-workflow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: .55rem;
  list-style: none;
  counter-reset: service-step;
}
.service-workflow li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .75rem .65rem;
  border-top: 3px solid var(--blue);
  background: var(--wash);
  font-size: .9rem;
  font-weight: 650;
  counter-increment: service-step;
}
.service-workflow li::before { content: counter(service-step) "."; color: var(--accent); }
.service-outputs { margin-top: 2rem; padding-block: 1.1rem .1rem; border-top: 1px solid var(--rule); }
.service-outputs dl { margin-block: 0; }
.service-outputs dt { font-weight: 750; }
.service-outputs dd { margin: .2rem 0 .75rem; color: var(--ink); }
@media (max-width: 540px) {
  .service-workflow ol { grid-template-columns: 1fr; }
  .service-workflow li { border-top: 0; border-inline-start: 3px solid var(--blue); }
}
.text-section + .text-section { margin-top: 2rem; }
.text-section h2, .related h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .45rem; }
.text-section p, .contact-panel p { color: var(--ink); }
.related { background: var(--wash); padding: 1.15rem; }
.related ul { margin: 0; padding: 0 0 0 1.1rem; }
.related li + li { margin-top: .6rem; }
.contact-panel { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.contact-panel address { padding: 1.15rem; font-style: normal; background: var(--wash); }
.contact-panel address p { margin-top: .5rem; overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding-block: 1.3rem; }
.footer .brand img { width: 110px; height: auto; }
.footer p { font-size: .9rem; color: var(--ink); }
@media (width > 1100px) {
  html { scroll-padding-top: 5.5rem; }
  .header { position: sticky; top: 0; z-index: 10; background: var(--white); }
}
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .header-tools:has(.menu-toggle[aria-expanded="false"]) + .main-nav { display: none; }
  .main-nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    display: grid;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule);
  }
  .main-nav > a, .main-nav .nav-dropdown summary, .main-nav .nav-submenu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .55rem .75rem;
  }
  .main-nav > :not(.contact-link) { border-bottom: 1px solid var(--rule); }
  .main-nav > .contact-link { margin-block: .5rem .25rem; }
  .main-nav .nav-dropdown .nav-submenu {
    position: static;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 .5rem .5rem;
    background: var(--wash);
    box-shadow: none;
  }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .detail { gap: 1.5rem; }
}
@media (max-width: 720px) {
  .hero-inner, .detail, .contact-panel { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .contact-form { max-width: none; }
  .footer-legal a { display: inline-flex; min-height: 44px; align-items: center; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 1.75rem); }
  .grid { grid-template-columns: 1fr; }
  .header-inner { gap: .55rem; }
  .header .brand img { width: clamp(96px, 31vw, 140px); }
  .header .header-tools { gap: .3rem; }
  .header .language { gap: .15rem; }
  .header .language a, .header .language span { min-width: 28px; min-height: 44px; }
  .header .social { width: 36px; height: 44px; }
  .contact-form .button { justify-self: stretch; justify-content: center; }
}

.header-tools, .footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .8rem;
}
.social {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy);
  background: var(--wash);
  text-decoration: none;
}
.social:hover { background: var(--navy); color: white; }
.footer-legal { margin-inline-start: auto; }
.footer .copyright { width: 100%; border-top: 1px solid var(--rule); padding-top: .8rem; }

.nav-dropdown { position: relative; font-size: .88rem; font-weight: 650; }
.nav-dropdown summary { display: block; list-style: none; padding: .45rem .15rem; cursor: pointer; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown.nav-section > summary { text-decoration: underline; color: var(--accent); }
.nav-services .nav-submenu { width: max-content; max-width: min(22rem, 90vw); }
.nav-submenu a { white-space: normal; }
.nav-dropdown summary:hover { color: var(--accent); text-decoration: underline; }
.nav-submenu {
  position: absolute;
  z-index: 3;
  inset: 100% auto auto 0;
  min-width: 156px;
  display: grid;
  background: white;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 20px #071f451a;
}
.nav-submenu a { padding: .65rem .85rem; }
.nav-submenu a:hover { background: var(--wash); }

.card, .programme-diagram li, .service-workflow li, .news-photos a {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.card:focus-within, .programme-diagram li:focus-within { box-shadow: 0 12px 28px #071f451a; }
.service-grid .card:focus-within { background: var(--wash); box-shadow: 0 12px 28px #071f451a; }
.service-grid .card .text-link { display: inline-flex; align-items: center; min-height: 36px; }
.service-grid .card .text-link::after { content: "↗"; margin-left: .4rem; transition: transform .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .programme-diagram li:hover, .service-workflow li:hover, .news-photos a:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #071f4524;
  }
  .service-grid .card:hover { background: var(--wash); }
  .service-grid .card:hover .text-link::after { transform: translate(3px, -3px); }
}
@media (prefers-reduced-motion: reduce) {
  .card, .programme-diagram li, .service-workflow li, .news-photos a, .service-grid .card .text-link::after { transition: none; }
  .card:hover, .programme-diagram li:hover, .service-workflow li:hover, .news-photos a:hover,
  .service-grid .card:hover .text-link::after { transform: none; }
}

.company-image { margin-block: 2.2rem 0; }
.company-image img { width: 100%; height: clamp(210px, 36vw, 390px); object-fit: cover; }
.company-image figcaption { margin-top: .45rem; font-size: .85rem; color: var(--ink); }

.project-card { padding: 0; border-top: 1px solid var(--rule); gap: 0; overflow: clip; }
.project-visual :is(img, .project-wordmark) { transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-visual :is(img, .project-wordmark) { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .project-visual :is(img, .project-wordmark) { transition: none; }
  .project-card:hover .project-visual :is(img, .project-wordmark) { transform: none; }
}
.service-icon { display: grid; width: 46px; height: 46px; place-items: center; color: var(--accent); background: var(--wash); }
.service-icon svg { width: 27px; height: 27px; }
.project-visual {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 125px;
  padding: .9rem;
  background: linear-gradient(135deg, var(--navy), #173e71);
  text-decoration: none;
}
.project-visual:focus-visible { outline-offset: -4px; }
.project-visual img { width: 100%; height: 94px; object-fit: contain; }
.project-shield4crowd, .project-intercept, .project-detector { background: var(--wash); }
.project-netzero-move { background: linear-gradient(135deg, #123c49, #255d59); }
.project-fintercept { background: linear-gradient(135deg, #202652, #3b4380); }
.project-proc-ees { background: linear-gradient(135deg, #102b55, #245488); }
.project-radar-pcp { background: linear-gradient(135deg, #15313e, #27545e); }
.project-wordmark { color: white; font-size: clamp(1.15rem, 1.9vw, 1.65rem); font-weight: 800; letter-spacing: -.03em; }
.project-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1rem; flex: 1; width: 100%; }
.status { display: inline-flex; align-items: center; gap: .36rem; border-radius: 2rem; padding: .16rem .58rem; font-size: .77rem; font-weight: 700; }
.status::before { content: ""; width: .46em; height: .46em; border-radius: 100%; background: currentColor; }
.status-ongoing { color: #205638; background: #e5f3ea; }
.status-ended { color: #374664; background: #e9edf5; }
.status-upcoming { color: #164a97; background: #e3edff; }
.status-pending { color: #5e471c; background: #fff3d8; }
.funding-mark { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding-top: .6rem; font-size: .79rem; color: var(--navy); font-weight: 650; }
.funding-mark img { width: 132px; height: auto; }
.project-card .funding-mark { border-top: 1px solid var(--rule); width: 100%; }

.team-card .portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--wash);
}
.team-card .portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-form { display: grid; gap: .5rem; max-width: 38rem; }
.contact-form label { margin-top: .45rem; font-weight: 650; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .62rem .7rem;
  border: 1px solid #9aadca;
  border-radius: .2rem;
  color: var(--navy);
  background: white;
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form button:focus-visible, .nav-dropdown summary:focus-visible {
  outline: 3px solid #edaa16;
  outline-offset: 3px;
}
.contact-form .form-note { padding: .65rem .85rem; background: var(--wash); }
.privacy-acknowledgement { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; margin-top: .6rem; }
.contact-form .privacy-acknowledgement input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--accent); }
.privacy-acknowledgement label { cursor: pointer; }
.privacy-acknowledgement p { margin-top: .2rem; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 650; margin-top: .55rem; }

@media (max-width: 720px) {
  .footer-legal { margin-inline-start: 0; }
}

.funding-jump { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; font-weight: 700; }
.funding-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .85rem; }
.funding-jump a[aria-current="page"] { color: var(--white); background: var(--navy); text-decoration: none; }
.programme-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
}
.programme-budget {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.65rem);
  background: var(--white);
  color: var(--navy);
  border-top: 4px solid var(--blue);
}
.programme-budget figcaption { font-weight: 750; line-height: 1.35; }
.programme-budget dl { margin: .85rem 0 0; }
.programme-budget dl > div { display: flex; flex-direction: column; gap: .25rem; }
.programme-budget dl > div + div { border-top: 1px solid var(--rule); margin-top: .85rem; padding-top: .85rem; }
.programme-budget dt { color: var(--ink); font-size: .9rem; }
.programme-budget dd { order: -1; margin: 0; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.15; font-weight: 800; }
.programme-budget dd a { text-decoration-thickness: 1px; }
.programme-opportunities h3 { margin-block: .95rem .35rem; }
.funding-comparison { padding-bottom: 0; }
.funding-comparison li { background: var(--wash); }
.news-article > p + p { margin-top: 1rem; }
.news-card { padding: 0; gap: 0; overflow: clip; }
.news-cover { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--wash); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover:focus-visible { outline-offset: -4px; }
.news-card-body { display: flex; flex-direction: column; gap: .7rem; flex: 1; padding: 1.05rem; width: 100%; }
.news-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .7rem; }
.news-card time, .news-date { color: var(--ink); font-size: .88rem; font-weight: 650; }
.news-project-marks { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.news-project-marks img {
  width: 54px;
  height: 30px;
  padding: .15rem;
  object-fit: contain;
  border: 1px solid var(--rule);
}
.news-project-marks img[src$="shield-pcp.png"] { background: var(--navy); }
.news-project-marks span { background: var(--wash); font-size: .74rem; font-weight: 750; padding: .2rem .4rem; }
.news-role, .news-gallery, .news-read-more { margin-top: 1.65rem; }
.news-role h2, .news-gallery h2, .news-read-more h2 { font-size: 1.25rem; margin-bottom: .65rem; }
.news-read-more ul { margin-block: 0; padding-inline-start: 1.2rem; }
.news-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.news-photos a { display: grid; place-items: center; min-width: 0; background: var(--wash); }
.news-photos img { width: 100%; height: auto; }
.programme-overview { background: var(--wash); padding-block: clamp(1.6rem, 4vw, 3rem); }
.programme-overview h2 { margin-bottom: 1rem; }
.programme-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.programme-diagram li { background: var(--white); border-top: 3px solid var(--blue); padding: 1rem; }
.programme-diagram p { margin-top: .4rem; color: var(--ink); }
@media (max-width: 650px) {
  .programme-hero { grid-template-columns: 1fr; }
}
