/* Second-generation look: the journey in five colours, cards, lavender ground */
body {
  --bg: #f6f6fb;
  --paper: #ffffff;
  --ink: #15121f;
  --ink-2: #3b3748;
  --muted: #6f6b7d;
  --rule: #d9dbe8;
  --rule-soft: #e6e8f1;
  --accent: #5b4fc0;
  --accent-soft: #dcd8f5;
}
.s-plan { --c: #3a5a2a; --ct: #ffffff; }
.s-recruit { --c: #5b4fc0; --ct: #ffffff; }
.s-run { --c: #e8452c; --ct: #ffffff; }
.s-sense { --c: #a8bdb4; --ct: #15121f; }
.s-act { --c: #15121f; --ct: #ffffff; }

/* Top bar and the journey bar under it */
.nav { background: color-mix(in srgb, #ffffff 94%, transparent); }
.brand-mark, .brand-mark::before, .brand-mark::after { border-color: var(--accent); }
.journey { display: flex; gap: 8px; padding-top: 2px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.journey::-webkit-scrollbar { display: none; }
.step-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 5px 14px 5px 6px; border-radius: 999px; border: 1px solid var(--rule); background: #ffffff;
  font-size: 15px; color: var(--ink); transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.step-pill i {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font-style: normal; font-size: 13px; background: var(--c); color: var(--ct);
}
.step-pill:hover, .step-pill.active { background: var(--c); color: var(--ct); border-color: var(--c); }
.step-pill:hover i, .step-pill.active i { background: #ffffff; color: #15121f; }

/* Blocks, titles, cards */
.block { padding: 56px 0 0; }
.block.first { padding-top: 48px; }
.block.last { padding-bottom: 88px; }
body.dense section.block { padding: 56px 0 0; }
body.dense section.block.last { padding-bottom: 88px; }
.block h2 { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 10px; }
.page-title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; max-width: 18ch; margin-bottom: 14px; }
.block-lede { font-size: 19.5px; line-height: 1.45; color: var(--ink-2); max-width: 62ch; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 22px; }
.card {
  display: flex; flex-direction: column; gap: 10px; background: #ffffff; border: 1px solid var(--rule);
  border-radius: 18px; padding: 20px 22px 24px; color: var(--ink);
}
.card[hidden] { display: none; }
.card h3 { font-size: 23px; line-height: 1.15; }
.card p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.card strong { font-weight: 600; color: var(--ink); }
.card .practice { font-size: 14.5px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule-soft); }
a.card { transition: transform 0.15s, border-color 0.15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  padding: 5px 10px; border-radius: 999px; background: var(--c); color: var(--ct);
}
.chip.plain { background: var(--rule-soft); color: var(--ink-2); }
.more { margin-top: 28px; }

/* Home: the five steps */
.step-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; border-radius: 18px;
  background: var(--c); color: var(--ct); min-height: 250px; transition: transform 0.15s;
}
.step-card:hover { transform: translateY(-4px); }
.step-card .n { font-size: 44px; line-height: 1; font-style: italic; }
.step-card h3 { color: inherit; font-size: 25px; }
.step-card p { font-size: 15.5px; line-height: 1.45; opacity: 0.92; }
.step-card .counts { margin-top: auto; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.behind { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--rule); }
.behind .block-lede { margin-bottom: 0; }
.behind-links { display: flex; gap: 28px; }

/* Step pages */
.step-head { background: var(--c); color: var(--ct); padding: 52px 0 48px; }
.step-head .n { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.step-head h1 { color: inherit; font-size: clamp(44px, 7vw, 96px); line-height: 1; margin: 10px 0 18px; }
.step-lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; max-width: 40ch; }
.questions { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px 20px; margin-top: 22px; }
.questions li {
  position: relative; padding: 14px 16px 14px 46px; background: #ffffff; border: 1px solid var(--rule); border-radius: 14px;
  font-size: 17px; line-height: 1.4;
}
.questions li::before {
  content: "?"; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; background: var(--c); color: var(--ct);
}
.step-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 36px; border-top: 1px solid var(--rule); }
.step-link { padding: 10px 18px; border-radius: 999px; background: var(--c); color: var(--ct); font-size: 16px; }

/* Toolbox filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.filter-label { width: 64px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.filter { font: inherit; font-size: 14.5px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule); background: #ffffff; color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--ink); }
.filter.on { background: var(--ink); color: #ffffff; border-color: var(--ink); }

/* Older sections on About and Work with us pick up the rounder look */
.hero { --bg: #e7e8f4; }
.post .chips { margin-top: 36px; }
.gap { color: #b3361d; outline-color: #b3361d; }
@media (max-width: 1000px) { .step-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .step-cards { grid-template-columns: 1fr; } .step-card { min-height: 0; } }

/* Draft posts: visible in the preview only */
.chip.draft { background: transparent; color: #b3361d; border: 1px dashed #b3361d; }
.card:has(.chip.draft) { border-style: dashed; background: transparent; }

/* Poster-shaped images in posts stay a readable size */
.post-img { max-width: 460px; height: auto; border-radius: 12px; }

a.filter { display: inline-block; }

/* Hero: smaller slogan, wide flat drawing beside it */
.hero { --hero-fs: clamp(26px, 3.4vw, 50px); }
body.dense .hero-title { font-size: var(--hero-fs); line-height: 1.02; margin-top: 0; }
.hero-grid { align-items: center; gap: clamp(20px, 4vw, 56px); }
.process { width: 100%; height: auto; max-height: calc(100svh - 150px); justify-self: end; }
@media (max-width: 640px) {
  .hero { --hero-fs: clamp(28px, 8vw, 38px); }
}

/* Post cards with a picture on top */
.card.case { padding: 0; overflow: hidden; gap: 0; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 22px; flex: 1; }
.cover { position: relative; aspect-ratio: 16 / 9; background: var(--c, #dcd8f5); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.s-none { --c: #dcd8f5; --ct: #15121f; }
/* Posts without a photo get a plain cover in the colours of the drawing */
.cover:empty::before { content: ""; position: absolute; left: 10%; top: 16%; width: 38%; aspect-ratio: 1.15; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transform: rotate(-8deg); }
.cover:empty::after { content: ""; position: absolute; right: 14%; bottom: 14%; width: 22%; aspect-ratio: 1.2; background: #e8f34a; transform: rotate(4deg); }
.cover.s-none:empty::before { background: #5b4fc0; }
.cover.s-sense:empty::before { background: #5b4fc0; opacity: 0.85; }
.hero + .block, body.dense .hero + section.block { padding-top: 36px; }

/* Less empty space before the footer */
.footer { margin-top: 0; padding: 32px 0 28px; }
.block.last, body.dense section.block.last { padding-bottom: 48px; }

/* Footer: brand, contact and site links in three columns, then a thin base line */
.footer { margin-top: 0; padding: 36px 0 0; border-top: 1px solid var(--rule); background: #ffffff; font-size: 15.5px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
.footer-about { margin-top: 10px; color: var(--muted); max-width: 34ch; }
.footer h4 { font-family: var(--font); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 10px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 18px; border-top: 1px solid var(--rule-soft); font-size: 13.5px; color: var(--muted); }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr; gap: 22px; } }

/* Insights overview: one block per kind of post */
.insight-group { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--rule); }
.insight-group:first-of-type { margin-top: 20px; }
.insight-group h2 a:hover { color: var(--accent); }
.insight-group .block-lede { margin-bottom: 0; }

/* Toolbox: the five step cards are the filter */
button.step-card { font: inherit; text-align: left; border: 0; cursor: pointer; min-height: 0; }
.step-card .n { font-size: 34px; }
.step-card.dim { opacity: 0.35; }
.step-card[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.list-head { display: flex; align-items: baseline; gap: 20px 28px; flex-wrap: wrap; }
.list-head h2 { margin-bottom: 0; margin-right: auto; scroll-margin-top: 90px; }

/* About page, kept short */
.about-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15.5px; color: var(--muted); }
.about-facts a { color: var(--accent); }
.inline-link { color: var(--accent); white-space: nowrap; }
.missing { padding: 0 0 40px; font-size: 14.5px; }
.block .team-grid, .block .stats { margin-top: 22px; }

/* Team shown small: a round photo beside name, role and one line */
.team-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 22px 48px; max-width: none; }
.team-grid.compact .member { display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: start; }
.team-grid.compact .portrait { width: 60px; height: 60px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0; }
.team-grid.compact .portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-grid.compact .member-name { font-size: 18px; display: block; }
.team-grid.compact .member-role { display: block; margin: 2px 0 6px; }
.team-grid.compact .member p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.missing { padding-top: 8px; }
@media (max-width: 700px) { .team-grid.compact { grid-template-columns: 1fr; } }

/* Projects page */
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.block .eu-note { margin-top: 24px; }

/* Work with us: four numbered cards and one contact band */
.card.service { gap: 8px; padding: 24px 26px 26px; }
.service-n { font-size: 30px; font-style: italic; line-height: 1; color: var(--accent); }
.card.service h3 { font-size: 25px; margin-top: 4px; }
.service-who { font-size: 12px !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 6px; }
.service-get { padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--rule-soft); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 32px 36px; border-radius: 22px; background: #5b4fc0; color: #ffffff; }
.cta h2 { color: #ffffff; margin-bottom: 8px; max-width: 24ch; }
.cta h2 em { color: #e8f34a; font-style: italic; }
.cta p { max-width: 52ch; opacity: 0.92; }
.cta-button { padding: 14px 24px; border-radius: 999px; background: #e8f34a; color: #15121f; font-size: 18px; white-space: nowrap; }
.cta-button:hover { background: #ffffff; }

/* Sixth step: funding */
.s-fund { --c: #d3ccf6; --ct: #15121f; }
.step-cards { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.step-card { padding: 18px 16px 20px; }
.step-card h3 { font-size: 22px; }
.step-card p { font-size: 14.5px; }
@media (max-width: 1100px) { .step-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .step-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .step-cards { grid-template-columns: 1fr; } }

/* Home: three small news cards in one row */
.cards.three { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.cards.three .cover { aspect-ratio: 2 / 1; }
.cards.three .card-body { padding: 14px 16px 16px; gap: 8px; }
.cards.three .card h3 { font-size: 18px; line-height: 1.2; }
.cards.three .card p { font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards.three .card .practice { font-size: 12.5px; padding-top: 8px; }
.cards.three .chip { font-size: 10px; padding: 4px 8px; }
@media (max-width: 620px) {
  .cards.three { grid-template-columns: 1fr; gap: 12px; }
  .cards.three .card.case { flex-direction: row; }
  .cards.three .cover { width: 104px; flex: none; aspect-ratio: auto; }
  .cards.three .card p:not(.practice) { display: none; }
}
/* Menu never spills over the page on narrow screens */
.nav-inner { height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; row-gap: 4px; }
@media (max-width: 900px) {
  .nav-links { font-size: 15px; gap: 4px 16px; padding-bottom: 2px; }
}

/* Home: track record in one slim row under the drawing */
.figures-band { padding: 22px 0 18px; background: #ffffff; border-bottom: 1px solid var(--rule); }
body.dense section.figures-band { padding: 22px 0 18px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 28px; }
.figures div { display: flex; flex-direction: column; gap: 2px; }
.figures strong { font-size: 34px; line-height: 1; font-weight: 400; font-style: italic; color: var(--accent); }
.figures span { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.figures-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.figures-band + .block, body.dense .figures-band + section.block { padding-top: 36px; }

/* Home: one sentence on what Participio does */
.statement, body.dense section.statement { padding: 30px 0 4px; }
.statement p { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.35; max-width: 46ch; color: var(--ink); }
.statement + .block, body.dense .statement + section.block { padding-top: 32px; }
/* About: the figures row sits between the intro and the team */
main > .block.first + .figures-band { margin-top: 28px; border-top: 1px solid var(--rule); }

/* Step picker: six small tiles in one row */
#steps.step-cards { grid-template-columns: repeat(6, 1fr); gap: 10px; }
#steps .step-card { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; min-height: 0; }
#steps .step-card .n { font-size: 22px; line-height: 1; }
#steps .step-title { font-size: 17px; line-height: 1.15; flex: 1; }
#steps .step-card .counts { margin: 0; font-size: 12px; letter-spacing: 0; opacity: 0.8; }
#list-lede { margin: 10px 0 0; }
@media (max-width: 1000px) { #steps.step-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { #steps.step-cards { grid-template-columns: repeat(2, 1fr); } }

/* Posts about events organised by others */
.chip.outline { background: transparent; color: var(--ink-2); border: 1px solid var(--ink-2); }
.by-note { margin: 0 0 24px; padding: 12px 16px; border-left: 3px solid var(--accent); background: #ffffff; font-size: 15.5px; color: var(--ink-2); }

/* Hub statement, quieter */
.statement, body.dense section.statement { padding: 22px 0 0; }
.statement p { font-size: 17.5px; line-height: 1.5; max-width: 70ch; color: var(--ink-2); }
.statement + .block, body.dense .statement + section.block { padding-top: 26px; }

/* Partner-first structure */
.cta-button.dark { display: inline-block; background: var(--ink); color: #ffffff; font-size: 16px; padding: 12px 22px; }
.cta-button.dark:hover { background: var(--accent); }
.statement-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.statement-row p { flex: 1 1 420px; }
.facts-table { margin: 0; max-width: 720px; border-top: 1px solid var(--rule); }
.facts-table div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.facts-table dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts-table dd { margin: 0; font-size: 17px; }
.facts-table a { color: var(--accent); }
.process { cursor: default; }
.block + .figures-band { margin-top: 0; border-top: 1px solid var(--rule); }

/* Photos from events */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; margin-top: 18px; }
.gallery figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--rule-soft); }
.gallery figure.big { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; font-size: 13px; line-height: 1.3; color: #ffffff; background: linear-gradient(transparent, rgba(21, 18, 31, 0.78)); }
.gallery figcaption .gap { color: #ffd9cf; outline-color: #ffd9cf; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
/* Dated list of recent work */
.timeline { list-style: none; margin-top: 16px; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.timeline span { grid-row: span 2; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.timeline strong { font-weight: 600; color: var(--ink); display: block; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } .timeline span { grid-row: auto; } }

/* Consultancy structure: section rows on the home page, collaborators list */
.block-lede.small { font-size: 16.5px; margin: 6px 0 0; }
.block h2.sub { margin-top: 44px; }
.collab { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; margin-top: 14px; border-top: 1px solid var(--rule); }
.collab li { padding: 16px 0; border-bottom: 1px solid var(--rule-soft); font-size: 21px; line-height: 1.2; }
.collab li span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.collab a:hover { color: var(--accent); }
