/* =========================================================================
   EBPMN — style.css
   Mobile-first. Identity derived from the EBPMN institutional deck (Sept 2026),
   emergingbiopharma.org and funding.emergingbiopharma.org.
   Orange is the primary colour; teal comes from the logo mark.
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --orange: #FF6820;          /* primary: fills, buttons, waves, large highlighted words */
  --orange-strong: #E8531F;   /* hover state */
  --orange-ink: #BF3618;      /* small orange text (links, labels) — AA on white */
  --orange-soft: #FDEBE6;
  --orange-tint: #FFF4EE;
  --teal: #6FA99B;            /* logo mark */
  --teal-ink: #2F7D6E;
  --sage: #CFE4DD;
  --teal-soft: #E3F1ED;
  /* Neutrals */
  --ink: #1A1D21;
  --muted: #5D6673;
  --line: #E2EAE7;
  --surface: #F6F9F8;
  --bg: #FFFFFF;
  /* Status */
  --ok: #1E7F4F; --ok-bg: #E5F4EC;
  --error: #B42318; --error-bg: #FEF3F2;
  /* Shape */
  --radius: 14px; --radius-sm: 10px; --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(26,29,33,.06), 0 8px 24px rgba(26,29,33,.06);
  --shadow-lg: 0 18px 48px rgba(26,29,33,.16);
  /* Type */
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Layout */
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: 56px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --section-y: 80px; --header-h: 68px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* "Emerging Biopharma" highlight. Large text uses the brand orange;
   inside running text we use the darker ink for legibility (AA). */
.hl { color: var(--orange); }
p .hl, li .hl { color: var(--orange-ink); font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--surface { background: var(--surface); }
.section--tight { padding-top: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.prose { max-width: 70ch; }
.prose p, .prose li { color: #343A42; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* ---------- 3. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-pill);
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
/* Orange fill with ink text: 5.6:1 contrast (white on #FF6820 would be 2.9:1). */
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-strong); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn svg, .link-arrow svg { width: 18px; height: 18px; flex: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink);
}
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover svg { transform: translate(2px,-2px); }
.link-arrow svg { transition: transform .2s; }

/* ---------- 4. Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: #fff; /* no backdrop-filter: it would trap the fixed mobile drawer inside the header */
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1360px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
@media (min-width: 768px) { .brand img { height: 50px; } }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* Mobile drawer */
.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto;
  padding: 16px var(--gutter) 40px; transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.nav-open .site-nav { transform: none; visibility: visible; }
.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link, .nav-sub-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px;
  padding: 14px 4px; color: var(--ink); text-decoration: none; font: 600 1.05rem/1.2 var(--f-body);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-link[aria-current="page"], .nav-sub-toggle.is-current { color: var(--orange-ink); }
.nav-sub-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub { list-style: none; margin: 0; padding: 0 0 10px 12px; display: none; }
.nav-sub.is-open { display: block; }
.nav-sub a { display: block; padding: 10px 4px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { color: var(--orange-ink); }
.nav-cta { margin-top: 20px; width: 100%; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; transform: none; visibility: visible; padding: 0; overflow: visible; background: none; display: flex; align-items: center; gap: 14px; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .nav-sub-toggle { padding: 10px 9px; font-size: .92rem; width: auto; border-radius: 8px; }
  .nav-link:hover, .nav-sub-toggle:hover { background: var(--surface); }
  .nav-sub {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 110; min-width: 260px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  }
  .nav-sub a { padding: 10px 12px; border-radius: 8px; color: var(--ink); }
  .nav-sub a:hover { background: var(--orange-tint); }
  .nav-cta { margin: 0; width: auto; min-height: 42px; padding: 10px 18px; font-size: .92rem; }
}
@media (min-width: 1440px) { .nav-link, .nav-sub-toggle { padding: 10px 12px; font-size: .95rem; } }

/* ---------- 5. Wave artwork ---------- */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(70px, 11vw, 150px); pointer-events: none; }
.waves svg { width: 100%; height: 100%; display: block; }
.waves .w1 { fill: var(--sage); } .waves .w2 { fill: var(--teal); } .waves .w3 { fill: var(--orange); }

/* ---------- 6. Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); padding: 48px 0 calc(clamp(70px, 11vw, 150px) + 40px); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: #3E454F; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; mix-blend-mode: multiply; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font: 700 clamp(1.4rem, 3vw, 2rem)/1 var(--f-display); color: var(--ink); }
.stat span { font-size: .85rem; color: var(--muted); }
@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- 7. Page hero (interior pages) — orange band like deck section slides ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--orange); color: var(--ink); padding: 56px 0 64px; }
.page-hero::after {
  content: ""; position: absolute; inset: auto -10% -30% 25%; height: 120%;
  background: url("../assets/img/waves-white.png") right bottom / contain no-repeat; opacity: .55; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--ink); max-width: 20ch; }
.page-hero .lead { color: var(--ink); opacity: .92; }
.page-hero .eyebrow { color: var(--ink); }
.page-hero .eyebrow::before { background: var(--ink); }
.page-hero .sync { margin-top: 20px; font-family: var(--f-mono); font-size: .9rem; letter-spacing: .02em; font-weight: 500; }
@media (min-width: 768px) { .page-hero { padding: 88px 0 96px; } }
.breadcrumb { font-size: .85rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--ink); }

/* ---------- 8. Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #D3DFDA; }
.card__media { aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.card__title { font-size: 1.15rem; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__text { color: var(--muted); margin: 0; font-size: .95rem; }
.card__meta { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.card__meta div { display: flex; gap: 8px; align-items: flex-start; }
.card__meta svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--teal-ink); }
.card__foot { margin-top: auto; padding-top: 10px; }
.date { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--orange-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--teal-soft); color: var(--teal-ink); font-size: .76rem; font-weight: 600; text-decoration: none; }
.chip--now { background: var(--ok-bg); color: var(--ok); }
.chip--now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.empty { padding: 28px; border: 1px dashed #C9D6D1; border-radius: var(--radius); color: var(--muted); text-align: center; background: #fff; }

/* Axis cards on the home page */
.axis-card { padding: 24px; gap: 14px; background: #fff; }
.axis-card .axis-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.axis-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); }
.axis-icon svg { width: 24px; height: 24px; }
.axis-card h3 { margin: 4px 0 0; font-size: 1.35rem; }
.axis-card h3 a { color: inherit; text-decoration: none; }
.axis-card h3 a::after { content: ""; position: absolute; inset: 0; }
.axis-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.axis-list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.axis-list .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.axis-list .v { font-size: .93rem; font-weight: 600; line-height: 1.35; }
.axis-list .v small { display: block; font-weight: 400; color: var(--muted); }
.axis-card--wide { background: var(--teal-ink); color: #fff; border-color: var(--teal-ink); }
.axis-card--wide h3, .axis-card--wide .axis-list .v { color: #fff; }
.axis-card--wide .card__text, .axis-card--wide .axis-list .v small { color: #E3F1ED; }
.axis-card--wide .axis-list, .axis-card--wide .axis-list li { border-color: rgba(255,255,255,.22); }
.axis-card--wide .axis-list .k { color: var(--sage); }
.axis-card--wide .axis-icon { background: rgba(255,255,255,.16); color: #fff; }
.axis-card--wide .link-arrow { color: #fff; }
.axis-card--orange { background: var(--orange); border-color: var(--orange); }
.axis-card--orange .card__text, .axis-card--orange .axis-list .v small { color: var(--ink); opacity: .85; }
.axis-card--orange .axis-list, .axis-card--orange .axis-list li { border-color: rgba(26,29,33,.18); }
.axis-card--orange .axis-list .k, .axis-card--orange .link-arrow { color: var(--ink); }
.axis-card--orange .axis-icon { background: rgba(255,255,255,.35); color: var(--ink); }

/* ---------- 9. Split / info blocks ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { display: flex; gap: 10px; align-items: center; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--orange-ink); }
.info-card p:last-child { margin: 0; }
.mission {
  position: relative; overflow: hidden; background: var(--orange); border-radius: calc(var(--radius) + 6px); padding: 32px;
}
.mission p { font: 700 clamp(1.4rem, 3vw, 2.1rem)/1.2 var(--f-display); letter-spacing: -.02em; margin: 0; max-width: 28ch; position: relative; }
.mission::after { content: ""; position: absolute; inset: 0; background: url("../assets/img/waves-white.png") right bottom / 80% no-repeat; opacity: .45; }
.criteria { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.criteria li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.criteria .n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); font: 700 .9rem var(--f-mono); }

/* ---------- 10. Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); font: 700 1.08rem/1.35 var(--f-display);
}
.acc-btn .n { font: 500 .8rem var(--f-mono); color: var(--orange-ink); margin-right: 12px; }
.acc-btn svg { width: 22px; height: 22px; flex: none; transition: transform .25s; color: var(--orange-ink); }
.acc-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc-panel { padding: 0 2px 18px 34px; color: var(--muted); }
.acc-panel[hidden] { display: none; }

/* ---------- 11. Logo carousel & partner strip ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-controls { display: flex; justify-content: flex-end; margin-top: 12px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .85rem var(--f-body); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; }
  .marquee-controls { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.logo-tile {
  flex: none; display: grid; place-items: center; width: 170px; height: 96px; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.logo-tile:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.logo-tile img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.logo-tile .wordmark { font: 700 .88rem/1.25 var(--f-display); color: var(--ink); text-align: center; }
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logo-grid .logo-tile { width: auto; }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
.partners-strip { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0; }
.partners-strip h2 { font-size: 1.35rem; margin-bottom: 18px; }
.partners-strip .group + .group { margin-top: 36px; }

/* ---------- 12. Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: 600 .9rem var(--f-body); cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 13. People ---------- */
.person { text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 0; width: 100%; }
.person .card__media { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--surface); }
.person .card__media img { object-fit: contain; padding: 18%; }
.person .card__media img.is-photo { object-fit: cover; padding: 0; }
.avatar { width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font: 700 clamp(1.6rem, 4vw, 2.4rem) var(--f-display); }
.person .card__body { gap: 4px; }
.person .card__title { font-size: 1.05rem; }
.person-company { color: var(--muted); font-size: .9rem; }
.person-detail { display: grid; gap: 12px; }
.person-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
.person-detail dt { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); padding-top: 3px; }
.person-detail dd { margin: 0; }

/* ---------- 14. Powered by ---------- */
.powered { display: grid; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 760px) { .powered { grid-template-columns: 200px 1fr; padding: 32px; } }
.powered__logo { display: grid; place-items: center; height: 110px; border-radius: var(--radius-sm); background: var(--surface); padding: 16px; font: 700 1.3rem var(--f-display); }
.powered__logo img { max-height: 70px; width: auto; }
.powered h3 { margin-bottom: 6px; }
.powered dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: .92rem; }
.powered dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-ink); padding-top: 3px; }
.powered dd { margin: 0; color: var(--muted); }
.powered--open { border-style: dashed; background: var(--orange-tint); border-color: #F6C2A6; }

/* ---------- 15. Detail pages ---------- */
.detail-banner { border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--surface); aspect-ratio: 21 / 9; margin-top: -40px; position: relative; z-index: 2; box-shadow: var(--shadow-lg); }
.detail-banner img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; gap: 36px; margin-top: 40px; }
@media (min-width: 960px) { .detail-layout { grid-template-columns: 1fr 320px; gap: 56px; } }
.detail-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 960px) { .detail-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; gap: 2px; }
.facts .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.05); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-nav a { font-weight: 700; text-decoration: none; }
.author { display: flex; gap: 12px; align-items: center; }
.author .avatar { width: 48px; font-size: 1rem; }
.not-found { padding: 18px; background: var(--orange-tint); border-radius: var(--radius); }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.req { color: var(--orange-ink); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C9D6D1; border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field.has-error input, .field.has-error textarea, .field.has-error .fee-options { border-color: var(--error); }
.field-error { color: var(--error); font-size: .85rem; min-height: 0; }
.field-error:empty { display: none; }
.hint { font-size: .85rem; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; }
.fee-options { display: grid; gap: 12px; border-radius: var(--radius); }
@media (min-width: 700px) { .fee-options { grid-template-columns: 1fr 1fr; } }
.fee-option { position: relative; }
.fee-option input { position: absolute; opacity: 0; inset: 0; }
.fee-option label {
  display: grid; gap: 4px; height: 100%; padding: 20px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; font-weight: 400;
}
.fee-option label b { font: 700 1.5rem var(--f-display); }
.fee-option input:checked + label { border-color: var(--orange); background: var(--orange-tint); box-shadow: 0 0 0 4px var(--orange-soft); }
.fee-option input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; }
.form-status.is-error { color: var(--error); background: var(--error-bg); padding: 12px 14px; border-radius: var(--radius-sm); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- 17. Modal & lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,14,20,.55); }
.modal__dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: calc(var(--radius) + 6px); padding: 32px; box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); margin-bottom: 18px; }
.modal__icon svg { width: 28px; height: 28px; }
.modal__dialog h2 { font-size: 1.5rem; }
.modal__dialog p { color: var(--muted); }
.modal__close-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal__close-x svg { width: 20px; height: 20px; }
.lightbox .modal__dialog { width: min(1100px, 100%); padding: 0; background: #0E1114; border-radius: var(--radius); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { color: #D9DEE3; padding: 14px 18px; font-size: .92rem; display: flex; justify-content: space-between; gap: 12px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }
.lightbox .lb-nav svg { width: 22px; height: 22px; }
.lightbox .modal__close-x { z-index: 2; }

/* ---------- 18. CTA band & footer ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--orange); border-radius: calc(var(--radius) + 8px); padding: 40px 28px; display: grid; gap: 20px; align-items: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("../assets/img/waves-white.png") right center / auto 140% no-repeat; opacity: .5; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band p { margin: 8px 0 0; max-width: 55ch; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; padding: 56px; } }

.site-footer { position: relative; background: var(--orange); color: var(--ink); padding: 56px 0 28px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 70%; height: 100%; background: url("../assets/img/waves-white.png") right top / cover no-repeat; opacity: .35; pointer-events: none; }
.site-footer .wrap { position: relative; }
.footer-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo img { height: 64px; width: auto; }
.footer-tagline { font: 700 1.3rem/1.3 var(--f-display); max-width: 26ch; margin: 18px 0 0; }
.site-footer h2 { font: 500 .78rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a, .site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover, .site-footer a:hover { text-decoration: underline; color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.social a:hover { background: #fff; color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(26,29,33,.22); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }

/* ---------- 19. Misc ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.bio { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .bio { grid-template-columns: 280px 1fr; } }
.bio-card { background: var(--surface); border-radius: var(--radius); padding: 24px; text-align: center; }
.bio-card .avatar { margin: 0 auto 16px; width: 140px; }
.coming-soon { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; position: relative; overflow: hidden; padding: 64px 0 180px; }
.big-number { font: 700 clamp(5rem, 18vw, 11rem)/1 var(--f-display); color: var(--orange); letter-spacing: -.04em; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; }
.muted { color: var(--muted); }

/* ---------- 20. Fixes found in QA ---------- */
.powered__logo svg { width: 48px; height: 48px; color: var(--orange-ink); }
.cta-band::after { opacity: .3; background-size: auto 100%; background-position: right bottom; }
@media (min-width: 860px) { .cta-band::after { opacity: .5; background-size: auto 140%; background-position: right center; } }
@media (min-width: 1200px) { .nav-link, .nav-sub-toggle { white-space: nowrap; padding: 9px 9px; font-size: .92rem; } }

/* =========================================================================
   21. Homepage layout (Website Layout Adjustment, Oct 2026)
   First screen = compact header + hero + three pillars.
   ========================================================================= */
.home-top { position: relative; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); padding: 20px 0 36px; overflow: hidden; }
.home-hero { display: grid; gap: 20px; align-items: center; }
.home-hero h1 { font-size: clamp(1.8rem, 3.1vw, 2.6rem); max-width: 24ch; margin-bottom: .3em; text-wrap: balance; }
.home-hero .eyebrow { margin-bottom: 10px; }
.home-hero .lead { font-size: clamp(.98rem, 1.15vw, 1.06rem); line-height: 1.55; max-width: 68ch; margin-bottom: 0; color: #3E454F; }
.home-hero .hero-actions { margin-top: 16px; }
.home-hero__brand { position: relative; display: none; }
.home-hero__brand img { width: 100%; height: auto; mix-blend-mode: multiply; }
.dimensions { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dimensions li { font: 500 .74rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); color: var(--teal-ink); }
.dimensions li:nth-child(odd) { color: var(--orange-ink); }
@media (min-width: 900px) {
  .home-top { padding: 24px 0 40px; }
  .home-hero { grid-template-columns: 1.6fr 1fr; gap: 40px; }
  .home-hero__brand { display: block; }
}

/* Three pillars */
.pillars { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.pillar {
  position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover, .pillar:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #F6C2A6; }
.pillar__media { aspect-ratio: 16 / 6; max-width: 100%; overflow: hidden; background: var(--surface); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pillar:hover .pillar__media img { transform: scale(1.04); }
.pillar__body { display: flex; flex-direction: column; gap: 7px; padding: 14px 18px 16px; flex: 1; }
.pillar__kicker { font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.pillar h3 { font-size: 1.2rem; margin: 0; }
.pillar h3 a { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pillar h3 svg { width: 22px; height: 22px; flex: none; color: var(--orange-ink); transition: transform .2s; }
.pillar:hover h3 svg { transform: translate(2px,-2px); }
.pillar h3 a { color: inherit; text-decoration: none; }
.pillar h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.pillar__text { color: var(--muted); font-size: .94rem; margin: 0; }
.pillar__focus { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.pillar__focus li { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--teal-soft); color: var(--teal-ink); }
.pillar__latest { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); font-size: .86rem; display: grid; gap: 2px; position: relative; z-index: 2; }
.pillar__latest .k { font: 500 .68rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.pillar__latest a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pillar__latest a:hover { color: var(--orange-ink); text-decoration: underline; }
.pillar__cta { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Carousel (shared by events and platforms) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; list-style: none; margin: 0; padding: 4px 2px 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .carousel__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1000px) { .carousel__track { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; } }
.carousel--platforms .carousel__track { grid-auto-columns: 92%; }
@media (min-width: 760px) { .carousel--platforms .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); } }
.carousel__slide { scroll-snap-align: start; min-width: 0; display: flex; }
.carousel__slide > * { flex: 1; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.carousel__dots { display: flex; flex-wrap: wrap; gap: 6px; }
.carousel__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel__dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #C9D6D1; transition: width .25s, background .25s; }
.carousel__dots button[aria-current="true"]::before { width: 24px; border-radius: 6px; background: var(--orange); }
.carousel__nav { display: flex; gap: 8px; }
.carousel__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.carousel__nav button:hover:not([disabled]) { border-color: var(--ink); }
.carousel__nav button[disabled] { opacity: .35; cursor: default; }
.carousel__nav svg { width: 20px; height: 20px; }
.carousel.is-static .carousel__bar { display: none; }

/* Event slide */
.ev-slide { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.ev-slide:hover, .ev-slide:focus-within { box-shadow: var(--shadow-lg); border-color: #D3DFDA; }
.ev-slide__media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--surface); overflow: hidden; }
.ev-slide__media img { width: 100%; height: 100%; object-fit: cover; }
.ev-slide__badge { position: absolute; left: 12px; top: 12px; font: 500 .74rem var(--f-mono); padding: 5px 10px; border-radius: var(--radius-pill); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.ev-slide__badge--up { background: var(--orange); }
.ev-slide__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.ev-slide h3 { font-size: 1.08rem; margin: 0; }
.ev-slide h3 a { color: inherit; text-decoration: none; }
.ev-slide h3 a::after { content: ""; position: absolute; inset: 0; }
.ev-slide p { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-slide .link-arrow { margin-top: auto; padding-top: 8px; }

/* Platform slide */
.pf-slide { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.pf-slide__media { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.pf-slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s; }
.pf-slide:hover .pf-slide__media img { transform: scale(1.03); }
.pf-slide__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.pf-slide__name { font: 500 .74rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.pf-slide h3 { font-size: 1.35rem; margin: 0; }
.pf-slide p { margin: 0 0 6px; color: var(--muted); }
.pf-slide .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Global presence map ---------- */
.world-map { display: grid; gap: 14px; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.map-filters .filter-btn { display: inline-flex; align-items: center; gap: 8px; }
.map-filters .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--member { background: var(--orange); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--orange); }
.dot--partner { background: var(--teal-ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--teal-ink); }
.map-zoom { display: flex; gap: 6px; }
.map-zoom button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 700 1.1rem var(--f-body); color: var(--ink); }
.map-zoom button:hover { border-color: var(--ink); }
.map-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; touch-action: pan-y; }
.map-stage.is-zoomed { touch-action: none; cursor: grab; }
.map-stage svg { display: block; width: 100%; height: auto; user-select: none; }
.map-country { fill: #E7EEEB; stroke: #fff; stroke-width: .6; transition: fill .2s; }
.map-country.has-member { fill: #FFD9C4; }
.map-country.has-partner { fill: var(--sage); }
.map-country.has-member.has-partner { fill: #FFD9C4; }
.map-marker { cursor: pointer; outline: none; }
.map-marker circle.halo { fill: var(--orange); opacity: .18; transition: opacity .2s; }
.map-marker circle.pin { fill: var(--orange); stroke: #fff; }
.map-marker.is-partner circle.halo { fill: var(--teal-ink); }
.map-marker.is-partner circle.pin { fill: var(--teal-ink); }
.map-marker.is-mixed circle.pin { fill: var(--orange); stroke: var(--teal-ink); }
.map-marker text { font: 700 7px var(--f-body); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-marker:hover circle.halo, .map-marker:focus-visible circle.halo, .map-marker.is-active circle.halo { opacity: .45; }
.map-marker:focus-visible circle.pin { stroke: var(--ink); }
.map-marker.is-hidden { display: none; }
.map-tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; padding: 6px 10px; border-radius: 8px;
}
.map-pop {
  position: absolute; z-index: 4; width: min(320px, calc(100% - 24px)); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 16px 12px;
}
.map-pop h3 { font-size: 1.05rem; margin: 0 28px 2px 0; }
.map-pop .muted { font-size: .85rem; margin: 0 0 10px; }
.map-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 220px; overflow-y: auto; }
.map-pop li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.map-pop li a { font-weight: 700; color: var(--ink); text-decoration: none; }
.map-pop li a:hover { color: var(--orange-ink); text-decoration: underline; }
.map-pop .tag { justify-self: start; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); }
.tag--member { background: var(--orange-soft); color: var(--orange-ink); }
.tag--partner { background: var(--teal-soft); color: var(--teal-ink); }
.map-pop__close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.map-pop__close svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .map-pop { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; transform: none !important; }
}
.map-list summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.map-list__grid { display: grid; gap: 12px 24px; margin-top: 12px; }
@media (min-width: 700px) { .map-list__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.map-list h3 { font-size: .95rem; margin: 0 0 4px; }
.map-list ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); display: grid; gap: 2px; }
.map-list a { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

.link-btn { background: none; border: 0; padding: 0; color: var(--orange-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
/* The closed mobile drawer sits off-screen to the right; never let it widen the page. */
html, body { overflow-x: clip; }

/* =========================================================================
   22. Homepage — two-column layout matching the EBPMN reference screen
   ========================================================================= */
.wrap--wide { max-width: 1400px; }
.home-top { padding: 18px 0 20px; background: var(--surface); }
.home-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); gap: 28px; } }
.home-main { display: grid; gap: 18px; min-width: 0; }

/* Hero card: logo on the left, message and CTA on the right */
.hero-card {
  position: relative; overflow: hidden; display: grid; gap: 14px; align-items: center; padding: 22px 22px 24px;
  border-radius: 18px; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 30%, var(--teal-soft) 0 26%, transparent 27%),
    radial-gradient(circle at 46% 110%, #EAF4F1 0 30%, transparent 31%),
    radial-gradient(circle at 92% 8%, var(--orange-tint) 0 22%, transparent 23%),
    #FBFDFC;
}
.hero-card__logo img { width: min(220px, 60%); height: auto; }
.hero-card h1 { font-size: clamp(1.55rem, 2.15vw, 2.2rem); line-height: 1.12; margin: 0 0 .35em; text-wrap: balance; }
.hero-card .lead { font-size: clamp(.95rem, 1.05vw, 1.04rem); color: #3E454F; max-width: 62ch; margin: 0 0 14px; }
.hero-card .lead p { margin: 0 0 .5em; }
@media (min-width: 700px) {
  .hero-card { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); padding: 26px 30px; gap: 26px; }
  .hero-card__logo { display: grid; place-items: center; }
  .hero-card__logo img { width: 100%; max-width: 230px; }
}

/* Hubs: title above the image, as in the reference */
.home-main .pillars { margin-top: 0; }
.pillar { background: #fff; }
.pillar__head { padding: 12px 16px 10px; }
.pillar__head h3 { font-size: 1.02rem; }
.pillar__media { aspect-ratio: 16 / 10; margin: 0 12px; border-radius: 10px; }
.pillar__body { padding: 12px 16px 14px; gap: 6px; }
.pillar__text { font-size: .9rem; }
.pillar__latest { font-size: .84rem; }
.pillar__latest .k { color: var(--orange-ink); }

/* Right column blocks */
.home-side { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 700px) and (max-width: 1099px) { .home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-side .side-block:last-child { grid-column: 1 / -1; } }
.side-block { min-width: 0; }
.side-block h2 { font-size: 1.12rem; margin: 0 0 8px; }
.side-block h2 a { color: inherit; text-decoration: none; }
.side-block h2 a:hover { color: var(--orange-ink); }

/* Single-slide carousel (sidebar) */
.carousel--single .carousel__track { grid-auto-columns: 100%; gap: 12px; padding: 0; }
.carousel--single .carousel__bar { margin-top: 6px; }
.carousel--single .carousel__nav button { width: 34px; height: 34px; }
.carousel--single .carousel__nav svg { width: 16px; height: 16px; }
.carousel--single .carousel__dots button { width: 20px; height: 24px; }
.carousel--single .carousel__dots button::before { width: 7px; height: 7px; }
.carousel--single .carousel__dots button[aria-current="true"]::before { width: 18px; }

/* Image tile with caption overlay (platforms + event photos) */
.tile { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile--top img { object-position: top left; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; background: linear-gradient(180deg, transparent, rgba(10,14,20,.86)); display: grid; gap: 2px; }
.tile__k { font: 500 .7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #FFD2BD; }
.tile__t { font: 700 1rem/1.25 var(--f-display); color: #fff; }
.tile__d { font-size: .8rem; color: #E3E8EC; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tile__go { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--orange); color: var(--ink); font: 700 .8rem var(--f-body); }
.tile__go svg { width: 14px; height: 14px; }

/* Compact map in the sidebar */
.world-map--compact { gap: 6px; }
.world-map--compact .map-stage { border-radius: 12px; }
.world-map--compact .map-toolbar { gap: 6px; }
.world-map--compact .map-filters .filter-btn { min-height: 30px; padding: 4px 10px; font-size: .78rem; gap: 6px; }
.world-map--compact .map-filters .dot { width: 9px; height: 9px; }
.world-map--compact .map-zoom button { width: 30px; height: 30px; font-size: .95rem; border-radius: 8px; }
.world-map--compact .map-pop { width: min(300px, calc(100% - 16px)); }

/* Logo band right below the hubs */
.logo-band { padding: 18px 0 26px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-band .logo-tile { width: 200px; height: 104px; }
.logo-band .marquee-controls { justify-content: space-between; align-items: center; margin-top: 10px; }

/* Navigation: external Funding Navigator link */
.nav-link--ext span[aria-hidden] { margin-left: 3px; font-size: .85em; color: var(--orange-ink); }
/* First-screen fit (1440×900 and up): compact hero, hub cards and sidebar */
.hero-card { padding: 18px 22px; }
@media (min-width: 700px) { .hero-card { padding: 20px 28px; } }
.hero-card h1 { font-size: clamp(1.5rem, 1.95vw, 2.05rem); }
.hero-card .lead { line-height: 1.5; margin-bottom: 12px; }
.hero-card .btn { min-height: 44px; padding: 10px 20px; }
.pillar__head h3 { min-height: 2.5em; display: flex; align-items: center; }
.pillar__head h3 a { width: 100%; }
.pillar__focus-line { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--teal-ink); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile { aspect-ratio: 2.2 / 1; }
.carousel--single .carousel__bar { margin-top: 4px; }
.carousel--single .carousel__nav button { width: 30px; height: 30px; }
.carousel__count { font: 500 .78rem var(--f-mono); color: var(--muted); padding-left: 2px; }
.world-map--compact .map-toolbar { position: static; }
.world-map--compact .map-zoom { position: absolute; z-index: 2; right: 8px; top: 8px; flex-direction: column; }
.world-map--compact { position: relative; }
.world-map--compact .map-stage { position: relative; }
.tile__cap { padding-top: 46px; background: linear-gradient(180deg, transparent, rgba(10,14,20,.6) 35%, rgba(10,14,20,.92)); }

/* Desktop submenus: an invisible bridge covers the gap between button and menu,
   so the pointer can travel into the menu without it closing. */
@media (min-width: 1200px) {
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nav-sub a { white-space: nowrap; }
}

/* =========================================================================
   23. Orange bands — half height and clean reading (Oct 2026)
   The white wave lines stay on the right and fade out before reaching the
   text, so dark text always sits on solid orange (contrast 5.6:1).
   ========================================================================= */
.page-hero { padding: 26px 0 30px; }
@media (min-width: 768px) { .page-hero { padding: 34px 0 38px; } }
.page-hero .eyebrow { margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 34ch; margin-bottom: .25em; text-wrap: balance; }
.page-hero .lead { font-size: clamp(.98rem, 1.2vw, 1.08rem); max-width: 72ch; margin: 0; opacity: 1; font-weight: 500; color: var(--ink); }
.page-hero .sync { margin-top: 10px; }
.page-hero .breadcrumb { margin-bottom: 8px; }
.page-hero p.mt-1 { margin-top: 12px; }
.page-hero::after {
  inset: 0 0 0 auto; width: min(52%, 780px); height: 100%;
  background: url("../assets/img/waves-white.png") right center / cover no-repeat;
  opacity: .32;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
@media (max-width: 767px) { .page-hero::after { width: 60%; opacity: .2; } }
.detail-banner { margin-top: 18px; }

/* Same treatment for the other orange areas */
.site-footer::before {
  inset: 0 0 0 auto; width: min(55%, 820px); opacity: .28;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.cta-band::after {
  inset: 0 0 0 auto; width: 55%; opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.mission::after {
  inset: 0 0 0 auto; width: 60%; opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 65%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 65%);
}
.cta-band p, .mission p, .footer-tagline { color: var(--ink); }

/* =========================================================================
   24. Company members cards
   ========================================================================= */
.companies__tools { display: grid; gap: 12px; margin-bottom: 8px; }
.companies__search { width: 100%; max-width: 520px; min-height: 46px; padding: 10px 14px; border: 1px solid #C9D6D1; border-radius: var(--radius-sm); font: inherit; }
.companies__search:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.companies .filters { margin-bottom: 0; }
.companies__count { margin: 6px 0 16px; font-size: .9rem; }
.companies__grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .companies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .companies__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.company { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.company:hover { box-shadow: var(--shadow-lg); border-color: #D3DFDA; }
.company__logo { height: 120px; display: grid; place-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.company__logo img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }
.company__logo .wordmark { font: 700 1.3rem var(--f-display); color: var(--ink); }
.company__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.company__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.company__top h3 { font-size: 1.15rem; margin: 0; }
.chip--board { background: var(--orange-soft); color: var(--orange-ink); white-space: nowrap; }
.company__country { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .9rem; font-weight: 600; color: var(--teal-ink); }
.company__country svg { width: 16px; height: 16px; flex: none; }
.company__tech { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.company__tech li { font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--teal-soft); color: var(--teal-ink); }
.company__desc { margin: 0; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.company__actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: .86rem; }
.btn--sm svg { width: 15px; height: 15px; }
.soon { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 6px 10px; border: 1px dashed #C9D6D1; border-radius: var(--radius-pill); }
.company__modal-logo { max-height: 70px; width: auto; margin-bottom: 4px; }
.logo-grid--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .logo-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.person .card__media { aspect-ratio: 16 / 10; }
.person .avatar { width: 34%; max-width: 110px; }
