/* ═══════════════════════════════════════════════════════════════
   SAFE - Security AI for Enhanced SOC
   Design language inherited from the ESIF 2026 site, recoloured
   to the SAFE logo: shield blue → teal → green, orange network nodes.
   Fonts are self-hosted (fonts.css) - the page makes no external requests.
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0:        #020a14;
  --bg-1:        #06111f;
  --card:        #071526;
  --bg-glass:    rgba(6, 18, 36, 0.66);

  /* Logo palette */
  --blue-700:    #1f5aa8;   /* SAFE wordmark blue */
  --blue-500:    #2a6fc9;
  --blue-400:    #4d8fe6;
  --blue-300:    #86b4f2;
  --teal-500:    #21868a;
  --teal-400:    #2fa6a0;
  --green-500:   #46a758;
  --green-400:   #62c474;
  --orange-500:  #f7941d;   /* network nodes */
  --orange-400:  #f9a943;
  --orange-300:  #fbc27a;

  --grad-shield: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 35%, var(--teal-500) 68%, var(--green-500) 100%);
  --grad-text:   linear-gradient(100deg, var(--blue-300) 0%, var(--teal-400) 55%, var(--green-400) 100%);

  --text-100:    #f2f6ff;
  --text-200:    #c9d6ec;
  --text-400:    #7f96bb;
  --text-600:    #3a4a66;

  --border-faint: rgba(60, 120, 200, 0.13);
  --border-mid:   rgba(60, 120, 200, 0.26);
  --border-glow:  rgba(77, 143, 230, 0.55);

  --nav-h:  96px;
  --pad-x:  52px;
  --section-y: 108px;
  --max-w: 1200px;
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
}

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  background: var(--bg-0);
  color: var(--text-200);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,0.025) 3px 4px);
}
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; overflow-x: hidden; width: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--blue-300); }
strong { color: var(--text-100); font-weight: 600; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--blue-500); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Language switching */

/* ─── Typography helpers ─── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--orange-400);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; flex: 1; max-width: 72px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--orange-500), transparent);
}
.section-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700;
  color: var(--text-100); line-height: 1.08; letter-spacing: .4px;
  margin: 16px 0 20px;
}
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-lead { max-width: 760px; margin: 0 auto 52px; color: var(--text-400); font-size: 15.5px; }

/* ─── Layout ─── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; position: relative; }
.section-header { text-align: center; }
.divider {
  height: 1px; max-width: var(--max-w); margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(47,166,160,0.35), rgba(77,143,230,0.35), transparent);
}

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 36px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .3s, height .3s, box-shadow .3s;
}
.nav.nav--scrolled {
  --nav-h: 76px;
  background: rgba(2, 10, 20, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-faint), 0 10px 30px rgba(0,0,0,.35);
}
.nav.nav--hidden { transform: translateY(-100%); }
.nav__group { display: flex; align-items: center; gap: 16px; flex: none; }
.nav__sep { width: 1px; height: 34px; background: var(--border-mid); }
.logo img { height: 44px; width: auto; object-fit: contain; }
.logo--safe img { height: 50px; }
.logo--funded img { height: 52px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 13.5px; font-weight: 500; color: var(--text-200); text-decoration: none;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; white-space: nowrap;
}
.nav__link:hover { color: #fff; background: rgba(77,143,230,0.10); }
.nav__link--cta { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--teal-500)); margin-left: 6px; }
.nav__link--cta:hover { background: linear-gradient(135deg, var(--blue-400), var(--teal-400)); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-mid); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--text-100); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 90px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(33,134,138,0.16) 0%, rgba(31,90,168,0.10) 38%, transparent 68%);
  pointer-events: none;
}
.hero__content { position: relative; max-width: 980px; width: 100%; }
.hero__eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--orange-400); margin-bottom: 30px;
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__content { z-index: 1; }
.hero h1.logo-slot { margin: 0 auto; }
.logo-slot { width: min(600px, 84vw); aspect-ratio: 1000 / 538.5; margin: 0 auto; position: relative; }
.logo-slot img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 50px rgba(33,134,138,0.30)); animation: rise .9s cubic-bezier(.22,1,.36,1) both; transition: opacity .4s; }
.hero.is-live .logo-slot img { opacity: 0; animation: none; }
.hero.is-live { cursor: crosshair; }
.hero.is-live a, .hero.is-live button { cursor: pointer; }
.hero__hint {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-400); margin-top: 10px; height: 16px; opacity: 0; transition: opacity 1s;
}
.hero.is-ready .hero__hint { opacity: .75; }
@media (pointer: coarse) { .hero__hint { display: none; } }
@media (max-width: 640px) { .objective { padding: 28px 18px 0; } .objective__foot { margin: 26px -18px 0; padding: 16px 18px; } }
.hero__title, .hero__sub, .hero__meta, .hero__actions, .hero__eu { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.22,1,.36,1) forwards; }
.hero__title { animation-delay: .5s; } .hero__sub { animation-delay: .7s; } .hero__meta { animation-delay: .9s; }
.hero__actions { animation-delay: 1.1s; } .hero__eu { animation-delay: 1.2s; }
.hero.is-live .hero__title { animation-delay: 2.9s; } .hero.is-live .hero__sub { animation-delay: 3.1s; }
.hero.is-live .hero__meta { animation-delay: 3.3s; } .hero.is-live .hero__actions { animation-delay: 3.45s; } .hero.is-live .hero__eu { animation-delay: 3.55s; }
.hero__title {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: .6px; color: var(--text-100);
  margin-top: 34px; line-height: 1.15;
}
.hero__title .ai { color: var(--orange-400); }
.hero__sub { max-width: 720px; margin: 18px auto 0; color: var(--text-400); font-size: 16px; }
.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px;
  margin: 38px auto 0; padding: 16px 26px; max-width: 920px;
  border: 1px solid var(--border-faint); border-radius: 999px; background: var(--bg-glass);
  backdrop-filter: blur(8px);
}
.meta-item { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-200); }
.meta-item svg { width: 16px; height: 16px; color: var(--teal-400); flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.btn {
  appearance: none; -webkit-appearance: none; border: 0; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 14.5px; padding: 13px 24px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { color: #fff; background: var(--grad-shield); box-shadow: 0 10px 30px rgba(33,134,138,0.30); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(33,134,138,0.45); }
.btn--ghost { color: var(--text-100); border: 1px solid var(--border-mid); background: rgba(6,18,36,0.5); }
.btn--ghost:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; color: var(--text-400); animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll svg { width: 100%; height: 100%; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.hero__eu { display: none; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; }
.hero__eu img { height: 58px; width: auto; }
.hero__eu img.eccc { height: 40px; }

/* ═══════════════ ABOUT ═══════════════ */
.about__intro { max-width: 860px; margin: 0 auto 56px; text-align: center; font-size: 17px; color: var(--text-200); }
.about-panels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.panel {
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(160deg, rgba(60,120,200,0.35), rgba(47,166,160,0.08)) border-box;
  border: 1px solid transparent; border-radius: var(--r-xl);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
}
.panel__tag { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal-400); }
.panel__text { font-size: 14.5px; color: var(--text-400); }
.panel__text strong { color: var(--text-200); }
.panel__rule { height: 1px; background: linear-gradient(90deg, var(--border-mid), transparent); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 22px;
  border: 1px solid var(--border-faint); border-radius: var(--r-lg); background: var(--bg-glass);
}
.stat-card__icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; background: var(--grad-shield);
}
.stat-card__icon svg { width: 22px; height: 22px; }
.stat-card__val { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 30px; font-weight: 700; color: var(--text-100); line-height: 1; }
.stat-card__val .accent { color: var(--orange-400); }
.stat-card__lbl { font-size: 12.5px; color: var(--text-400); margin-top: 5px; }

/* ═══════════════ OBJECTIVES / COMPONENTS ═══════════════ */
.comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.comp {
  position: relative; overflow: hidden;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(160deg, rgba(60,120,200,0.32), rgba(60,120,200,0.05)) border-box;
  border: 1px solid transparent; border-radius: var(--r-xl); padding: 30px 30px 28px;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s;
}
.comp::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c, var(--blue-500));
}
.comp:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.45); }
.comp__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.comp__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); flex: none; }
.comp__icon svg { width: 24px; height: 24px; }
.comp__num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--c); }
.comp__title { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 23px; font-weight: 700; color: var(--text-100); line-height: 1.15; }
.comp__text { font-size: 14.5px; color: var(--text-400); }
.comp__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.comp__tags > span { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .6px; padding: 4px 10px; border-radius: 999px; color: var(--text-200); border: 1px solid var(--border-mid); }
.comp--xdr  { --c: var(--blue-400); }
.comp--mal  { --c: var(--orange-500); }
.comp--vuln { --c: var(--teal-400); }
.comp--tip  { --c: var(--green-400); }

/* ═══════════════ PLATFORM PIPELINE ═══════════════ */
.pipeline { position: relative; }
.pipeline__loop { position: relative; height: 70px; width: calc(50% + 0px); left: 25%; margin-bottom: -6px; }
.pipeline__loop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pipeline__loop path { animation: dash 1.4s linear infinite reverse; }
@keyframes dash { to { stroke-dashoffset: -10; } }
.pipeline__pk { fill: #fff4e0; filter: drop-shadow(0 0 4px #f7941d) drop-shadow(0 0 10px rgba(247,148,29,.8)); }
.pipeline__loop-label {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%); white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange-300); background: var(--bg-0); padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(247,148,29,0.3);
}
.pipeline__stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; position: relative; }

.stage {
  --c: var(--blue-400);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px 20px 20px; border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, #071526) 0%, #061222 60%) padding-box,
              linear-gradient(170deg, color-mix(in srgb, var(--c) 60%, transparent), rgba(60,120,200,0.08) 70%) border-box;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.stage:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,0.5), 0 0 40px color-mix(in srgb, var(--c) 18%, transparent); }
.stage--net { --c: var(--teal-400); } .stage--bcc { --c: var(--blue-400); } .stage--ae { --c: var(--orange-500); } .stage--tip { --c: var(--green-400); }
.stage__head { display: flex; align-items: center; gap: 10px; padding-right: 50px; }
.stage__ic {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 6%, transparent);
}
.stage__ic svg { width: 24px; height: 24px; }
.stage__wp { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1px; white-space: nowrap; color: var(--c); padding: 3px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.stage__title { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 21px; font-weight: 700; color: var(--text-100); line-height: 1.15; margin-top: 6px; }
.stage__text { font-size: 13.5px; color: var(--text-400); line-height: 1.55; }
.stage__loop { display: none; align-items: center; gap: 8px; font-size: 12px; color: var(--orange-300); }
.stage__loop svg { width: 14px; height: 14px; flex: none; }
.stage__out {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--c) 30%, transparent);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--text-100);
}
.stage__out > span:first-child {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 3px 8px; border-radius: 6px;
}

/* connector between stages: gradient wire + travelling packet + arrow head */
.stage__link { position: absolute; top: 48px; right: -34px; width: 34px; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent)); }
.stage__link::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid color-mix(in srgb, var(--c) 70%, #fff); border-right: 0; }
.stage__link b { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff4e0;
  box-shadow: 0 0 8px var(--c), 0 0 14px var(--c); animation: hop 1.8s cubic-bezier(.6,0,.4,1) infinite; }
.stage:nth-child(2) .stage__link b { animation-delay: .45s; } .stage:nth-child(3) .stage__link b { animation-delay: .9s; }
.stage:last-child .stage__link { display: none; }
@keyframes hop { 0% { left: -4px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }

.pipeline.in .stage { animation: stageIn .8s cubic-bezier(.22,1,.36,1) both; }
.pipeline.in .stage:nth-child(2) { animation-delay: .12s; } .pipeline.in .stage:nth-child(3) { animation-delay: .24s; } .pipeline.in .stage:nth-child(4) { animation-delay: .36s; }
@keyframes stageIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* AI layer spanning all stages */
.ai-layer {
  position: relative; overflow: hidden; margin-top: 24px; padding: 14px 18px; border-radius: 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(47,166,160,0.10), rgba(31,90,168,0.12) 35%, rgba(247,148,29,0.10) 65%, rgba(70,167,88,0.10));
  border: 1px solid var(--border-mid);
}
.ai-layer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%); background-size: 250% 100%;
  animation: sheen 5s linear infinite;
}
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.ai-layer__chip { display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; padding: 6px 12px; border-radius: 999px; background: var(--grad-shield); }
.ai-layer__chip svg { width: 15px; height: 15px; }
.ai-layer__txt { flex: 1; min-width: 220px; font-size: 13.5px; color: var(--text-200); }
.ai-layer__wp { flex: none; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1px; color: var(--orange-300); }

/* ═══════════════ WORK PACKAGES ═══════════════ */
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wp {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 20px;
  border: 1px solid var(--border-faint); border-radius: var(--r-lg); background: var(--bg-glass);
  transition: border-color .2s, transform .2s;
}
.wp:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.wp__num {
  flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 19px; color: #fff;
  background: var(--grad-shield);
}
.wp--tech .wp__num { background: linear-gradient(135deg, var(--teal-500), var(--green-500)); }
.wp--mgmt .wp__num { background: linear-gradient(135deg, #3a4a66, var(--blue-700)); }
.wp--diss .wp__num { background: linear-gradient(135deg, #d97a0c, var(--orange-500)); }
.wp__title { font-weight: 600; color: var(--text-100); font-size: 15px; line-height: 1.35; }
.wp__kind { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-400); margin-top: 6px; }
.wp-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 26px; font-size: 12.5px; color: var(--text-400); }
.wp-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.wp-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* Timeline bar */
.timeline { margin-top: 48px; padding: 24px 26px; border: 1px solid var(--border-faint); border-radius: var(--r-xl); background: var(--bg-glass); }
.timeline__years { display: grid; grid-template-columns: repeat(3, 1fr); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--text-400); }
.timeline__years span { padding: 0 0 10px 4px; border-left: 1px solid var(--border-mid); }
.timeline__bar { height: 10px; border-radius: 999px; background: rgba(60,120,200,0.14); position: relative; overflow: hidden; }
.timeline__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad-shield); border-radius: 999px; transition: width 1.4s cubic-bezier(.22,1,.36,1); }
.timeline__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-400); }
.timeline__foot strong { color: var(--orange-400); }

.timeline.in .timeline__fill { width: var(--p, 0%); }
.timeline__track { position: relative; }
.timeline__now { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 5px rgba(247,148,29,0.22), 0 0 18px rgba(247,148,29,0.7); opacity: 0; transition: opacity .4s 1.2s; }
.timeline.in .timeline__now { opacity: 1; }

/* ═══════════════ CONSORTIUM ═══════════════ */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.partner {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--border-faint); border-radius: var(--r-lg); background: var(--bg-glass);
}
.partner--coord { border-color: rgba(47,166,160,0.45); }

/* ═══════════════ FUNDING ═══════════════ */
.funding { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch; }
.fund-card { border: 1px solid var(--border-faint); border-radius: var(--r-xl); background: var(--bg-glass); padding: 30px; }
.fund-card h3 { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 22px; color: var(--text-100); margin-bottom: 18px; }
.fund-eu { display: flex; align-items: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.fund-eu img { height: 64px; width: auto; }
.fund-eu img.eccc { height: 46px; }

/* ═══════════════ CONTACT ═══════════════ */
#funding { padding-bottom: 56px; }
.contact { padding: 16px var(--pad-x) 88px; position: relative; }
.contact__inner {
  position: relative; overflow: hidden; max-width: var(--max-w); margin: 0 auto; padding: 44px 48px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
  border-radius: 28px;
  background: linear-gradient(150deg, #0a1f38 0%, #061425 55%, #071a2c 100%) padding-box, var(--grad-shield) border-box;
  border: 1px solid transparent; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.contact__inner::before {         /* shield watermark from the logo */
  content: ''; position: absolute; right: -60px; bottom: -90px; width: 360px; height: 360px; pointer-events: none;
  background: url('../img/favicon-512.png') center / contain no-repeat; opacity: .06; transform: rotate(-12deg);
}
.contact__inner::after {
  content: ''; position: absolute; left: -120px; top: -160px; width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(47,166,160,0.18), transparent 65%);
}
.contact__lead, .contact__cards { position: relative; z-index: 1; }
.eyebrow--left { justify-content: flex-start; }
.eyebrow--left::before { display: none; }
.contact h2 { font-family: 'Barlow Semi Condensed', sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--text-100); margin: 12px 0 10px; line-height: 1.1; }
.contact__sub { color: var(--text-400); margin-bottom: 24px; max-width: 460px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__cards { display: grid; gap: 14px; }
.ccard {
  display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 14px; border-radius: 18px;
  background: rgba(3,12,24,0.6); border: 1px solid var(--border-faint);
  transition: border-color .25s, transform .25s cubic-bezier(.22,1,.36,1);
}
.ccard:hover { border-color: var(--border-glow); transform: translateX(4px); }
.ccard__logo { flex: none; width: 108px; height: 62px; border-radius: 12px; display: grid; place-items: center; padding: 10px 12px; background: linear-gradient(160deg, #fff, #eef3f9); }
.ccard__logo img { max-width: 100%; max-height: 40px; object-fit: contain; }
.ccard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ccard__role { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-400); }
.ccard__name { color: var(--text-100); font-weight: 600; font-size: 15.5px; }
.ccard__mail { color: var(--text-200); text-decoration: none; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard__mail:hover { color: var(--orange-400); }
.ccard__copy {
  flex: none; position: relative; width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; color: var(--text-400); background: transparent; border: 1px solid var(--border-mid);
  transition: color .2s, border-color .2s, background .2s;
}
.ccard__copy svg { width: 16px; height: 16px; }
.ccard__copy:hover { color: #fff; border-color: var(--border-glow); background: rgba(77,143,230,0.12); }
.ccard__copy::after {
  content: 'Copied'; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1px; color: #04121f; background: var(--green-400);
  padding: 3px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ccard__copy.is-copied { color: var(--green-400); border-color: var(--green-400); }
.ccard__copy.is-copied::after { opacity: 1; transform: translateX(-50%); }

/* Grant facts strip */
.fact { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-faint); background: var(--bg-glass); }
.fact dt { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-400); margin-bottom: 4px; }
.fund-card--budget { display: flex; flex-direction: column; }
.fund-card--budget .fund-eu { margin-top: auto; padding-top: 22px; }
.donut-total { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.donut-total > span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-400); }
.donut-total b { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 30px; font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.donut-legend > div:not(.donut-total) { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; }
.donut-legend > div:not(.donut-total) b { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.donut-legend { flex: 1; min-width: 240px; }

@media (max-width: 980px) {
  .contact__inner { grid-template-columns: 1fr; padding: 34px 26px; gap: 28px; }
}
@media (max-width: 560px) {
  .ccard__logo { width: 84px; height: 54px; }
  .contact { padding: 8px 16px 64px; }
  .contact__inner { padding: 28px 18px; }
}

/* ═══════════════ FOOTER ═══════════════ */
footer { padding: 60px var(--pad-x) 40px; border-top: 1px solid var(--border-faint); background: rgba(2,8,16,0.75); }
.footer__logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 26px 40px; max-width: var(--max-w); margin: 0 auto; }
.footer__group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-400); }
.footer__group img { height: 46px; width: auto; }
.footer__group .f-funded { height: 62px; }
.footer__group .f-safe { height: 54px; }
.footer__sep { width: 1px; height: 64px; background: var(--border-mid); }
.footer__div { height: 1px; max-width: var(--max-w); margin: 36px auto 26px; background: var(--border-faint); }
.footer__bottom { max-width: 960px; margin: 0 auto; text-align: center; }
.footer__grant { font-size: 13px; color: var(--text-200); margin-bottom: 14px; }
.footer__disclaimer { font-size: 12px; color: var(--text-400); line-height: 1.6; }
.footer__copy { font-size: 11.5px; color: var(--text-600); margin-top: 18px; font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; }

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-mid); background: rgba(6,18,36,0.85); color: var(--text-100); cursor: pointer;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top svg { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title, .hero__sub, .hero__meta, .hero__actions, .hero__eu { opacity: 1; transform: none; animation: none; }
  .stage__link b, .pipeline__pk, .ai-layer::before { display: none; }
  .pipeline__loop path, .pipeline.in .stage { animation: none; }
  html { scroll-behavior: auto; }
  .logo-slot img, .hero__scroll { animation: none; }
}

/* ═══════════════ OFFICIAL OBJECTIVE ═══════════════ */
.objective {
  position: relative; overflow: hidden; max-width: 1100px; margin: 0 auto 56px;
  border-radius: 28px; padding: 44px 44px 0;
  background: linear-gradient(160deg, #081a30 0%, #061222 55%, #07182a 100%) padding-box,
              linear-gradient(135deg, rgba(77,143,230,0.55), rgba(47,166,160,0.25) 45%, rgba(247,148,29,0.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.objective__glow {
  position: absolute; width: 560px; height: 560px; left: -180px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(47,166,160,0.20), transparent 65%);
}
.objective::after {             /* faint network texture, echoes the logo */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(247,148,29,0.35) 1.2px, transparent 1.6px);
  background-size: 34px 34px; mask-image: linear-gradient(115deg, transparent 55%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 55%, #000 100%);
}
.objective__top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.objective__label {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal-400);
}
.objective__label > span:nth-last-child(1) {
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(47,166,160,0.4); color: var(--text-200); letter-spacing: 1.5px; font-size: 10px;
}
.objective__quote {
  position: relative; margin: 34px 0 18px; padding-left: 4px;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.22; color: var(--text-100);
}
.objective__quote::before {
  content: '\201C'; position: absolute; left: -6px; top: -34px; font-size: 96px; line-height: 1;
  font-family: Georgia, serif; background: var(--grad-shield); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .55;
}
.objective__quote em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.objective__lead { color: var(--text-400); font-size: 15px; }
.objective__lead strong { color: var(--text-200); }
.objective__scope {
  margin-top: 22px; padding: 16px 18px; border-radius: 16px; display: flex; gap: 14px; align-items: flex-start;
  background: rgba(247,148,29,0.07); border: 1px solid rgba(247,148,29,0.28);
}
.objective__scope-k {
  flex: none; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: #1a0d00; background: var(--orange-500); padding: 4px 9px; border-radius: 6px; margin-top: 2px;
}
.objective__scope p { font-size: 14.5px; color: var(--text-200); }

.objective__pillars { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.op {
  --c: var(--blue-400);
  position: relative; padding: 18px 16px 16px; border-radius: 18px;
  background: rgba(4,14,28,0.72); border: 1px solid var(--border-faint);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s;
}
.op::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 2px; background: var(--c); opacity: .8; }
.op:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 14px 34px rgba(0,0,0,0.4), 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); }
.op__ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.op__ic svg { width: 21px; height: 21px; }
.op h3 { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 17.5px; font-weight: 700; color: var(--text-100); line-height: 1.2; }
.op p { font-size: 13px; color: var(--text-400); margin-top: 4px; line-height: 1.5; }
.op--bcc { --c: var(--blue-400); } .op--ae { --c: var(--orange-500); } .op--tip { --c: var(--green-400); } .op--net { --c: var(--teal-400); }
.objective.in .op { animation: opIn .7s cubic-bezier(.22,1,.36,1) both; }
.objective.in .op:nth-child(2) { animation-delay: .08s; } .objective.in .op:nth-child(3) { animation-delay: .16s; } .objective.in .op:nth-child(4) { animation-delay: .24s; }
@keyframes opIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.objective__foot {
  position: relative; z-index: 1; margin: 36px -44px 0; padding: 18px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--border-faint); background: rgba(2,8,16,0.45);
}
.lineage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lineage__chip {
  display: inline-flex; flex-direction: column; align-items: center; padding: 6px 14px; border-radius: 12px;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 1px; color: var(--text-200);
  border: 1px solid var(--border-mid); background: rgba(6,18,36,0.7); line-height: 1.1;
}
.lineage__chip small { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 9.5px; letter-spacing: 1px; color: var(--text-400); margin-top: 2px; }
.lineage__chip--safe { color: #fff; border-color: transparent; background: var(--grad-shield); }
.lineage__chip--safe small { color: rgba(255,255,255,0.8); }
.lineage__wire { position: relative; width: 70px; height: 2px; background: linear-gradient(90deg, var(--border-mid), var(--teal-400)); border-radius: 2px; }
.lineage__wire::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--teal-400); border-right: 0; }
.lineage__wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-400); box-shadow: 0 0 10px var(--orange-500); animation: wire 2.2s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes wire { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.lineage__txt { font-size: 13px; color: var(--text-400); max-width: 440px; }

@media (max-width: 980px) {
  .objective { padding: 34px 26px 0; }
  .objective__top { grid-template-columns: 1fr; gap: 30px; }
  .objective__foot { margin: 30px -26px 0; padding: 18px 26px; }
}
@media (max-width: 560px) {
  .objective__pillars { grid-template-columns: 1fr; }
  .objective__scope { flex-direction: column; gap: 10px; }
  .lineage__txt { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lineage__wire i, .objective.in .op { animation: none; }
}

/* ═══════════════ PARTNER CONTRIBUTIONS ═══════════════ */
.partner { flex-wrap: wrap; align-items: flex-start; }
.partner__body { flex: 1; min-width: 0; }
.partner__bar { height: 4px; border-radius: 4px; background: rgba(60,120,200,0.14); margin-top: 6px; overflow: hidden; }
.partner__bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad-shield); transition: width 1.3s cubic-bezier(.22,1,.36,1) .2s; }
.partner.in .partner__bar i { width: var(--w); }
.partners-note { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--text-400); }

/* Partner logo tile: white chip so any partner logo reads on the dark theme */
.partner__logo {
  flex: none; width: 100%; height: 74px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(160deg, #ffffff 0%, #eef3f9 100%);
  display: flex; align-items: center; justify-content: center; padding: 12px 18px; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.partner__logo a, .partner__logo img { display: flex; max-width: 100%; max-height: 100%; }
.partner__logo img { object-fit: contain; width: auto; height: auto; max-height: 44px; max-width: 76%; }
.partner__logo a { justify-content: center; width: 100%; }
/* fallback while a logo file is missing: country code on a dark tile */
.partner__logo.is-missing { background: rgba(31,90,168,0.16); box-shadow: inset 0 0 0 1px var(--border-mid); }
.partner__logo.is-missing img { display: none; }
.partner__logo.is-missing::before {
  content: attr(data-cc); font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 15px; letter-spacing: 2px; color: var(--text-200);
}
.partner--coord .partner__logo { box-shadow: 0 0 0 2px rgba(47,166,160,0.6); }
.partner { flex-direction: column; align-items: stretch; gap: 0; padding: 16px 16px 18px; }
.partner__name { font-size: 15px; }


/* EU contribution by country */
.cbars { display: grid; gap: 14px; }
.cbar { display: flex; align-items: center; gap: 14px; }
.cbar__cc { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--text-100); border: 1px solid var(--border-mid); background: rgba(31,90,168,0.18); }
.cbar__main { flex: 1; min-width: 0; }
.cbar__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-400); }
.cbar__top b { color: var(--text-100); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.cbar .partner__bar { height: 6px; margin-top: 7px; }
.fund-card.in .partner__bar i, .cbars.in .partner__bar i { width: var(--w); }

/* About panels: icon instead of logo */
.panel__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad-shield); }
.panel__icon svg { width: 26px; height: 26px; }

/* ═══════════════ BUDGET DONUT ═══════════════ */
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 8px; }
.donut { width: 132px; height: 132px; flex: none; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 12; }
.donut .bg { stroke: rgba(247,148,29,0.55); }
.donut .fg { stroke: url(#donutGrad); stroke-dasharray: 0 314.16; transition: stroke-dasharray 1.6s cubic-bezier(.22,1,.36,1) .2s; }
.fund-card.in .donut .fg { stroke-dasharray: 157.07 314.16; }
.donut__c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: 'Barlow Semi Condensed', sans-serif; font-size: 26px; font-weight: 700; color: var(--text-100); line-height: 1; }
.donut__c small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.5px; color: var(--text-400); margin-top: 4px; }
.donut-legend { display: grid; gap: 10px; font-size: 13.5px; }
.donut-legend div { display: flex; align-items: center; gap: 10px; }
.donut-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.donut-legend b { color: var(--text-100); font-weight: 600; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1180px) {
  .nav { padding: 0 22px; }
  .nav__links { position: fixed; top: var(--nav-h); left: 12px; right: 12px; flex-direction: column; align-items: stretch;
    background: rgba(4,12,24,0.97); border: 1px solid var(--border-mid); border-radius: 16px; padding: 12px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
  .nav.nav--open .nav__links { opacity: 1; pointer-events: auto; transform: none; }
  .nav__link { padding: 12px 14px; font-size: 15px; }
  .nav__link--cta { margin: 6px 0 0; text-align: center; }
  .nav__burger { display: flex; }
  .nav.nav--open { background: rgba(2,10,20,0.95); }
}
@media (max-width: 980px) {
  :root { --pad-x: 28px; --section-y: 80px; }
  .about-panels { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .comp-grid { grid-template-columns: 1fr; }
  .pipeline__stages { grid-template-columns: 1fr 1fr; gap: 22px; }
  .pipeline__loop, .stage__link { display: none; }
  .stage__loop { display: flex; }
  .wp-grid { grid-template-columns: 1fr 1fr; }
  .funding { grid-template-columns: 1fr; }
  .nav__group--right { display: none; }
  .hero__eu { display: flex; }
}
@media (max-width: 640px) {
  :root { --pad-x: 16px; --nav-h: 72px; --section-y: 64px; }
  .nav.nav--scrolled { --nav-h: 64px; }
  .logo--safe img { height: 38px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero__meta { border-radius: 20px; flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .pipeline__stages { grid-template-columns: 1fr; }
  .wp-grid { grid-template-columns: 1fr; }
  .footer__sep { display: none; }
}

/* Budget card refinements */
.fund-card--budget .donut { width: 168px; height: 168px; }
.fund-card--budget .donut__c { font-size: 32px; }
.fund-card--budget .donut-wrap { gap: 30px; margin: 8px 0 22px; }
.donut-legend { display: grid; gap: 12px; }
.donut-legend .donut-total { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 4px; }
.donut-legend .donut-total b { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 34px; font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.donut-legend > div:not(.donut-total) span { color: var(--text-200); font-size: 13.5px; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-faint); background: rgba(3,12,24,0.5); }
.mini b { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 28px; font-weight: 700; color: var(--text-100); line-height: 1; }
.mini__u { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 20px; font-weight: 700; color: var(--orange-400); margin: 0 2px; }
.mini p { font-size: 12.5px; color: var(--text-400); margin-top: 6px; }
@media (max-width: 560px) { .fund-card--budget .donut { width: 140px; height: 140px; } .minis { grid-template-columns: 1fr; } }

.donut-legend .donut-total > span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-400); }
.contact__inner > * { min-width: 0; }
@media (max-width: 980px) { .contact__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .fact { padding: 12px 13px; }
  .ccard { gap: 12px; padding: 12px; } .ccard__copy { width: 34px; height: 34px; }
  .contact__actions .btn { width: 100%; justify-content: center; }
}
.contact__cards { grid-template-columns: minmax(0, 1fr); }
.ccard { min-width: 0; }
@media (max-width: 560px) { .ccard__mail { white-space: normal; overflow-wrap: anywhere; } .ccard__logo { width: 72px; } }

/* Contact aligned with the other sections' content width */
.contact__inner { max-width: calc(var(--max-w) - var(--pad-x) * 2); }
.ccard--link { text-decoration: none; color: inherit; }
.ccard--link .ccard__copy { pointer-events: none; }
.ccard--link:hover .ccard__copy { color: #fff; border-color: var(--border-glow); background: rgba(77,143,230,0.12); }
.ccard__logo--eu { background: #0d2a66; }
.ccard__logo--eu img { max-height: 46px; }

/* ═══════════════ CONSORTIUM MIX (filter tiles) ═══════════════ */
.mix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 10px; }
.mix__item {
  --c: var(--blue-400);
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 8%, #071526), #061222) padding-box,
              linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, transparent), rgba(60,120,200,0.08)) border-box;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, opacity .25s;
}
.mix--priv { --c: var(--blue-400); } .mix--pub { --c: var(--orange-500); } .mix--edu { --c: var(--green-400); }
.mix__item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 26px color-mix(in srgb, var(--c) 18%, transparent); }
.mix__item:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.mix__item[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c), 0 14px 34px rgba(0,0,0,.4); }
.mix.is-filtering .mix__item[aria-pressed="false"] { opacity: .5; }
.mix__hint { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-400); text-align: center; margin: 4px 0 26px; }
.partner.is-hidden { display: none; }
@media (max-width: 760px) { .mix { grid-template-columns: 1fr; } }

/* optical size tweaks for wide / thin partner logos */
.partner__logo:has(img[src$="dnsc.png"]) { padding: 6px 12px; }
.partner__logo img[src$="dnsc.png"] { max-height: 62px; max-width: 92%; }

/* ═══════════════ ICON + TITLE SIDE BY SIDE ═══════════════ */
/* objective pillars */
.op { gap: 10px; }
.op__head { display: flex; align-items: center; gap: 12px; }
.op__head h3 { margin: 0; }
.op > p { margin-top: 0; }
/* about panels */
.panel__head { display: flex; align-items: center; gap: 14px; }
.panel__head .panel__tag { margin: 0; font-size: 12px; letter-spacing: 2.2px; }
.panel__icon { flex: none; }
/* platform stages */
.stage__head { align-items: center; gap: 14px; padding-right: 44px; }
.stage__head .stage__ic { flex: none; }
.stage__text { margin-top: 4px; }
/* stage: WP chip + number on top line, icon + title below */
.stage__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.stage__head { padding-right: 0; gap: 12px; }
.stage__head .stage__title { margin: 0; font-size: 18.5px; line-height: 1.2; }
.stage__head .stage__ic { width: 46px; height: 46px; border-radius: 13px; }
.stage__link { top: 40px; }

/* Objective footer: centred CYDERCO -> SAFE lineage with pill chips */
.objective__foot { justify-content: center; text-align: center; padding: 22px 44px 24px; }
.lineage { flex-direction: column; align-items: center; gap: 10px; }
.lineage__row { display: flex; align-items: center; gap: 14px; }
.lineage__chip { border-radius: 999px; padding: 8px 22px; flex-direction: row; align-items: baseline; gap: 10px; }
.lineage__chip small { margin-top: 0; }
.lineage__wire { width: 90px; }
.lineage__txt { max-width: 620px; text-align: center; margin: 0; }

/* Fact sheet link lives in the label row as a pill */
@media (max-width: 560px) {
  .lineage__chip { padding: 7px 14px; flex-direction: column; align-items: center; gap: 0; }
  .lineage__wire { width: 46px; }
  .objective__foot { padding: 18px 18px 20px; }
}

/* Budget card: labelled EU / ECCC logo strip */
.fund-card--budget .fund-eu {
  margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--border-mid);
  display: flex; align-items: flex-end; justify-content: center; gap: 28px; flex-wrap: wrap;
}
.fund-eu__item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fund-eu__lbl { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--text-400); }
.fund-eu__item img { height: 54px; width: auto; }
.fund-eu__item img.eccc { height: 40px; margin-bottom: 7px; }
.fund-eu__sep { width: 1px; height: 58px; background: var(--border-mid); }
.minis { margin-bottom: 22px; }
.fund-card--budget .fund-eu { align-items: flex-start; }
.fund-eu__item { justify-content: flex-start; }
.fund-eu__item img, .fund-eu__item img.eccc { height: 52px; margin: 0; object-fit: contain; }
.fund-eu__item img.eccc { height: 52px; padding: 6px 0; box-sizing: border-box; }
.fund-eu__sep { align-self: center; margin-top: 18px; }

/* ── Objective v3: no dots, no quote glyph, full-width scope with tender link, equal icons ── */
.objective::after { display: none; }
.objective__quote::before { display: none; content: none; }
.objective__quote { margin-top: 18px; }
.op__ic { flex: none; width: 44px; height: 44px; }
.op__ic svg { width: 22px; height: 22px; }

.objective > .objective__scope {
  position: relative; z-index: 1; margin: 28px 0 0; padding: 18px 20px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  border-radius: 18px; background: rgba(247,148,29,0.07); border: 1px solid rgba(247,148,29,0.28);
}
.objective > .objective__scope .objective__scope-k { margin-top: 0; }
.objective > .objective__scope p { margin: 0; font-size: 15px; }
.objective__tender {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 18px; border-radius: 999px; text-decoration: none;
  background: rgba(2,10,20,0.6); border: 1px solid rgba(247,148,29,0.45); white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}
.objective__tender:hover { background: rgba(247,148,29,0.14); border-color: var(--orange-400); transform: translateY(-1px); }
.objective__tender-k { display: flex; flex-direction: column; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-400); }
.objective__tender-v { font-weight: 600; font-size: 13.5px; color: var(--orange-300); }
.objective__tender svg { width: 15px; height: 15px; color: var(--orange-400); flex: none; }
@media (max-width: 980px) {
  .objective > .objective__scope { grid-template-columns: auto 1fr; }
  .objective__tender { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .objective > .objective__scope { grid-template-columns: 1fr; gap: 12px; }
  .objective__tender { white-space: normal; flex-wrap: wrap; }
}
.objective > .objective__scope .objective__scope-k { justify-self: start; }

/* ═══════════════ UNIFIED ROUND SHAPES ═══════════════
   Badges, buttons and chips = full pills; icon tiles and number badges = circles;
   cards keep one soft radius. */
.nav__link, .nav__link--cta, .skip-link,
.objective__scope-k, .objective > .objective__scope .objective__scope-k,
.stage__out > span:first-child, .stage__wp, .ai-layer__chip,
.ccard__copy::after, .comp__tags > span, .mix__item em,
.lineage__chip, .objective__tender, .btn { border-radius: 999px; }
.objective__scope-k { padding: 5px 14px; }
.stage__out > span:first-child { padding: 3px 10px; }

.stat-card__icon, .comp__icon, .stage__ic, .stage__head .stage__ic, .wp__num, .op__ic,
.panel__icon, .cbar__cc, .ccard__copy, .nav__burger, .back-to-top { border-radius: 50%; }
.wp-legend i, .donut-legend i { border-radius: 50%; }

/* one card radius everywhere */
.panel, .comp, .stage, .op, .mix__item, .ccard, .fact, .mini, .wp, .partner, .stat-card,
.fund-card, .timeline, .ai-layer, .objective > .objective__scope { border-radius: 20px; }
.partner__logo, .ccard__logo { border-radius: 14px; }

/* ═══════════════ STAT WIDGETS (SOC forum style, SAFE colours) ═══════════════
   Used by the About stats (.stats-grid) and the partner-type filter (.mix). */
.stats-grid { gap: 16px; margin-top: 48px; }
.stat-card, .mix__item.stat-card {
  --c: var(--blue-400); --rgb: 77,143,230;
  background: transparent; border: none; border-radius: 20px; box-shadow: none;
  padding: 22px 26px; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px; text-align: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s;
}
/* bottom glow line - centred, widens on hover */
.stat-card::after {
  content: ''; position: absolute; bottom: 0; left: 25%; right: 25%; height: 1px;
  background: var(--c); opacity: .55; transition: left .42s ease, right .42s ease, opacity .42s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: none; }
.stat-card:hover::after { left: 8%; right: 8%; opacity: 1; }
/* circular tinted icon with a ring */
.stat-card .stat-card__icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: var(--c); background: rgba(var(--rgb), .14); border: none;
  box-shadow: 0 0 0 1.5px rgba(var(--rgb), .28), 0 0 16px rgba(var(--rgb), .12);
  transition: box-shadow .35s, transform .35s;
}
.stat-card .stat-card__icon svg { width: 20px; height: 20px; }
.stat-card:hover .stat-card__icon { transform: scale(1.08); box-shadow: 0 0 0 1.5px rgba(var(--rgb), .5), 0 0 28px rgba(var(--rgb), .3); }
.stat-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stat-card .stat-card__val {
  font-family: 'Barlow Semi Condensed', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text-100);
  line-height: 1; letter-spacing: .5px; margin-bottom: 5px;
}
.stat-card .stat-card__val b { font-weight: 700; }
.stat-card .stat-card__val .accent { color: var(--c); }
.stat-card .stat-card__lbl { font-size: .8rem; color: var(--text-400); letter-spacing: .2px; margin-top: 0; }

/* per-card accents: blue, orange, teal, green */
.stats-grid > .stat-card:nth-child(1), .mix--priv { --c: var(--blue-400);  --rgb: 77,143,230; }
.stats-grid > .stat-card:nth-child(2), .mix--pub  { --c: var(--orange-400); --rgb: 249,169,67; }
.stats-grid > .stat-card:nth-child(3)             { --c: var(--teal-400);  --rgb: 47,166,160; }
.stats-grid > .stat-card:nth-child(4), .mix--edu  { --c: var(--green-400); --rgb: 98,196,116; }

/* staggered entrance like the SOC site */
.stats-grid > .stat-card:nth-child(2), .mix .stat-card:nth-child(2) { transition-delay: .085s; }
.stats-grid > .stat-card:nth-child(3), .mix .stat-card:nth-child(3) { transition-delay: .17s; }
.stats-grid > .stat-card:nth-child(4) { transition-delay: .255s; }
.stat-card.in, .mix.in .stat-card { transition-delay: 0s; }

/* filter tiles: selected = full glow line + lit icon */
.mix { gap: 16px; }
.mix__item.stat-card { cursor: pointer; appearance: none; font: inherit; color: inherit; width: 100%; }
.mix__item.stat-card[aria-pressed="true"]::after { left: 0; right: 0; opacity: 1; height: 2px; }
.mix__item.stat-card[aria-pressed="true"] .stat-card__icon { box-shadow: 0 0 0 2px var(--c), 0 0 28px rgba(var(--rgb), .35); }
.mix.is-filtering .mix__item.stat-card[aria-pressed="false"] { opacity: .45; }
.mix__item.stat-card:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
@media (max-width: 760px) { .mix { grid-template-columns: 1fr; gap: 6px; } }
.mix__item.stat-card.mix--priv { --c: var(--blue-400);   --rgb: 77,143,230; }
.mix__item.stat-card.mix--pub  { --c: var(--orange-400); --rgb: 249,169,67; }
.mix__item.stat-card.mix--edu  { --c: var(--green-400);  --rgb: 98,196,116; }
.mix .stat-card__val .accent { font-size: .55em; font-family: 'JetBrains Mono', monospace; font-weight: 600; margin-left: 6px; vertical-align: 4px; }

/* ═══════════════ COMPONENT CARDS: aligned tag rows ═══════════════ */
.comp-grid { align-items: stretch; }
.comp { display: flex; flex-direction: column; }
.comp__text { flex: 1; }
.comp__tags { margin-top: 18px; }

/* ═══════════════ STAGE STEP BADGE (progress ring) ═══════════════ */
.stage__step {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(var(--rgb, 77,143,230), .14) 0);
}
.stage__step::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #071526; }
.stage__step b, .stage__step small { position: relative; line-height: 1; }
.stage__step b { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 17px; font-weight: 700; color: var(--text-100); }
.stage__step small { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1px; color: var(--text-400); }
.stage--net { --rgb: 47,166,160; } .stage--bcc { --rgb: 77,143,230; } .stage--ae { --rgb: 247,148,29; } .stage--tip { --rgb: 98,196,116; }
.stage__top { margin-bottom: 10px; }

/* ═══════════════ ROUND FLAGS ═══════════════ */
.cbar__cc { padding: 0; overflow: hidden; background: none; border: 0; box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), 0 4px 10px rgba(0,0,0,.35); }
.cbar__cc img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═══════════════ GRANT CARD ═══════════════ */
.grant {
  margin-top: 22px; display: grid; grid-template-columns: 1.05fr 1.15fr 1fr; align-items: stretch;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #0a1f38, #061222 60%) padding-box,
              linear-gradient(135deg, rgba(77,143,230,.45), rgba(47,166,160,.2) 50%, rgba(98,196,116,.35)) border-box;
  border: 1px solid transparent;
}
.grant > * { padding: 24px 26px; min-width: 0; }
.grant > * + * { border-left: 1px solid var(--border-faint); }
.grant__k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-400); }
.grant__id { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.grant__num { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: 1px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grant__call { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-200); overflow-wrap: anywhere; }
.grant__status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--green-400); background: rgba(98,196,116,.1); border: 1px solid rgba(98,196,116,.35); }
.grant__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 0 rgba(98,196,116,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(98,196,116,.55); } 70% { box-shadow: 0 0 0 8px rgba(98,196,116,0); } 100% { box-shadow: 0 0 0 0 rgba(98,196,116,0); } }
.grant__rows { list-style: none; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.grant__rows li { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.grant__rows .grant__ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--teal-400);
  background: rgba(47,166,160,.12); box-shadow: 0 0 0 1.5px rgba(47,166,160,.28); }
.grant__rows .grant__ic svg { width: 17px; height: 17px; }
.grant__rows b { color: var(--text-100); font-weight: 600; font-size: 14px; }
.grant__side { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.grant__line { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-200); }
.grant__line i { flex: 1; height: 4px; border-radius: 4px; background: rgba(60,120,200,.18); position: relative; }
.grant__line i b { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 4px; background: var(--grad-shield); }
.grant__line i b::after { content: ''; position: absolute; right: -5px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 10px var(--orange-500); }
.grant__coord-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.grant__logo { width: 84px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, #fff, #eef3f9); display: grid; place-items: center; padding: 6px 10px; flex: none; }
.grant__logo img { max-width: 100%; max-height: 26px; }
.grant__coord-row b { color: var(--text-100); font-weight: 600; font-size: 14px; }
@media (max-width: 980px) {
  .grant { grid-template-columns: 1fr 1fr; }
  .grant__side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; border-left: 0 !important; border-top: 1px solid var(--border-faint); }
  .grant__side > * { flex: 1; min-width: 220px; }
}
@media (max-width: 640px) {
  .grant { grid-template-columns: 1fr; }
  .grant > * + * { border-left: 0; border-top: 1px solid var(--border-faint); }
  .grant__num { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .grant__status i { animation: none; } }

/* ═══════════════ PERFORMANCE (same animations, GPU-friendly) ═══════════════ */
/* 1. moving dots: transform instead of `left` (no page re-layout every frame) */
.stage__link { --len: 34px; }
.stage__link b { left: 0; will-change: transform, opacity; animation-name: hopT; }
@keyframes hopT { 0% { transform: translateX(-4px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(calc(var(--len) - 6px)); opacity: 0; } }
.lineage__wire { --len: 90px; }
.lineage__wire i { left: 0; will-change: transform, opacity; animation-name: wireT; }
@keyframes wireT { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(calc(var(--len) - 8px)); opacity: 0; } }
@media (max-width: 560px) { .lineage__wire { --len: 46px; } }

/* 2. AI-layer sheen: slide a pseudo layer (compositor) instead of repainting the background */
.ai-layer::before { background-size: 100% 100%; width: 250%; left: -75%; right: auto; animation: sheenT 5s linear infinite; will-change: transform; }
@keyframes sheenT { from { transform: translateX(52%); } to { transform: translateX(-52%); } }

/* 3. "Ongoing" pulse: scale + fade a ring instead of animating box-shadow */
.grant__status i { position: relative; animation: none; box-shadow: none; }
.grant__status i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(98,196,116,.55); animation: pulseT 2s ease-out infinite; will-change: transform, opacity; }
@keyframes pulseT { 0% { transform: scale(1); opacity: .9; } 70% { transform: scale(3.2); opacity: 0; } 100% { transform: scale(3.2); opacity: 0; } }

/* 4. no live blur over the animated canvases - same look with a denser tint */
.nav.nav--scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(2,10,20,0.93); }
.hero__meta { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6,18,36,0.82); }

/* 5. sections scrolled out of view pause their looping animations (resume instantly on return) */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* canvases get their own compositing layer */
#bg-canvas, .hero__canvas { will-change: transform; transform: translateZ(0); }

@media (prefers-reduced-motion: reduce) { .grant__status i::after, .stage__link b, .lineage__wire i, .ai-layer::before { animation: none; } }
/* feedback-arc packet: CSS motion path instead of SMIL (no SVG re-layout per frame) */
.pipeline__pk { offset-path: path('M750 70 C750 8 250 8 250 70'); offset-rotate: 0deg; animation: loopT 3.4s linear infinite; }
@keyframes loopT { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) { .pipeline__pk { animation: none; } }
/* feedback-arc packet as two compositor transforms: X slides 75% -> 25%, Y arcs up and back down */
.pipeline__pk { offset-path: none; animation: none; }
.pipeline__pkx { position: absolute; inset: 0; pointer-events: none; animation: pkX 3.4s linear infinite; will-change: transform; }
.pipeline__pkx .pipeline__pk {
  position: absolute; left: 75%; top: 70px; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff4e0; box-shadow: 0 0 6px #f7941d, 0 0 14px rgba(247,148,29,.8); filter: none;
  animation: pkY 3.4s infinite; will-change: transform;
}
@keyframes pkX { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pkY {
  0%   { transform: translateY(0);       animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  50%  { transform: translateY(-46.5px); animation-timing-function: cubic-bezier(.6,0,.8,.3); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .pipeline__pkx, .pipeline__pkx .pipeline__pk { animation: none; display: none; } }

/* ═══════════════ SLIMMER BUTTONS ═══════════════ */
.btn { padding: 10px 20px; font-size: 14px; gap: 9px; font-weight: 600; line-height: 1.2; }
.btn svg { width: 15px; height: 15px; }
.btn--primary { box-shadow: 0 6px 18px rgba(33,134,138,0.22); }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(33,134,138,0.35); }
.btn--ghost { border: 1px solid rgba(60,120,200,0.28); background: rgba(6,18,36,0.45); }
.hero__actions { gap: 12px; margin-top: 30px; }
.nav__link--cta { padding: 7px 16px; }

/* ═══════════════ LANGUAGE SWITCH: segmented control with a sliding thumb ═══════════════ */

/* "Ongoing" badge: static dot, no pulse */
.grant__status i::after { display: none; content: none; animation: none; }
.grant__status i { animation: none; box-shadow: 0 0 0 3px rgba(98,196,116,.18); }

/* ═══════════════ LANGUAGE SWITCH v3: round flags ═══════════════ */

/* ═══════════════ TIGHTER, CONSISTENT VERTICAL RHYTHM ═══════════════ */
:root { --section-y: 56px; }
@media (max-width: 980px) { :root { --section-y: 48px; } }
@media (max-width: 640px) { :root { --section-y: 40px; } }
.hero { padding-bottom: 64px; min-height: 92vh; min-height: 92svh; }
.hero__scroll { bottom: 18px; }
.section-title { margin-bottom: 14px; }
.section-lead { margin-bottom: 36px; }
.about__intro { margin-bottom: 36px; }
.objective { margin-bottom: 36px; }
.stats-grid { margin-top: 32px; }
.comp-grid, .wp-grid, .partners, .pipeline { margin-top: 0; }
.timeline { margin-top: 32px; }
.mix__hint { margin-bottom: 20px; }
#funding { padding-bottom: var(--section-y); }
.contact { padding: var(--section-y) var(--pad-x) calc(var(--section-y) + 8px); }
footer { padding-top: 44px; }
@media (max-width: 640px) { .contact { padding: var(--section-y) 16px calc(var(--section-y) + 8px); } }
@media (max-width: 640px) { .hero { min-height: auto; padding-bottom: 72px; } }
/* rhythm v2: tighter */
:root { --section-y: 40px; }
@media (max-width: 980px) { :root { --section-y: 34px; } }
@media (max-width: 640px) { :root { --section-y: 28px; } }
#funding { padding-bottom: 12px; }
.contact { padding-top: 12px; padding-bottom: 56px; }
footer { padding-top: 36px; }
.hero { padding-bottom: 48px; min-height: 88vh; min-height: 88svh; }
@media (max-width: 640px) { .hero { min-height: auto; padding-bottom: 60px; } .contact { padding-top: 8px; padding-bottom: 44px; } }
#funding { padding-bottom: 20px; }
.contact { padding-top: 20px; }
@media (max-width: 640px) { :root { --section-y: 32px; } .contact { padding-top: 16px; } }

/* LinkedIn */
.btn--linkedin { color: #fff; background: #0a66c2; border: 1px solid #0a66c2; }
.btn--linkedin:hover { background: #0b76e0; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(10,102,194,.35); }
.btn--linkedin svg { width: 15px; height: 15px; }
.footer__social { display: inline-flex; align-items: center; gap: 9px; margin: 16px auto 0; padding: 7px 16px 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-200); text-decoration: none; border: 1px solid var(--border-mid); transition: color .2s, border-color .2s, background .2s; }
.footer__social svg { width: 16px; height: 16px; color: #3b8fe0; }
.footer__social:hover { color: #fff; border-color: #0a66c2; background: rgba(10,102,194,.15); }
.footer__bottom { display: flex; flex-direction: column; align-items: center; }

/* ═══════════════ VIVID ORANGE (replaces the muddy semi-transparent one) ═══════════════ */
:root { --orange-vivid: #ff9d1e; --grad-orange: linear-gradient(135deg, #ff7a18, #ffb33b); }
.donut .bg { stroke: var(--orange-vivid); }
.sw-orange { background: var(--grad-orange); }
.wp--diss .wp__num { background: var(--grad-orange); }
.objective__scope-k, .objective > .objective__scope .objective__scope-k { background: var(--grad-orange); color: #1a0d00; }
.objective > .objective__scope { background: rgba(8,24,44,.75); border-color: rgba(255,157,30,.45); }
.objective__tender { background: rgba(2,10,20,.6); border-color: rgba(255,157,30,.55); }
.lineage__wire i, .timeline__now, .grant__line i b::after { background: var(--orange-vivid); }

/* ═══════════════ COUNTRY HOVER: partners popover ═══════════════ */
.cbar { position: relative; border-radius: 14px; padding: 6px 8px; margin: -6px -8px; cursor: default; transition: background .2s; outline: none; }
.cbar:hover, .cbar:focus-visible, .cbar:focus-within { background: rgba(77,143,230,.08); }
.cpop {
  position: absolute; z-index: 30; right: calc(100% + 14px); top: 50%; width: 330px;
  padding: 14px; border-radius: 18px; background: #081a30; border: 1px solid rgba(77,143,230,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .22s, transform .22s cubic-bezier(.22,1,.36,1), visibility 0s .22s;
}
.cpop::after { content: ''; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: #081a30;
  border-right: 1px solid rgba(77,143,230,.35); border-top: 1px solid rgba(77,143,230,.35); transform: translateY(-50%) rotate(45deg); }
.cbar:hover .cpop, .cbar:focus-visible .cpop { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
.cpop__h { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-400); margin-bottom: 10px; }
.cpop ul { list-style: none; display: grid; gap: 8px; }
.cpop li { display: flex; align-items: center; gap: 12px; }
.cpop__logo { flex: none; width: 76px; height: 40px; border-radius: 10px; display: grid; place-items: center; padding: 5px 8px; background: linear-gradient(160deg, #fff, #eef3f9); }
.cpop__logo img { max-width: 100%; max-height: 28px; object-fit: contain; }
.cpop__logo.is-missing { background: rgba(31,90,168,.2); }
.cpop__logo.is-missing img { display: none; }
.cpop__logo.is-missing::before { content: attr(data-cc); font: 600 11px 'JetBrains Mono', monospace; color: var(--text-200); }
.cpop__txt { display: flex; flex-direction: column; min-width: 0; }
.cpop__txt b { font-size: 13px; font-weight: 600; color: var(--text-100); line-height: 1.3; }
.cpop__txt b em { font-style: normal; font-size: 10.5px; color: var(--teal-400); margin-left: 4px; }
.cpop__txt small { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--orange-vivid); margin-top: 2px; }
@media (max-width: 980px) {
  .cpop { right: auto; left: 0; top: calc(100% + 8px); width: min(330px, 100%); transform: translateY(6px); }
  .cpop::after { right: auto; left: 24px; top: -7px; transform: rotate(-45deg); }
  .cbar:hover .cpop, .cbar:focus-visible .cpop { transform: none; }
}

/* ═══════════════ PARTNER BUDGET SHARES ═══════════════ */
.shares { margin-top: 22px; padding: 24px 26px; border-radius: 20px; border: 1px solid var(--border-faint); background: var(--bg-glass); }
.shares__logo { grid-row: span 2; width: 62px; height: 34px; border-radius: 9px; display: grid; place-items: center; padding: 4px 7px; background: linear-gradient(160deg,#fff,#eef3f9); }
.shares__logo img { max-width: 100%; max-height: 24px; object-fit: contain; }
.shares__logo.is-missing { background: rgba(31,90,168,.2); } .shares__logo.is-missing img { display: none; }
.shares__logo.is-missing::before { content: attr(data-cc); font: 600 10px 'JetBrains Mono', monospace; color: var(--text-200); }
/* linked hover between bar and list */
.shares.is-hl .shares__seg:not(.is-on) { opacity: .25; }
.shares.is-hl .shares__item:not(.is-on) { opacity: .45; }
.shares__item.is-on { background: rgba(77,143,230,.12); }
.shares__seg.is-on { filter: brightness(1.2); }
@media (max-width: 640px) { .shares { padding: 18px 16px; } }

/* partner number + official acronym */
.partner__acr { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; padding: 3px 10px; border-radius: 999px;
  color: var(--teal-400); background: rgba(47,166,160,.1); border: 1px solid rgba(47,166,160,.35); }
.partner--coord .partner__acr { color: #fff; background: var(--grad-shield); border-color: transparent; }

/* partner cards without contribution row */
.partner { padding-bottom: 16px; }

/* role line above the partner name */

/* ═══════════════ PARTNER CARD: one-line identity ═══════════════ */
.partner__line { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.partner__flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.16); }
.partner__line .partner__name { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.3; }
.partner__acr { flex: none; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 1px; padding: 3px 9px; border-radius: 999px;
  color: var(--teal-400); background: rgba(47,166,160,.1); border: 1px solid rgba(47,166,160,.35); }
.partner--coord .partner__acr { color: #fff; background: var(--grad-shield); border-color: transparent; }
.partner__type { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.partner__type svg { width: 14px; height: 14px; }
.partner__type--priv { color: var(--blue-400);   background: rgba(77,143,230,.14); box-shadow: 0 0 0 1.5px rgba(77,143,230,.28); }
.partner__type--pub  { color: var(--orange-400); background: rgba(249,169,67,.14); box-shadow: 0 0 0 1.5px rgba(249,169,67,.3); }
.partner__type--edu  { color: var(--green-400);  background: rgba(98,196,116,.14); box-shadow: 0 0 0 1.5px rgba(98,196,116,.3); }

/* English-only site: language switch removed */

/* ═══════════════ HERO HINT: icon pills ═══════════════ */
.hero__hint {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  height: auto; margin: 26px auto 0; padding: 0; opacity: 0; transform: translateY(6px);
  transition: opacity .9s, transform .9s cubic-bezier(.22,1,.36,1);
  font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: 0; text-transform: none;
}
.hero.is-ready .hero__hint { opacity: 1; transform: none; }
.hint__lead { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-400); margin-right: 4px; }
.hint__chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text-200);
  background: rgba(6,18,36,.55); border: 1px solid rgba(60,120,200,.25);
}
.hint__chip svg { width: 14px; height: 14px; color: var(--orange-400); flex: none; }
.hero__title { margin-top: 22px; }
@media (pointer: coarse) { .hero__hint { display: none; } }
/* LinkedIn contact card */
.ccard__logo--li { background: #0a66c2; color: #fff; }
.ccard__logo--li svg { width: 30px; height: 30px; }

/* ═══════════════ SAFE NEWSLETTER (news section) ═══════════════ */
.nl-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-400); }
.nl-tag { color: var(--orange-400); padding: 3px 9px; border: 1px solid rgba(247,148,29,.38); border-radius: 999px; background: rgba(247,148,29,.08); }
.nl-empty { color: var(--text-400); text-align: center; }
.bl { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; min-height: 200px; }
.bl-issue {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: center; padding: 30px; border-radius: 22px;
  border: 1px solid var(--border-mid); background: linear-gradient(150deg, rgba(31,90,168,.20), rgba(3,12,24,.7) 60%); position: relative; overflow: hidden;
}
.bl-issue::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-shield); }
.bl-cover {
  appearance: none; border: 0; padding: 0; background: none; cursor: pointer; position: relative; display: block; width: 100%;
  border-radius: 4px 10px 10px 4px; perspective: 900px;
}
.bl-cover__img {
  display: block; width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 3px 8px 8px 3px;
  box-shadow: -2px 0 0 rgba(255,255,255,.06), 0 20px 40px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.4);
  transform-origin: left center; transform: rotateY(-14deg); transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
}
.bl-cover::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 10px; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent); pointer-events: none; }
.bl-cover:hover .bl-cover__img, .bl-cover:focus-visible .bl-cover__img { transform: rotateY(-26deg); box-shadow: -2px 0 0 rgba(255,255,255,.06), 18px 24px 46px rgba(0,0,0,.6); }
.bl-cover__gen { display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 70% 25%, rgba(47,166,160,.4), transparent 55%), #061224; color: #fff; }
.bl-cover__gen b { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 34px; line-height: 1; }
.bl-cover__gen i { font-style: normal; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 30px; color: var(--teal-400); }
.bl-cover__gen em { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--orange-400); margin-top: 10px; }
.bl-cover__hint {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 6px); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px; background: rgba(2,10,20,.82); border: 1px solid var(--border-glow); color: var(--text-100); font-size: 12.5px; font-weight: 600;
  opacity: 0; transition: opacity .3s, transform .3s;
}
.bl-cover__hint svg { width: 14px; height: 14px; }
.bl-cover:hover .bl-cover__hint, .bl-cover:focus-visible .bl-cover__hint { opacity: 1; transform: translate(-50%, 0); }
.bl-issue__title { font-family: 'Barlow Semi Condensed', sans-serif; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; color: var(--text-100); margin: 0 0 12px; }
.bl-issue__text { color: var(--text-400); font-size: 15px; margin: 0 0 22px; }
.bl-issue__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-issue__actions .btn { padding: 11px 18px; font-size: 14px; }
.bl-issue__actions .btn svg { width: 16px; height: 16px; }
.bl-posts__h { margin-bottom: 0; }
.bl-post {
  appearance: none; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: 16px; background: rgba(3,12,24,.62); border: 1px solid var(--border-faint); color: inherit;
  transition: border-color .25s, transform .3s cubic-bezier(.22,1,.36,1);
}
.bl-post:hover, .bl-post:focus-visible { border-color: var(--border-glow); transform: translateX(4px); }
.bl-post .nl-meta { margin-bottom: 2px; }
.bl-post__title { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.15; color: var(--text-100); }
.bl-post__text { color: var(--text-400); font-size: 14px; line-height: 1.55; }
.bl-post__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--teal-400); }
.bl-post__more svg { width: 14px; height: 14px; transition: transform .25s; }
.bl-post:hover .bl-post__more svg { transform: translateX(4px); }
@media (max-width: 1080px) { .bl { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bl-issue { grid-template-columns: 1fr; padding: 24px 20px; justify-items: start; }
  .bl-cover { width: 62%; max-width: 230px; margin: 4px auto 6px; }
}

/* ═══════════════ FLIPBOOK MODAL ═══════════════ */
html.fb-lock, html.fb-lock body { overflow: hidden; }
.fb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fb[hidden] { display: none; }
.fb__backdrop { position: absolute; inset: 0; background: rgba(1,6,12,.82); backdrop-filter: blur(8px); opacity: 0; transition: opacity .26s; }
.fb__panel {
  position: relative; width: min(1480px, 100%); height: min(100%, 1000px); display: flex; flex-direction: column;
  border-radius: 22px; border: 1px solid var(--border-mid); overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(31,90,168,.18), transparent 60%), #030b17;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .26s, transform .32s cubic-bezier(.22,1,.36,1);
}
.fb.is-open .fb__backdrop { opacity: 1; }
.fb.is-open .fb__panel { opacity: 1; transform: none; }
.fb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--border-faint); }
.fb__id { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.fb__id > div { min-width: 0; }
.fb__id img { height: 30px; width: auto; }
.fb__kicker { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange-400); margin: 0; }
.fb__title { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 19px; color: var(--text-100); margin: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb__tools { display: flex; gap: 8px; flex: none; }
.fb__tool {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-mid); background: rgba(6,18,36,.6); color: var(--text-200); font: inherit; font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.fb__tool svg { width: 17px; height: 17px; flex: none; }
.fb__tool:hover:not(:disabled) { border-color: var(--border-glow); color: var(--text-100); }
.fb__tool:disabled { opacity: .35; cursor: default; }
.fb__close { width: 40px; padding: 0; justify-content: center; }
.fb__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; }
.fb__pan { transform-origin: 50% 50%; transition: transform .28s cubic-bezier(.22,1,.36,1); will-change: transform; }
.fb__pan.no-anim { transition: none; }
.fb.is-zoomed .fb__stage { cursor: grab; }
.fb.is-zoomed .fb__stage.is-dragging { cursor: grabbing; }
.fb.is-zoomed .fb__leaf { cursor: inherit; }
.fb__zoom { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--border-mid); background: rgba(6,18,36,.6); }
.fb__zbtn, .fb__zval { appearance: none; border: 0; background: transparent; color: var(--text-200); cursor: pointer; font: inherit; border-radius: 999px; height: 34px; display: grid; place-items: center; }
.fb__zbtn { width: 34px; }
.fb__zbtn svg { width: 17px; height: 17px; }
.fb__zval { min-width: 58px; padding: 0 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .5px; }
.fb__zbtn:hover:not(:disabled), .fb__zval:hover { background: rgba(77,143,230,.18); color: var(--text-100); }
.fb__zbtn:disabled { opacity: .3; cursor: default; }
.fb__book {
  position: relative; width: calc(var(--pw, 300px) * 2); height: var(--ph, 420px); perspective: 2600px;
  transform: translateX(var(--shift, 0px)); transition: transform .82s cubic-bezier(.645,.045,.355,1); opacity: 0;
}
.fb__book.is-ready { opacity: 1; transition: transform .82s cubic-bezier(.645,.045,.355,1), opacity .4s; }
.fb__book::before { /* soft shadow under the open book */
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -18px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(16px);
}
.fb__leaf {
  position: absolute; top: 0; left: 50%; width: var(--pw); height: var(--ph); transform-origin: left center; transform-style: preserve-3d;
  transition: transform .82s cubic-bezier(.645,.045,.355,1); cursor: pointer;
}
.fb__leaf.is-flipped { transform: rotateY(-180deg); }
.fb__leaf.no-anim { transition: none !important; }
.fb__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #f4f6fa; overflow: hidden; }
.fb__face--front { border-radius: 0 4px 4px 0; }
.fb__face--back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; }
.fb__face canvas, .fb__face img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.fb__face:not(.is-loaded)::before { /* placeholder shimmer while a page renders */
  content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #e9edf4 30%, #f7f9fc 50%, #e9edf4 70%); background-size: 300% 100%; animation: fbShimmer 1.4s linear infinite;
}
@keyframes fbShimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.fb__face::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.fb__face--front::after { background: linear-gradient(90deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.05) 4%, transparent 9%, transparent 94%, rgba(255,255,255,.06)); }
.fb__face--back::after { background: linear-gradient(270deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.05) 4%, transparent 9%); }
.fb__face--back:not([data-p]) { background: #e8ecf3; }
.fb__face--back:not([data-p])::before { display: none; }
.fb__leaf.is-turning .fb__face::after { animation: fbSheen .82s ease-in-out; }
@keyframes fbSheen { 0%, 100% { box-shadow: inset 0 0 0 rgba(0,0,0,0); } 50% { box-shadow: inset 0 0 80px rgba(0,0,0,.28); } }
.fb__face { box-shadow: 0 6px 18px rgba(0,0,0,.3); }
/* single-page mode (phones) */
.fb--single .fb__book { width: var(--pw); }
.fb--single .fb__leaf { left: 0; }
.fb--single .fb__leaf.is-flipped { opacity: 0; transition: transform .82s cubic-bezier(.645,.045,.355,1), opacity .25s .6s; }
.fb--single .fb__face--back { background: #e8ecf3; }
/* side arrows */
.fb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; z-index: 5; cursor: pointer;
  display: grid; place-items: center; border: 1px solid var(--border-mid); background: rgba(6,18,36,.75); color: var(--text-100);
  transition: border-color .2s, opacity .2s, background .2s;
}
.fb__nav svg { width: 22px; height: 22px; }
.fb__nav:hover:not(:disabled) { border-color: var(--border-glow); background: rgba(31,90,168,.4); }
.fb__nav:disabled { opacity: 0; pointer-events: none; }
.fb__nav--prev { left: 18px; }
.fb__nav--next { right: 18px; }
.fb--single .fb__nav { width: 40px; height: 40px; top: auto; bottom: 10px; transform: none; }
.fb--single .fb__nav--prev { left: 10px; } .fb--single .fb__nav--next { right: 10px; }
/* loading / error */
.fb__status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; color: var(--text-400); z-index: 4; }
.fb__status.is-done { display: none; }
.fb__status p { max-width: 420px; margin: 0; }
.fb__status .btn svg { width: 16px; height: 16px; }
.fb__spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(77,143,230,.2); border-top-color: var(--teal-400); animation: fbSpin .8s linear infinite; }
.fb__status.is-error .fb__spin { display: none; }
.fb.is-error .fb__nav, .fb.is-error [data-fb-first], .fb.is-error .fb__hint { visibility: hidden; }
@keyframes fbSpin { to { transform: rotate(360deg); } }
.fb__foot { display: flex; align-items: center; gap: 16px; padding: 10px 14px 12px; border-top: 1px solid var(--border-faint); }
.fb__pages { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: 1px; color: var(--text-200); }
.fb__foot { position: relative; }
.fb__hint { font-size: 12.5px; color: var(--text-600); position: absolute; right: 18px; }
@media (max-width: 760px) {
  .fb { padding: 0; }
  .fb__panel { border-radius: 0; height: 100%; border: 0; }
  .fb__tool span, .fb__hint, .fb__kicker { display: none; }
  .fb__tool { width: 40px; padding: 0; justify-content: center; }
  .fb__foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .fb__zoom { left: auto; right: 12px; transform: none; }
  .fb__zval { min-width: 50px; }
  .fb__id img { height: 24px; }
  .fb__title { white-space: normal; font-size: 15.5px; line-height: 1.15; }
}
@media (max-width: 980px) { .fb__hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .fb__leaf, .fb__book, .fb__panel, .fb__backdrop { transition: none !important; }
  .fb__leaf.is-turning .fb__face::after { animation: none; }
}
/* news feed: scrolls next to the issue card, same height */
.bl-posts { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bl-posts__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bl-posts__count { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-600); }
.bl-feedwrap { position: relative; flex: 1; min-height: 420px; }
.bl-feed {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px;
  padding: 2px 10px 2px 2px; scrollbar-width: thin; scrollbar-color: rgba(77,143,230,.45) transparent;
}
.bl-feed:focus-visible { outline: 2px solid var(--border-glow); outline-offset: 4px; border-radius: 16px; }
.bl-feed::-webkit-scrollbar { width: 6px; }
.bl-feed::-webkit-scrollbar-thumb { background: rgba(77,143,230,.45); border-radius: 99px; }
.bl-feed::-webkit-scrollbar-track { background: rgba(60,120,200,.08); border-radius: 99px; }
.bl-feed .bl-post { flex: none; }
.bl-feed .bl-post:hover, .bl-feed .bl-post:focus-visible { transform: translateX(3px); }
.bl-feedwrap::before, .bl-feedwrap::after { content: ''; position: absolute; left: 0; right: 10px; height: 44px; pointer-events: none; z-index: 2; transition: opacity .25s; }
.bl-feedwrap::before { top: 0; background: linear-gradient(var(--bg-0), transparent); }
.bl-feedwrap::after { bottom: 0; background: linear-gradient(transparent, var(--bg-0)); }
.bl-feedwrap.is-top::before, .bl-feedwrap.is-end::after { opacity: 0; }
.bl-year { flex: none; display: flex; align-items: center; gap: 12px; margin: 4px 0 -2px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 3px; color: var(--teal-400); }
.bl-year::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(47,166,160,.45), transparent); }
@media (max-width: 1080px) {
  .bl-feedwrap { flex: none; height: 560px; min-height: 0; }
}
@media (max-width: 640px) { .bl-feedwrap { height: 520px; } }

/* earlier issues: centered, horizontally scrollable shelf of covers */
.bl-archive { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-faint); min-width: 0; }
.bl-archive__h { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-400); }
.bl-archive__h::before, .bl-archive__h::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-mid), transparent); }
.bl-archive__row {
  display: flex; gap: 14px; justify-content: safe center; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: rgba(77,143,230,.45) transparent;
}
.bl-archive__row::-webkit-scrollbar { height: 6px; }
.bl-archive__row::-webkit-scrollbar-thumb { background: rgba(77,143,230,.45); border-radius: 99px; }
.bl-archive__item {
  appearance: none; flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 9px; width: 116px;
  padding: 10px 10px 12px; border-radius: 14px; border: 1px solid var(--border-faint); background: rgba(3,12,24,.55);
  color: var(--text-400); font: inherit; font-size: 12px; text-align: center; cursor: pointer;
  transition: border-color .25s, transform .3s cubic-bezier(.22,1,.36,1), background .25s;
}
.bl-archive__item:hover, .bl-archive__item:focus-visible { border-color: var(--border-glow); background: rgba(31,90,168,.14); transform: translateY(-3px); }
.bl-archive__img { width: 78px; aspect-ratio: 612 / 792; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 8px 18px rgba(0,0,0,.5); display: grid; place-content: center; }
.bl-archive__item span { line-height: 1.3; }
.bl-archive__item b { display: block; color: var(--text-100); font-size: 13px; font-weight: 600; }

/* calm, on-brand keyboard focus ring (replaces the browser's white ring) */
.btn:focus { outline: none; }
.btn:focus-visible, .bl-cover:focus-visible, .bl-post:focus-visible, .bl-archive__item:focus-visible, .fb__tool:focus-visible, .fb__nav:focus-visible, .fb__zbtn:focus-visible, .fb__zval:focus-visible {
  outline: 2px solid rgba(47,166,160,.75); outline-offset: 3px;
}
.bl-archive__img.bl-cover__gen b { font-size: 15px; } .bl-archive__img.bl-cover__gen i { font-size: 13px; } .bl-archive__img.bl-cover__gen em { font-size: 9px; margin-top: 4px; letter-spacing: 1px; }
.bl-cover__img { aspect-ratio: 612 / 792; }
.bl-archive__row.is-scroll { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); scroll-snap-type: x proximity; }

/* latest-issue card layout: cover + text side by side, earlier issues across the full card */
.bl-issue { grid-template-columns: 190px minmax(0, 1fr); align-items: start; row-gap: 0; }
.bl-cover { align-self: start; margin-top: 6px; }
.bl-issue__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.bl-issue__actions .btn { justify-content: center; min-height: 46px; }
.bl-issue > .bl-archive { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .bl-issue { grid-template-columns: 1fr; justify-items: stretch; }
  .bl-cover { justify-self: center; }
  .bl-issue__actions .btn { flex: 1 1 100%; }
}
.bl-posts__h { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-400); }
.bl-issue__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; max-width: 360px; }
.bl-issue__actions .btn { width: 100%; padding-left: 16px; padding-right: 16px; white-space: nowrap; }
@media (max-width: 640px) { .bl-issue__actions { max-width: none; } }

/* earlier issues: compact chips under the buttons, aligned with the text */
.bl-issue > .bl-archive { grid-column: auto; }
.bl-archive { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border-faint); min-width: 0; max-width: 360px; }
.bl-archive__h { display: block; margin: 0 0 10px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-400); text-align: left; }
.bl-archive__h::before, .bl-archive__h::after { display: none; }
.bl-archive__row { justify-content: flex-start; gap: 8px; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.bl-archive__item {
  flex-direction: row; align-items: center; gap: 10px; width: auto; padding: 6px 12px 6px 6px; border-radius: 12px; text-align: left; scroll-snap-align: start;
}
.bl-archive__item:hover, .bl-archive__item:focus-visible { transform: none; }
.bl-archive__img { width: 30px; border-radius: 2px 4px 4px 2px; box-shadow: 0 3px 8px rgba(0,0,0,.45); flex: none; }
.bl-archive__txt { display: flex; flex-direction: column; line-height: 1.25; }
.bl-archive__txt b { color: var(--text-100); font-size: 13px; font-weight: 600; white-space: nowrap; }
.bl-archive__txt em { font-style: normal; color: var(--text-400); font-size: 12px; white-space: nowrap; }
.bl-archive__item > svg { width: 14px; height: 14px; color: var(--teal-400); margin-left: 4px; flex: none; transition: transform .25s; }
.bl-archive__item:hover > svg { transform: translateX(3px); }
@media (max-width: 640px) { .bl-archive { max-width: none; } }

/* earlier issues now sit under the cover, in the left column */
.bl-side { display: flex; flex-direction: column; gap: 0; min-width: 0; align-self: start; }
.bl-side .bl-cover { margin-top: 6px; }
.bl-side .bl-archive { margin-top: 26px; padding-top: 14px; max-width: none; }
.bl-side .bl-archive__h { text-align: center; }
.bl-side .bl-archive__row { justify-content: safe center; }
@media (max-width: 640px) {
  .bl-side { align-items: center; }
  .bl-side .bl-cover { width: 62%; max-width: 230px; }
  .bl-side .bl-archive { width: 100%; }
}
@media (max-width: 640px) {
  .bl-issue { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .bl-side { display: contents; }
  .bl-side .bl-cover { order: 0; align-self: center; margin-bottom: 18px; }
  .bl-issue__body { order: 1; }
  .bl-side .bl-archive { order: 2; margin-top: 22px; }
}
