/* ==========================================================================
   RESPIRA — respira.gig.eu
   Main stylesheet. Mobile-first. No build step.

   Colour tokens are taken from the RESPIRA PowerPoint template colour scheme
   ("RESPIRA" theme) and the logo. Edit them here and the whole site follows.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL licence, see assets/fonts/README.md) ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours (PPTX theme "RESPIRA" + logo) */
  --c-navy-950: #081C35;   /* PPTX dk2 — footer background */
  --c-navy: #0B2D5B;       /* PPTX dk1 — main text, headings */
  --c-ink: #1D3066;        /* logo wordmark & dust particles */
  --c-blue: #1E6FD6;       /* PPTX accent1 — links, focus */
  --c-sky: #6DB7F3;        /* PPTX accent4 */
  --c-teal: #00A8A8;       /* PPTX accent2 — decorative only (contrast < 4.5:1 on white) */
  --c-green: #6CC07A;      /* PPTX accent3 — decorative only */
  --c-mint: #D9F0E6;       /* PPTX accent5 */
  --c-line: #E2E6EB;       /* PPTX accent6 — hairlines */
  --c-mist: #F8FAFC;       /* PPTX lt2 — alternate section background */
  --c-white: #FFFFFF;

  /* Derived */
  --c-text: var(--c-navy);
  --c-text-muted: #486184;            /* navy at 75 % on white, contrast 6.3:1 */
  --c-on-dark-muted: #B9C6D8;         /* muted text on --c-navy-950, contrast 10:1 */
  --grad-air: linear-gradient(90deg, var(--c-blue) 0%, var(--c-sky) 38%, var(--c-teal) 68%, var(--c-green) 100%);

  /* Typography */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-300: 0.875rem;
  --fs-400: 1.0625rem;
  --fs-500: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  --fs-600: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --fs-700: clamp(2rem, 1.4rem + 2.8vw, 3.5rem);
  --fs-800: clamp(2.5rem, 1.6rem + 4.5vw, 5.25rem);
  --fs-hero: clamp(3.25rem, 0.8rem + 11.5vw, 11rem);

  /* Layout */
  --container: 1320px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-navy);
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--c-blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
/* Frosted background on a pseudo-element: backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
body.nav-open .site-header::before { background: var(--c-white); }
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}
.brand { display: inline-flex; flex-shrink: 0; border-radius: 4px; }
.brand img { height: 46px; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-navy);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile navigation panel */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  background: var(--c-white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s;
}
/* Without JS the panel is always reachable (the toggle is hidden then) */
.no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0 var(--gutter) 1rem; }
.no-js .nav-toggle { display: none; }
.no-js .site-header { height: auto; position: relative; }
.no-js .site-header__inner { flex-wrap: wrap; padding-block: 1rem; }

.nav-list { list-style: none; display: grid; gap: 0.25rem; }
.nav-list a {
  display: block;
  padding: 0.55rem 0;
  font: 600 clamp(1.5rem, 1.2rem + 1.6vw, 2rem)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--c-navy);
  text-decoration: none;
}
.nav-list a[aria-current="page"] {
  background: var(--grad-air) left bottom / 2.5rem 3px no-repeat;
}
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}

.social { display: flex; gap: 0.25rem; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--c-navy);
  transition: background-color 0.2s;
}
.social a:hover { background: var(--c-mist); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font: 600 0.9375rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn--partners { background: var(--c-navy); color: var(--c-white); border: 1px solid var(--c-navy); }
.btn--partners:hover { background: var(--c-blue); border-color: var(--c-blue); }
.btn--ghost { border: 1px solid var(--c-navy); color: var(--c-navy); background: transparent; }
.btn--ghost:hover { background: var(--c-navy); color: var(--c-white); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 3px;
  font: 600 0.8125rem/1 var(--font-body);
}
.lang-switch a, .lang-switch span {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 36px;
  border-radius: 999px;
  text-decoration: none;
}
.lang-switch a { color: var(--c-text-muted); }
.lang-switch a:hover { color: var(--c-navy); background: var(--c-mist); }
.lang-switch [aria-current] { background: var(--c-navy); color: var(--c-white); }

body.nav-open { overflow: hidden; }

/* Desktop navigation */
@media (min-width: 1360px) {
  .nav-toggle { display: none; }
  .site-header__inner { max-width: 1440px; padding-inline: 32px; gap: 1.5rem; }
  .site-nav, .no-js .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    overflow: visible;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-list { display: flex; gap: 1.3rem; }
  .nav-list a {
    position: relative;
    padding: 0.5rem 0;
    font: 500 0.90625rem/1.2 var(--font-body);
    letter-spacing: 0;
    color: var(--c-navy);
    white-space: nowrap;
  }
  .btn { white-space: nowrap; }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--grad-air);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
  }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="page"] { background: none; }
  .nav-actions { padding: 0; border: 0; gap: 0.5rem; flex-wrap: nowrap; }
  .nav-actions .social { gap: 0; }
  .nav-actions .social a { width: 40px; height: 40px; }
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: max(560px, calc(100svh - var(--header-h)));
  max-height: 1000px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
/* Static fallback shown before the canvas starts / without JS */
.hero__static {
  position: absolute;
  inset: auto 0 6% 0;
  width: 100%;
  height: 55%;
  z-index: -2;
}
.js .hero.is-live .hero__static { display: none; }

.hero__content {
  padding-top: clamp(3rem, 9vh, 7rem);
  padding-bottom: 12rem;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.1em;
  margin-left: -0.065em; /* optical alignment: cancel the left side bearing of the large "R" */
  margin-right: -0.1em; /* compensate trailing tracking */
  color: var(--c-ink);
}
.hero__tagline {
  margin: clamp(1rem, 2vw, 1.75rem) 0 0;
  font: 500 var(--fs-600)/1.25 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--c-navy);
  max-width: 26ch;
}
.hero__name {
  margin: 1rem 0 0;
  max-width: 44ch;
  font-size: var(--fs-300);
  color: var(--c-text-muted);
}
.hero__cue {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0;
  font-size: var(--fs-300);
  font-weight: 500;
  color: var(--c-navy);
  text-decoration: none;
}
@media (min-width: 1320px) {
  .hero__cue { left: calc((100vw - var(--container)) / 2 + var(--gutter)); }
}
.hero__cue-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--c-line);
  overflow: hidden;
}
.hero__cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(var(--c-blue), var(--c-teal));
  animation: cue 2.4s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  70%, 100% { transform: translateY(260%); }
}
@media (min-width: 900px) {
  .hero__content { padding-top: clamp(4rem, 12vh, 9rem); padding-bottom: 14rem; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--mist { background: var(--c-mist); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__title { font-size: var(--fs-700); }
.section__intro { margin-top: 1.25rem; font-size: var(--fs-500); color: var(--c-text-muted); max-width: 40em; }
.section__more { margin-top: clamp(2rem, 4vw, 3rem); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-image: var(--grad-air) 1;
  padding-bottom: 0.2rem;
}
.link-more:hover { color: var(--c-blue); }

/* Wave dividers between sections */
.wave-divider {
  display: block;
  width: 100%;
  height: clamp(48px, 7vw, 110px);
  margin-top: -1px;
  margin-bottom: -1px;
}
.wave-divider .wd-fill { fill: var(--c-mist); }
.wave-divider .wd-line { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wave-divider--to-white .wd-fill { fill: var(--c-white); }
.wave-divider--bg-mist { background: var(--c-mist); }

/* About */
.about { display: grid; gap: 2rem; }
.about__lead {
  font: 500 var(--fs-600)/1.35 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--c-navy);
  margin-bottom: 1.5rem;
}
.about__body { max-width: 40rem; color: var(--c-text); }
.about__body p:not(.about__lead) { color: var(--c-text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-top: 2rem; }
.tags li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: var(--fs-300);
  color: var(--c-navy);
  background: var(--c-white);
}
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .about__title { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* Key facts */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}
.fact { position: relative; padding-top: 1.25rem; }
.fact::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2.5rem; height: 3px;
  border-radius: 3px;
  background: var(--grad-air);
}
.fact__value {
  display: block;
  font: 600 clamp(2rem, 1.3rem + 3vw, 3.5rem)/1 var(--font-display);
  letter-spacing: -0.035em;
  color: var(--c-navy);
  white-space: nowrap;
}
.fact__value small { font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; margin-left: 0.1em; }
.fact__label { display: block; margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.5; color: var(--c-text-muted); max-width: 22ch; }
.fact--wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact--wide { grid-column: auto; }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(5, max-content); justify-content: space-between; gap: 2rem; }
  .fact__value { font-size: clamp(2.25rem, 0.9rem + 2.2vw, 3.25rem); }
}

/* What we will do — a flow of four steps along a wave line */
.flow { position: relative; }
.flow__line { display: none; }
.flow__steps { list-style: none; display: grid; gap: 2.5rem; position: relative; }
.flow__steps::before {
  /* vertical line on mobile */
  content: "";
  position: absolute;
  left: 31px; top: 32px; bottom: 32px;
  width: 2px;
  background: linear-gradient(var(--c-blue), var(--c-sky), var(--c-teal), var(--c-green));
  opacity: 0.6;
}
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; align-items: start; }
.step__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-navy);
}
.step__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step__icon svg .dot { fill: var(--c-ink); stroke: none; }
.step__title { font-size: var(--fs-500); letter-spacing: -0.015em; margin: 0.9rem 0 0.5rem; }
.step__text { color: var(--c-text-muted); margin: 0; max-width: 32ch; }

@media (min-width: 1000px) {
  .flow__steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .flow__steps::before { display: none; }
  .step { grid-template-columns: 1fr; gap: 0; }
  .step__icon { width: 80px; height: 80px; }
  .step__icon svg { width: 36px; height: 36px; }
  .step__title { margin-top: 1.75rem; }
  .flow__line {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: visible;
    pointer-events: none;
  }
  .flow__line path { fill: none; stroke: url(#flowGradient); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .js .flow__line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
  .js .flow.is-visible .flow__line path { stroke-dashoffset: 0; }
}

/* Partner logos */
.logo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
}
.logo-grid li { border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.logo-grid li:first-child { grid-column: span 2; } /* coordinator */
.logo-grid a, .logo-grid .logo-tile {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 140px;
  padding: 1.5rem 0.9rem 2.25rem;
  text-decoration: none;
  transition: background-color 0.25s;
}
.logo-grid a:hover { background: var(--c-mist); }
.logo-grid img, .partner__logo img {
  /* --h is set per logo by the .logo--* classes below (optical sizing: similar visual area for every partner) */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(var(--h, 64px) * var(--logo-scale, 0.8));
  object-fit: contain;
}
/* Optical logo sizes (no inline styles – the Content-Security-Policy blocks them) */
.logo--komag { --h: 55px; }
.logo--gig-en { --h: 51px; }
.logo--gig-pl { --h: 50px; }
.logo--agh { --h: 96px; }
.logo--pgg { --h: 74px; }
.logo--ukf { --h: 73px; }
.logo--csic { --h: 51px; }
.logo--fuchs { --h: 83px; }
.logo-grid .logo-tile__role {
  position: absolute;
  left: 0; right: 0; bottom: 0.7rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-text-muted);
}
/* In two columns the coordinator tile is twice as wide: keep its logo in proportion */
.logo-grid li:first-child img { max-width: 52%; }
@media (min-width: 768px) {
  .logo-grid { --logo-scale: 1; }
  .logo-grid a, .logo-grid .logo-tile { padding-inline: 1.5rem; }
}
@media (min-width: 1100px) {
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logo-grid li:first-child img { max-width: 100%; }
  .logo-grid a, .logo-grid .logo-tile { min-height: 170px; }
}

/* News */
.news-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.news-list > li { border-bottom: 1px solid var(--c-line); }
.news-item { display: grid; gap: 0.5rem; padding: 1.75rem 0; }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; font-size: var(--fs-300); color: var(--c-text-muted); }
.news-item__type {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--c-mint);
  color: var(--c-navy);
}
.news-item__type--event { background: #E3F0FC; }
.news-item__title { font-size: var(--fs-500); letter-spacing: -0.015em; }
.news-item__title a { color: inherit; text-decoration: none; }
.news-item__title a:hover { color: var(--c-blue); text-decoration: underline; }
.news-item__excerpt { margin: 0; color: var(--c-text-muted); max-width: 60ch; }
.news-item__image { border-radius: var(--radius-m); margin: 0.5rem 0; max-width: 720px; }
.news-item__body { max-width: 66ch; padding-top: 0.5rem; }
.news-item__link { margin: 0; font-weight: 600; }

/* News photo gallery: thumbnails open a full-screen viewer (news.js) */
.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
  padding: 0;
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gallery__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--c-mist);
  aspect-ratio: 4 / 3;
}
.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s;
}
.gallery__link:hover img { transform: scale(1.04); }
.gallery__link:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }

.viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 28, 53, 0.97);
  color: var(--c-white);
}
.viewer::backdrop { background: transparent; }
.viewer[open] { display: grid; place-items: center; }
.viewer__figure {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 4rem 1rem 1.25rem;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
}
.viewer__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.viewer__caption { max-width: 70ch; text-align: center; font-size: var(--fs-300); }
.viewer__count { margin-left: 0.5rem; opacity: 0.75; white-space: nowrap; }
.viewer__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  cursor: pointer;
}
.viewer__btn:hover { background: rgba(255, 255, 255, 0.24); }
.viewer__btn:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 2px; }
.viewer__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viewer__btn--close { top: 0.75rem; right: 0.75rem; }
.viewer__btn--prev, .viewer__btn--next { top: 50%; transform: translateY(-50%); }
.viewer__btn--prev { left: 0.75rem; }
.viewer__btn--next { right: 0.75rem; }
@media (min-width: 900px) {
  .viewer__figure { padding: 4rem 5.5rem 1.5rem; }
  .viewer__btn--prev { left: 1.5rem; }
  .viewer__btn--next { right: 1.5rem; }
}
.viewer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .gallery__link img { transition: none; }
  .gallery__link:hover img { transform: none; }
}
.news-item__toggle {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--c-blue);
  font: 600 0.9375rem/1.4 var(--font-body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.news-empty {
  padding: 2rem;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-m);
  color: var(--c-text-muted);
  background: var(--c-white);
}
.news-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.news-filter button {
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-navy);
  font: 500 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.news-filter button[aria-pressed="true"] { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
@media (min-width: 900px) {
  .news-list--home { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; border-top: 0; }
  .news-list--home > li { border-bottom: 0; border-top: 1px solid var(--c-line); }
}

/* EU funding band (homepage) */
.funding-band { border-top: 1px solid var(--c-line); }
.section--facts { padding-block: clamp(2.5rem, 1rem + 4vw, 5rem); }
.funding {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
/* EU emblem and RFCS logo in one row, funding statement below */
.funding__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.funding__eu { width: auto; height: 42px; max-width: 100%; }
/* RFCS logo stays a little smaller than the EU emblem (EU visibility rules) */
.funding__rfcs { width: auto; height: 38px; }
.funding p { margin: 0; max-width: 62ch; color: var(--c-text); }
@media (min-width: 600px) {
  .funding__logos { column-gap: 2.5rem; }
  .funding__eu { height: 64px; }
  .funding__rfcs { height: 58px; }
}
@media (min-width: 900px) {
  .funding__eu { height: 80px; }
  .funding__rfcs { height: 74px; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head {
  position: relative;
  background: var(--c-mist);
  padding-top: clamp(3rem, 7vw, 6.5rem);
  padding-bottom: clamp(6rem, 14vw, 9rem); /* room for the wave art below the text */
  overflow: hidden;
  isolation: isolate;
}
.page-head__art {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: min(900px, 120%);
  height: auto;
  z-index: -1;
  opacity: 0.9;
  transform: translateY(18%);
}
.page-head__title { font-size: var(--fs-800); letter-spacing: -0.035em; max-width: 16ch; }
.page-head__lead { margin-top: 1.25rem; font-size: var(--fs-500); color: var(--c-text-muted); max-width: 38em; }
.breadcrumb { margin-bottom: 1.5rem; font-size: var(--fs-300); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--c-text-muted); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb [aria-current] { color: var(--c-navy); }

/* First section after an inner page header sits closer to it */
.page-head + .section { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

/* "Content to be completed" banner */
.todo-banner {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  max-width: 44rem;
  border: 1.5px dashed var(--c-teal);
  border-radius: var(--radius-m);
  background: var(--c-mint);
  color: var(--c-navy);
}
.todo-banner svg { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.todo-banner strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; }
.todo-banner span { display: block; font-size: var(--fs-300); }
.todo-inline {
  display: inline-block;
  padding: 0 0.4rem;
  border-radius: 4px;
  background: var(--c-mint);
  border: 1px dashed var(--c-teal);
  font-size: 0.875em;
}

.prose { max-width: 44rem; }
.prose h2 { font-size: var(--fs-600); margin: 3rem 0 1rem; }
.prose h3 { font-size: var(--fs-500); margin: 2rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--c-text); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--c-blue); }

.dummy { color: var(--c-text-muted); }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 4fr 8fr; gap: 4rem; } }
.split__aside h2 { font-size: var(--fs-600); }

/* Generic list of blocks with hairlines (WP list, materials, objectives) */
.rows { list-style: none; border-top: 1px solid var(--c-line); }
.rows > li { display: grid; gap: 0.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--c-line); }
.rows h3 { font-size: var(--fs-500); letter-spacing: -0.015em; }
.rows p { margin: 0; color: var(--c-text-muted); max-width: 62ch; }
.rows__key { font: 600 var(--fs-300)/1.4 var(--font-display); color: var(--c-blue); }
@media (min-width: 768px) {
  .rows > li { grid-template-columns: 9rem 1fr; gap: 2rem; }
}
.rows h3 + p { margin-top: 0.5rem; }
.rows p + .rows__label { margin-top: 1.25rem; }
.rows__label { font-size: var(--fs-300); font-weight: 600; color: var(--c-text); }
.rows__list { margin-top: 0.75rem; padding-left: 1.25rem; max-width: 62ch; }
.rows__list li { margin-bottom: 0.4em; color: var(--c-text-muted); }
.rows__list li::marker { color: var(--c-blue); }
.rows__list--tasks { list-style: none; padding-left: 0; }
.rows__task { display: inline-block; min-width: 5.5rem; font: 600 var(--fs-300)/1.4 var(--font-display); color: var(--c-navy); }

/* Work package flow diagram (Project structure) */
.wpflow { margin: 0; }
.wpflow__grid { list-style: none; display: grid; gap: 2.5rem; }
.wpflow__box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-white);
}
.wpflow__box--wp1, .wpflow__box--wp2 { background: var(--c-mist); }
.wpflow__no { display: block; margin-bottom: 0.35rem; font: 600 var(--fs-300)/1.4 var(--font-display); color: var(--c-blue); }
.wpflow__title { display: block; font: 600 1.0625rem/1.35 var(--font-display); letter-spacing: -0.01em; }
.wpflow__logo { width: auto; height: var(--h, 36px); max-width: 150px; object-fit: contain; align-self: flex-start; }
.wpflow__logo.logo--komag, .wpflow__logo.logo--csic { --h: 30px; }
.wpflow__logo.logo--gig-en, .wpflow__logo.logo--gig-pl { --h: 34px; }
.wpflow__logo.logo--ukf { --h: 38px; }
.wpflow__logo.logo--agh { --h: 56px; }
.wpflow figcaption { margin-top: 1.5rem;color: var(--c-text-muted); font-size: var(--fs-300); }
/* arrows: a line with a head, drawn by clip-path on a blue strip */
.wpflow__box:not(:last-child)::after, .wpflow__box::before, .wpflow__down {
  content: "";
  position: absolute;
  background: var(--c-blue);
}
.wpflow__box:not(:last-child)::after, .wpflow__down {
  left: 50%;
  top: 100%;
  width: 12px;
  height: 2.5rem;
  margin-left: -6px;
  clip-path: polygon(5px 0, 7px 0, 7px calc(100% - 9px), 100% calc(100% - 9px), 50% 100%, 0 calc(100% - 9px), 5px calc(100% - 9px));
}
.wpflow__down { display: none; }
@media (min-width: 900px) {
  .wpflow__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    column-gap: 3.5rem;
    row-gap: 2.5rem;
  }
  .wpflow__box--wp1 { grid-column: 1; grid-row: 1 / 4; }
  .wpflow__box--wp2 { grid-column: 3; grid-row: 1 / 4; }
  .wpflow__box--wp3, .wpflow__box--wp4, .wpflow__box--wp5 {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }
  .wpflow__box--wp3 .wpflow__logo, .wpflow__box--wp4 .wpflow__logo, .wpflow__box--wp5 .wpflow__logo { align-self: center; flex-shrink: 0; }
  .wpflow__box:not(:last-child)::after { display: none; }
  .wpflow__down { display: block; }
  /* WP1 -> box and box -> WP2 */
  .wpflow__box--wp3::before, .wpflow__box--wp4::before, .wpflow__box--wp5::before,
  .wpflow__box--wp3:not(:last-child)::after, .wpflow__box--wp4:not(:last-child)::after, .wpflow__box--wp5:not(:last-child)::after {
    display: block;
    top: 50%;
    width: 2.5rem;
    height: 12px;
    margin: -6px 0 0;
    clip-path: polygon(0 5px, calc(100% - 9px) 5px, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, calc(100% - 9px) 7px, 0 7px);
  }
  .wpflow__box--wp3::before, .wpflow__box--wp4::before, .wpflow__box--wp5::before { left: calc(-2.5rem - 8px); }
  .wpflow__box--wp3:not(:last-child)::after, .wpflow__box--wp4:not(:last-child)::after, .wpflow__box--wp5:not(:last-child)::after { left: calc(100% + 8px); }
}

/* Timeline bar (Project structure) */
.timeline { margin-top: 1rem; }
.timeline__bar { position: relative; height: 10px; border-radius: 999px; background: var(--grad-air); }
.timeline__years { display: flex; justify-content: space-between; margin-top: 0.75rem; font: 500 var(--fs-300)/1 var(--font-display); color: var(--c-text-muted); }

/* Placeholder visual (Objectives, stage 2 "How small is dust?") */
.placeholder-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 2rem;
  border: 1.5px dashed var(--c-line);
  border-radius: var(--radius-m);
  background:
    radial-gradient(circle at 20% 40%, var(--c-ink) 0 6px, transparent 7px),
    radial-gradient(circle at 38% 55%, var(--c-ink) 0 3px, transparent 4px),
    radial-gradient(circle at 52% 45%, var(--c-ink) 0 1.5px, transparent 2.5px),
    var(--c-white);
  color: var(--c-text-muted);
  text-align: center;
}

/* Partner cards (Consortium page) */
.partners { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.partner { display: grid; gap: 1.25rem; padding: 2rem 0; border-bottom: 1px solid var(--c-line); }
.partner__logo {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 260px;
  height: 140px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-white);
}
.partner__logo { --logo-scale: 0.9; }
.partner__name { font-size: var(--fs-500); letter-spacing: -0.015em; }
.partner__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem; list-style: none; }
.partner__meta li { padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--c-mist); border: 1px solid var(--c-line); font-size: 0.8125rem; }
.partner__meta .is-coordinator { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.partner p { margin: 0 0 0.75rem; max-width: 62ch; }
@media (min-width: 768px) {
  .partner { grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
}

/* Contact */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.contact-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-white);
}
.contact-card--primary { border-color: transparent; background: var(--c-mist); position: relative; overflow: hidden; }
.contact-card--primary::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad-air); }
.contact-card__label { margin: 0 0 1rem; font-size: var(--fs-300); font-weight: 600; color: var(--c-text-muted); }
.contact-card__name { font-size: var(--fs-600); letter-spacing: -0.02em; }
.contact-card__org { margin: 0.5rem 0 1.5rem; color: var(--c-text-muted); }
.contact-lines { list-style: none; display: grid; gap: 0.75rem; }
.contact-lines li { display: flex; align-items: center; gap: 0.75rem; }
.contact-lines svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--c-blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-lines a { font-weight: 600; font-size: 1.0625rem; color: var(--c-navy); }
.contact-lines a:hover { color: var(--c-blue); }

/* Statement (accessibility) */
.statement dl { display: grid; gap: 0.25rem 1.5rem; margin: 0 0 1.5rem; }
.statement dt { font-weight: 600; }
.statement dd { margin: 0 0 0.75rem; }
@media (min-width: 768px) { .statement dl { grid-template-columns: max-content 1fr; } .statement dd { margin: 0; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--c-navy-950); color: var(--c-on-dark-muted); margin-top: clamp(48px, 7vw, 110px); }
.site-footer__wave {
  position: absolute;
  left: 0; bottom: calc(100% - 2px);
  width: 100%;
  height: clamp(48px, 7vw, 110px);
}
.site-footer__wave .wf-fill { fill: var(--c-navy-950); }
.site-footer__wave .wf-line { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.site-footer a { color: var(--c-white); }
.site-footer :focus-visible { outline-color: var(--c-sky); }
.footer-grid { display: grid; gap: 2.75rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 180px; }
.footer-brand p { margin: 1rem 0 1.25rem; font-size: var(--fs-300); max-width: 34ch; }
.footer-brand .social a { color: var(--c-white); }
.footer-brand .social a:hover { background: rgba(255, 255, 255, 0.1); }
.footer-title { margin-bottom: 1rem; font: 600 0.9375rem/1.3 var(--font-display); color: var(--c-white); letter-spacing: 0; }
.footer-nav ul { list-style: none; display: grid; gap: 0.35rem; }
.footer-nav a { display: inline-block; padding: 0.2rem 0; text-decoration: none; font-size: 0.9375rem; }
.footer-nav a:hover { text-decoration: underline; }
.footer-eu img { width: 260px; max-width: 100%; }
.footer-eu__grant { margin: 1rem 0 0.75rem; color: var(--c-white); font-size: 0.9375rem; }
.footer-eu__disclaimer { margin: 0; font-size: 0.8125rem; line-height: 1.6; max-width: 60ch; }
.footer-bottom {
  display: grid;
  gap: 0.75rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 4fr 3fr 5fr; gap: 3rem; padding-top: 3rem; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 2rem; }
}

/* ==========================================================================
   Scroll reveal (restrained, one style site-wide). Content stays visible
   without JS and with reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }
  /* Staggered fade-in of the homepage facts (no inline --i: CSP blocks inline styles) */
  .js .facts .reveal:nth-child(2) { transition-delay: 90ms; }
  .js .facts .reveal:nth-child(3) { transition-delay: 180ms; }
  .js .facts .reveal:nth-child(4) { transition-delay: 270ms; }
  .js .facts .reveal:nth-child(5) { transition-delay: 360ms; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero__cue-line::after { display: none; }
}

/* Print */
@media print {
  .site-header, .hero__canvas, .hero__cue, .wave-divider, .site-footer__wave, .todo-banner { display: none !important; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
}

/* Spacing utilities (instead of style="…" attributes, which the CSP blocks);
   !important so they win like the inline styles they replace */
.mt-1 { margin-top: 1rem !important; }
.mt-3 { margin-top: 3rem !important; }
.mt-4 { margin-top: 4rem !important; }
.mb-3 { margin-bottom: 3rem !important; }
