/* [Krynica] — style.css
   Palette "Grafit i miedź". No external requests: fonts are served from /fonts. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched local fallbacks: text laid out in Arial / Courier New keeps (almost) the same
   width and line height as Onest / JetBrains Mono, so nothing jumps when the web fonts arrive. */
@font-face {
  font-family: 'Onest Fallback';
  src: local('Arial'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 105%;
  ascent-override: 97%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Consolas'), local('Courier New'), local('Liberation Mono');
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */
:root {
  --bg: #F3F1ED;
  --surface: #FFFFFF;
  --ink: #16191C;
  --muted: #4E5358;
  --line: #E2DED6;
  --primary: #1F6F66;
  --accent: #C2602B;        /* decorative copper: brackets, bars, dots */
  --accent-text: #B0541F;   /* copper for text on light and for white-on-copper fills */
  --accent-light: #E8905F;  /* copper on dark backgrounds */
  --teal-light: #8CC7BE;
  --tint1: #E3EEEC;
  --tint2: #F4E4DA;
  --tint3: #EFE7D3;
  --tint4: #E3E6EF;
  --chip: #E9E5DE;
  --neutral: #B9B2A6;
  --warn: #F2D3C3;
  --mono: #5F646A;
  --dark-line: #363B40;
  --dark-muted: #B5B9BD;
  --dark-text: #E6E8EA;
  --c1: #C2602B; --c2: #1F6F66; --c3: #8C3B4A; --c4: #4B4E8F; --c5: #B8892B; --c6: #2F5D8A;
  --k1: #A24F22; --k5: #7E5D16; --k6: #2F5D8A;
  --sans: 'Onest', 'Onest Fallback', Arial, sans-serif;
  --monofont: 'JetBrains Mono', 'JetBrains Mono Fallback', Consolas, monospace;
  --wrap: 80rem;
  --gutter: 2rem;
  --radius: 2rem;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- base ---------- */
/* Desktop: the whole page scales with the viewport height (like zooming out), so every
   section fits one screen on short laptops too. 16px at 900px tall, down to 12px. */
@media (min-width: 1100px) { html { font-size: clamp(12px, 1.78vh, 16px); } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--primary); }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--monofont); font-size: 0.8125rem; font-weight: 400; }
.kicker { font-family: var(--monofont); font-size: 0.875rem; color: var(--primary); }
.br { color: var(--accent); }
.on-dark .br { color: var(--accent-light); }
.accent { font-style: normal; color: var(--accent-text); }
.on-dark .accent { color: var(--accent-light); }
.skip {
  position: absolute; left: 1rem; top: -3.75rem; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 0.625rem 1rem; border-radius: 62.4375rem; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
html[lang="be"] h1 { font-size: clamp(2.5rem, 5.5vw, 4.125rem); }

h2 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.lead { font-size: 1.1875rem; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.section-head .title { display: flex; flex-direction: column; gap: 0.875rem; max-width: 47.5rem; }
.section-head .lead { max-width: 23.75rem; font-size: 1.125rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.875rem 1.75rem; border-radius: 62.4375rem; font-weight: 700; text-decoration: none; border: 1px solid transparent;
}
.btn-accent { background: var(--accent-text); color: #FFFFFF; font-weight: 800; }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-small { min-height: 2.75rem; padding: 0.625rem 1.375rem; font-size: 0.9375rem; }

/* ---------- header ---------- */
.site-header { padding: 1.375rem 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.25rem; }
@media (min-width: 901px) {
  /* three fixed columns: the menu stays centred whatever the language */
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header .nav { justify-self: center; }
  .site-header .header-tools { justify-self: end; }
}
.logo { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.9375rem; font-weight: 600; }
.nav a { padding: 0.5rem 0.75rem; border-radius: 999px; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--primary); }
.header-tools { display: flex; gap: 0.625rem; align-items: center; }
.lang-switch { display: flex; gap: 0.125rem; }
.lang {
  min-height: 2.25rem; min-width: 2.5rem; border: 0; background: transparent; border-radius: 999px;
  padding: 0.375rem 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--muted);
}
.lang:hover { color: var(--ink); }
.lang[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- hero ---------- */
.hero { padding: 1rem 0 0.5rem; display: flex; align-items: center; }
.hero .wrap { width: 100%; display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.hero-copy { flex: 1 1 35rem; display: flex; flex-direction: column; gap: 1.75rem; }
/* first screen = header + hero + community picker + marquee */
@media (min-width: 1100px) { .hero { min-height: calc(100svh - 6.0625rem - 4.25rem - 5.6875rem); } }
.hero-copy .kicker { display: flex; align-items: center; gap: 0.625rem; }
.hero-copy .kicker::before { content: ''; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--primary); }
.hero-copy .lead { font-size: 1.3125rem; max-width: 32.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-actions .btn { padding: 1.125rem 1.75rem; }

.orbit { flex: 1 1 28.75rem; display: flex; flex-direction: column; align-items: center; gap: 0; --pick: var(--c1); --pick-ink: var(--k1); }
.orbit-svg { width: min(100%, 30rem, 52vh); height: auto; }
.orbit-rot { transform-box: view-box; transform-origin: 50% 50%; transition: transform 0.9s var(--ease); }
.orbit-pointer { stroke: var(--pick); transition: stroke 0.6s; }
.orbit-pulse { stroke: var(--pick); transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.orbit-label { font-family: var(--monofont); font-size: 0.8125rem; letter-spacing: 1px; fill: var(--primary); }
.q-card {
  width: min(100%, 33.75rem); margin-top: -1.5rem; position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--line); border-top: 0.25rem solid var(--pick);
  border-radius: 1.375rem; padding: 1.125rem 1.375rem; box-shadow: 0 1.25rem 3.125rem rgba(60, 40, 10, 0.12);
  display: flex; flex-direction: column; gap: 0.375rem; animation: rise 0.6s ease-out;
}
.q-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.q-nav { display: none; gap: 0.25rem; flex: none; }
.q-nav button {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  font-size: 1.375rem; line-height: 1; font-weight: 400; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0 0 0.125rem;
}
.node { cursor: pointer; }
.q-card-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pick-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
.q-card-text { font-size: clamp(0.9375rem, 1.3vw, 1.125rem); font-weight: 600; }

.picker { padding: 0.5rem 0 1rem; }
.picker .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.chip {
  min-height: 2.75rem; border: 2px solid var(--line); background: transparent; border-radius: 62.4375rem;
  padding: 0.5rem 1rem; font-size: 0.9375rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.625rem;
  transition: background 0.3s, border-color 0.3s;
}
.chip::before { content: ''; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--dot); flex: none; }
.chip[aria-pressed="true"] { background: var(--surface); border-color: var(--dot); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--bg); padding: 1.375rem 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-list { display: flex; gap: 0.875rem; padding-right: 0.875rem; margin: 0; list-style: none; }
.marquee-list li {
  white-space: nowrap; border: 1px solid var(--dark-line); border-radius: 62.4375rem;
  padding: 0.625rem 1.25rem; font-size: 1rem; color: var(--dark-text);
}

/* ---------- sections ---------- */
.section { padding: 5rem 0; display: flex; align-items: center; }
.section > .wrap { width: 100%; display: flex; flex-direction: column; gap: 1.5rem; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt .chart, .section-alt .tab { background: var(--bg); }
.section-alt .tab[aria-selected="true"] { background: var(--ink); }
#jak { padding: 4.5rem 0; }
/* on a desktop screen every section is at least one screen tall, content centred */
@media (min-width: 1100px) { .section, .needs { min-height: 100svh; } }

/* bento "jak działa" */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.tile {
  border-radius: var(--radius); padding: 1.875rem; min-height: 14.75rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
}
.tile-3 { grid-column: span 3; }
.tile-2 { grid-column: span 2; padding: 1.75rem; min-height: 13.5rem; }
.tile-dark { background: var(--ink); color: var(--bg); }
.tile-dark .tile-tag { color: var(--teal-light); }
.tile-dark .tile-sub { color: var(--dark-muted); }
.tile-tag { font-family: var(--monofont); font-size: 0.8125rem; color: var(--primary); text-transform: uppercase; }
.tile-title { font-size: 1.625rem; font-weight: 700; line-height: 1.2; }
.tile-2 .tile-title { font-size: 1.4375rem; }
.tile-sub { color: var(--muted); }
.tint1 { background: var(--tint1); }
.tint2 { background: var(--tint2); }
.tint3 { background: var(--tint3); }
.tint4 { background: var(--tint4); }
.tint2 .tile-tag { color: var(--k1); }
.tint3 .tile-tag { color: var(--k5); }
.tint4 .tile-tag { color: var(--k6); }
.wave { display: flex; align-items: center; gap: 0.25rem; height: 4rem; }
.wave span { width: 0.375rem; border-radius: 3px; background: var(--primary); }
.wave span:nth-child(5), .wave span:nth-child(6) { background: var(--accent); }
.answers { display: flex; flex-direction: column; gap: 0.625rem; }
.answer {
  background: var(--surface); border-radius: 1rem; padding: 0.875rem 1.125rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: 1rem; font-weight: 600;
}
.answer-tag { font-family: var(--monofont); font-size: 0.75rem; font-weight: 400; color: var(--primary); background: var(--tint1); border-radius: 62.4375rem; padding: 0.25rem 0.625rem; white-space: nowrap; }
.answer.dim { color: var(--muted); }
.example { font-family: var(--monofont); font-size: 0.75rem; color: var(--mono); }
.progress-card { background: var(--surface); border-radius: 1.125rem; padding: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.progress-head { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 700; }
.progress-head span:last-child { color: var(--k1); }
.progress-bar { background: var(--tint2); border-radius: 62.4375rem; height: 0.625rem; }
.progress-bar span { display: block; width: 60%; height: 100%; background: var(--accent); border-radius: 62.4375rem; }
.big-number { font-size: 4.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 5.625rem; }
.bars span { flex: 1; background: var(--c6); border-radius: 0.375rem 0.375rem 0 0; }

/* ---------- tabs (shared) ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.tabs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tab {
  position: relative; overflow: hidden; text-align: left; border: 2px solid var(--line); border-radius: 1.375rem;
  padding: 1.125rem 1.375rem 1.375rem; background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; gap: 0.375rem; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.tab[aria-selected="true"] {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  box-shadow: 0 0.875rem 2.125rem rgba(0, 0, 0, 0.18); transform: translateY(-0.25rem);
}
.tab-head { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.tab-head .mono { opacity: 0.75; }
.tab-arrow { font-size: 1.25rem; line-height: 1; }
.tab-arrow::before { content: '→'; }
.tab[aria-selected="true"] .tab-arrow::before { content: '●'; }
.tab-label { font-size: 1.375rem; font-weight: 800; }
.tab-teaser { font-size: 0.9375rem; line-height: 1.4; opacity: 0.85; }

.panel { animation: rise 0.5s ease-out; }

/* ---------- problems ---------- */
.problem { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.problem-copy { flex: 1 1 22.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.problem-copy h2 .accent { color: var(--primary); }
.legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9375rem; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend i { width: 1.5rem; height: 0.5rem; border-radius: 3px; background: var(--sw); }
.chart { flex: 1 1 35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.chart-caption { margin-bottom: 0.75rem; font-family: var(--monofont); font-size: 0.8125rem; color: var(--mono); }
.chart svg { width: 100%; height: auto; }
.axis { display: flex; justify-content: space-between; gap: 0.375rem; font-family: var(--monofont); font-size: 0.8125rem; color: var(--mono); padding: 0.375rem 0 0 2.5rem; }
.axis span { white-space: nowrap; }
.flow { display: flex; flex-direction: column; gap: 1.75rem; padding: 0.75rem 0 0.5rem; }
.flow-row { display: flex; flex-direction: column; gap: 0.625rem; }
.flow-row p:first-child { font-weight: 700; }
.flow-bar { display: flex; height: 4rem; border-radius: 1rem; overflow: hidden; }
.flow-bar span { display: flex; align-items: center; padding: 0 0.875rem; font-size: 0.875rem; font-weight: 700; min-width: 0; }
.flow-bar span b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-note { font-size: 0.9375rem; color: var(--muted); }

/* ---------- technology ---------- */
.stage-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: stretch; }
.stage-panels { flex: 1 1 31.25rem; display: flex; }
.stage {
  flex: 1; background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 1.875rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.stage .tile-tag { color: var(--teal-light); }
.stage-title { font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.stage-text { color: var(--dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: auto; list-style: none; padding: 0; }
.chips li { border: 1px solid var(--dark-line); border-radius: 62.4375rem; padding: 0.5rem 0.875rem; font-family: var(--monofont); font-size: 0.8125rem; color: var(--dark-text); }
.facts { flex: 1 1 25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; }
.fact { border-radius: 1.75rem; padding: 1.625rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.75rem; }
.fact-value { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.fact-value.sm { font-size: 1.625rem; }
.fact-label { font-weight: 600; }

/* ---------- needs map ---------- */
.needs { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5rem 0; display: flex; align-items: center; }
.needs .wrap { width: 100%; display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.needs-copy { flex: 1 1 21.25rem; display: flex; flex-direction: column; gap: 1.125rem; }
.treemap { flex: 1 1 35rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 6.5rem; gap: 0.625rem; }
.cell { border-radius: 1.375rem; padding: 1.125rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; color: #FFFFFF; }
.cell-row { flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem 1.125rem; }
.cell-value { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.cell-row .cell-value { font-size: 1.375rem; }
.cell-label { font-size: 1.125rem; font-weight: 700; }
.cell-row .cell-label { font-size: 1rem; }
.cell-a { grid-column: span 3; grid-row: span 3; background: var(--primary); }
.cell-a .cell-value { font-size: 3.5rem; }
.cell-b { grid-column: span 3; grid-row: span 2; background: var(--accent-text); }
.cell-c { grid-column: span 3; background: var(--c6); }
.cell-d { grid-column: span 2; background: var(--c5); color: var(--ink); }
.cell-e { grid-column: span 1; background: var(--c3); padding: 0.875rem; justify-content: flex-end; }
.cell-e .cell-value { font-size: 1rem; }
.cell-e .cell-label { font-size: 0.75rem; font-weight: 600; }
.treemap-note { grid-column: span 6; font-family: var(--monofont); font-size: 0.8125rem; color: var(--mono); padding: 0 0.25rem; }

/* ---------- partners ---------- */
.partner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: stretch; }
.partner-card {
  flex: 1 1 27.5rem; border-radius: 2.25rem; padding: 2.5rem; min-height: 20rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
}
.partner-card .tile-tag { color: var(--ink); font-size: 0.875rem; }
.partner-title { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.partner-card .btn { align-self: flex-start; padding: 1rem 1.625rem; }
.offers { flex: 1 1 27.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.offer-title { font-size: 1.1875rem; font-weight: 800; }
.offer-text { font-size: 1rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); }
.site-footer .wrap { padding-top: 6rem; padding-bottom: 3.5rem; display: flex; flex-direction: column; gap: 3.5rem; }
.footer-title { font-size: clamp(3rem, 8.5vw, 6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--dark-line); padding-top: 2rem; }
.footer-grid > div { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-grid strong { font-weight: 700; }
.footer-grid a { color: var(--teal-light); }
.contact-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.875rem; }
.icons { display: inline-flex; align-items: center; gap: 0.625rem; }
.icon { display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; color: var(--teal-light); transition: color 0.2s; }
.icon:hover { color: var(--bg); }
.footer-note { font-family: var(--monofont); font-size: 0.8125rem; color: var(--dark-muted); }

/* ---------- stable width/height across languages ----------
   JS puts the other language's text into data-ghost; the ghost sits in the same grid cell
   as the visible text, so the element is as wide and as tall as the longer of the two. */
[data-ghost] { display: inline-grid; grid-template-columns: minmax(0, 1fr); }
[data-ghost] > .i18n-text, [data-ghost]::after { grid-area: 1 / 1; }
[data-ghost]::after { content: attr(data-ghost); visibility: hidden; pointer-events: none; }
.nav a[data-ghost], .btn[data-ghost], .chip[data-ghost] { white-space: nowrap; }
.btn[data-ghost] { place-items: center; }
.chip[data-ghost] { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.625rem; align-items: center; justify-items: start; }
.chip[data-ghost] > .i18n-text, .chip[data-ghost]::after { grid-area: 1 / 2; }
.tab-label[data-ghost], .tab-teaser[data-ghost], .lead[data-ghost], .q-card-text[data-ghost],
.tile-title[data-ghost], .tile-sub[data-ghost], .stage-title[data-ghost], .stage-text[data-ghost] { display: grid; }
.btn[data-ghost], .chip[data-ghost] { display: inline-grid; }
/* BY heading is set smaller to stay on two lines; keep the box as tall as the PL heading so nothing below moves */
@media (min-width: 1100px), (max-width: 640px) {
  html[lang="be"] h1 { min-height: calc(2 * 0.98 * clamp(2.75rem, 7vw, 5.25rem)); align-content: end; }
}

/* ---------- privacy page ---------- */
.article { max-width: 46rem; padding-top: 2rem; padding-bottom: 6rem; display: flex; flex-direction: column; gap: 1.25rem; }
.article h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-bottom: 0.5rem; }
.article h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin-top: 1.25rem; }
.article p { color: var(--muted); }
.article .lead { color: var(--ink); }
.article .updated { font-family: var(--monofont); font-size: 0.8125rem; color: var(--mono); margin-top: 1rem; }
.article .back { align-self: flex-start; margin-top: 1rem; }

/* ---------- scroll snap (desktop): the page settles on the nearest section ---------- */
@media (min-width: 1100px) {
  html { scroll-snap-type: y proximity; }
  .site-header, .section, .needs, .site-footer { scroll-snap-align: start; }
}

/* ---------- animations ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.875rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress { from { width: 0; } to { width: 100%; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.55; } 100% { transform: scale(1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee-list { flex-wrap: wrap; padding-right: 0; }
  .marquee-list + .marquee-list { display: none; }
  .orbit-pulse { animation: none; opacity: 0.35; }
  .orbit-rot, .tab, .chip, .orbit-pointer { transition: none; }
  .q-card, .panel { animation: none; }

}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tile-3 { grid-column: span 6; }
  .tile-2 { grid-column: span 2; }
}
@media (max-width: 900px) {
  :root { --gutter: 1.5rem; }
  .section, .needs { padding: 4rem 0; }
  .tile-2 { grid-column: span 3; }
  .tabs, .tabs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .wrap { justify-content: center; }
  .nav { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  :root { --gutter: 1rem; --radius: 1.5rem; }
  body { font-size: 1.0625rem; }
  .lead, .hero-copy .lead { font-size: 1.125rem; }
  .hero { padding-top: 1rem; }
  .hero-copy { gap: 1.25rem; }
  .hero-actions .btn { padding: 0.875rem 1.375rem; width: 100%; }
  .tile, .tile-2 { grid-column: span 6; padding: 1.5rem; min-height: 0; }
  .tile-title, .tile-2 .tile-title { font-size: 1.375rem; }
  .big-number { font-size: 3.5rem; }
  /* compact segmented tabs on phones: label only, content right below */
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; }
  .tabs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { padding: 0.625rem 0.375rem; border-radius: 0.875rem; gap: 0; align-items: center; text-align: center; box-shadow: none; }
  .tab[aria-selected="true"] { transform: none; box-shadow: none; }
  .tab-head, .tab-teaser, .tab-teaser[data-ghost] { display: none; }
  .tab-label { font-size: 0.8125rem; line-height: 1.2; }
  .tab-label[data-ghost] { justify-items: center; }
  .chart { padding: 1.125rem; }
  .flow-bar { flex-direction: column; height: auto; }
  .flow-bar span { padding: 0.625rem 0.875rem; }
  .flow-bar span b { white-space: normal; }
  .stage { padding: 1.625rem; }
  .stage-title { font-size: 1.625rem; }
  .facts { grid-template-columns: 1fr; }
  .treemap { grid-auto-rows: 4.75rem; }
  .cell-a .cell-value { font-size: 2.5rem; }
  .cell-value { font-size: 1.875rem; }
  .cell-b { grid-row: span 3; }
  .cell-c { grid-column: span 6; }
  .cell-d { grid-column: span 4; }
  .cell-e { grid-column: span 2; }
  .axis { font-size: 0.6875rem; padding-left: 1.5rem; }
  /* phones: the diagram itself is the picker (tap a node) plus arrows on the card; no chip row */
  .picker { display: none; }
  .orbit-svg { width: min(100%, 19rem); }
  .q-card { margin-top: -0.5rem; padding: 0.875rem 1.125rem; max-width: 100%; overflow: hidden; }
  .q-card-suffix { display: none; } /* only the community name fits beside the arrows */
  .q-nav { display: flex; }
  .q-card-text { font-size: 1rem; min-height: calc(2 * 1.55 * 1rem); } /* two lines in both languages */
  .hero-copy { gap: 1rem; }
  .hero-copy .lead { font-size: 1rem; }
  .partner-card { padding: 1.75rem; min-height: 0; }
  .offers { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .site-footer .wrap { padding-top: 4rem; gap: 2.25rem; }
  .logo { flex: 0 0 100%; justify-content: center; } /* own row from the first paint, so the header never grows later */
  .nav { font-size: 0.875rem; gap: 0; }
  .nav a { padding: 0.5rem 0.5rem; }
}
@media (max-width: 370px) {
  .tab-label { font-size: 0.75rem; }
}
@media (max-width: 400px) {
  .nav { font-size: 0.8125rem; }
  .nav a { padding: 0.5rem 0.4375rem; }
  .cell-e { display: none; }
  .cell-d { grid-column: span 6; }
}
