/* ══════════════════════════════════════════════
   MagHeat — Stylesheet
   Sections:
     1.  CSS Variables
     2.  Reset & Base
     3.  Background Orbs
     4.  EU Compliance Bar
     5.  Navigation
     6.  Hero
     7.  Stats Bar
     8.  Sections (shared)
     9.  Challenge Cards
     10. Solution Section
     11. Objectives
     12. Consortium / Partners
     13. Impact
     14. Phases
     15. Work Package Timeline
     16. Knowledge Community
     17. Funding Acknowledgement
     18. Footer
     19. Animations & Fade-in
     20. Responsive
══════════════════════════════════════════════ */

/* ── 1. CSS VARIABLES ── */
:root {
  --bg: #0a0f1a;
  --surface: #111827;
  --surface2: #1a2438;
  --accent: #00d4aa;
  --accent2: #3b82f6;
  --accent3: #f59e0b;
  --text: #e8edf5;
  --muted: #8899b4;
  --border: rgba(0,212,170,0.15);
  --glow: rgba(0,212,170,0.08);
  --orb1: rgba(0,212,170,0.06);
  --orb2: rgba(59,130,246,0.06);
  --orb3: rgba(245,158,11,0.04);
  --nav-bg: rgba(10,15,26,0.92);
  --nav-link: #8899b4;
}

/* ── THEME: Deep Ocean (teal) ── */
body.theme-ocean {
  --bg: #010b14;
  --surface: #041422;
  --surface2: #071e33;
  --accent: #00ffd0;
  --accent2: #00aaff;
  --accent3: #ffb700;
  --text: #d0f0ff;
  --muted: #5ba8c4;
  --border: rgba(0,255,208,0.20);
  --glow: rgba(0,255,208,0.10);
  --orb1: rgba(0,255,208,0.14);
  --orb2: rgba(0,170,255,0.12);
  --orb3: rgba(255,183,0,0.07);
  --nav-bg: rgba(1,11,20,0.95);
  --nav-link: #5ba8c4;
}

/* ── THEME: Midnight Purple ── */
body.theme-purple {
  --bg: #0d0a1a;
  --surface: #16112b;
  --surface2: #1e183a;
  --accent: #a78bfa;
  --accent2: #60a5fa;
  --accent3: #f472b6;
  --border: rgba(167,139,250,0.18);
  --glow: rgba(167,139,250,0.08);
  --orb1: rgba(167,139,250,0.10);
  --orb2: rgba(96,165,250,0.08);
  --orb3: rgba(244,114,182,0.07);
}

/* ── THEME: Forest Dark ── */
body.theme-forest {
  --bg: #06110a;
  --surface: #0d1f12;
  --surface2: #142d1a;
  --accent: #34d399;
  --accent2: #60a5fa;
  --accent3: #fbbf24;
  --border: rgba(52,211,153,0.18);
  --glow: rgba(52,211,153,0.08);
  --orb1: rgba(52,211,153,0.10);
  --orb2: rgba(96,165,250,0.07);
  --orb3: rgba(251,191,36,0.06);
}

/* ── THEME: Slate Light ── */
body.theme-light {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface2: #e2e8f0;
  --accent: #0891b2;
  --accent2: #2563eb;
  --accent3: #d97706;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(8,145,178,0.2);
  --glow: rgba(8,145,178,0.06);
  --orb1: rgba(8,145,178,0.08);
  --orb2: rgba(37,99,235,0.07);
  --orb3: rgba(217,119,6,0.05);
  --nav-bg: rgba(255,255,255,0.95);
  --nav-link: #334155;
}

/* ── THEME: Crimson Dark ── */
body.theme-crimson {
  --bg: #120608;
  --surface: #1e0c10;
  --surface2: #2a111a;
  --accent: #f43f5e;
  --accent2: #fb923c;
  --accent3: #fbbf24;
  --border: rgba(244,63,94,0.18);
  --glow: rgba(244,63,94,0.08);
  --orb1: rgba(244,63,94,0.10);
  --orb2: rgba(251,146,60,0.08);
  --orb3: rgba(251,191,36,0.06);
}


/* ── 2. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 18px; }

/* ── VISUALLY HIDDEN (WCAG utility) ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SKIP NAVIGATION (WCAG 2.4.1) ── */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #0a0f1a;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-nav:focus { top: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── 3. BACKGROUND ORBS ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, var(--orb1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 70%, var(--orb2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 100%, var(--orb3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── 4. EU COMPLIANCE BAR ── */
.eu-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #003399;
  padding: 0.45rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.eu-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eu-flag {
  width: 40px;
  height: 27px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.3);
}

.eu-statement {
  font-size: 0.78rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.eu-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cetp-logo-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.25rem 0.75rem 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.cetp-logo-bar:hover { background: rgba(255,255,255,0.2); }

.cetp-emblem {
  width: 26px; height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, #00c896, #00a3d9);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.65rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.cetp-label {
  font-size: 0.72rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.cetp-label span {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  opacity: 0.8;
}

/* ── 5. NAVIGATION ── */
nav {
  position: fixed;
  top: 38px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 3rem;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0a0f1a;
  letter-spacing: -0.5px;
}

.nav-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--accent); }

.nav-badge {
  background: rgba(0,212,170,0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ── 6. HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 3rem 5rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,212,170,0.08);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
  animation: fadeUp 0.8s ease both;
}

.hero-tag .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

h1 .accent { color: var(--accent); }
h1 .accent2 { color: var(--accent2); }

.hero-desc {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a0f1a;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: #00f5c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,212,170,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--glow);
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  aspect-ratio: 1;
  animation: fadeUp 1s 0.4s ease both;
}

.orbital-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid;
  animation: spin linear infinite;
}

.ring-1 { border-color: rgba(0,212,170,0.2); animation-duration: 20s; }
.ring-2 { inset: 8%; border-color: rgba(59,130,246,0.15); animation-duration: 28s; animation-direction: reverse; }
.ring-3 { inset: 16%; border-color: rgba(245,158,11,0.12); animation-duration: 36s; }

@keyframes spin { to { transform: rotate(360deg); } }

.orbital-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  top: -5px; left: 50%;
  transform: translateX(-50%);
}

.dot-1 { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.dot-2 { background: var(--accent2); box-shadow: 0 0 12px var(--accent2); }
.dot-3 { background: var(--accent3); box-shadow: 0 0 12px var(--accent3); }

.hero-center {
  position: absolute;
  inset: 25%;
  background: radial-gradient(ellipse at center, rgba(0,212,170,0.12), transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.magnet-icon {
  font-size: 4rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0,212,170,0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── 7. STATS BAR ── */
.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── 8. SECTIONS (shared) ── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* Light theme: force dark, readable heading gradients */
body.theme-light #challenges h2 {
  background: linear-gradient(135deg, #b45309, #dc2626);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-light #solution h2 {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-light #objectives h2 {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-light #impact h2 {
  background: linear-gradient(135deg, #047857, #0369a1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-light #consortium h2 {
  background: linear-gradient(135deg, #0369a1, #b45309);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-light #workplan h2 {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-light #knowledge h2 {
  background: linear-gradient(135deg, #047857, #003399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-light #funding h2 {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Vibrant gradient headings per section */
#challenges h2 {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#solution h2 {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#objectives h2 {
  background: linear-gradient(135deg, var(--accent2), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#impact h2 {
  background: linear-gradient(135deg, #34d399, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#consortium h2 {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#workplan h2 {
  background: linear-gradient(135deg, var(--accent2), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#knowledge h2 {
  background: linear-gradient(135deg, #00c896, #003399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#funding h2 {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

/* ── 9. CHALLENGE CARDS ── */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 16px;
}

.card:hover {
  border-color: rgba(0,212,170,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card:hover::before { opacity: 1; }

.card-num {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(0,255,208,0.45);
  margin-bottom: 1rem;
}

.card-icon { font-size: 1.75rem; margin-bottom: 1rem; }

.card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(0,212,170,0.06), rgba(59,130,246,0.06));
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 3rem;
}

.highlight-box h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.highlight-box p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── 10. SOLUTION SECTION ── */
.solution-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.solution-visual {
  position: relative;
  border-radius: 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mcm-diagram {
  width: 80%;
  height: 80%;
  position: relative;
}

.cycle-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.cycle-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(0,212,170,0.05);
  border: 1px solid rgba(0,212,170,0.1);
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.cycle-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cycle-step-text { font-size: 0.95rem; line-height: 1.45; }
.cycle-step-title { font-weight: 600; font-size: 1rem; color: var(--accent); margin-bottom: 0.2rem; }

.arrow-down {
  color: var(--muted);
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── 11. OBJECTIVES ── */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.obj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.obj-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-4px);
}

.obj-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.obj-card.ko1::after { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.obj-card.ko2::after { background: linear-gradient(90deg, var(--accent2), #8b5cf6); }
.obj-card.ko3::after { background: linear-gradient(90deg, #8b5cf6, var(--accent3)); }

.obj-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.ko1 .obj-badge { background: rgba(0,212,170,0.1); color: var(--accent); }
.ko2 .obj-badge { background: rgba(59,130,246,0.1); color: var(--accent2); }
.ko3 .obj-badge { background: rgba(139,92,246,0.1); color: #a78bfa; }

.obj-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.obj-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.obj-card li {
  font-size: 1.05rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.5;
}

.obj-card li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── 12. CONSORTIUM / PARTNERS ── */
.consortium-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.partner-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s;
}

.partner-card:hover {
  border-color: rgba(0,212,170,0.3);
  transform: translateY(-3px);
}

a:has(.partner-card) { cursor: pointer; }

.partner-logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.partner-logo-wrap img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.partner-logo-wrap svg {
  max-height: 44px;
  width: auto;
  max-width: 100%;
}

.partner-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.partner-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.partner-full {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.partner-role {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
}

.partner-country {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* ── 13. IMPACT ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.impact-card:hover { border-color: rgba(0,212,170,0.3); transform: translateY(-3px); }

.impact-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(0,212,170,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.impact-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── 14. PHASES ── */
.phases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.phase-card {
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.phase-card.phase1 {
  background: linear-gradient(135deg, rgba(0,212,170,0.08), rgba(0,212,170,0.03));
  border: 1px solid rgba(0,212,170,0.2);
}

.phase-card.phase2 {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.03));
  border: 1px solid rgba(59,130,246,0.2);
}

.phase-num {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.06;
  position: absolute;
  top: 1rem; right: 1.5rem;
}

.phase-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.phase1 .phase-label { color: var(--accent); }
.phase2 .phase-label { color: var(--accent2); }

.phase-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.phase-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── 15. WORK PACKAGE TIMELINE ── */
.wp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: all 0.2s;
}

.wp-item:hover {
  background: rgba(0,212,170,0.02);
  margin: 0 -1rem;
  padding: 1.5rem 1rem;
  border-radius: 8px;
}

.wp-meta { display: flex; flex-direction: column; gap: 0.4rem; }

.wp-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wp-lead { font-size: 0.95rem; color: var(--muted); }
.wp-duration { font-size: 0.9rem; color: var(--muted); font-style: italic; }

.wp-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.wp-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── 16. KNOWLEDGE COMMUNITY ── */
.kc-section {
  background: linear-gradient(135deg, rgba(0,51,153,0.12), rgba(0,200,150,0.08));
  border-top: 1px solid rgba(0,51,153,0.3);
  border-bottom: 1px solid rgba(0,51,153,0.3);
}

.kc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.kc-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.kc-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0,51,153,0.3);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s;
}

.kc-card:hover {
  border-color: rgba(0,200,150,0.4);
  transform: translateY(-2px);
}

.kc-card-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }

.kc-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.kc-card p { font-size: 1.05rem; color: var(--muted); line-height: 1.5; }

.kc-cta {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}

.kc-cta-logo {
  width: 180px; height: auto;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0.6rem 1rem;
  letter-spacing: -0.5px;
}

.kc-cta h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.kc-cta p { font-size: 1rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.5rem; }

.btn-eu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #003399;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-eu:hover {
  background: #0044cc;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,51,153,0.4);
}

/* ── 17. FUNDING ACKNOWLEDGEMENT ── */
.funding-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.funding-statement-box {
  background: rgba(0,51,153,0.08);
  border: 1px solid rgba(0,51,153,0.25);
  border-left: 4px solid #003399;
  border-radius: 0 12px 12px 0;
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.funding-statement-box strong { color: var(--text); }

.funders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.funder-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.funder-card:hover { border-color: rgba(0,51,153,0.4); transform: translateY(-2px); }

.funder-flag { font-size: 2rem; flex-shrink: 0; }

.funder-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.funder-info p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.funder-info a {
  font-size: 0.9rem;
  color: var(--accent2);
  text-decoration: none;
  margin-top: 0.4rem;
  display: inline-block;
}

.funder-info a:hover { text-decoration: underline; }

/* ── 18. FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 1rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 0.95rem; color: var(--muted); }

.funding-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(0,212,170,0.05);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

/* ── 19. ANIMATIONS & FADE-IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── 20. INNER PAGE BANNER ── */
.page-banner {
  position: relative;
  z-index: 1;
  padding: 9rem 3rem 4rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface2) 0%, transparent 100%);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,208,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,208,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.page-banner-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  animation: none;
}

.page-banner p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 640px;
}

/* Active nav link */
.nav-active { color: var(--accent) !important; }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE DROPDOWN MENU ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.nav-mobile-menu.open {
  max-height: 400px;
}

.nav-mobile-menu ul {
  list-style: none;
  padding: 0.5rem 1.25rem 1rem;
}

.nav-mobile-menu li a {
  display: block;
  padding: 0.75rem 0;
  color: var(--nav-link);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile-menu li:last-child a { border-bottom: none; }
.nav-mobile-menu li a:hover { color: var(--accent); }

/* ── 20. RESPONSIVE ── */
@media (max-width: 900px) {
  /* EU bar: stack vertically, keep CETP logo visible */
  .eu-bar {
    padding: 0.4rem 1rem;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }
  .eu-bar-left { gap: 0.6rem; }
  .eu-statement { font-size: 0.7rem; }
  .eu-bar-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
  }
  /* Hide the secondary text in bar-right but keep the logo */
  .eu-bar-right > .eu-statement { display: none; }
  .cetp-label span { display: none; }

  /* Nav: push down past the taller EU bar */
  nav { padding: 0.75rem 1.25rem; top: 70px; }
  .nav-links { display: none; }
  .nav-badge { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: block; top: 114px; }

  .hero { padding: 10rem 1.25rem 3.5rem; }
  .hero-visual { display: none; }
  .stats-bar { grid-template-columns: repeat(2,1fr); padding: 1.25rem; }
  .stat:nth-child(2) { border-right: none; }
  section { padding: 3.5rem 1.25rem; }
  .challenge-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .objectives-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .phases-grid { grid-template-columns: 1fr; }
  .wp-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .kc-grid { grid-template-columns: 1fr; gap: 2rem; }
  .kc-card-grid { grid-template-columns: 1fr; }
  .funders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .eu-bar { padding: 0.4rem 0.75rem; }
  nav { top: 78px; padding: 0.65rem 1rem; }
  .nav-mobile-menu { top: 122px; }
  .hero { padding: 11rem 1rem 3rem; }
  .cetp-logo-bar { padding: 0.2rem 0.5rem 0.2rem 0.35rem; }
  .cetp-logo-bar img { height: 20px; }
}
