/* Asociația Elemdiar: site styles
   Design system "Mountain Mint": navy and mint from the logo, one coral accent.
   Headings in Unbounded, body in Inter. Change colours, sizes and spacing
   in the tokens below; components only use these variables. */

/* Fonts are self-hosted (SIL Open Font License, files from Fontsource) so no visitor data goes to Google */
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  /* Colour */
  --ink: #0e2a3b;          /* navy: text, dark sections */
  --ink-2: #163a4f;        /* slightly lighter navy for hovers and borders on dark */
  --paper: #f7faf9;        /* page background */
  --surface: #ffffff;      /* cards */
  --muted: #4a6070;        /* secondary text (6.6:1 on white) */
  --line: #dde7e5;         /* hairlines */
  --brand: #9fdcd6;        /* logo mint: shapes, offset blocks, soft fills */
  --brand-soft: #e4f5f3;   /* mint tint: alternate sections, chips */
  --brand-deep: #1d6f68;   /* mint as text/links on light backgrounds (5.6:1) */
  --accent: #ff5a4e;       /* coral: the one accent, used as a fill behind navy text */
  --on-accent: #0e2a3b;
  --on-dark: #eaf3f5;      /* body text on navy */
  --on-dark-muted: #b4c8d2;

  /* Legacy aliases used by existing page markup */
  --mint: var(--brand);
  --mint-soft: var(--brand-soft);
  --navy: var(--ink);
  --teal: var(--brand-deep);
  --sun: var(--accent);
  --card: var(--surface);

  /* Typography */
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.07rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.22rem + 0.9vw, 1.85rem);
  --step-3: clamp(1.7rem, 1.38rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.05rem, 1.5rem + 2.8vw, 3.5rem);

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Shape and depth */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(14, 42, 59, .05), 0 8px 24px rgba(14, 42, 59, .08);
  --shadow-lift: 0 2px 4px rgba(14, 42, 59, .06), 0 18px 40px rgba(14, 42, 59, .14);
  --offset: 8px;           /* size of the mint block behind featured photos */

  /* Layout */
  --wrap: 1160px;
  --gutter: var(--space-4);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
}
@media (min-width: 720px) { :root { --gutter: var(--space-6); } }

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> wrappers (added at build for AVIF) must not change layout */
picture { display: contents; }
a { color: var(--brand-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: var(--space-2); z-index: 100;
  background: var(--ink); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-2); }

/* One focus style everywhere: navy ring with a coral halo, visible on light and dark */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--accent);
  border-radius: 6px;
}
.section-navy :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .cta :focus-visible { outline-color: #fff; }

/* =========================================================
   3. Header and navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); height: var(--header-h);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill);
}
.nav a:hover { background: var(--brand-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-deep); font-weight: 600; }

.nav-drop { position: relative; }
.nav-drop > button {
  font: inherit; font-weight: 500; font-size: 15.5px; color: var(--ink);
  background: none; border: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-drop > button:hover { background: var(--brand-soft); }
.nav-drop > button::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.nav-drop[data-open] > button::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-drop ul {
  list-style: none; margin: 0; padding: var(--space-2);
  position: absolute; top: calc(100% + var(--space-2)); left: 0; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  display: none;
}
.nav-drop[data-open] ul { display: block; }
.nav-drop ul a { display: block; border-radius: var(--radius-sm); padding: var(--space-3); }
.nav-drop ul small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; margin-left: var(--space-2);
}
.lang a { font-size: 13px; font-weight: 600; padding: 4px 10px; letter-spacing: .04em; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.btn-sm { min-height: 42px; padding: 0 var(--space-4); font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; padding: var(--space-3); cursor: pointer; color: var(--ink); min-width: 44px; min-height: 44px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform var(--dur) var(--ease);
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.site-header[data-menu-open] .menu-btn span { background: transparent; }
.site-header[data-menu-open] .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.site-header[data-menu-open] .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav { margin-left: 0; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--space-3) var(--gutter) var(--space-5);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .site-header[data-menu-open] .nav { display: flex; }
  .nav a, .nav-drop > button { padding: var(--space-3); font-size: 17px; width: 100%; justify-content: space-between; }
  .nav-drop ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 var(--space-3); display: block; background: none; min-width: 0; }
  .nav-drop > button { display: none; }
  .lang { align-self: flex-start; margin: var(--space-3) 0 0; }
}

/* =========================================================
   4. Buttons, chips, labels
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  font: 700 16px/1 var(--font-body); text-decoration: none;
  border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 color-mix(in srgb, var(--ink) 85%, transparent); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary, .btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn-accent:hover { color: var(--on-accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; box-shadow: 0 5px 0 var(--brand); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { color: var(--ink); }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: 0 5px 0 rgba(255, 255, 255, .35); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--radius-pill); padding: 6px 14px; font-size: 14.5px; font-weight: 500;
  backdrop-filter: blur(6px);
}

.eyebrow {
  display: inline-block; font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: var(--space-3);
}
.section-navy .eyebrow, .cta .eyebrow { color: var(--brand); }

/* =========================================================
   5. Photo treatment
   Featured photos: large radius + a mint block offset behind them.
   Thumbnails: same radius, zoom slightly on hover.
   ========================================================= */
.photo, .banner-img, .video, .map {
  border-radius: var(--radius-lg);
  box-shadow: var(--offset) var(--offset) 0 var(--brand);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo-accent { box-shadow: var(--offset) var(--offset) 0 var(--accent); }

/* =========================================================
   6. Hero
   ========================================================= */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(86vh, 760px); display: flex; align-items: flex-end;
  padding: var(--space-9) 0 var(--space-8);
}
.hero > img, .hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,42,59,.15) 0%, rgba(14,42,59,.4) 45%, rgba(14,42,59,.88) 100%);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { font-size: var(--step-1); max-width: 56ch; color: var(--on-dark); }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-sm { min-height: min(64vh, 560px); }
.hero-sm h1 { max-width: 20ch; }
.hero-pattern { background: var(--ink) url("../img/brand/pattern.jpg") center / cover; background-image: image-set(url("../img/brand/pattern.avif") type("image/avif"), url("../img/brand/pattern.jpg") type("image/jpeg")); background-blend-mode: soft-light; }
.hero-pattern::before { background: linear-gradient(180deg, rgba(14,42,59,.1), rgba(14,42,59,.55)); }

.crumbs { font-size: 14px; margin-bottom: var(--space-4); color: var(--on-dark); }
.crumbs a { color: #fff; }

/* =========================================================
   7. Sections and layout
   ========================================================= */
.section { padding: clamp(var(--space-8), 9vw, 112px) 0; }
.section-alt { background: var(--brand-soft); }
.section-navy { background: var(--ink); color: var(--on-dark); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 700px; margin-bottom: var(--space-7); }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.section-navy .section-head p { color: var(--on-dark-muted); }

.grid { display: grid; gap: var(--space-5); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.split { display: grid; gap: clamp(var(--space-6), 6vw, 72px); grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* =========================================================
   8. Statistics
   ========================================================= */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3);
  margin-top: calc(var(--space-7) * -1); position: relative; z-index: 2;
}
.stat { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: var(--space-5); }
.stat b {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: var(--step-4); line-height: 1;
  color: var(--accent); margin-bottom: var(--space-2); font-variant-numeric: tabular-nums;
}
.stat span { color: var(--on-dark); font-size: 15px; }

/* =========================================================
   9. Cards
   ========================================================= */
.card {
  background: var(--surface); border-radius: var(--radius); padding: var(--space-6);
  box-shadow: var(--shadow); border: 1px solid rgba(14, 42, 59, .04);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand);
  display: grid; place-items: center; margin-bottom: var(--space-4); color: var(--ink);
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); }
.card .more { font-weight: 700; text-decoration: none; color: var(--ink); }
.card .more::after { content: " →"; display: inline-block; transition: transform var(--dur) var(--ease); }
.card .more:hover::after { transform: translateX(4px); }

.project-card {
  background: var(--surface); border-radius: var(--radius); padding: var(--space-3);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }
.project-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand); border-radius: calc(var(--radius) - 6px); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover .thumb img { transform: scale(1.04); }
.project-card .body { padding: var(--space-5) var(--space-3) var(--space-3); display: flex; flex-direction: column; flex: 1; }
.project-card .tag {
  align-self: flex-start; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--brand-soft); border-radius: var(--radius-pill); padding: 4px 10px; margin-bottom: var(--space-3);
}
.project-card h3 { font-size: var(--step-2); }
.project-card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.project-card .meta { font-size: 14px; color: var(--ink); font-weight: 600; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }

/* =========================================================
   10. Quote
   ========================================================= */
.quote { font-family: var(--font-head); font-weight: 600; font-size: var(--step-2); line-height: 1.32; color: #fff; margin: 0; letter-spacing: -0.01em; }
.quote::before { content: "“"; display: block; font-size: 4em; line-height: .7; color: var(--accent); }
.quote-by { margin-top: var(--space-5); color: var(--brand); font-weight: 600; }

/* =========================================================
   11. Project facts, countries, lists, phases
   ========================================================= */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); margin: 0; }
.fact { background: var(--surface); border-radius: var(--radius); padding: var(--space-5); border: 1px solid var(--line); }
.fact dt { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.fact dd { margin: var(--space-1) 0 0; font-family: var(--font-head); font-size: var(--step-1); color: var(--ink); font-weight: 600; line-height: 1.3; }

.countries { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-3); }
.country {
  display: flex; align-items: center; gap: var(--space-4); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
}
.country img { width: 44px; height: 30px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.country b { display: block; color: var(--ink); }
.country span { font-size: 14px; color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2a3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.phases { display: grid; gap: var(--space-5); counter-reset: phase; }
.phase { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-5); align-items: start; }
.phase::before {
  counter-increment: phase; content: counter(phase);
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-head); font-size: var(--step-2); font-weight: 700;
}
.phase h3 { margin-bottom: var(--space-1); }
.phase h3 small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--brand-deep); margin-left: var(--space-2); }
.phase p { color: var(--muted); margin: 0; }

.prose h3 { margin-top: 1.6em; }
.prose h3:first-child { margin-top: 0; }
.activity-groups { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: var(--space-7); }
.activity-groups .card { padding: var(--space-5) var(--space-6); }
.activity-groups ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.activity-groups li { margin-bottom: var(--space-1); }
.banner-img { width: 100%; }

/* =========================================================
   12. In-page section nav
   ========================================================= */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; }
.subnav a {
  display: block; padding: var(--space-4) var(--space-3); white-space: nowrap; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent;
}
.subnav a:hover, .subnav a[aria-current="true"] { color: var(--ink); border-color: var(--accent); }

/* =========================================================
   13. Gallery and lightbox
   ========================================================= */
.gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.gallery-tall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (min-width: 720px) { .gallery-tall { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.gallery button {
  all: unset; cursor: zoom-in; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--brand-soft); position: relative;
}
.gallery button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-tall img { aspect-ratio: 1414 / 2000; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px var(--space-3) var(--space-3); font-size: 13.5px; font-weight: 600;
  color: #fff; background: linear-gradient(transparent, rgba(14,42,59,.85));
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 22, 32, .94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { color: var(--on-dark); margin-top: var(--space-4); text-align: center; min-height: 1.5em; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.lightbox button:hover { background: var(--accent); color: var(--on-accent); }
.lightbox button:focus-visible { outline-color: #fff; }
.lightbox .lb-close { top: var(--space-4); right: var(--space-4); }
.lightbox .lb-prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lightbox figure { padding: 64px var(--space-3) 80px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: var(--space-4); transform: none; }
}

/* =========================================================
   14. Testimonials
   ========================================================= */
.testimonials { columns: 3 300px; column-gap: var(--space-5); }
.testimonial {
  break-inside: avoid; margin: 0 0 var(--space-5); background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.testimonial img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; }
.testimonial blockquote { margin: 0; padding: var(--space-5) var(--space-5) var(--space-1); font-size: 16px; }
.testimonial figcaption { padding: 0 var(--space-5) var(--space-5); font-weight: 700; color: var(--ink); font-size: 15px; }
.testimonial figcaption span { color: var(--muted); font-weight: 400; }

/* =========================================================
   15. Media and downloads
   ========================================================= */
.video { aspect-ratio: 16 / 9; background: #000; }
.video iframe, .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map { aspect-ratio: 4 / 3; background: var(--brand-soft); }

.download {
  display: flex; align-items: center; gap: var(--space-4); background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: var(--space-4) var(--space-5); text-decoration: none; color: inherit;
  transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.download:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--offset) var(--offset) 0 var(--brand); color: inherit; }
.download .doc {
  flex: none; width: 48px; height: 60px; border-radius: 8px; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .05em;
}
.download b { display: block; color: var(--ink); font-size: var(--step-0); }
.download span { color: var(--muted); font-size: 14px; }

/* =========================================================
   16. Call to action
   ========================================================= */
.cta {
  background: var(--ink) url("../img/brand/pattern.jpg") center / cover; background-image: image-set(url("../img/brand/pattern.avif") type("image/avif"), url("../img/brand/pattern.jpg") type("image/jpeg")); background-blend-mode: soft-light;
  border-radius: var(--radius-lg); color: #fff; padding: clamp(var(--space-6), 6vw, var(--space-8));
  display: grid; gap: var(--space-6); grid-template-columns: 1.4fr 1fr; align-items: center;
  box-shadow: var(--offset) var(--offset) 0 var(--brand);
}
.cta h2 { color: #fff; }
.cta p { color: var(--on-dark); margin: 0; }
.cta .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* =========================================================
   17. Footer (the EU block must stay as it is)
   ========================================================= */
.site-footer { background: #0a2130; color: var(--on-dark-muted); padding: var(--space-8) 0 var(--space-6); font-size: 15px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } .footer-about { grid-column: auto; } }
.footer-about p { margin-bottom: var(--space-3); }
.footer-logo { background: #fff; border-radius: var(--radius); padding: var(--space-3) var(--space-4); display: inline-block; margin-bottom: var(--space-4); }
.footer-logo img { height: 46px; width: auto; }
.site-footer .footer-h { color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.eu {
  margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap;
}
.eu .badges { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.eu .badges img { height: 44px; width: auto; background: #fff; border-radius: var(--radius-sm); padding: 6px 10px; }
.eu p { flex: 1 1 380px; margin: 0; font-size: 13px; line-height: 1.55; color: #9fb4c0; }
.copyright { margin-top: var(--space-6); font-size: 13px; color: #8ea5b2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }

/* =========================================================
   18. Utilities and motion
   ========================================================= */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-6); }
.mt-3 { margin-top: var(--space-8); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections fade up as they scroll into view (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .project-card:hover, .testimonial:hover, .btn:hover, .download:hover { transform: none; }
}

/* =========================================================
   19. Homepage blocks
   ========================================================= */

/* Split hero: text + photo wall of real participant photos */
.hero-split { padding: var(--space-7) 0 var(--space-8); background: var(--paper); overflow: hidden; }
.hero-split .wrap { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .hero-split .wrap { grid-template-columns: 1fr 1fr; } .hero-split { padding: var(--space-8) 0 var(--space-9); } }
.hero-split h1 { max-width: 14ch; }
.hero-split h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 .06em; }
.hero-split .lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero-split .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-split .btn-outline { background: var(--surface); }

.wall { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 74px; gap: var(--space-3); }
@media (min-width: 480px) { .wall { grid-auto-rows: 96px; } }
@media (min-width: 960px) { .wall { grid-auto-rows: 88px; } }
.wall .photo { margin: 0; box-shadow: 6px 6px 0 var(--brand); }
.wall .photo:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 4; }
.wall .photo:nth-child(2) { grid-column: 5 / 7; grid-row: 1 / 3; box-shadow: 6px 6px 0 var(--accent); }
.wall .photo:nth-child(3) { grid-column: 5 / 7; grid-row: 3 / 5; }
.wall .photo:nth-child(4) { grid-column: 1 / 3; grid-row: 4 / 6; }
.wall .photo:nth-child(5) { grid-column: 3 / 5; grid-row: 4 / 6; box-shadow: 6px 6px 0 var(--accent); }
.wall .photo:nth-child(6) { grid-column: 5 / 7; grid-row: 5 / 6; }
.wall .photo img { aspect-ratio: auto; }

/* Find your path */
.paths { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path {
  display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--radius); padding: var(--space-5) var(--space-5) var(--space-6);
  border: 2px solid var(--line);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur) var(--ease);
}
.path:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--offset) var(--offset) 0 var(--brand); color: var(--ink); }
.path .who { font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); line-height: 1.2; }
.path .what { color: var(--muted); }
.path .go { margin-top: auto; padding-top: var(--space-3); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.path .go::after { content: "→"; transition: transform var(--dur) var(--ease); }
.path:hover .go::after { transform: translateX(4px); }
.path .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); display: grid; place-items: center; margin-bottom: var(--space-2); }
.path .icon svg { width: 24px; height: 24px; }

/* Upcoming */
.upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.up {
  display: grid; grid-template-columns: 1fr; gap: var(--space-3); align-items: start;
  background: var(--surface); border-radius: var(--radius); padding: var(--space-4) var(--space-5) var(--space-5); border: 1px solid var(--line);
}
.up .when { justify-self: start; }
@media (min-width: 760px) { .up { grid-template-columns: 96px 1fr auto; align-items: center; gap: var(--space-5); } .up .when { justify-self: stretch; } }
.up .when {
  background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3);
  text-align: center; line-height: 1.1; min-width: 72px;
}
.up .when b { display: block; font-family: var(--font-head); font-size: var(--step-2); color: var(--accent); }
.up .when span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.up h3 { margin: 0 0 var(--space-1); font-size: var(--step-1); }
.up p { margin: 0; color: var(--muted); font-size: 15px; }
.up .type {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--brand-soft); border-radius: var(--radius-pill); padding: 3px 10px; margin-bottom: var(--space-2);
}
.up .type-open-call { background: var(--accent); }
.up .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .up .btn { grid-column: auto; } }
.up-empty { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: var(--space-5); color: var(--muted); }

/* What we do: four strands */
.strands { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .strands { grid-template-columns: repeat(2, 1fr); } }
.strand { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); }
.strand .num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: var(--step-1);
}
.strand h3 { margin-bottom: var(--space-2); }
.strand p { color: var(--muted); margin-bottom: var(--space-2); }
.strand a { font-weight: 700; color: var(--ink); }

/* Countries list (becomes the interactive map later) */
.country-cloud { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.country-cloud li {
  display: inline-flex; align-items: center; gap: var(--space-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 6px 14px 6px 6px; font-weight: 600; font-size: 15px;
}
.country-cloud img { width: 28px; height: 20px; object-fit: cover; border-radius: 4px; }
.country-cloud small { color: var(--muted); font-weight: 500; }

/* Instagram grid */
.insta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
@media (min-width: 760px) { .insta { grid-template-columns: repeat(6, 1fr); gap: var(--space-3); } }
.insta a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--brand-soft); }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.insta a:hover img { transform: scale(1.06); }

/* Section header with a link on the right */
.section-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-top .section-head { margin-bottom: 0; }

/* =========================================================
   20. Placeholders: content the owner still needs to supply.
   Visible on purpose, so nothing goes live by accident.
   ========================================================= */
.placeholder {
  display: block; background: #fff7d6; color: #5c4400; border: 2px dashed #d9a400;
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: 15px; font-weight: 500; margin: var(--space-3) 0;
}
.placeholder::before { content: "To supply: "; font-weight: 800; }
span.placeholder { display: inline; padding: 1px 6px; margin: 0; font-size: inherit; }

/* Stats in their own section (no overlap with the hero) */
.stats-flat { margin-top: 0; }
.country-cloud .cc {
  display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 6px;
  background: var(--ink); color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-decoration: none;
}

/* =========================================================
   21. Inner pages
   ========================================================= */
.page-hero { padding: var(--space-7) 0 var(--space-7); background: var(--paper); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: var(--brand-soft); z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.page-hero-split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .page-hero-split { grid-template-columns: 1.15fr .85fr; } .page-hero { padding: var(--space-8) 0; } }
.page-hero .photo img { aspect-ratio: 4 / 3; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 900px) { .steps-row { grid-template-columns: repeat(5, 1fr); } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: var(--space-5); border: 1px solid var(--line); position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; margin-bottom: var(--space-3);
}
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* FAQ accordion */
.faq { display: grid; gap: var(--space-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5); font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.4rem; line-height: 1; color: var(--brand-deep); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--space-5) var(--space-5); color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Cost list: what's covered vs. what you pay */
.costs { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .costs { grid-template-columns: 1fr 1fr; } }
.costs .card h3 { display: flex; align-items: center; gap: var(--space-2); }

/* Forms */
.form { display: grid; gap: var(--space-4); background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); box-shadow: var(--offset) var(--offset) 0 var(--brand); border: 1px solid var(--line); }
@media (min-width: 720px) { .form { padding: var(--space-7); } }
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-3); min-height: 48px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-check { grid-template-columns: 24px 1fr; align-items: start; gap: var(--space-3); }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; font-size: 15px; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.form-status { margin: 0; font-weight: 600; }

/* Team */
.team { display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--surface); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow); }
.person .portrait { aspect-ratio: 1; border-radius: calc(var(--radius) - 6px); background: var(--brand-soft); display: grid; place-items: center; margin-bottom: var(--space-4); overflow: hidden; }
.person .portrait span { font-family: var(--font-head); font-weight: 700; font-size: 3rem; color: var(--brand-deep); }
.person h3 { margin-bottom: var(--space-1); }
.person .role { color: var(--brand-deep); font-weight: 700; font-size: 15px; margin-bottom: var(--space-3); }
.person p { color: var(--muted); font-size: 15.5px; }

/* Key/value lists (transparency, project facts) */
.kv { margin: 0; display: grid; gap: 0; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.kv > div { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
@media (min-width: 640px) { .kv > div { grid-template-columns: 220px 1fr; gap: var(--space-4); } }
.kv dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.kv dd { margin: 0; color: var(--muted); }

/* Project cards without a photo */
.thumb-flag { display: grid; place-items: center; background: var(--ink) url("../img/brand/pattern.jpg") center / cover; background-image: image-set(url("../img/brand/pattern.avif") type("image/avif"), url("../img/brand/pattern.jpg") type("image/jpeg")); background-blend-mode: soft-light; }
.thumb-flag span { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: var(--step-0); text-align: center; padding: var(--space-4); }
.project-local .thumb-flag { background-color: var(--brand-deep); }

/* Simple two-column feature list */
.features { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features-3 { grid-template-columns: repeat(3, 1fr); } }
.features .card h3 { margin-bottom: var(--space-2); }

.callout { background: var(--brand-soft); border-left: 6px solid var(--brand-deep); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-5); }
.callout p:last-child { margin: 0; }
.prose-block { max-width: 70ch; }
.prose-block p { color: var(--ink); }
.logo-row { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.logo-row li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-weight: 600; }
.logo-row small { display: block; color: var(--muted); font-weight: 500; }

.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form fieldset legend { margin-bottom: var(--space-2); padding: 0; }
.nowrap { white-space: nowrap; }

/* =========================================================
   22. News and stories
   ========================================================= */
.posts { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: var(--space-3);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }
.post-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; border-radius: calc(var(--radius) - 6px); background: var(--brand-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: var(--space-4) var(--space-3) var(--space-3); display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: var(--step-1); }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card .more { margin-top: auto; font-weight: 700; color: var(--ink); }
.post-card .more::after { content: " →"; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: var(--space-2); }
.post-meta .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--brand-soft); color: var(--ink); border-radius: var(--radius-pill); padding: 3px 10px; }

.post-head { padding: var(--space-7) 0 var(--space-5); }
.post-head h1 { font-size: var(--step-3); max-width: 22ch; }
.post-head .lead { font-size: var(--step-1); color: var(--muted); }
.crumbs-dark { font-size: 14px; margin-bottom: var(--space-4); }
.crumbs-dark a { color: var(--brand-deep); font-weight: 600; }
.crumbs-dark a::before { content: "← "; }
.post-cover { margin: 0 0 var(--space-2); }
.post-cover img { aspect-ratio: 3 / 2; }
.post-credit { font-size: 13px; color: var(--muted); margin: var(--space-3) 0 0; }

.post-body { padding-top: var(--space-6); padding-bottom: var(--space-6); font-size: 18px; line-height: 1.7; }
.post-body > * { max-width: 68ch; }
.post-body h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.post-body h3 { margin-top: var(--space-6); }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 var(--space-4); }
.post-body li { margin-bottom: var(--space-2); }
.post-body li::marker { color: var(--brand-deep); font-weight: 700; }
.post-body blockquote {
  margin: var(--space-6) 0; padding: var(--space-4) var(--space-5); border-left: 6px solid var(--accent);
  background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--step-1); font-weight: 500;
}
.post-body blockquote p:last-child { margin: 0; }
.post-body img { border-radius: var(--radius); margin: var(--space-5) 0; }
.post-body a { font-weight: 600; }
.post-foot { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-bottom: var(--space-8); }

/* =========================================================
   23. Click-to-load video and map
   ========================================================= */
.video-facade { position: relative; display: grid; place-items: center; background: var(--ink); }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-play {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--space-2);
  font: 700 17px/1 var(--font-body); color: var(--on-accent); background: var(--accent); border: 0; border-radius: var(--radius-pill);
  min-height: 56px; padding: 0 var(--space-6); cursor: pointer; transition: transform var(--dur) var(--ease);
}
.video-play:hover { transform: scale(1.05); }
.embed-note { position: absolute; z-index: 1; left: var(--space-4); right: var(--space-4); bottom: var(--space-3); margin: 0; font-size: 13px; color: #e6eef2; text-align: center; }
.embed-note a { color: #fff; }
.map-facade { display: grid; place-items: center; background: var(--brand-soft) url("../img/brand/pattern.jpg") center / cover; background-image: image-set(url("../img/brand/pattern.avif") type("image/avif"), url("../img/brand/pattern.jpg") type("image/jpeg")); background-blend-mode: luminosity; }
.map-cover { text-align: center; padding: var(--space-5); display: grid; gap: var(--space-3); justify-items: center; background: rgba(255,255,255,.88); border-radius: var(--radius); margin: var(--space-4); }
.map-cover .embed-note { position: static; color: var(--muted); }
.map-cover .embed-note a { color: var(--brand-deep); }
.map-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); }

/* =========================================================
   24. Project pages
   ========================================================= */
@media (min-width: 900px) { .phases-row { grid-template-columns: repeat(3, 1fr); } }
.phases-row h3 small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 600; margin-top: var(--space-1); }
.chips-light .chip { background: var(--surface); color: var(--ink); border: 1px solid var(--line); backdrop-filter: none; }
.tag-flag { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: var(--space-3); }
.tag-flag img { width: 28px; height: 19px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* =========================================================
   25. Policies
   ========================================================= */
.page-hero-slim { padding: var(--space-6) 0 var(--space-5); }
.page-hero-slim h1 { font-size: var(--step-3); }
.policy-body { padding-top: var(--space-5); }
.policy-body > blockquote:first-child {
  margin-top: 0; background: var(--ink); color: var(--on-dark); border: 0; border-radius: var(--radius);
  box-shadow: var(--offset) var(--offset) 0 var(--brand); font-size: 17px; font-weight: 400; padding: var(--space-5) var(--space-6);
}
.policy-body > blockquote:first-child strong { color: var(--brand); font-family: var(--font-head); font-size: var(--step-1); }
.policy-body > blockquote:first-child li::marker { color: var(--accent); }
.policy-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: var(--space-4) 0 var(--space-5); display: block; overflow-x: auto; }
.policy-body th, .policy-body td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.policy-body th { background: var(--brand-soft); }
.policy-grid { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .policy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .policy-grid { grid-template-columns: repeat(4, 1fr); } }
.policy-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.policy-card:hover { color: inherit; }
.policy-card p { flex: 1; font-size: 15.5px; }
.policy-list { columns: 2 220px; padding-left: 1.2em; }
.policy-list li { margin-bottom: var(--space-2); }

/* Items the owner still has to confirm (visible on purpose) */
.check { display: block; background: #e8f1ff; color: #123a73; border: 2px dashed #5b8fd9; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font-size: 15px; font-weight: 500; margin: var(--space-2) 0; }
.check::before { content: "To confirm: "; font-weight: 800; }
li .check, td .check { display: inline; padding: 1px 6px; margin: 0; }

/* =========================================================
   26. Interactive map
   ========================================================= */
.eu-map { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 900px) { .eu-map { grid-template-columns: 1.5fr 1fr; } .eu-map-buttons { grid-column: 1 / -1; } }
.eu-map-figure { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--offset) var(--offset) 0 var(--brand); border: 1px solid var(--line); }
.eu-map svg { display: block; width: 100%; height: auto; }
.eu-map path { fill: #e7ecea; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.eu-map path.c-on { fill: var(--brand); cursor: pointer; transition: fill var(--dur); }
.eu-map path.c-home { fill: var(--accent); }
.eu-map path.c-next { fill: #cfe9e6; stroke-dasharray: 4 3; stroke: var(--brand-deep); }
.eu-map path.c-on:hover { fill: var(--brand-deep); }
.eu-map path.is-selected { fill: var(--ink); }
.eu-map path:focus-visible { outline: none; stroke: var(--ink); stroke-width: 3; fill: var(--brand-deep); }
.eu-map-legend { list-style: none; padding: 0; margin: var(--space-3) var(--space-2) var(--space-1); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 13.5px; color: var(--muted); }
.eu-map-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-home { background: var(--accent); } .sw-on { background: var(--brand); } .sw-next { background: #cfe9e6; border: 1.5px dashed var(--brand-deep); }

.eu-map-panel { display: grid; gap: var(--space-4); }
.eu-map-country { background: var(--surface); border-radius: var(--radius); padding: var(--space-5); border: 1px solid var(--line); }
.eu-map.is-interactive .eu-map-country { display: none; }
.eu-map.is-interactive .eu-map-country.is-shown { display: block; animation: pop .3s var(--ease); }
.eu-map:not(.is-interactive) .eu-map-hint, .eu-map:not(.is-interactive) .eu-map-buttons { display: none; }
.eu-map-hint { color: var(--muted); margin: 0; }
.eu-map-country h3 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--step-2); }
.eu-map-country h3 img { width: 36px; height: 24px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.eu-map-projects { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.eu-map-projects li { display: grid; gap: 2px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.eu-map-projects a, .eu-map-projects b { font-weight: 700; color: var(--ink); }
.eu-map-projects small { color: var(--muted); font-size: 14px; }
.eu-map-partners { font-size: 15px; color: var(--muted); margin: 0; }
.eu-map-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Chip buttons (map countries, timeline filters) */
.chip-btn {
  font: 600 14.5px/1 var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); padding: 10px 16px; min-height: 40px; cursor: pointer; transition: background var(--dur), border-color var(--dur);
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Role tags */
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 3px 10px; background: var(--brand-soft); color: var(--ink); justify-self: start; }
.tag-partner { background: #ffe1de; }
.tag-local { background: #fff1c9; }

/* =========================================================
   27. Timeline
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--space-5); position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; background: var(--brand); border-radius: 3px; }
@media (min-width: 760px) { .timeline { padding-left: 120px; } .timeline::before { left: 95px; } }
.tl-item { position: relative; margin-bottom: var(--space-5); }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-5) + 1px); top: 22px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--ink);
}
@media (min-width: 760px) { .tl-item::before { left: -31px; } }
.tl-item[data-status="upcoming"]::before { border-color: var(--brand-deep); border-style: dashed; }
.tl-year { display: block; font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); color: var(--ink); margin-bottom: var(--space-2); }
.tl-year-same { display: none; }
@media (min-width: 760px) {
  .tl-year { position: absolute; left: -120px; top: 14px; width: 72px; text-align: right; margin: 0; }
  .tl-year-same { display: block; visibility: hidden; }
}
.tl-card {
  display: grid; gap: var(--space-4); background: var(--surface); border-radius: var(--radius); padding: var(--space-4);
  box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }
@media (min-width: 640px) { .tl-card { grid-template-columns: 180px 1fr; align-items: start; } .tl-card:not(:has(img)) { grid-template-columns: 1fr; } }
.tl-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(var(--radius) - 6px); }
.tl-card h3 { margin: var(--space-2) 0 var(--space-1); font-size: var(--step-1); }
.tl-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.tl-card .tl-meta { color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: var(--space-2); }

/* =========================================================
   28. Photo wall entrance
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .wall .photo { animation: wall-in .7s var(--ease) both; }
  .wall .photo:nth-child(2) { animation-delay: .08s; }
  .wall .photo:nth-child(3) { animation-delay: .16s; }
  .wall .photo:nth-child(4) { animation-delay: .24s; }
  .wall .photo:nth-child(5) { animation-delay: .32s; }
  .wall .photo:nth-child(6) { animation-delay: .4s; }
}
@keyframes wall-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.eu-map path.c-home.is-selected { fill: #d93d32; }
.eu-map path.is-selected { stroke: var(--ink); stroke-width: 2.5; }

/* Long words in big headings must never push the page wider than a small phone */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 380px) { h1 { font-size: 1.85rem; hyphens: auto; } h2 { hyphens: auto; } }
.hero > .wrap, .hero-split .wrap > *, .page-hero .wrap > * { min-width: 0; }
.hero > .wrap { width: 100%; }

/* Form result messages */
.form-status:empty { display: none; }
.form-status { border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); }
.form-status.is-ok { background: #e3f6ea; color: #0b5d2e; border: 2px solid #3fae6a; }
.form-status.is-error { background: #fdecea; color: #8c1d18; border: 2px solid #e2584e; }
.form-status:focus { outline: none; box-shadow: none; }

/* Policy tables become labelled cards on small screens */
@media (max-width: 700px) {
  .policy-body table.table-cards { display: block; overflow: visible; }
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-cards tbody, .table-cards tr, .table-cards td { display: block; }
  .table-cards tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); }
  .table-cards td { border: 0; padding: var(--space-1) 0; }
  .table-cards td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); }
  .table-cards td:first-child { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
}
.policy-body thead:not(:has(th:not(:empty))) { display: none; }
