/* EUCLI website. Built from the Figma file "Workshop - Landingpage" (desktop canvas 1905px wide). */

:root {
  --blue: #276ed2;
  --blue-dark: #1f5db5;
  --navy: #1b3a6b;
  --ink: #0c1929;
  --ink-2: #121212;
  --text: #334155;
  --text-card: #4d4e61;
  --muted: #5e6a7a;
  --legend: #0f2348;
  --yellow: #fbc508;
  --page: #f7fafd;
  --white: #ffffff;
  --line: #e3e6ea;
  --portal-blue: #24658c;
  --portal-blue-hover: #1d5473;
  --portal-ink: #182a47;
  --portal-text: #334458;
  --portal-muted: #617083;
  --portal-soft: #f7f9fb;
  --stripe: linear-gradient(90deg, #82d0c8 0 25%, #f5a687 25% 50%, #b19cdb 50% 75%, #f5d59e 75% 100%);

  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-team: 'Space Grotesk', 'Inter', sans-serif;

  --container: 1703px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-card: 14.44px;
  --shadow-card: 0 0 1.2px rgba(40, 41, 61, .04), 0 2.4px 4.8px rgba(96, 97, 112, .16);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 84px; }
strong, b { font-weight: 600; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.63;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
/* Anything marked hidden stays hidden, even if its style says display: flex or grid */
[hidden] { display: none !important; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 98%; /* every page uses 98% of the width, centred */
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(1600px + 2 * var(--gutter)); }

/* Highlighted words: blue on light backgrounds, yellow on blue ones */
/* Logo-tile decorations appear only in the brand theme */
.deco { display: none; }

.hl { color: var(--blue); }
.on-blue .hl { color: var(--yellow); }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.display--lg { font-size: clamp(38px, 4.2vw, 80px); line-height: 0.94; font-variation-settings: "opsz" 14; }
.display--md { font-size: clamp(32px, 3.36vw, 64px); line-height: 1.08; }

.eyebrow {
  font-size: clamp(14px, 1.05vw, 20px);
  line-height: 1.64;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-inline: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 2px solid var(--blue);
  border-radius: 73px;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600; line-height: 1.53;
  text-align: center;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--outline { background: transparent; color: var(--blue); }
.btn--outline:hover { background: rgba(39, 110, 210, .08); }
.btn--outline-white { border-color: var(--white); color: var(--white); }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--white:hover { background: #eef3fb; }
.btn--sm { min-height: 41px; min-width: 156px; padding-block: 6px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 22px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding-block: 10px;
  font-size: 16px; font-weight: 600; line-height: 1.53;
}

/* ---------- Header (matches the member portal) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background-color .25s;
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1440px; min-height: 76px;
  margin: 0 auto;
  padding: 0 32px;
  transition: min-height .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 2px rgba(15, 35, 72, .04), 0 8px 24px rgba(15, 35, 72, .07); }
.site-header.is-scrolled .site-header__inner { min-height: 58px; }
.site-header.is-scrolled .brand__mark { width: 30px; height: 30px; }
.site-header.is-scrolled .brand__word { font-size: 20px; }
.site-header.is-scrolled .main-nav ul a { font-size: 15px; padding-block: 6px; }
.site-header.is-scrolled .btn--sm { min-height: 38px; padding-block: 5px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; transition: width .25s ease, height .25s ease; }
.brand__word {
  font-family: var(--font-body);
  font-weight: 800; font-size: 24px; line-height: 1;
  letter-spacing: -.02em;
  color: var(--portal-ink);
  transition: font-size .25s ease;
}
.brand--footer { gap: 10px; }
.brand--footer .brand__mark { width: 32px; height: 32px; }
.brand--footer .brand__word { font-size: 21px; }

.main-nav { display: flex; align-items: center; flex: 1; justify-content: space-between; gap: 24px; }
.main-nav ul { display: flex; gap: clamp(0px, .6vw, 8px); margin-inline: auto; }
.main-nav ul a {
  display: block;
  padding: 10px clamp(8px, 1vw, 16px);
  border-radius: 8px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14;
  font-size: 16px; font-weight: 500; line-height: 1.36;
  color: var(--portal-text);
  white-space: nowrap;
}
.main-nav ul a:hover { background: #f4f8fb; color: var(--portal-blue); text-decoration: none; }
.main-nav__actions { display: flex; gap: 10px; }

/* Portal buttons: 9px radius, primary blue, white secondary */
.site-header .btn, .not-found .btn { border-radius: 9px; border-width: 1px; font-size: 15px; }
.site-header .btn--primary { background: var(--portal-blue); border-color: var(--portal-blue); color: var(--white); }
.site-header .btn--primary:hover { background: var(--portal-blue-hover); border-color: var(--portal-blue-hover); }
.btn--secondary { background: var(--white); border-color: #cdd3dc; color: #15233b; }
.btn--secondary:hover { background: #f4f8fb; }
.btn--sm { min-height: 44px; min-width: 0; padding: 8px 20px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--portal-ink);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 2px; margin: 0 auto;
  background: currentColor; border-radius: 2px;
  position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding: 16px clamp(16px, 3.6vw, 68px) 0; }
.hero__frame {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: clamp(520px, 40.9vw, 779px);
  max-width: 1769px; margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__panel {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  width: min(570px, 100%);
  margin: 40px 0 clamp(24px, 4.25vw, 81px) clamp(16px, 4.3vw, 76px);
  padding: 32px;
  border-radius: 36px;
  background: rgba(255, 255, 255, .83);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__title {
  max-width: 7.6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(38px, 3.36vw, 64px);
  line-height: 1.11;
  color: var(--ink);
}
.hero__text { font-size: clamp(17px, 1.05vw, 20px); line-height: 1.64; margin: 10px 0 16px; }
.hero__panel .btn-row .btn--primary { min-width: 206px; }
.hero__panel .btn-row .btn--outline { min-width: 231px; }
.hero__note { font-style: italic; color: var(--muted); font-size: 18px; line-height: 1.82; padding-top: 4px; }

/* ---------- Intro ---------- */

.intro { padding: 56px 0 64px; text-align: center; }
.intro .display { max-width: 22em; margin: 0 auto 22px; font-size: clamp(30px, 3.3vw, 58px); }
.intro__text { max-width: 900px; margin: 0 auto; font-size: clamp(17px, 1.05vw, 19px); line-height: 1.7; }

/* ---------- Shared bands, grids, cards ---------- */

.band--white { background: var(--white); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-3--wide-gap { gap: clamp(16px, 3vw, 52px); }

.card {
  transition: transform .3s ease, box-shadow .3s ease;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ---------- Values ---------- */

.values { padding: 75px 0 87px; }
.values .grid-3 { gap: clamp(20px, 2vw, 32px); width: 98%; margin-inline: auto; }
/* Every box in the values grid is as tall as the tallest one (on phones they stack at their own height) */
@media (min-width: 681px) {
  .values .grid-3 { grid-auto-rows: 1fr; }
}

.card--blue {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  min-height: 354px;
  padding: 32px 48px 32px 24px;
  background: var(--blue);
  color: var(--white);
  font-size: 18px; line-height: 1.28;
}
.card--blue__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 14;
  font-size: clamp(32px, 2.52vw, 48px);
  line-height: 1.02;
  margin-bottom: 12px;
}

.value-card { display: flex; flex-direction: column; gap: 19px; padding-bottom: 16px; }
.value-card__media { position: relative; aspect-ratio: 557 / 239.46; }
.value-card__media > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.value-card__body { padding: 0 24px; color: var(--text-card); font-size: 18px; line-height: 1.2; letter-spacing: .24px; }
.value-card__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14;
  font-weight: 600;
  font-size: 24px; line-height: 1.2;
  color: var(--ink-2);
  text-align: left;
  margin-bottom: 5px;
  letter-spacing: 0;
}

/* ---------- Problem + map ---------- */

.problem { padding: 88px 0; }
.problem__title { line-height: 1.16; }
.problem__text { max-width: 860px; margin: 28px 0 48px; }
.problem__text p + p { margin-top: 14px; }

.map { position: relative; border-radius: 43px; overflow: hidden; }
.map__img { width: 100%; height: auto; aspect-ratio: 1691 / 878; object-fit: cover; object-position: top; }
/* Home map: image and dots share one frame, so they always crop and scale together */
.map__art { position: relative; aspect-ratio: 1691 / 878; overflow: hidden; }
.map__art .map__img, .map__dots { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: fill; object-position: 0 0; }
.map__dots { pointer-events: none; }
.map__legend {
  position: absolute; left: 3.55%; bottom: 7.4%;
  display: grid; gap: 18px;
  width: min(440px, 40%);
  padding: 33px 27px;
  background: var(--white);
  border-radius: 18px;
  font-size: 19.6px; font-weight: 500; line-height: 1.43; letter-spacing: .14px;
  color: var(--legend);
}
.map__legend li { display: flex; align-items: center; gap: 35px; }
.map__legend ul { display: grid; gap: inherit; margin: 0; padding: 0; list-style: none; }

/* Home map: lines between dots, two views (local / connected) and a clickable legend */
.map__views {
  position: absolute; top: 22px; left: 3.55%; z-index: 2;
  display: flex; gap: 4px; padding: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
}
.map__views[hidden] { display: none; }
.map__view {
  padding: 9px 16px; border: 0; border-radius: 999px; background: transparent;
  font: 600 14px/1.2 var(--font-body); color: var(--text-card); cursor: pointer;
}
.map__view:hover { color: var(--ink); }
.map__view[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.map__links line { stroke-linecap: round; transition: opacity .4s ease; }
.map__links--local line { stroke: #9fb3c4; stroke-width: 2; opacity: .85; }
.map__links--wide line {
  stroke-width: 2.4; stroke-opacity: .8;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s ease, opacity .4s ease;
}
.map[data-view="connected"] .map__links--wide line { stroke-dashoffset: 0; }
.map[data-view="connected"] .map__links--local line { opacity: .3; }
.map__dots circle { transition: opacity .4s ease; }
.map[data-focus] .map__dots circle, .map[data-focus] .map__links--wide line { opacity: .12; }
.map[data-focus] .map__links--local line { opacity: .15; }
.map[data-focus="0"] .map__dots [data-type="0"], .map[data-focus="1"] .map__dots [data-type="1"], .map[data-focus="2"] .map__dots [data-type="2"],
.map[data-focus="3"] .map__dots [data-type="3"], .map[data-focus="4"] .map__dots [data-type="4"], .map[data-focus="5"] .map__dots [data-type="5"] { opacity: 1; }
/* A highlighted type always shows its links, also in the "local" view */
.map[data-focus] .map__links--wide line { stroke-dashoffset: 0; }
.map__key {
  display: flex; align-items: center; gap: inherit; width: calc(100% + 16px);
  margin: -4px -8px; padding: 4px 8px;
  border: 0; border-radius: 8px; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.map__key:hover { background: #f4f8fb; }
.map__key[aria-pressed="true"] { background: #eef3f7; font-weight: 600; }
.map[data-focus] .map__key[aria-pressed="false"] { opacity: .55; }
.map__hint { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .map__links line, .map__dots circle { transition: none; }
}
.map__dot { flex: none; width: 28px; height: 28px; border-radius: 50%; }

/* ---------- Ecosystem ---------- */

.ecosystem { padding: 120px 0 48px; }
.split-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  margin-bottom: 119px;
}
.split-head .display { max-width: 936px; }
.split-head p { flex: 0 0 auto; width: min(485px, 100%); font-size: 18px; line-height: 1.63; }
.split-head--stack { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 56px; }
.split-head--stack p { width: min(780px, 100%); }

.eco-card { display: flex; flex-direction: column; gap: 19px; padding: 24px 0 16px; }
.eco-card__img { width: calc(100% - 48px); margin: 0 24px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.eco-card__body { display: flex; flex-direction: column; gap: 5px; padding: 0 24px; color: var(--text-card); font-size: 18px; line-height: 1.5; letter-spacing: .24px; }
.eco-card__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14;
  font-weight: 600; font-size: 24px; line-height: 1.2;
  letter-spacing: 0;
  color: var(--text-card);
}
.eco-card__body { flex: 1; }
.eco-card .eco-card__icon { width: 64px; height: 64px; margin: 4px 24px 0; }
.eco-card .eco-card__icon svg { width: 30px; height: 30px; }
.eco-card .arrow-link { align-self: flex-start; margin-top: auto; padding-top: 8px; }
.arrow-link__icon { width: 16px; height: 16px; color: var(--blue); }

/* ---------- Audience ---------- */

.audience { padding: 24px 0 120px; }
.audience__head {
  display: grid; grid-template-columns: 923fr 858fr; gap: 16px; align-items: center;
  margin-bottom: 62px;
}
.audience__art { position: relative; aspect-ratio: 923 / 833; margin: -6% 0 0 -4%; }
.audience__art img { position: absolute; }
.audience__dots { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .24; }
.audience__circle--large { left: 23.9%; top: 21.4%; width: 49.2%; }
.audience__circle--small { left: 17.1%; top: 65.1%; width: 28.3%; }
.audience__circle--group { left: 66.2%; top: 22.8%; width: 23.6%; }
.audience__copy .display { margin: 4px 0 26px; max-width: 838px; }
.audience__text { font-size: clamp(19px, 1.68vw, 32px); line-height: 1.1; }

.who-card { display: flex; flex-direction: column; gap: 19px; min-height: 450px; padding-bottom: 16px; }
.who-card__img { width: 100%; aspect-ratio: 557 / 239.46; object-fit: cover; }
.who-card__body { padding: 0 24px; color: var(--text-card); font-size: 18px; line-height: 1.63; }
.who-card__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14;
  font-weight: 600; font-size: clamp(22px, 1.47vw, 28px); line-height: 1.03;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.who-card__subtitle { color: var(--blue); font-weight: 600; line-height: 1.82; margin-bottom: 4px; }

/* ---------- Mission (blue band) ---------- */

.mission { background: var(--blue); color: var(--white); padding: 110px 0; }
.mission__inner { display: grid; grid-template-columns: 828fr 723fr; gap: clamp(32px, 6vw, 114px); align-items: center; }
.mission .display { color: var(--white); line-height: 1.09; margin-bottom: 18px; font-variation-settings: "opsz" 14; }
.mission__text { font-size: clamp(19px, 1.68vw, 32px); line-height: 1.1; }
.audience__cards { gap: clamp(20px, 2vw, 32px); }
.mission__img { width: 100%; aspect-ratio: 723 / 497; object-fit: cover; border-radius: 16px; }

/* ---------- Story + team ---------- */

.story { position: relative; padding: 120px 0 104px; overflow: hidden; }
.story__bg {
  position: absolute; z-index: 0;
  left: 10.5%; top: -60px;
  width: 104%; max-width: none;
  opacity: .09;
  pointer-events: none;
}
.story .container { position: relative; z-index: 1; }
.story__title { max-width: 812px; line-height: 1.08; }
.team-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.team-nav[hidden] { display: none; }
.team-nav__btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #cdd3dc; border-radius: 50%;
  background: var(--white); color: var(--ink); cursor: pointer;
}
.team-nav__btn:hover:not(:disabled) { background: #f4f8fb; }
.team-nav__btn:disabled { opacity: .35; cursor: default; }

.team {
  position: relative; z-index: 1;
  display: flex; gap: 17px;
  margin-top: 16px;
  padding: 0 var(--gutter) 20px clamp(16px, 3.7vw, 70px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(16px, 3.7vw, 70px);
}
/* Scroll line in the brand colours (Chrome, Safari, Edge); Firefox gets a teal line */
.team::-webkit-scrollbar { height: 6px; }
.team::-webkit-scrollbar-track { margin: 0 var(--gutter) 0 clamp(16px, 3.7vw, 70px); border-radius: 3px; background: var(--line); }
.team::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--stripe); }
@supports not selector(::-webkit-scrollbar) {
  .team { scrollbar-width: thin; scrollbar-color: #82d0c8 var(--line); }
}
/* About 4.6 cards fit across, so the last one in view is always cut off: a clear sign the row scrolls */
.flip-card {
  flex: 0 0 auto;
  width: clamp(230px, calc((100vw - clamp(16px, 3.7vw, 70px)) / 4.6 - 17px), 400px);
  aspect-ratio: 359 / 530;
  scroll-snap-align: start;
}
/* Each side turns on its own, so the side in view is never rotated and always takes clicks */
.flip-card__inner { position: relative; width: 100%; height: 100%; perspective: 1400px; }
.flip-card.is-flipped .flip-card__front { transform: rotateY(-180deg); }
.flip-card.is-flipped .flip-card__back { transform: none; }
/* Only the side facing the visitor takes clicks */
.flip-card__back, .flip-card.is-flipped .flip-card__front { pointer-events: none; }
.flip-card.is-flipped .flip-card__back { pointer-events: auto; }
.flip-card__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.flip-card__front {
  justify-content: flex-end; align-items: center;
  padding: 0 16px 28px;
  background: #dfe6ef;
  color: var(--white);
  text-align: center;
}
.flip-card__front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip-card__front::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background: linear-gradient(0deg, rgb(1, 17, 39) 0.4%, rgba(9, 28, 57, .65) 46%, rgba(23, 49, 89, 0) 99.5%);
}
.flip-card__front .flip-card__name, .flip-card__front .flip-card__role { position: relative; z-index: 1; }
.flip-card__name { font-family: var(--font-team); font-weight: 700; font-size: 20px; line-height: 1.5; letter-spacing: -.3px; }
.flip-card__role { font-family: var(--font-team); font-weight: 700; font-size: 16px; line-height: 1.5; letter-spacing: -.3px; }
.flip-card__toggle {
  position: absolute; inset: 0; z-index: 2;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  border-radius: 16px;
}
.flip-card__hint {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--ink);
}
.flip-card__back {
  transform: rotateY(180deg);
  padding: 28px 28px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
.flip-card__back .flip-card__name { font-size: 24px; line-height: 1.25; }
.flip-card__back .flip-card__role { line-height: 1.5; margin-top: 4px; color: var(--text-card); }
/* Longer bios fade out at the bottom; "Read full bio" leads to the whole text */
.flip-card__bio {
  flex: 0 1 auto; min-height: 0; margin: 18px 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.flip-card__more { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--blue); text-decoration: none; }
.flip-card__more:hover { text-decoration: underline; }
.flip-card__social { display: flex; gap: 6px; margin-top: auto; padding-top: 14px; }
.flip-card__social a { display: grid; color: var(--blue); }
.flip-card__social svg { width: 32px; height: 32px; }
.flip-card__back-btn {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid #cdd3dc; border-radius: 50%;
  background: var(--white); color: var(--ink); cursor: pointer;
}
.flip-card__back .flip-card__name { padding-right: 36px; }
.flip-card__back-btn:hover { background: #f4f8fb; }

/* ---------- Footer ---------- */

.site-footer { padding-top: 64px; }

.cta-banner {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: clamp(360px, 23vw, 439px);
  border-radius: 21px;
  overflow: hidden;
}
.cta-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner__panel {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
  width: min(571px, 100%);
  min-height: 295px;
  margin: 0 0 26px 19px;
  padding: 32px 27px;
  border-radius: 21px;
  background: rgba(25, 97, 212, .79);
  color: var(--white);
}
.cta-banner__title {
  max-width: 560px;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  font-size: clamp(28px, 2.3vw, 42px);
  line-height: 1.15;
}

/* Footer (matches the member portal): soft panel with the four-colour line on top */
.footer-portal {
  position: relative;
  padding: 34px 32px 28px;
  background: var(--portal-soft);
  color: var(--portal-muted);
  font-size: 14px; font-weight: 400; line-height: 1.5;
}
.site-footer > .container + .footer-portal { margin-top: 64px; }
.footer-portal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--stripe); }
.footer-portal__inner {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px;
  max-width: 1440px; margin: 0 auto 18px;
}
.footer-portal__tagline { display: block; margin-top: 6px; font-size: 12px; color: var(--portal-muted); }
.footer-portal__links { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-portal__links a { color: var(--portal-blue); font-weight: 600; }
.footer-portal__note {
  max-width: 1440px; margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.6;
}
.footer-portal__note strong { color: #15233b; }
.footer-portal__note a { color: var(--portal-blue); }
.cookie-settings-link {
  align-self: flex-end;
  padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}

/* Analytics consent banner (same as the portal) */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 1000;
  max-width: 560px; margin: 0 auto; padding: 16px 18px;
  background: var(--white); color: #15233b;
  border: 1px solid #dce4ec; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(21, 35, 59, .18);
  font: 400 14px/1.5 var(--font-body);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 12px; }
.consent-banner a { color: var(--portal-blue); }
.consent-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-banner button { padding: 9px 16px; border-radius: 999px; border: 1px solid #1b3a6b; font: 600 14px/1 var(--font-body); cursor: pointer; }
.consent-banner__accept { background: #1b3a6b; color: var(--white); }
.consent-banner__decline { background: var(--white); color: #1b3a6b; }

/* ---------- Responsive ---------- */

@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 35, 72, .06);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: 2px; margin: 0; }
  .main-nav ul a { padding: 12px; }
  .main-nav__actions { gap: 10px; flex-wrap: wrap; }
  .main-nav__actions .btn { flex: 1 1 140px; }
}

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-head { flex-direction: column; align-items: flex-start; margin-bottom: 56px; }
  .audience__head { grid-template-columns: 1fr; }
  .audience__art { width: min(640px, 100%); margin: 0 auto; }
  .mission__inner { grid-template-columns: 1fr; }
  .ecosystem { padding-top: 120px; }
  .map__legend { width: min(400px, 46%); padding: 22px; gap: 12px; font-size: 16px; }
  .map__legend li { gap: 16px; }
  .map__dot { width: 20px; height: 20px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding-top: 12px; }
  .hero__frame { min-height: 0; flex-direction: column; border-radius: 24px; }
  .hero__img { position: relative; height: 260px; object-position: 70% 30%; }
  .hero__panel { margin: -48px 12px 12px; width: auto; padding: 24px 20px; border-radius: 24px; background: rgba(255, 255, 255, .94); }
  .hero__panel .btn-row .btn { min-width: 0; flex: 1 1 100%; }
  .hero__note { font-size: 16px; }
  .intro { padding: 40px 0 44px; }
  .intro .display { margin-bottom: 16px; }
  .values { padding: 48px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .card--blue { min-height: 0; padding: 28px 24px; }
  .who-card { min-height: 0; }
  .who-card__body, .value-card__body, .eco-card__body { font-size: 16px; }
  .problem { padding-top: 56px; }
  .map { border-radius: 24px; background: var(--white); }
  .map__img { aspect-ratio: 4 / 3; object-position: 75% 0; }
  /* Zoom in on Europe (x 760–1900 of the 1920px image) */
  .map__art { aspect-ratio: 1140 / 1010; }
  .map__art .map__img, .map__dots { width: 168.4%; left: -66.7%; aspect-ratio: 16 / 9; }
  .map__legend { position: static; width: auto; border-radius: 0; padding: 20px; font-size: 15px; }
  .map__views { position: static; margin: 12px; justify-content: center; border-radius: 14px; }
  .map__view { flex: 1; padding: 9px 10px; font-size: 13px; border-radius: 10px; }
  .ecosystem { padding: 72px 0 56px; }
  .split-head p { font-size: 16px; }
  .audience { padding: 56px 0; }
  .audience__head { margin-bottom: 32px; }
  .mission { padding: 56px 0; }
  .mission__text, .audience__text { line-height: 1.35; }
  .who-card__subtitle { line-height: 1.4; margin-bottom: 8px; }
  .story { padding: 64px 0 72px; }
  .story__bg { width: 220%; left: -20%; top: 0; }
  .flip-card { width: min(78vw, 300px); }
  .cta-banner { min-height: 0; flex-direction: column; align-items: stretch; padding-top: 180px; }
  .cta-banner__panel { margin: 0; min-height: 0; width: 100%; border-radius: 0 0 21px 21px; padding: 24px 20px; gap: 20px; }
  .site-header__inner { padding: 0 16px; min-height: 64px; }
  .footer-portal { padding: 28px 16px 22px; }
  .footer-portal__links { text-align: left; }
  .cookie-settings-link { align-self: flex-start; }
}


/* ---------- Inner pages (Who we are, What we do, Events, Resources) ---------- */

.main-nav ul a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }

.display--xl { font-size: clamp(40px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -.02em; font-variation-settings: "opsz" 14; }
.display--sm { font-size: clamp(30px, 3.35vw, 48px); line-height: 1.06; letter-spacing: -.02em; font-variation-settings: "opsz" 14; }
.eyebrow { margin-bottom: 14px; }
.eyebrow--on-dark { color: #f6c744; }

.btn--sand { background: #f6c744; border-color: #f6c744; color: #0b1e3f; }
.btn--sand:hover { background: #ffd666; border-color: #ffd666; }
.btn-row--center { justify-content: center; }

.page-hero { padding: 72px 0 56px; }
.page-hero--center { text-align: center; }
.page-hero--soft { background: var(--page); }
.page-hero .display { margin-bottom: 22px; }
.page-hero__text { max-width: 720px; margin: 0 auto 28px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; }
.page-hero__text--left { margin-left: 0; max-width: 600px; }

.page-section { padding: clamp(64px, 7.2vw, 104px) 0; }
.page-section--soft { background: var(--page); }

.dark-band { background: #0b1e3f; color: #c9d6ea; }
.dark-band .display { color: var(--white); }

.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 72px; align-items: end; margin-bottom: 48px; }
.section-head__text { font-size: 18px; line-height: 1.65; }
.split-60 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px 80px; }
.split-60--top { align-items: start; }
.split-60--center { align-items: center; }
.prose { font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 18px; }
.prose p:first-child { color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.layers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }

/* Cards with the Figma's signature corner: one larger rounded bottom-right corner */
.soft-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px;
  background: var(--white);
  border: 1px solid #dce4ef;
  border-radius: 16px 16px 48px 16px;
  font-size: 16px; line-height: 1.65;
  transition: transform .3s ease, box-shadow .3s ease;
}
.soft-card--compact { padding: 28px; }
.soft-card--media { padding: 0; overflow: hidden; gap: 0; }
.soft-card--media > img { width: 100%; height: 260px; object-fit: cover; }
.soft-card__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 30px; }
.soft-card__title { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--ink); }
.soft-card__title a { color: inherit; }
.soft-card__meta { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
@media (hover: hover) { .soft-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15, 35, 72, .08); } }
.card-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.icon-circle { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; background: #eef3fb; color: var(--blue); }
.icon-circle svg { width: 24px; height: 24px; }


/* Five layers drawn as stacked rows, with EUCLI as one band running through all of them */
.layer-stack { position: relative; --band-right: 4%; --band-width: 112px; }
.layer-stack { margin-top: 72px; }
.layer-stack__rows { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; border-top: 1px solid #d5dee9; }
.layer-row {
  position: relative;
  display: grid; grid-template-columns: 22px minmax(150px, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) calc(var(--band-width) + var(--band-right) + 24px);
  align-items: center; gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid #d5dee9;
}
.layer-row__tile { width: 18px; height: 18px; border-radius: 5px; transform: rotate(-10deg); background: var(--tile, #82d0c8); }
.layer-row:nth-child(5n+1) { --tile: #82d0c8; }
.layer-row:nth-child(5n+2) { --tile: #f5a687; }
.layer-row:nth-child(5n+3) { --tile: #b19cdb; }
.layer-row:nth-child(5n+4) { --tile: #f5d59e; }
.layer-row:nth-child(5n+5) { --tile: #82d0c8; }
.layer-row__title { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; color: var(--ink); }
.layer-row__who { font-size: 17px; line-height: 1.5; color: var(--text); }
.layer-row__does { font-size: 15px; line-height: 1.5; font-style: italic; color: var(--text-card); }
.layer-row__node {
  position: absolute; top: 50%; right: calc(var(--band-right) + var(--band-width) / 2 - 7px);
  width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--tile, #82d0c8); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px #b8d9d5;
}
.layer-stack__band {
  position: absolute; top: -58px; bottom: -18px; right: var(--band-right); width: var(--band-width);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 16px;
  border-radius: 999px;
  background: #eaf7f5; border: 1px solid #b8d9d5;
}
.layer-stack__band span {
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .08em; color: #1f5f58;
}
@media (max-width: 900px) {
  .layer-row { grid-template-columns: 22px 1fr; gap: 6px 14px; padding: 20px 0; }
  .layer-row__who, .layer-row__does { grid-column: 2; }
  .layer-row__node, .layer-stack__band { display: none; }
  .layer-stack { margin-top: 0; }
}

/* Who we are */
.collage { display: grid; grid-template-columns: 1fr .8fr 1fr 1.1fr; gap: 20px; align-items: end; margin-top: 44px; }
.collage__img { width: 100%; object-fit: cover; }
.collage__img--1 { height: 250px; border-radius: 16px; }
.collage__img--2 { height: 340px; border-radius: 16px 16px 64px 16px; object-position: 50% 20%; }
.collage__img--3 { height: 290px; border-radius: 999px 999px 16px 16px; }
.collage__img--4 { height: 260px; border-radius: 16px 16px 96px 16px; }
.founder { display: flex; align-items: center; gap: clamp(32px, 5.5vw, 80px); }
.founder__photo { flex: none; width: min(440px, 40%); aspect-ratio: 440 / 500; object-fit: cover; object-position: 50% 15%; border-radius: 0 0 80px 0; }
.founder__text { max-width: 640px; margin: 18px 0 28px; font-size: 18px; line-height: 1.65; }
/* Committee: one row per person, photo beside name, role and bio */
.people { max-width: 1080px; }
.person {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line);
}
.person:last-child { border-bottom: 1px solid var(--line); }
.person { scroll-margin-top: 96px; }
.person__photo { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; object-position: 50% 30%; border-radius: 16px 16px 48px 16px; }
.person__photo--initials {
  display: grid; place-items: center;
  background: #e4ebf5; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 56px; letter-spacing: -.02em;
}
.person__name { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 22px; color: var(--ink); }
.person__role { margin-top: 4px; font-size: 15px; color: var(--text-card); }
.person__bio { max-width: 720px; margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--text); }
.person__bio p + p, .person__more p { margin-top: 12px; }
.person__more summary {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 15px; font-weight: 600; color: var(--blue); cursor: pointer; list-style: none;
}
.person__more summary::-webkit-details-marker { display: none; }
.person__more summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg);
}
.person__more summary:hover { text-decoration: underline; }
.person__more[open] summary { order: 1; }
.person__more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.person__more[open] { display: flex; flex-direction: column; align-items: flex-start; }
.person__more-close, .person__more[open] .person__more-open { display: none; }
.person__more[open] .person__more-close { display: inline; }
.rule-item { padding-top: 26px; border-top: 2px solid var(--blue); font-size: 16px; line-height: 1.65; }
.rule-item .soft-card__title { margin-bottom: 10px; }

/* Join band: colour panel on the left, photo on the right */
.join-band { padding: 0 0 clamp(64px, 7.2vw, 104px); }
.join-band__inner { position: relative; display: flex; min-height: 440px; border-radius: 0 0 160px 0; overflow: hidden; }
.join-band__img { position: absolute; top: 0; bottom: 0; left: 32%; width: 68%; height: 100%; object-fit: cover; }
.join-band__panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  width: 51%; padding: 56px 64px;
  background: var(--blue); color: #e3ecfa;
}
.join-band__panel .display { color: var(--white); margin-bottom: 18px; }
.join-band__text { max-width: 540px; margin-bottom: 26px; font-size: 17px; line-height: 1.65; }

/* What we do */
/* Shown whole (the What We Do image is a collage, so it must not be cropped) */
.wide-photo { width: 100%; height: auto; aspect-ratio: 5 / 2; margin-top: 56px; object-fit: cover; border-radius: 0 0 160px 0; }
.map-feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px 72px; align-items: center; }
.map-feature .display { margin-bottom: 18px; }
.map-feature__text { margin-bottom: 26px; font-size: 17px; line-height: 1.65; }
.map--feature { border-radius: 0 0 160px 0; }
.map--feature .map__img { aspect-ratio: 4 / 3.2; object-position: 70% 0; }
.map--feature .map__legend { width: auto; left: 28px; bottom: 34px; padding: 22px 24px; gap: 10px; font-size: 15px; border-radius: 14px; }
.map--feature .map__legend li { gap: 12px; }
.map--feature .map__dot { width: 14px; height: 14px; }
.chips-title { margin: 48px 0 14px; font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 18px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 19px;
  background: var(--white); border: 1px solid #dce4ef; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.chips--square .chip { border-radius: 10px; }
.chip--button { font-family: var(--font-body); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip--button:hover { border-color: var(--blue); }
.chip--button.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chips--center { justify-content: center; margin-top: 24px; }

/* Events */
.events-hero { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 48px 80px; align-items: center; }
.events-hero .page-hero__text { margin-bottom: 28px; color: #c9d6ea; }
.next-card { overflow: hidden; background: var(--white); color: var(--text); border-radius: 16px 16px 48px 16px; }
.next-card__img { width: 100%; height: 200px; object-fit: cover; object-position: 50% 30%; border-radius: 16px 16px 0 0; }
.next-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 30px 32px 34px; }
.next-card__head { display: flex; align-items: center; gap: 18px; }
.next-card__title { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--ink); }
.date-tile {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 84px; height: 88px;
  background: var(--blue); color: var(--white);
  border-radius: 12px 12px 28px 12px;
}
.date-tile__month { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.date-tile__year { margin-top: 6px; font-size: 13px; font-weight: 600; opacity: .85; }
.event-meta { display: grid; gap: 8px; font-size: 15px; color: var(--ink); }
.event-meta li { display: flex; align-items: center; gap: 10px; }
.event-meta svg { flex: none; width: 18px; height: 18px; color: var(--blue); }
.calendar-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.event-list { border-top: 1px solid #dce4ef; }
.event-row { display: flex; align-items: center; gap: 40px; padding: 32px 0 33px; border-bottom: 1px solid #dce4ef; }
.event-row__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding-left: 26px; font-size: 16px; line-height: 1.65; }
.event-row__body > p:not(.card-label) { max-width: 640px; }
.event-row__title { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--ink); }
.event-row__img { flex: none; width: 300px; height: 200px; object-fit: cover; border-radius: 0 0 80px 0; }
.empty-box {
  padding: 48px; text-align: center;
  border: 1px dashed #a9bcd6; border-radius: 16px 16px 48px 16px;
  font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 600; font-size: 20px; line-height: 1.4; color: var(--ink);
}
.empty-note { padding: 24px 0; color: var(--text-card); }
.host-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: center;
  padding: clamp(32px, 4.5vw, 64px);
  background: #0b1e3f; color: #c9d6ea;
  border-radius: 0 0 160px 0;
}
.host-band .display { color: var(--white); }
.host-band__text { margin-bottom: 22px; font-size: 17px; line-height: 1.65; }

/* Resources */
.search-bar {
  display: flex; align-items: center; gap: 12px;
  max-width: 760px; min-height: 64px; margin: 8px auto 0; padding: 6px 6px 6px 24px;
  background: var(--white); border: 1px solid #dce4ef; border-radius: 999px;
}
.search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 101, 140, .12); }
.search-bar__icon { flex: none; width: 20px; height: 20px; color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 17px/1.4 var(--font-body); color: var(--ink); }
.feature-card {
  display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; margin-bottom: 24px;
  border: 1px solid #dce4ef; border-radius: 16px 16px 48px 16px; background: var(--white);
}
.feature-card__img { width: 100%; height: 100%; min-height: 320px; max-height: 440px; object-fit: cover; }
.feature-card__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 48px; font-size: 17px; line-height: 1.65; }
.feature-card__title { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; color: var(--ink); }
.resource-card > img { height: 200px; }
/* Resources without a photo: text cards of equal height, link at the bottom */
.resource-card { padding: 0; gap: 0; }
.resource-card .soft-card__body { flex: 1; }
.resource-card .resource-meta { margin-top: auto; padding-top: 6px; }
.resource-card .arrow-link { align-self: flex-start; }
.resources-more { padding-top: 0; }
/* Resources: the cards start soon after the search and topic buttons */
.page-hero--soft:has(.search-bar) { padding-bottom: 40px; }
.resources-list { padding-top: 40px; }
.resource-meta { font-size: 14px; color: var(--text-card); }
.load-more { display: flex; justify-content: center; margin-top: 32px; }

@media (max-width: 1100px) {
  .layers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .split-60, .map-feature, .events-hero, .host-band, .feature-card { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .join-band__panel { width: 62%; }
}

@media (max-width: 760px) {
  .page-hero { padding: 44px 0 40px; }
  .collage { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
  .collage__img--1, .collage__img--2, .collage__img--3, .collage__img--4 { height: 180px; }
  .layers, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .founder { flex-direction: column; align-items: flex-start; }
  .person { grid-template-columns: 1fr; gap: 18px; }
  .person__photo { width: 160px; }
  .founder__photo { width: 100%; max-width: 360px; }
  .join-band__inner { flex-direction: column; border-radius: 0 0 64px 0; min-height: 0; }
  .join-band__img { position: static; width: 100%; height: 220px; }
  .join-band__panel { width: 100%; padding: 32px 24px 40px; }
  .wide-photo { border-radius: 0 0 64px 0; margin-top: 36px; }
  .map--feature, .host-band { border-radius: 0 0 64px 0; }
  .event-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .event-row__body { padding-left: 0; }
  .event-row__img { width: 100%; height: 180px; border-radius: 0 0 48px 0; }
  .feature-card__body { padding: 28px 24px; }
  .empty-box { padding: 32px 20px; font-size: 18px; }
  .search-bar { padding-left: 16px; }
  .search-bar .btn { padding-inline: 16px; }
}


/* Partners and Contact: editorial lists rather than card grids */
.page-section--tight { padding-top: 24px; }
.section-title { margin-bottom: 32px; }
.sticky-col { align-self: start; position: sticky; top: 96px; }
.sticky-col .display { margin-bottom: 16px; }
.numbered-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #d5dee9; }
.numbered-list > li {
  position: relative;
  padding: 28px 0 28px 40px;
  border-bottom: 1px solid #d5dee9;
  font-size: 17px; line-height: 1.65;
}
.numbered-list > li::before {
  content: ""; position: absolute; left: 2px; top: 36px;
  width: 16px; height: 16px; border-radius: 4px; transform: rotate(-10deg);
  background: var(--tile, #82d0c8);
}
.numbered-list > li:nth-child(4n+2) { --tile: #f5a687; }
.numbered-list > li:nth-child(4n+3) { --tile: #b19cdb; }
.numbered-list > li:nth-child(4n+4) { --tile: #f5d59e; }
.numbered-list__title { margin-bottom: 6px; font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--ink); }
.numbered-list__title a { color: inherit; }
.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list li { padding: 18px 0; border-bottom: 1px solid #d5dee9; font-size: 19px; line-height: 1.55; color: var(--ink); }
.rule-list li:first-child { padding-top: 0; }
.partner-list { display: grid; gap: 0; border-top: 1px solid #d5dee9; }
.partner { display: flex; align-items: center; gap: 28px; padding: 24px 0; border-bottom: 1px solid #d5dee9; }
.partner__logo { flex: none; width: 140px; height: 70px; object-fit: contain; }

/* A slightly narrower page (98% of the usual width), as on the homepage values */
.container.container--98 { width: 98%; }
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.contact-routes { margin: 0; padding: 0; list-style: none; border-top: 1px solid #d5dee9; }
.contact-routes li { padding: 24px 0; border-bottom: 1px solid #d5dee9; font-size: 16px; line-height: 1.6; }
.contact-routes .numbered-list__title { font-size: 20px; }
.contact-routes .arrow-link { padding-block: 6px 0; }
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--page); border: 1px solid #dce4ef; border-radius: 16px 16px 48px 16px;
  scroll-margin-top: 96px;
}
.contact-form .display { margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--text-card); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e2eb; border-radius: 9px;
  background: var(--white);
  font: 400 16px/1.5 var(--font-body); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: #24658c; box-shadow: 0 0 0 3px rgba(36, 101, 140, .12); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 14px; color: var(--text-card); }
.contact-form .btn { align-self: flex-start; }
.form-note { padding: 12px 16px; border-radius: 9px; font-size: 15px; font-weight: 500; }
.form-note--ok { background: #e6f4ee; color: #1f7a54; }
.form-note--error { background: #fbeaea; color: #b23b3b; }
.form-note a { color: inherit; text-decoration: underline; }

@media (max-width: 1100px) {
  .contact { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
}
@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .numbered-list > li { padding-left: 32px; }
  .rule-list li { font-size: 17px; }
  .partner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion ---------- */

/* Scroll-in: added by site.js only when motion is allowed, so without JS everything is simply visible */
.has-motion .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.has-motion .reveal.is-visible { opacity: 1; transform: none; }

/* Hero: the photo settles and the panel rises in on page load */
.has-motion .hero__img { transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.has-motion .hero__panel { opacity: 0; transform: translateY(24px); transition: opacity .8s ease .15s, transform .9s cubic-bezier(.2, .7, .2, 1) .15s; }
.has-motion.is-loaded .hero__img { transform: none; }
.has-motion.is-loaded .hero__panel { opacity: 1; transform: none; }

/* Cards lift slightly on hover */
@media (hover: hover) {
  .value-card:hover, .eco-card:hover, .who-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 35, 72, .04), 0 14px 32px rgba(15, 35, 72, .10); }
}

@media (prefers-reduced-motion: reduce) {
  .flip-card__inner { transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Legal pages and 404 ---------- */

.legal { max-width: calc(820px + 2 * var(--gutter)); padding-top: 56px; padding-bottom: 32px; font-weight: 300; font-size: 17px; line-height: 1.7; }
.legal .display { margin-bottom: 8px; }
.legal__updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.legal__intro { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.legal h2 { margin: 36px 0 10px; font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--ink); }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 4px; }
.legal a { overflow-wrap: anywhere; }

.not-found { padding-top: 96px; padding-bottom: 48px; max-width: calc(820px + 2 * var(--gutter)); }
.not-found .display { margin: 8px 0 16px; }
.not-found > p:not(.eyebrow) { margin-bottom: 28px; font-weight: 400; }
.not-found .eyebrow { padding-inline: 0; }

/* ---------- Paragraph text ----------
   Every paragraph in the page content shares one colour, size and line height.
   Small labels are left out. On dark sections (.on-blue) the text keeps its light colour. */

main p:not(:is(.eyebrow, .card-label, .resource-meta, .soft-card__meta, .who-card__subtitle, .person__role,
  .flip-card__name, .flip-card__role, .legal__updated, .legal__intro, .hero__note, .empty-note, .form-note, .form-privacy,
  .map__hint)),
main :is(.rule-list, .numbered-list, .contact-routes, .prose ul, .legal ul) > li {
  color: var(--paragraph-color, var(--text-card));
  font-size: 18px;
  line-height: 1.63;
}
.on-blue { --paragraph-color: currentColor; }

/* ---------- Coming soon ---------- */

.main-nav__actions--solo { margin-left: auto; flex-wrap: nowrap; }
.main-nav__actions--solo .btn { flex: none; }
.coming-soon { padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 7vw, 112px); }
.coming-soon__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.coming-soon__title { margin: 4px 0 22px; }
.coming-soon__copy > p + p { margin-top: 12px; }
.coming-soon .btn-row { margin-top: 30px; }
main p.coming-soon__note { margin-top: 22px; font-size: 15px; color: var(--muted); }
.coming-soon__img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 70% 30%; border-radius: 16px 16px 120px 16px; }
@media (max-width: 860px) {
  .coming-soon__inner { grid-template-columns: 1fr; }
  .coming-soon__img { order: -1; aspect-ratio: 16 / 10; border-radius: 16px 16px 64px 16px; }
}

/* Shown only to people with a preview pass while "Coming soon" is on */
.preview-bar {
  margin: 0; padding: 8px 16px;
  background: #fdf6e6; color: #7f5a12;
  font-size: 14px; font-weight: 500; text-align: center;
  border-bottom: 1px solid #f5d59e;
}
.preview-bar a { color: inherit; text-decoration: underline; }

/* ---------- Home: next event and partners ---------- */

.next-event { padding: clamp(64px, 7vw, 104px) 0; }
.next-event__card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 64px 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 35, 72, .04), 0 10px 28px rgba(15, 35, 72, .06);
}
.next-event__card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 4px; background: var(--stripe); }
.next-event__media { position: relative; min-height: 380px; }
.next-event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.next-event__media .date-tile { position: absolute; top: 28px; left: 28px; }
.next-event__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(28px, 4vw, 56px); }
.next-event__body .eyebrow { margin-bottom: 14px; }
.next-event__body h2 { margin-bottom: 14px; }
.next-event__body .event-meta { margin: 20px 0 28px; }

.partners-band { padding: clamp(64px, 7vw, 104px) 0; }
.partners-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.partners-band__copy h2 { margin-bottom: 16px; }
.partners-band .btn-row { margin-top: 28px; }
.partners-band__ways { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.partners-band__ways li {
  display: flex; align-items: flex-start; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px; line-height: 1.6; color: var(--text-card);
}
.partners-band__ways strong { font-weight: 600; color: var(--ink); }
.partners-band__num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; font-size: 14px; background: #eaf7f5; color: #1f5f58;
}
.partners-band__ways li:nth-child(3n+2) .partners-band__num { background: #fdf0ea; color: #97452a; }
.partners-band__ways li:nth-child(3n+3) .partners-band__num { background: #f3effb; color: #56428f; }
/* Partner logos under the section, no boxes: a still row for up to 6, an endless slow slider for more */
.logo-slider { margin-top: clamp(48px, 5vw, 64px); padding-top: 36px; border-top: 1px solid var(--line); }
.logo-slider__track {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px clamp(40px, 5vw, 80px);
  margin: 0; padding: 0; list-style: none;
}
.logo-slider__track li { flex: none; }
.logo-slider__track a { display: block; transition: opacity .2s; }
.logo-slider__track a:hover { opacity: .7; }
.logo-slider__track img { display: block; max-width: 200px; max-height: 64px; width: auto; height: auto; }
.logo-slider.is-sliding {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.is-sliding .logo-slider__track {
  flex-wrap: nowrap; gap: 0; width: max-content;
  animation: logo-slide calc(var(--logo-count) * 4s) linear infinite;
}
.is-sliding .logo-slider__track li { padding: 0 clamp(20px, 2.5vw, 40px); }
.is-sliding:hover .logo-slider__track, .is-sliding:focus-within .logo-slider__track { animation-play-state: paused; }
@keyframes logo-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-slider.is-sliding { -webkit-mask-image: none; mask-image: none; }
  .is-sliding .logo-slider__track { animation: none; flex-wrap: wrap; width: auto; gap: 28px 48px; }
  .is-sliding .logo-slider__track li { padding: 0; }
  .logo-slider__track li[aria-hidden] { display: none; }
}

@media (max-width: 860px) {
  .next-event__card { grid-template-columns: 1fr; border-radius: 16px 16px 40px 16px; }
  .next-event__media { min-height: 220px; }
  .partners-band__inner { grid-template-columns: 1fr; }
}

/* ---------- Newsletter sign-up (on dark bands) ---------- */

.newsletter-form { display: grid; gap: 10px; max-width: 560px; }
.newsletter-form__row { display: flex; gap: 10px; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 9px;
  background: rgba(255, 255, 255, .08); color: var(--white); font: inherit; font-size: 16px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .65); }
.newsletter-form input[type="email"]:focus { outline: 0; border-color: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
main p.newsletter-form__small { font-size: 13px; line-height: 1.5; opacity: .8; }
.newsletter-form__small a, .resources-more__join a { color: inherit; text-decoration: underline; }
main p.newsletter-form__note { padding: 10px 14px; border-radius: 9px; font-size: 15px; font-weight: 500; }
.newsletter-form__note--ok { background: #e6f4ee; color: #1f7a54 !important; }
.newsletter-form__note--error { background: #fbeaea; color: #b23b3b !important; }
main p.resources-more__join { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; }
.resources-more__join a { font-weight: 600; }
@media (max-width: 520px) {
  .newsletter-form__row { flex-direction: column; }
}
.resource-card[tabindex="-1"]:focus { outline: none; }

/* Events: past events and programmes in a panel that opens and closes */
.past-events > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid #d5dee9; cursor: pointer; list-style: none;
}
.past-events > summary::-webkit-details-marker { display: none; }
.past-events > summary:hover .display { color: var(--blue); }
.past-events__count { font-weight: 500; color: var(--muted); }
.past-events__toggle {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #cdd3dc; border-radius: 50%; background: var(--white);
}
.past-events__toggle::before {
  content: ""; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform .2s ease;
}
.past-events[open] .past-events__toggle::before { margin-top: 4px; transform: rotate(-135deg); }
.past-events[open] > .event-list, .past-events[open] > .empty-box { margin-top: 28px; }
.event-row__img { object-position: 50% 40%; }

/* ---------- Events: countdown, timeline, add to calendar, organiser ---------- */

.countdown {
  display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px;
  background: #fdf6e6; color: #7f5a12; font-size: 11px; letter-spacing: .06em; vertical-align: 1px;
}
/* The whole "Next up" card is one link down to the event */
.next-card--link { display: block; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.next-card--link:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.next-card--link .next-card__img { transition: transform .4s ease; }
.next-card--link:hover .next-card__title { color: var(--blue); }
.next-card__more { margin-top: 4px; }
.next-card--link:hover .next-card__more { text-decoration: underline; }
.events-hero .next-card { overflow: visible; }
.next-card .btn-row { margin: 0; }

.timeline {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr);
  margin: -8px 0 12px; padding: 0 0 4px; list-style: none; overflow-x: auto;
}
.timeline__month { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.timeline__month::before {
  content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: #dce4ef;
}
.timeline__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.timeline__label em { font-style: normal; font-weight: 500; opacity: .8; }
.timeline__month.has-items .timeline__label { color: var(--ink); }
.timeline__dots { position: relative; z-index: 1; display: flex; gap: 6px; min-height: 22px; align-items: center; }
.timeline__dot {
  display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--white);
  box-shadow: 0 0 0 1px #dce4ef; background: #82d0c8; transition: transform .15s ease;
}
a.timeline__dot:hover, a.timeline__dot:focus-visible { transform: scale(1.25); }
.timeline__dot--partner { background: #f5a687; }
.timeline__dot--programme { background: #b19cdb; }
.timeline__key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.timeline__key li { display: flex; align-items: center; gap: 8px; }
.timeline__key .timeline__dot { width: 12px; height: 12px; border-width: 0; box-shadow: none; }
.event-row { scroll-margin-top: 110px; }
.event-row:target { background: linear-gradient(90deg, #fdf6e6, transparent 70%); }

.event-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.event-row__actions .btn-row { margin: 0; }
.add-cal { position: relative; }
.add-cal > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  font-size: 15px; font-weight: 600; color: var(--blue); cursor: pointer; list-style: none;
}
.add-cal > summary::-webkit-details-marker { display: none; }
.add-cal > summary:hover { text-decoration: underline; }
.add-cal > summary svg { width: 18px; height: 18px; }
.add-cal__menu {
  position: absolute; z-index: 5; top: 100%; left: 0; display: grid; min-width: 230px; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 35, 72, .04), 0 10px 28px rgba(15, 35, 72, .1);
}
.add-cal__menu a { padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--ink); }
.add-cal__menu a:hover { background: #f4f8fb; text-decoration: none; }

main p.event-row__organiser { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.event-row__organiser img { height: 60px; width: auto; }

/* ---------- Who we are: people cards and bio pop-ups ---------- */

.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.5vw, 40px) clamp(20px, 2vw, 32px); margin: 0; padding: 0; list-style: none; }
.person-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.person-card__photo {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%;
  margin-bottom: 14px; border-radius: 16px 16px 48px 16px; background: #e4ebf5;
  transition: transform .3s ease, box-shadow .3s ease;
}
.person-card__photo--initials {
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 64px; color: var(--ink);
}
.person-card__name { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--ink); }
.person-card__role { font-size: 15px; color: var(--text-card); }
.person-card__more { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--blue); }
.person-card:hover .person-card__photo { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15, 35, 72, .12); }
.person-card:hover .person-card__more { text-decoration: underline; }
.person-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; border-radius: 16px; }

.person-dialog {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: clamp(24px, 4vw, 44px);
  border: 0; border-radius: 20px 20px 56px 20px; background: var(--white); color: var(--text);
  box-shadow: 0 30px 80px rgba(15, 35, 72, .3);
}
.person-dialog::backdrop { background: rgba(22, 42, 64, .55); backdrop-filter: blur(2px); }
.person-dialog[open] { animation: dialog-in .25s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }
.person-dialog__close {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid #cdd3dc; border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer;
}
.person-dialog__close:hover { background: #f4f8fb; }
.person-dialog__head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; padding-right: 48px; }
.person-dialog__photo { flex: none; width: 104px; height: 104px; object-fit: cover; border-radius: 50%; }
.person-dialog__name { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--ink); }
main p.person-dialog__role, .person-dialog__role { margin-top: 4px; font-size: 16px; color: var(--muted); }
.person-dialog__bio p { font-size: 17px; line-height: 1.65; color: var(--text-card); }
.person-dialog__bio p + p { margin-top: 12px; }
.person-dialog .btn-row { margin-top: 26px; }
.has-dialog { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .person-dialog[open] { animation: none; } }
@media (max-width: 1024px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .people-grid { grid-template-columns: 1fr; }
  .person-dialog__head { flex-direction: column; align-items: flex-start; }
  .person-dialog__photo { width: 84px; height: 84px; }
}
.person-dialog:focus, .person-dialog:focus-visible { outline: none; }

/* Who we are: "Why EUCLI exists": title on top, then the text in two columns that start on the same line */
.story-split__title { margin-bottom: 28px; }
/* Two columns that start on the same line; the admin area sets the text of each */
.story-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(40px, 5vw, 88px); align-items: start; }
.story-split p, .story-split p:first-child { color: var(--text-card); }
.story-split p + p { margin-top: 14px; }
@media (max-width: 860px) { .story-split { grid-template-columns: 1fr; } }
.split-60--center .page-hero__text:last-child { margin-bottom: 0; }
/* What We Do: page title at 60px on wide screens, smaller on phones */
.what-we-do__title { font-size: clamp(36px, 4vw, 60px); }

/* What We Do: "Making collaboration easier" as zig-zag rows (image and text swap sides) */
.zigzag-section__title { margin-bottom: 20px; }
.zigzag-section__intro { max-width: 780px; margin-bottom: clamp(40px, 5vw, 72px); }
.zigzag { display: grid; gap: clamp(48px, 6vw, 96px); }
.zigzag__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 88px); align-items: center; }
.zigzag__row--flip .zigzag__img { order: 2; }
.zigzag__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px 16px 96px 16px; }
.zigzag__row--flip .zigzag__img { border-radius: 16px 16px 16px 96px; }
.zigzag__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 560px; }
.zigzag__icon { width: 60px; height: 60px; }
.zigzag__icon svg { width: 28px; height: 28px; }
.zigzag__heading { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; color: var(--ink); }
.zigzag .arrow-link { margin-top: 6px; }
.theme-brand .zigzag__row:nth-child(4n+1) .zigzag__icon { background: var(--teal-tint); color: var(--teal-ink); }
.theme-brand .zigzag__row:nth-child(4n+2) .zigzag__icon { background: var(--coral-tint); color: var(--coral-ink); }
.theme-brand .zigzag__row:nth-child(4n+3) .zigzag__icon { background: var(--lav-tint); color: var(--lav-ink); }
.theme-brand .zigzag__row:nth-child(4n+4) .zigzag__icon { background: var(--sand-tint); color: var(--sand-ink); }
@media (max-width: 860px) {
  .zigzag__row { grid-template-columns: 1fr; gap: 20px; }
  .zigzag__row--flip .zigzag__img { order: 0; }
  .zigzag__img, .zigzag__row--flip .zigzag__img { border-radius: 16px 16px 48px 16px; }
}

/* What We Do: "Four things we do" as text in brand-tinted boxes */
.tint-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tint-box { padding: clamp(26px, 3vw, 40px); border-radius: 16px 16px 48px 16px; border-top: 4px solid var(--box-edge); background: var(--box-bg); }
.tint-box:nth-child(4n+1) { --box-bg: #eaf7f5; --box-edge: #82d0c8; --box-ink: #1f5f58; }
.tint-box:nth-child(4n+2) { --box-bg: #fdf0ea; --box-edge: #f5a687; --box-ink: #97452a; }
.tint-box:nth-child(4n+3) { --box-bg: #f3effb; --box-edge: #b19cdb; --box-ink: #56428f; }
.tint-box:nth-child(4n+4) { --box-bg: #fdf6e6; --box-edge: #f5d59e; --box-ink: #7f5a12; }
.tint-box__title { margin-bottom: 10px; font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.2; color: var(--box-ink); }
@media (max-width: 760px) { .tint-boxes { grid-template-columns: 1fr; } }

/* What We Do: the zig-zag rows as coloured text boxes, alternating sides */
.zigzag { gap: clamp(20px, 2.4vw, 32px); }
.zigzag__row { display: block; width: min(100%, 760px); padding: clamp(28px, 3.4vw, 48px); border-radius: 16px 16px 64px 16px; border-top: 4px solid var(--box-edge); background: var(--box-bg); }
.zigzag__row--flip { margin-left: auto; border-radius: 16px 16px 16px 64px; }
.zigzag__body { max-width: none; }
.zigzag__row:nth-child(4n+1) { --box-bg: #eaf7f5; --box-edge: #82d0c8; }
.zigzag__row:nth-child(4n+2) { --box-bg: #fdf0ea; --box-edge: #f5a687; }
.zigzag__row:nth-child(4n+3) { --box-bg: #f3effb; --box-edge: #b19cdb; }
.zigzag__row:nth-child(4n+4) { --box-bg: #fdf6e6; --box-edge: #f5d59e; }
.theme-brand .zigzag .zigzag__row .zigzag__icon { background: var(--white); }
@media (max-width: 860px) { .zigzag__row, .zigzag__row--flip { width: 100%; margin-left: 0; border-radius: 16px 16px 48px 16px; } }

/* What We Do: the four items in two columns, no box background (overrides the zig-zag boxes above) */
.zigzag { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 88px); }
.zigzag__row, .zigzag__row--flip { width: auto; margin-left: 0; padding: 28px 0 0; border-radius: 0; background: none; }
.theme-brand .zigzag .zigzag__row .zigzag__icon { background: var(--box-bg); }
@media (max-width: 760px) { .zigzag { grid-template-columns: 1fr; } }
.zigzag__row, .zigzag__row--flip { border-top: 0; padding-top: 0; }
/* Middle ground: white cards (thin border, soft shadow) on the soft grey section, no coloured lines */
.zigzag__row, .zigzag__row--flip {
  padding: clamp(28px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 48px 16px;
  box-shadow: 0 1px 2px rgba(15, 35, 72, .04), 0 10px 28px rgba(15, 35, 72, .06);
}
.zigzag__body { height: 100%; }
.zigzag .arrow-link { margin-top: auto; padding-top: 6px; }

/* What We Do map: one quiet colour for the dots, no legend */
.map--feature { position: relative; }
.map--feature .map__dots { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; }
.map__dots--quiet circle { fill: #24658c; fill-opacity: .75; stroke: #fff; stroke-width: 3; }
.map-feature__text p + p { margin-top: 14px; }
.map-feature__photo { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 0 0 160px 0; }
@media (max-width: 1100px) { .map-feature__photo { border-radius: 0 0 64px 0; } }
/* What We Do mission band without a photo: one centred text column */
.map-feature--text { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.map-feature--text .map-feature__copy { max-width: 880px; }
.map-feature--text .btn-row { justify-content: center; }
.zigzag-section__title:last-of-type { margin-bottom: clamp(32px, 4vw, 48px); }

/* What We Do: "How it works": four numbered steps on a line in the brand colours */
.steps-title { margin-bottom: clamp(36px, 4vw, 56px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.steps::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 4px; border-radius: 2px;
  background: var(--stripe); transform-origin: left center;
}
.steps__item { position: relative; }
.steps__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px;
  border-radius: 16px; border: 3px solid var(--white); box-shadow: 0 0 0 1px #dce4ef;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--navy-brand, #182a47);
  background: var(--step-bg); transform: rotate(-10deg);
}
.steps__dot { --step-bg: #82d0c8; }
.steps__item:nth-child(4n+2) .steps__dot { --step-bg: #f5a687; }
.steps__item:nth-child(4n+3) .steps__dot { --step-bg: #b19cdb; }
.steps__item:nth-child(4n+4) .steps__dot { --step-bg: #f5d59e; }
.steps__heading { margin-bottom: 8px; font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 22px; color: var(--ink); }
.steps__cta { margin-top: clamp(32px, 4vw, 48px); }
/* Animation (only when JavaScript adds .steps--animate): the line draws, then the steps appear in turn */
.steps--animate::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.steps--animate .steps__item { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(.25s + var(--i) * .3s); }
.steps--animate.is-drawn::before { transform: scaleX(1); }
.steps--animate.is-drawn .steps__item { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* What We Do cards: icons in logo-style rounded squares; on hover the card lifts and the tile tilts like the logo */
.theme-brand .zigzag .zigzag__row .zigzag__icon { border-radius: 16px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.zigzag__row { transition: transform .25s ease, box-shadow .25s ease; }
.zigzag__row:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 35, 72, .04), 0 18px 40px rgba(15, 35, 72, .1); }
.zigzag__row:hover .zigzag__icon { transform: rotate(-10deg); }
@media (prefers-reduced-motion: reduce) { .zigzag__row, .zigzag__row:hover, .zigzag__row:hover .zigzag__icon { transform: none; transition: none; } }

/* ---------- Partners & Sponsors ---------- */

.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); align-items: stretch; }
.level {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 2.4vw, 34px);
  background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 48px 16px;
  box-shadow: 0 1px 2px rgba(15, 35, 72, .04), 0 10px 28px rgba(15, 35, 72, .06);
}
main p.level__for { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.level__name { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--ink); }
main p.level__price { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--ink); }
main p.level__note { font-size: 14px; color: var(--muted); }
main p.level__who { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 16px; }
.level__list { display: grid; gap: 10px; margin: 6px 0 20px; padding: 0; list-style: none; }
main .level__list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--text-card); }
.level__list li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 6px; height: 11px;
  border-right: 2px solid #1f5f58; border-bottom: 2px solid #1f5f58; transform: rotate(45deg);
}
.level__btn { margin-top: auto; align-self: flex-start; }
.level--featured { background: var(--navy-brand, #182a47); border-color: transparent; color: var(--white); position: relative; overflow: hidden; }
.level--featured::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--stripe); }
.level--featured .level__name, .level--featured p.level__price { color: var(--white); }
main .level--featured p.level__for, main .level--featured p.level__note { color: #f5d59e; }
main .level--featured .level__list li, main .level--featured p.level__who { color: #d6deea; }
.level--featured p.level__who { border-color: rgba(255, 255, 255, .15); }
.level--featured .level__list li::before { border-color: #f5d59e; }
@media (max-width: 1100px) { .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .levels { grid-template-columns: 1fr; } }

.posting__title { margin-bottom: clamp(24px, 3vw, 40px); }
.posting { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 5vw, 88px); }
.posting__heading { margin: 6px 0 10px; font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: 24px; color: var(--ink); }
main p.posting__note { margin-top: 28px; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .posting { grid-template-columns: 1fr; } }

.logo-wall__label { margin: 8px 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.logo-wall { display: flex; flex-wrap: wrap; align-items: center; gap: 28px clamp(36px, 5vw, 72px); margin: 0 0 36px; padding: 0; list-style: none; }
.logo-wall img { display: block; max-width: 200px; max-height: 64px; width: auto; height: auto; }
.logo-wall a { display: block; transition: opacity .2s; }
.logo-wall a:hover { opacity: .7; }
.logo-wall__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
/* Three membership levels: three columns */
.levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .levels { grid-template-columns: 1fr; } }

/* Partners: hero and "Open to everyone" with photos */
.partners-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px clamp(40px, 5vw, 88px); align-items: center; }
.partners-hero .display { margin-bottom: 22px; }
.partners-hero .page-hero__text p + p { margin-top: 12px; }
.partners-hero__img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 16px 16px 120px 16px; }
.partners-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 5vw, 88px); align-items: center; }
.partners-open .display { margin-bottom: 20px; }
.partners-open__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px 16px 16px 96px; }
@media (max-width: 900px) {
  .partners-hero, .partners-open { grid-template-columns: 1fr; }
  .partners-hero__img, .partners-open__img { border-radius: 16px 16px 48px 16px; }
}

/* Partners: thank-you strip under the hero */
.thanks-strip { padding: clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); text-align: center; }
main p.thanks-strip__text { margin-bottom: 26px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.logo-wall--center { justify-content: center; margin-bottom: 0; }
main p.thanks-strip__text { margin-bottom: 30px; font-size: 19px; }
.thanks-strip .logo-wall img { max-width: 230px; max-height: 76px; }
/* Partners: the ground rules as small notes under the membership levels */
.level-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 88px); margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
main .level-rules li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--text-card); }
.level-rules li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 8px; height: 8px; border-radius: 2px; background: #82d0c8; transform: rotate(-10deg); }
@media (max-width: 760px) { .level-rules { grid-template-columns: 1fr; } }
/* Partners: optional "You can support us by" list in a level card */
main p.level__support-title { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.level__list--support li::before {
  left: 3px; top: 7px; width: 8px; height: 8px; border: 0; border-radius: 2px; background: #f5a687; transform: rotate(-10deg);
}

/* Footer menu */
.footer-portal__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; align-content: start; }
.footer-portal__nav a { color: #15233b; font-weight: 600; }
@media (max-width: 720px) { .footer-portal__nav { grid-template-columns: 1fr 1fr; width: 100%; } }

/* Notice bar (admin: Settings → Notice bar) */
.notice-bar { padding: 10px 16px; text-align: center; font-size: 15px; font-weight: 500; line-height: 1.5; }
.notice-bar p { margin: 0; }
.notice-bar a { color: inherit; font-weight: 700; text-decoration: underline; }
.notice-bar--sand { background: #fdf6e6; color: #7f5a12; border-bottom: 1px solid #f5d59e; }
.notice-bar--teal { background: #eaf7f5; color: #1f5f58; border-bottom: 1px solid #82d0c8; }
.notice-bar--navy { background: #182a47; color: #fff; }
.notice-bar .hl { background: none; padding: 0; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 960px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--font-display); font-variation-settings: "opsz" 14; font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; color: var(--ink); }
.faq__item > summary:hover .faq__q { color: var(--blue); }
.faq__toggle { flex: none; position: relative; width: 36px; height: 36px; border-radius: 10px; background: #eaf7f5; transform: rotate(-10deg); transition: transform .2s ease, background .2s ease; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: #1f5f58; }
.faq__toggle::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq__item[open] .faq__toggle { background: #f3effb; transform: rotate(0); }
.faq__item[open] .faq__toggle::after { transform: rotate(0); }
.faq__a { max-width: 780px; padding: 0 0 24px; }
.faq__a p + p { margin-top: 12px; }
main p.faq__more { margin-top: 32px; }
