/* =====================================================================
   iDriving Project - Redesigned Site Stylesheet
   Hybrid: cinematic interactive hero + clean institutional content
   ===================================================================== */

:root {
  /* Brand palette (kept consistent with the iDriving / EU identity) */
  --brand-navy:        #0B2545;
  --brand-navy-deep:   #061833;
  --brand-cyan:        #13C4D7;
  --brand-cyan-deep:   #0EA9BB;
  --brand-teal:        #1F8FA1;
  --brand-amber:       #FFB400;
  --brand-eu-blue:     #003399;
  --brand-eu-yellow:   #FFCC00;

  --road-line:         #FFD43B;

  /* Neutrals */
  --bg:                #FFFFFF;
  --bg-soft:           #F4F8FB;
  --bg-soft-2:         #E9F1F7;
  --ink:               #0A1B2A;
  --ink-soft:          #2D3F52;
  --ink-mute:          #5C6F82;
  --line:              #DCE5EE;
  --line-soft:         #EDF2F7;

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --max: 1200px;
  --max-wide: 1320px;
  --radius-sm: 8px;
  --radius:   14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(11,37,69,.08);
  --shadow:    0 10px 30px rgba(11,37,69,.10);
  --shadow-lg: 0 30px 80px rgba(11,37,69,.18);

  /* Hero gradient - flatter horizontal feel (less "starfield"), with a
     warm yellow band on the right tying into the iDriving logo. */
  --gradient-hero: linear-gradient(110deg, #061833 0%, #0B2545 45%, #0E3158 75%, #14406F 100%),
                   radial-gradient(60% 80% at 100% 50%, rgba(255,180,0,.18), transparent 60%);
  --gradient-cta:  linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-teal) 100%);
  --gradient-cta-yellow: linear-gradient(135deg, var(--brand-amber) 0%, #FF8A00 100%);
}

/* ----------- Reset & base ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-cyan-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.45rem); font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.wide { max-width: var(--max-wide); }

.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--brand-navy); color: #E6EEF7; }
.section.dark p, .section.dark li { color: #B9C8DA; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #FFFFFF; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-teal);
  padding: 6px 12px; border: 1px solid rgba(31,143,161,.3);
  border-radius: 999px; background: rgba(19,196,215,.08);
}
.section.dark .eyebrow { color: var(--brand-cyan); border-color: rgba(19,196,215,.4); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 10px var(--brand-cyan); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--gradient-cta); color: #042133;
  box-shadow: 0 12px 30px rgba(19,196,215,.30);
}
.btn-primary:hover { transform: translateY(-2px); color: #042133; }
.btn-ghost {
  background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline {
  background: transparent; color: var(--brand-navy); border: 1px solid var(--brand-navy);
}
.btn-outline:hover { background: var(--brand-navy); color: #fff; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------- Top utility bar ----------- */
.utility-bar {
  background: var(--brand-navy-deep);
  color: #C9D7E8;
  font-size: .82rem;
  padding: 8px 0;
}
.utility-bar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.utility-bar .tagline { font-style: italic; opacity: .85; }
.utility-bar .socials { display: flex; gap: 14px; }
.utility-bar .socials a { color: #C9D7E8; opacity: .85; }
.utility-bar .socials a:hover { color: var(--brand-cyan); opacity: 1; }

/* ----------- Header / nav ----------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-family: var(--font-display); color: var(--brand-navy);
}
.brand img { height: 44px; width: auto; }
.brand-text { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
  position: relative;
  padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.nav-item:hover, .nav-item.active { color: var(--brand-cyan-deep); background: var(--bg-soft-2); }
.nav-item .caret { transition: transform .2s; font-size: .75em; }
.nav-item.has-menu:hover .caret { transform: rotate(180deg); }

.nav-submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.has-menu:hover .nav-submenu,
.has-menu:focus-within .nav-submenu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-submenu a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-soft); font-weight: 500;
}
.nav-submenu a:hover { background: var(--bg-soft); color: var(--brand-cyan-deep); }

.nav-cta { margin-left: 8px; }
.menu-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  width: 22px; height: 2px; background: var(--brand-navy); position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--brand-navy);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* ----------- Mobile nav (hidden on desktop, slide-over on mobile) ----------- */
/* Base styles MUST live outside the media query so the panel is always
   positioned and hidden by default - otherwise on desktop it renders inline
   as a stack of links and shows up as a "second menu". */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--brand-navy-deep); color: #fff;
  transform: translateY(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav .close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 40px; height: 40px; border-radius: 8px;
  cursor: pointer; font-size: 1.5em;
}
.mobile-nav-list { padding: 80px 24px 40px; }
.mobile-nav-list a {
  color: #fff; display: block; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1em;
}
.mobile-nav-list .submenu a { padding-left: 16px; font-size: 1em; opacity: .85; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { height: 38px; }
}

/* ----------- HERO ----------- */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #E6EEF7;
  overflow: hidden;
  padding: 120px 0 110px;
}
/* Yellow safety stripe at the bottom of the hero - a clear road-marking cue */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--brand-amber) 0 36px,
    transparent 36px 60px);
  opacity: .9;
  z-index: 3;
}
.hero canvas.particles,
.page-hero canvas.particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .65; pointer-events: none;
}
.hero .road-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .35;
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 60px; align-items: center;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent {
  /* Cyan→yellow shimmer brings the iDriving logo's gold into the headline */
  background: linear-gradient(90deg, var(--brand-cyan) 0%, #6FE2EE 30%, var(--brand-amber) 70%, var(--brand-cyan) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
  position: relative;
}
.hero h1 .accent::after {
  /* Yellow road-marking under the highlighted phrase */
  content: ""; display: block; width: 56%; height: 4px;
  margin-top: 4px;
  background-image: linear-gradient(90deg, var(--brand-amber) 50%, transparent 50%);
  background-size: 14px 4px;
  border-radius: 2px;
  animation: laneShift 3s linear infinite;
}
@keyframes laneShift { from { background-position: 0 0; } to { background-position: -56px 0; } }
@keyframes shine { to { background-position: 200% center; } }

.hero p.lead { font-size: 1.1rem; color: #C9D7E8; max-width: 56ch; margin-bottom: 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.smart-junction {
  width: 100%; height: 100%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  border-radius: 22px;
}
.hero-visual .ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(19,196,215,.4);
  animation: spin 60s linear infinite;
}
.hero-visual .ring.r1 { inset: 0; }
.hero-visual .ring.r2 { inset: 12%; border-style: solid; border-color: rgba(19,196,215,.18); animation-direction: reverse; animation-duration: 80s; }
.hero-visual .ring.r3 { inset: 28%; border-color: rgba(255,180,0,.25); animation-duration: 50s; }
.hero-visual .core {
  position: absolute; inset: 38%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand-cyan) 0%, var(--brand-teal) 60%, var(--brand-navy) 100%);
  box-shadow: 0 0 80px rgba(19,196,215,.5), inset 0 0 60px rgba(0,0,0,.25);
}
.hero-visual .blip {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 18px var(--brand-cyan);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .5; }
}
.blip { animation: pulse 2.4s ease-in-out infinite; }

@media (max-width: 880px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
}

/* ----------- Stat strip / counters ----------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stats .stat {
  padding: 36px 24px; text-align: center; border-right: 1px solid var(--line-soft);
  position: relative;
}
.stats .stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--brand-navy);
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-cyan-deep) 70%, var(--brand-amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--ink-mute); text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; margin-top: 4px; }

@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2n) { border-right: none; }
  .stats .stat { border-bottom: 1px solid var(--line-soft); }
}

/* ----------- Generic cards ----------- */
.cards {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-cyan); }
.card .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(19,196,215,.16), rgba(11,37,69,.05));
  color: var(--brand-cyan-deep); margin-bottom: 16px;
}
.card h3 { margin: 0 0 .4em; }

/* Use case card with image */
.usecase-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; cursor: pointer;
  background-size: cover; background-position: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.usecase-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,0) 0%, rgba(11,37,69,.7) 70%, rgba(6,24,51,.9) 100%);
  transition: opacity .3s ease;
}
.usecase-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(19,196,215,.4), rgba(11,37,69,0));
  opacity: 0; transition: opacity .3s ease;
}
.usecase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.usecase-card:hover::after { opacity: 1; }
.usecase-card .num {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em;
  color: var(--brand-cyan); padding: 4px 10px; border: 1px solid rgba(19,196,215,.5);
  border-radius: 999px; background: rgba(11,37,69,.6); backdrop-filter: blur(6px);
}
.usecase-card h3 { color: #fff; position: relative; z-index: 2; margin: 0 0 6px; font-size: 1.4rem; }
.usecase-card p { color: rgba(255,255,255,.85); position: relative; z-index: 2; margin: 0; }
.usecase-card .more {
  position: relative; z-index: 2; margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--brand-cyan);
}
.usecase-card .more::after { content: "→"; transition: transform .25s; }
.usecase-card:hover .more::after { transform: translateX(4px); }

/* SVG-based use case art */
.uc-art {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}

/* ----------- Progress / mid-term section ----------- */
.progress-bar {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.progress-bar .progress-label {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-cyan-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.progress-bar .progress-label::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-cyan); box-shadow: 0 0 10px var(--brand-cyan);
}
.progress-track {
  flex: 1; min-width: 220px;
  height: 8px; background: var(--bg-soft-2);
  border-radius: 999px; overflow: hidden; position: relative;
}
.progress-track .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-amber));
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
  width: 0;
}
.progress-track.in-view .fill { width: var(--progress, 50%); }
.progress-bar .progress-pct {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; color: var(--brand-navy);
}
.progress-bar .progress-note { color: var(--ink-mute); font-size: .85rem; }

/* Stat tiles - bigger, richer than the homepage stat strip */
.progress-tiles {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 22px;
}
.progress-tile {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px;
  position: relative; overflow: hidden;
}
.progress-tile::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; right: 60%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-amber));
  border-radius: 4px 0 0 0;
}
.progress-tile .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.2rem; line-height: 1;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-cyan-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.progress-tile .num small {
  font-size: .85rem; color: var(--ink-mute); font-weight: 600;
  -webkit-text-fill-color: var(--ink-mute);
  margin-left: 4px;
}
.progress-tile .label {
  margin-top: 6px; color: var(--ink-soft); font-size: .9rem;
  font-weight: 500;
}

/* Milestone timeline (horizontal) */
.milestones {
  display: grid; gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 28px; position: relative;
}
@media (max-width: 880px) {
  .milestones { grid-template-columns: 1fr; gap: 18px; }
  .milestones::before { display: none; }
}
.milestones::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: 14px;
  height: 2px; background: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-cyan) 35%, var(--brand-amber) 35%, var(--brand-amber) 100%);
  z-index: 0;
}
.milestone {
  text-align: center; padding: 0 8px; position: relative;
}
.milestone::before {
  content: ""; display: block; margin: 0 auto 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-cyan);
  position: relative; z-index: 1;
}
.milestone.done::before { background: var(--brand-cyan); }
.milestone.future::before { background: #fff; border-color: var(--brand-amber); }
.milestone .when {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; color: var(--brand-cyan-deep);
  text-transform: uppercase;
}
.milestone.future .when { color: #9C6F00; }
.milestone .what {
  margin-top: 4px; font-size: .88rem; color: var(--ink-soft);
  line-height: 1.4;
}

/* ----------- Pilot site cards (replaces the blob-map presentation) ----------- */
.pilot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pilot-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pilot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-cyan);
}
.pilot-card .flag {
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px; display: flex;
}
.pilot-card .flag span { flex: 1; height: 100%; }
.pilot-card .number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-cyan-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 4px;
}
.pilot-card .puc-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--brand-cyan-deep);
  background: rgba(19,196,215,.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pilot-card h3 {
  font-size: 1.5rem;
  margin: 0 0 2px;
  color: var(--brand-navy);
}
.pilot-card .country {
  display: block;
  font-size: .9rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pilot-card .what {
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
  min-height: 3.5em;
}
.pilot-card .meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .82rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.pilot-card .lead {
  color: var(--ink-mute);
}
.pilot-card .lead strong { color: var(--brand-navy); }
.pilot-card .status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pilot-card .status.done {
  background: rgba(19,196,215,.14);
  color: var(--brand-cyan-deep);
}
.pilot-card .status.done::before {
  content: "✓"; font-weight: 800;
}
.pilot-card .status.active {
  background: rgba(19,196,215,.14);
  color: var(--brand-cyan-deep);
}
.pilot-card .status.active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
}
.pilot-card .status.preparing {
  background: rgba(255,180,0,.16);
  color: #9C6F00;
}
.pilot-card .status.preparing::before {
  content: "•"; font-size: 1.2em; line-height: 0;
}
.pilot-card .status.scheduled {
  background: rgba(11,37,69,.08);
  color: var(--brand-navy);
}
.pilot-card .status.scheduled::before {
  content: "›"; font-weight: 800;
}

/* ----------- Map of Europe (interactive pilot sites) ----------- */
.map-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--line-soft);
}
.eu-map { width: 100%; height: auto; }
.eu-map .country { fill: #DCE5EE; stroke: #fff; stroke-width: 1; transition: fill .25s ease; }
.eu-map .country.partner { fill: #B6D9E0; }
.eu-map .country:hover { fill: var(--brand-cyan); cursor: pointer; }
.eu-map .pin {
  fill: var(--brand-amber); stroke: #fff; stroke-width: 2;
  filter: drop-shadow(0 4px 8px rgba(255,180,0,.5));
  cursor: pointer;
  transition: r .2s ease, fill .2s ease;
}
.eu-map .pin.pulse {
  animation: pinPulse 2s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes pinPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}
.eu-map .pin:hover { fill: #FF8A00; }
.map-tooltip {
  position: absolute; pointer-events: none;
  background: var(--brand-navy); color: #fff; padding: 10px 14px;
  border-radius: 10px; font-size: .9rem; font-weight: 600;
  transform: translate(-50%, -130%); opacity: 0;
  transition: opacity .2s ease; box-shadow: var(--shadow);
  white-space: nowrap;
}
.map-tooltip.show { opacity: 1; }
.map-tooltip::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--brand-navy);
}

/* ----------- Partners grid ----------- */
.partners-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px; margin-top: 28px;
}
.partner {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line-soft);
  padding: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  cursor: pointer;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-cyan); }
.partner .country-tag {
  display: inline-block; padding: 3px 10px;
  font-size: .72rem; font-family: var(--font-mono); letter-spacing: .14em;
  color: var(--brand-eu-blue); background: rgba(0,51,153,.08);
  border-radius: 999px; margin-bottom: 12px; text-transform: uppercase;
}
.partner h4 { margin: 0 0 6px; font-size: 1rem; color: var(--brand-navy); }
.partner .role { color: var(--ink-mute); font-size: .85rem; margin-bottom: 10px; min-height: 0; }
.partner .partner-link { font-size: .85rem; font-weight: 600; color: var(--brand-cyan-deep); }

.partner-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0;
}
.filter-pill {
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .85rem; cursor: pointer; transition: all .2s;
}
.filter-pill:hover { border-color: var(--brand-cyan); }
.filter-pill.active {
  background: var(--brand-navy); color: #fff; border-color: var(--brand-navy);
}

/* ----------- News list (cards) ----------- */
.news-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.news-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb {
  height: 180px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal) 60%, var(--brand-cyan) 100%);
}
.news-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.news-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-family: var(--font-mono); font-size: .76rem; color: var(--brand-cyan-deep);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px;
}
.news-card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.news-card h3 a { color: var(--brand-navy); }
.news-card h3 a:hover { color: var(--brand-cyan-deep); }
.news-card p { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.news-card .read-more {
  margin-top: 10px; align-self: flex-start;
  font-weight: 600; color: var(--brand-cyan-deep);
  display: inline-flex; gap: 6px; align-items: center;
}
.news-card .read-more::after { content: "→"; transition: transform .2s; }
.news-card .read-more:hover::after { transform: translateX(4px); }

/* ----------- Timeline ----------- */
.timeline {
  position: relative; padding-left: 36px;
}
.timeline::before {
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--brand-cyan), rgba(19,196,215,.1));
}
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(19,196,215,.18);
}
.tl-date { font-family: var(--font-mono); font-size: .82rem; color: var(--brand-cyan-deep); letter-spacing: .12em; }
.tl-item h4 { margin: 4px 0 6px; }

/* ----------- Tabs (use-case scenarios) ----------- */
.tabs {
  display: flex; gap: 8px; border-bottom: 1px solid var(--line);
  margin-bottom: 28px; flex-wrap: wrap;
}
.tab {
  padding: 12px 18px; border: none; background: transparent; cursor: pointer;
  font-weight: 600; color: var(--ink-mute);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--brand-cyan-deep); }
.tab.active { color: var(--brand-navy); border-color: var(--brand-cyan); }
.tab-panel { display: none; animation: fadeIn .35s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ----------- Impact metrics (use cases) ----------- */
.impact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.impact-card {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
}
.impact-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-amber));
}
.impact-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
  color: var(--brand-navy); line-height: 1;
}
.impact-num small { color: var(--brand-amber); font-size: 1.1rem; margin-left: 4px; font-weight: 700; }
.impact-label { color: var(--ink-mute); font-size: .9rem; margin-top: 6px; }

/* ----------- Architecture diagram ----------- */
.arch-diagram {
  display: grid; gap: 20px;
  grid-template-columns: repeat(5, 1fr);
  margin: 32px 0;
}
@media (max-width: 1080px) { .arch-diagram { grid-template-columns: repeat(2, 1fr); } }
.arch-step {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.arch-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.arch-step .num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gradient-cta); color: #042133;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-display); margin-bottom: 12px;
}
.arch-step h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brand-navy); }
.arch-step p { font-size: .9rem; margin: 0; }

/* ----------- Newsletter / CTA ----------- */
.newsletter {
  background: var(--brand-navy);
  color: #E6EEF7; border-radius: var(--radius-lg);
  padding: 48px; position: relative; overflow: hidden;
}
.newsletter::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(19,196,215,.4), transparent 70%);
  pointer-events: none;
}
.newsletter .inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: #C9D7E8; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input[type="email"] {
  flex: 1; min-width: 220px; padding: 14px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; font-size: 1rem;
}
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter input[type="email"]:focus { outline: 2px solid var(--brand-cyan); }

@media (max-width: 880px) {
  .newsletter { padding: 32px 24px; }
  .newsletter .inner { grid-template-columns: 1fr; }
}

/* ----------- Tables (deliverables, articles) ----------- */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table.deliverables {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
}
table.deliverables th, table.deliverables td {
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: .92rem;
}
table.deliverables th {
  background: var(--bg-soft); color: var(--brand-navy);
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
}
table.deliverables tr:last-child td { border-bottom: none; }
table.deliverables tr:hover td { background: rgba(19,196,215,.04); }
.del-tag {
  display: inline-block; padding: 2px 10px;
  border-radius: 999px; font-family: var(--font-mono); font-size: .72rem;
  background: var(--brand-navy); color: #fff;
}
.dl-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(19,196,215,.12); color: var(--brand-cyan-deep);
  font-weight: 600; font-size: .82rem;
}
.dl-pill.soon { background: rgba(255,180,0,.12); color: #B97F00; }
.dl-pill:hover { background: var(--brand-cyan); color: #042133; }

/* ----------- Article card ----------- */
.article-card {
  background: #fff; border: 1px solid var(--line-soft); border-left: 4px solid var(--brand-cyan);
  border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.article-card .authors { color: var(--brand-navy); font-weight: 700; }
.article-card .title { font-style: italic; color: var(--ink-soft); }
.article-card .venue { color: var(--ink-mute); font-size: .9rem; margin-top: 6px; }

/* ----------- Page header (hero-lite) ----------- */
.page-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 64px 0 56px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  /* Same yellow road-marking stripe as the hero, for visual continuity */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--brand-amber) 0 32px,
    transparent 32px 54px);
  opacity: .9;
  z-index: 3;
}
.page-hero h1 { color: #fff; max-width: 22ch; margin-bottom: 14px; }
.page-hero p { color: #C9D7E8; max-width: 60ch; }
.page-hero .breadcrumb {
  display: inline-flex; gap: 6px; align-items: center;
  font-family: var(--font-mono); font-size: .82rem; color: var(--brand-cyan);
  margin-bottom: 20px; letter-spacing: .12em; text-transform: uppercase;
}
.page-hero .breadcrumb a { color: var(--brand-cyan); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.5); }
.page-hero .road-svg {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 70px;
  width: 100%;
}

/* ----------- Footer ----------- */
.site-footer {
  background: var(--brand-navy-deep); color: #B9C8DA;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px; margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-grid a { color: #B9C8DA; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--brand-cyan); }
.footer-grid .brand-block img { height: 44px; margin-bottom: 16px; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-grid .eu-funded img { background: transparent; }
.footer-grid .eu-funded p { font-size: .8rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: .85rem;
}
.footer-bottom a { color: #B9C8DA; }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a:hover { color: var(--brand-cyan); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ----------- Reveal-on-scroll ----------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ----------- Logo strip (consortium teaser) ----------- */
.logo-strip {
  display: flex; gap: 36px; flex-wrap: wrap; align-items: center; justify-content: center;
  padding: 24px 0; opacity: .85;
}
.logo-strip span {
  font-family: var(--font-display); font-weight: 700; color: var(--ink-mute);
  font-size: .95rem; padding: 10px 18px;
  background: #fff; border-radius: 8px; border: 1px solid var(--line-soft);
}

/* ----------- Forms ----------- */
.contact-form {
  background: #fff; padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}
.contact-form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
@media (max-width: 660px) { .contact-form .row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--brand-navy);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em;
}
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(19,196,215,.18); }
.field textarea { min-height: 140px; resize: vertical; }

/* ----------- Two-column content ----------- */
.two-col {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start;
}
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }
.two-col aside .info-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--line-soft); margin-bottom: 16px;
}
.two-col aside h4 { font-size: .85rem; color: var(--brand-navy); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }

/* ----------- Objective / numbered list ----------- */
.objectives {
  list-style: none; counter-reset: obj;
  padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.objectives li {
  counter-increment: obj;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 24px 22px 70px; position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.objectives li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-cyan); }
.objectives li::before {
  content: counter(obj, decimal-leading-zero);
  position: absolute; left: 18px; top: 18px;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-cta); color: #042133;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
}
.objectives li h4 { margin: 0 0 6px; color: var(--brand-navy); font-size: 1rem; }
.objectives li p { font-size: .9rem; margin: 0; }

/* ----------- Cluster project chips ----------- */
.cluster-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; padding: 0; list-style: none; margin: 0;
}
.cluster-list li {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 20px; position: relative;
}
.cluster-list li strong { color: var(--brand-navy); display: block; margin-bottom: 4px; }
.cluster-list li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-cyan); border-radius: 3px 0 0 3px;
}

/* ----------- Tag chip ----------- */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(19,196,215,.14); color: var(--brand-cyan-deep);
  font-size: .76rem; font-weight: 600; margin-right: 4px;
}

/* Responsive helpers */
@media (max-width: 660px) {
  .section { padding: 64px 0; }
  .hero { padding: 90px 0 70px; }
}

/* Print friendly */
@media print {
  .site-header, .site-footer, .utility-bar, .newsletter { display: none; }
}

/* ===== Single news article (WP post wrapped in v2 chrome) ===== */
.news-article {
  padding: 0 4px;
}
.news-article .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--brand-cyan-deep);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.news-article .article-meta .tag {
  background: rgba(19,196,215,.1);
  border: 1px solid rgba(19,196,215,.3);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--brand-teal);
}
.news-article .featured-image {
  width: 100%;
  border-radius: var(--radius);
  margin: 0 0 32px;
  display: block;
  box-shadow: var(--shadow);
}
.news-content {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1.05rem;
}
.news-content p {
  margin: 0 0 1.2em;
}
.news-content h2,
.news-content h3,
.news-content h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 2em 0 .6em;
  line-height: 1.25;
}
.news-content h2 { font-size: 1.6rem; }
.news-content h3 { font-size: 1.3rem; }
.news-content h4 { font-size: 1.1rem; }
.news-content a {
  color: var(--brand-cyan-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.news-content a:hover {
  color: var(--brand-teal);
}
.news-content strong { color: var(--ink); }
.news-content ul,
.news-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.news-content li {
  margin-bottom: .5em;
}
.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  display: block;
}
.news-content blockquote {
  border-left: 4px solid var(--brand-cyan);
  background: var(--bg-soft);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink);
}
.news-content figure {
  margin: 24px 0;
}
.news-content figcaption {
  font-size: .85rem;
  color: var(--ink-mute);
  margin-top: 8px;
  text-align: center;
}
.news-content iframe {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.article-back:hover {
  background: var(--brand-cyan);
  color: #fff;
  border-color: var(--brand-cyan);
  transform: translateX(-2px);
}
.article-tags-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.article-tags-row .label {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin-right: 6px;
}
.article-tags-row a {
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s ease;
}
.article-tags-row a:hover { background: var(--bg-soft-2); }
