/* Public Sans variable (wght 100-900), self-hosted.
   Source: Google Fonts CSS2 API, fonts.gstatic.com publicsans v21, fetched 2026-09-24.
   Licence: SIL Open Font License 1.1 (see LICENSE.txt).
   Latin files patched: space-dash kern pairs removed (spec/05-build/assets.md). */

/* latin-ext, normal */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/public-sans-latin-ext-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin, normal */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/public-sans-latin-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The Hub – Urban Village — site styles.
   Spec: spec/04-design/*. Public Sans @font-face rules are prepended by the build
   (site/assets/fonts/public-sans.css → dist/assets/css/site.css). */

/* ------------------------------------------------------------------ tokens */

:root {
  /* Brand (brand.md) */
  --brown: #4a3321;
  --cream: #eddacb;
  --taupe: #baa392;
  --red: #8f1507;
  --gold: #e1aa30;
  --paper: #fbf6f1;

  /* Derived */
  --red-dark: #74110a;
  --muted: #6b5443;            /* 6.6:1 on paper, 5.2:1 on cream */
  --hairline: rgba(186, 163, 146, 0.55);
  --shadow-soft: 0 1px 2px rgba(74, 51, 33, 0.06), 0 8px 24px -12px rgba(74, 51, 33, 0.18);

  /* Context (bands redefine these) */
  --band-bg: var(--paper);
  --card-bg: var(--cream);
  --focus: var(--brown);

  /* Layout (layout.md) */
  --gutter: 16px;
  --w-text: 720px;
  --w-wide: 932px;            /* 960 nav frame − 2 × 14px inset: video edges = nav logo, hero title, footer */
  --w-nav: 960px;
  --band-pad: clamp(56px, 9vw, 120px);
  --radius: 14px;
  --nav-top: 16px;
  --nav-h: 64px;
  --nav-clear: 112px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

@media (min-width: 900px) {
  :root { --nav-top: 24px; --nav-h: 68px; }
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Fixed nav: #hash targets, scrollIntoView and keyboard focus all stop below it. */
  scroll-padding-top: var(--nav-clear);
  scroll-padding-bottom: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--brown);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

@media (min-width: 600px) {
  body { font-size: 1.125rem; }
}

@media (min-width: 900px) {
  body { font-size: 1.1875rem; }
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

p,
figure,
ul,
ol { margin: 0; }

h1,
h2,
h3 {
  margin: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
  text-wrap: balance;
}

/* Word–word pairs ("Kumpula–Turku"): the engine wraps them so the dash never ends a line. */
.nowrap { white-space: nowrap; }

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p { text-wrap: pretty; }

strong { font-weight: 700; }

a {
  color: var(--red);
  text-decoration-line: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(143, 21, 7, 0.45);
  transition: text-decoration-color 0.2s, color 0.2s;
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(34, 22, 12, 0.3);
  transform: translateY(-160%);
}

/* Gold ring on a brown backing: ≥ 3:1 whatever photo is behind (accessibility.md). */
.skip-link:focus {
  transform: none;
  --focus: var(--gold);
  box-shadow: 0 0 0 8px var(--brown), 0 8px 24px rgba(34, 22, 12, 0.3);
}

/* ------------------------------------------------------------------ nav (nav-bar.md) */

.site-header {
  position: fixed;
  z-index: 50;
  top: var(--nav-top);
  left: 0;
  right: 0;
  width: min(var(--w-nav), calc(100% - 32px));
  margin-inline: auto;
  --focus: var(--gold);
}

.nav {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 10px 0 14px;
  color: var(--cream);
}

/* Glass lives on a pseudo element so the mobile panel can blur the page too. */
.nav::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 16px;
  background: rgba(74, 51, 33, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(237, 218, 203, 0.18);
  box-shadow: inset 0 1px 0 rgba(237, 218, 203, 0.1), 0 12px 40px rgba(34, 22, 12, 0.28);
  transition: background-color 0.35s var(--ease);
}

.is-scrolled .nav::before { background: rgba(74, 51, 33, 0.82); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav::before,
  .is-scrolled .nav::before { background: var(--brown); }
}

.nav__logo {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
}

.nav__logo img { width: auto; height: 40px; }

/* Desktop bar is 68px: 48px leaves 10px above and below; the stacked lockup's small words need it (brand.md). */
@media (min-width: 900px) {
  .nav__logo img { height: 48px; }
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}

.nav__links a:hover { color: #fff; }

.nav__links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.nav__menu {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px 0 14px;
  border: 1px solid rgba(237, 218, 203, 0.28);
  border-radius: 12px;
  background: transparent;
  color: var(--cream);
  font: 600 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}

.nav__menu-icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav__menu-icon::before,
.nav__menu-icon::after,
.nav__menu-icon span {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav__menu-icon::before { top: 0; }
.nav__menu-icon span { top: 5px; }
.nav__menu-icon::after { top: 10px; }

.nav__menu[aria-expanded='true'] .nav__menu-icon::before { transform: translateY(5px) rotate(45deg); }
.nav__menu[aria-expanded='true'] .nav__menu-icon span { opacity: 0; }
.nav__menu[aria-expanded='true'] .nav__menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile: logo + menu button; panel drops below the bar. The button works only once site.js has
   wired it (html.js-ready); until then a same-looking link jumps to the footer page list. */
@media (max-width: 899.98px) {
  html:not(.js-ready) .nav__menu--jump,
  .js-ready button.nav__menu { display: inline-flex; }

  .nav__panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px 8px 12px;
    border-radius: 16px;
    background: rgba(74, 51, 33, 0.86);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(237, 218, 203, 0.18);
    box-shadow: 0 18px 48px rgba(34, 22, 12, 0.35);
    /* Short landscape phones: the panel scrolls instead of running off screen. */
    max-height: calc(100vh - var(--nav-top) - var(--nav-h) - 16px);
    max-height: calc(100dvh - var(--nav-top) - var(--nav-h) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav__panel { background: var(--brown); }
  }

  .js-ready .nav__panel.is-open { display: block; }

  .nav__links a {
    min-height: 48px;
    padding: 0 12px;
    font-size: 17px;
  }

  .nav__links li + li a { border-top: 1px solid rgba(237, 218, 203, 0.1); }

  .nav__links a[aria-current='page']::after {
    left: 12px;
    right: auto;
    width: 24px;
    bottom: 8px;
  }
}

/* Tablets: the panel is a card under the menu button, not a bar-wide slab over the hero. */
@media (min-width: 600px) and (max-width: 899.98px) {
  .nav__panel { left: auto; width: min(340px, 100%); }
}

@media (max-width: 899.98px) and (prefers-reduced-motion: no-preference) {
  .js-ready .nav__panel.is-open { animation: panel-in 0.28s var(--ease); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .nav__panel {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
  }

  /* Centred in the bar itself (nav.md), not in the space right of the logo, so they share the landing H1's axis. */
  .nav__links {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    gap: clamp(20px, 2.6vw, 34px);
    transform: translate(-50%, -50%);
  }

  .nav__links a {
    min-height: 44px;
    margin-inline: -6px;
    padding-inline: 6px;
    font-size: 14px;
    letter-spacing: 0.01em;
  }

  .nav__links a[aria-current='page']::after { left: 6px; right: 6px; }

  .nav__links a[aria-current='page']::after { bottom: 7px; }
}

/* ------------------------------------------------------------------ hero (hero.md) */

.hero {
  position: relative;
  z-index: 0;
  display: flex;
  overflow: hidden;
  background: var(--brown);
  color: var(--cream);
  --focus: var(--gold);
}

.hero__img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Brown overlay: cream text ≥ 4.5:1 over the brightest photo pixels. */
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero__inner { position: relative; }

.hero__title {
  font-size: clamp(2rem, 6vw, 4.75rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--cream);
}

.hero__subtitle {
  margin-top: 0.55em;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 200;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.hero--landing {
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  align-items: center;
  justify-content: center;
  padding: var(--nav-clear) var(--gutter) 120px;
  text-align: center;
}

/* Ellipse 95% wide: the 20ch title reaches toward the bright sun on the right (≥ 4.5:1, QA round 2). */
.hero--landing::before {
  background:
    radial-gradient(ellipse 95% 60% at 50% 50%, rgba(36, 23, 13, 0.66), rgba(36, 23, 13, 0) 80%),
    linear-gradient(180deg, rgba(44, 29, 17, 0.62) 0%, rgba(44, 29, 17, 0.56) 30%, rgba(44, 29, 17, 0.56) 62%, rgba(34, 22, 12, 0.88) 100%);
}

/* Narrow screens put the brightest sky right behind the title: stronger centre. */
@media (max-width: 599.98px) {
  .hero--landing::before {
    background:
      radial-gradient(ellipse 95% 55% at 50% 50%, rgba(36, 23, 13, 0.7), rgba(36, 23, 13, 0) 85%),
      linear-gradient(180deg, rgba(44, 29, 17, 0.62) 0%, rgba(44, 29, 17, 0.58) 30%, rgba(44, 29, 17, 0.58) 62%, rgba(34, 22, 12, 0.88) 100%);
  }
}

.hero--landing .hero__inner { max-width: 1040px; }
.hero--landing .hero__title { max-width: 20ch; margin-inline: auto; }

.hero--page {
  min-height: max(360px, 52vh);
  min-height: max(360px, 52svh);
  align-items: flex-end;
  padding: var(--nav-clear) 0 clamp(36px, 6vw, 64px);
}

/* Dark zone anchored to the bottom in px, so the title stays ≥ 4.5:1 however short the hero is.
   230px holds a two-line title plus its bottom padding; above it the photo shows through. */
.hero--page::before {
  background:
    linear-gradient(180deg, rgba(44, 29, 17, 0.4) 0, rgba(44, 29, 17, 0) 180px),
    linear-gradient(0deg, rgba(34, 22, 12, 0.9) 0, rgba(38, 25, 14, 0.74) 230px, rgba(44, 29, 17, 0.15) 380px, rgba(44, 29, 17, 0.15) 100%);
}

/* Desktop, slots 2 + 4: the base zone measured 7.9–9.2:1 under their titles and left the photo muddy.
   Lighter and 30px lower, it still keeps ≥ 6.35:1 under every title, 900–2560px (hero.md).
   Slot 3 (6.4:1) and phones keep the base. */
@media (min-width: 900px) {
  .page--slot-2 .hero--page::before,
  .page--slot-4 .hero--page::before {
    background:
      linear-gradient(180deg, rgba(44, 29, 17, 0.4) 0, rgba(44, 29, 17, 0) 180px),
      linear-gradient(0deg, rgba(34, 22, 12, 0.85) 0, rgba(38, 25, 14, 0.68) 200px, rgba(44, 29, 17, 0.1) 330px, rgba(44, 29, 17, 0.1) 100%);
  }
}

/* Slot 3: taller, so the stand-in photo's faces sit between the nav and the title (hero.md). */
.page--slot-3 .hero--page {
  min-height: max(420px, 70vh);
  min-height: max(420px, 70svh);
}

/* Front matter hero_vh (hero.md): a page whose photo needs a taller band on landscape screens, e.g. FI first
   steps (a group of 13 between the nav and the title). There the photo fills the width, so only a taller band
   shows more of its height. Portrait screens fit the photo by its height and keep the slot height, which shows
   more people across. Comes after the slot rules, so it wins over them. */
@media (min-aspect-ratio: 1/1) {
  .hero--page.hero--vh {
    min-height: max(420px, calc(var(--hero-vh) * 1vh));
    min-height: max(420px, calc(var(--hero-vh) * 1svh));
  }
}

.hero--page .hero__inner {
  width: min(var(--w-nav), calc(100% - 32px));
  margin-inline: auto;
  padding-inline: 14px;
}

.hero--page .hero__title { max-width: 18ch; }

/* Scroll cue: decorative line with a travelling segment. */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgba(237, 218, 203, 0.3);
}

.hero__cue span {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 20px;
  background: var(--cream);
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-20px); }
  70%, 100% { transform: translateY(56px); }
}

/* ------------------------------------------------------------------ bands (layout.md) */

.band {
  padding: var(--band-pad) var(--gutter);
  background: var(--band-bg);
}

.band--paper { --band-bg: var(--paper); --card-bg: var(--cream); }
.band--cream { --band-bg: var(--cream); --card-bg: var(--paper); }
.band--dark { --band-bg: var(--brown); --card-bg: var(--brown); --focus: var(--gold); color: var(--cream); }

.band > * {
  max-width: var(--w-text);
  margin-inline: auto;
}

/* Only media breaks out of the text column. */
.band > .video { max-width: var(--w-wide); }

/* A band holding only closed-by-default accordions: less air around the bars (layout.md). */
.band--compact { padding-block: clamp(40px, 5vw, 64px); }

/* Vertical rhythm */
.band > * + * { margin-top: 1em; }

.band > * + :is(.accordion, .video, .photo, .callout, .action, .funding, .stats, .timeline),
.band > :is(.accordion, .video, .photo, .callout, .action, .funding, .stats, .timeline) + * {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.band > .accordion + .accordion { margin-top: 12px; }
.band > * + .strong-line { margin-top: 1.5em; }
.band > * + h2 { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.band > * + h3 { margin-top: 2em; }
.band.band > :is(h2, h3) + * { margin-top: 0.75rem; }
.band.band > .kicker + * { margin-top: clamp(1.25rem, 2.4vw, 1.75rem); }

/* "## " in a compact band (EN Vision: the label above the two accordions): a small label, not a display
   heading. 600, modest size, muted brown (5.2:1 on cream, 6.6:1 on paper), doc case. Every other "## "
   keeps the display H2 above (typography.md). */
.band--compact > h2 {
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* EN only: "Explore the project and vision in detail below" a bit more visible (list "ENG 30.9. version
   muutokset", 2026-10-07): larger, bolder, full brown (11:1 on cream). Still far below a display H2. FI keeps
   the small muted label (FIN list 27.9: "pienin kirjaimin"). */
html[lang="en"] .band--compact > h2 {
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--brown);
}

/* The label sits a little clear of the bars it introduces. */
.band.band--compact > h2 + .accordion { margin-top: 1rem; }

.lead {
  /* ≥ 2px over body at every width (body steps 17 → 18 → 19px at 600 / 900px). */
  font-size: clamp(1.25rem, 1rem + 0.6vw, 1.4375rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.003em;
}

/* Kicker: small caps label + short rule (typography.md). Red on light, gold on dark. */
.kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.kicker::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 14px;
  background: currentColor;
}

.band--dark .kicker { color: var(--gold); }

.band--paper .kicker,
.band--cream .kicker {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-transform: none;
  color: var(--brown);
}

.band--paper .kicker::after,
.band--cream .kicker::after {
  margin-top: 18px;
  background: var(--red);
}

/* ------------------------------------------------------------------ text blocks */

.strong-line {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.006em;
}

@media (min-width: 900px) {
  .strong-line { font-size: 1.375rem; }
}

.list { padding-left: 1.3em; }
.list li { padding-left: 0.3em; text-wrap: pretty; }
.list li + li { margin-top: 0.45em; }
.list li::marker { color: var(--red); }
ol.list li::marker { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Statement (highlight.md): gold kicker over a gold rule, cream 300 text. Capped at 28px: at 33.6px
   the 85-word paragraph ran 12–13 lines, oversized body copy rather than a highlight. */
.statement p {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--cream);
  text-wrap: pretty;
}

.band--dark { padding-block: clamp(72px, 11vw, 144px); }

/* Callout: red left edge, red label in the doc's case; card = the other light tone. */
.callout {
  padding: clamp(20px, 3.2vw, 30px) clamp(20px, 3.6vw, 34px);
  border-left: 4px solid var(--red);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: var(--card-bg);
}

.callout__label {
  margin-bottom: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--red);
}

.callout p + p { margin-top: 0.8em; }

.link-line a,
.footer__org a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Photo */
.photo img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--card-bg);
}

/* A small logo the doc embeds (ECMI): own size, no card frame. */
.photo--logo img {
  width: 180px;
  height: auto;
  border-radius: 0;
  background: none;
}

/* ------------------------------------------------------------------ accordion (accordion.md) */

.accordion {
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px; /* sides = .accordion__body: icon and divider end on one edge */
  border-radius: calc(var(--radius) - 1px);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.accordion__summary::-webkit-details-marker,
.step__summary::-webkit-details-marker { display: none; }

@media (min-width: 600px) {
  .accordion__summary { padding: 20px 28px; font-size: 1.1875rem; }
}

/* Plus → minus icon (aria-hidden). Used by accordions and timeline steps. */
.accordion__icon,
.step__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--taupe);
  border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s;
}

.accordion__icon::before,
.accordion__icon::after,
.step__icon::before,
.step__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--red);
  transition: transform 0.3s var(--ease);
}

.accordion__icon::after,
.step__icon::after { transform: rotate(90deg); }

details[open]:not(.is-closing) > summary .accordion__icon::after,
details[open]:not(.is-closing) > summary .step__icon::after { transform: rotate(0deg); }

summary:hover .accordion__icon,
summary:hover .step__icon { border-color: var(--red); }

.accordion__body {
  padding: 4px 20px 24px;
}

.accordion__body::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: 20px;
  background: var(--hairline);
}

@media (min-width: 600px) {
  .accordion__body { padding: 4px 28px 30px; }
  .accordion__body::before { margin-bottom: 24px; }
}

@media (max-width: 399.98px) {
  .accordion__summary { padding: 14px 16px; }
  .accordion__body { padding: 4px 16px 20px; }
  .accordion__body .list { padding-left: 1.1em; }
}

.accordion__body > * + * { margin-top: 1em; }
.accordion__body > * + :is(.photo, .video, .stats),
.accordion__body > :is(.photo, .video, .stats) + * { margin-top: 1.5rem; }
.accordion__body > * + h2,
.accordion__body > * + h3 { margin-top: 1.5em; }
.accordion__body > :is(h2, h3) + * { margin-top: 0.6rem; }
.accordion__body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }

/* ------------------------------------------------------------------ video (video.md) */

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--brown);
  box-shadow: 0 24px 60px -28px rgba(74, 51, 33, 0.55);
}

.video__facade {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: var(--radius);
  color: var(--brown);
  text-decoration: none;
}

.video__facade img,
.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: var(--radius);
  object-fit: cover;
}

.video__facade::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(46, 30, 18, 0.05) 30%, rgba(46, 30, 18, 0.45) 100%);
  transition: background-color 0.3s;
}

.video__facade:hover::after { background-color: rgba(46, 30, 18, 0.12); }

.video__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  background: rgba(251, 246, 241, 0.95);
  box-shadow: 0 10px 30px rgba(34, 22, 12, 0.35);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.video__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
}

.video__icon svg { margin-left: 3px; }

.video__facade:hover .video__play { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 14px 36px rgba(34, 22, 12, 0.42); }

@media (max-width: 420px) {
  .video__play { padding: 6px; }
  .video__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.video.is-playing .video__frame { background: #000; }

/* ------------------------------------------------------------------ outcome cards (stats.md) */

/* Two columns only when a card is ≥ 20rem wide (from ~774px): at 18rem "150+" overran its cell at 710–756px. */
.stats__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 12px;
}

/* Label row + values row. Subgrid lines both rows up across a card row, so values align
   even when one label wraps and its neighbour does not. */
.stat {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: 18px;
  padding: 18px 20px 20px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--card-bg);
}

@supports (grid-template-rows: subgrid) {
  .stat { grid-row: span 2; grid-template-rows: subgrid; }
}

.accordion .stat { background: var(--band-bg); }

.stat__label {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.stat__values {
  --num: clamp(2rem, 3.2vw + 1.2rem, 2.75rem);
  align-self: start;
  display: grid;
  /* Target column never narrower than its figure ("150+" is nowrap). */
  grid-template-columns: minmax(0, 1fr) minmax(min-content, 1fr);
  grid-template-areas: 'col-a col-b' 'fig-a fig-b';
  column-gap: 16px;
  row-gap: 6px;
}

.stat__col {
  align-self: end;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  /* Doc case, no CSS caps (ZERO INVENTION): "Nykytila (2026)", "Target (end of Year 3)". */
  color: var(--muted);
}

.stat__col--current { grid-area: col-a; }
.stat__col--target { grid-area: col-b; }
.stat__figure--current { grid-area: fig-a; }
.stat__figure--target { grid-area: fig-b; }

.stat__figure { display: block; }

.stat__num {
  display: block;
  font-size: var(--num);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat__figure--target .stat__num { color: var(--red); }

.stat__unit {
  display: block;
  text-wrap: pretty;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

.stat__figure--text .stat__unit {
  margin-top: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brown);
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
}

/* Under 400px: room for the captions, so they keep ≤ 2 lines ("Target (end of Year 3)"). */
@media (max-width: 399.98px) {
  .accordion .stat { padding: 16px 14px 18px; }
  .stat__values { column-gap: 12px; }
}

/* ------------------------------------------------------------------ funding (funding-graphic.md) */

.funding__title { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

.funding__figures {
  display: grid;
  gap: 24px;
}

@media (min-width: 600px) {
  .funding__figures { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.funding__figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.funding__num {
  font-size: clamp(2.5rem, 6.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.funding__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.funding__swatch {
  flex: none;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: translateY(1px);
}

.funding__swatch--1 { background: var(--red); }
.funding__swatch--2 { background: var(--brown); }
.funding__swatch--3 { background: var(--taupe); }
.funding__swatch--received { background: var(--gold); box-shadow: inset 0 0 0 1px var(--brown); }
.funding__swatch--remaining { box-shadow: inset 0 0 0 1px var(--brown); }

/* Remaining = hatch, the same in the track and its swatch: an empty outlined square read as a checkbox. */
.funding__track,
.funding__swatch--remaining {
  background: repeating-linear-gradient(135deg, rgba(74, 51, 33, 0.3) 0 1.5px, transparent 1.5px 5px);
}

.funding__bars {
  display: grid;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 40px);
}

.funding__cost {
  display: flex;
  gap: 2px;
  height: 30px;
}

.funding__seg {
  flex: 0 1 var(--w);
  min-width: 4px;
}

.funding__seg:first-child { border-radius: 8px 0 0 8px; }
.funding__seg:last-child { border-radius: 0 8px 8px 0; }
.funding__seg:only-child { border-radius: 8px; }
.funding__seg--1 { background: var(--red); }
.funding__seg--2 { background: var(--brown); }
.funding__seg--3 { background: var(--taupe); }

.funding__track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--brown);
  border-radius: 999px;
}

.funding__received {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w);
  background: var(--gold);
  border-right: 1px solid var(--brown);
}

.funding__table {
  width: 100%;
  margin-top: clamp(28px, 4vw, 40px);
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.funding__table th,
.funding__table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}

.funding__table tbody th {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 12 5 5; /* words under 12 letters never hyphenate (typography.md) */
}

/* Row key = the row's swatch in the graphic; the table doubles as its legend. */
.funding__key {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.funding__table td:last-child {
  padding-left: 16px;
  text-align: right;
  white-space: nowrap;
}

.funding__table thead > tr > * { border-bottom-color: var(--brown); }

.funding__table thead th {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom-color: var(--brown);
}

.funding__table thead th:last-child { text-align: right; }

.funding__row--remaining th,
.funding__row--remaining td {
  font-weight: 700;
  border-bottom: 0;
}

/* Grows once when 30% visible (site.js adds .js-grow, then .is-grown); static without JS, if site.js
   fails to load, or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js-grow .funding__cost,
  .js-grow .funding__received {
    transition: clip-path 1.2s var(--ease);
  }

  .js-grow .funding__received { transition-delay: 0.45s; }

  .js-grow .funding:not(.is-grown) .funding__cost,
  .js-grow .funding:not(.is-grown) .funding__received {
    clip-path: inset(0 100% 0 0);
  }
}

/* ------------------------------------------------------------------ timeline (timeline.md) */

.timeline {
  position: relative;
  list-style: none;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  /* Tail fades past "now": the journey goes on. */
  background: linear-gradient(to bottom, var(--taupe) calc(100% - 110px), rgba(186, 163, 146, 0));
}

.step {
  position: relative;
  padding-left: 30px;
}

@media (min-width: 600px) {
  .step { padding-left: 40px; }
}

.step + .step { margin-top: 6px; }

/* Centred on the date line: 12px row padding + 24px line / 2 − 8px. */
.step__dot {
  position: absolute;
  top: 16px;
  left: -7px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--band-bg);
}

.step--current .step__dot { background: var(--gold); }

.step--current .step__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.step__summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.step__line {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step__date {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}

/* Up to two lines, then an ellipsis. */
.step__teaser {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* 32px icon centred on the 24px date line (12px row padding): same spot closed and open. */
.step__icon { margin-top: -4px; }

/* Opened step: teaser gone, body sits 8px under the date like an `open` step; the summary
   stays a 44px tap target (12 + 24 + 8). Not while closing, so the summary is already its
   closed size when the animation ends. */
.step__details[open]:not(.is-closing) .step__teaser { display: none; }
.step__details[open]:not(.is-closing) > .step__summary { padding-bottom: 8px; }
.step__details[open]:not(.is-closing) .step__icon { margin-block: -4px; }

.step__head { padding: 12px 0 8px; }

.step__body { padding-bottom: 22px; }

.step__body > * + * { margin-top: 1em; }
.step__body > * + .video,
.step__body > .video + * { margin-top: 1.5rem; }

.step--open .step__body { padding-bottom: 28px; }

.step--current .step__body > p:first-child { font-weight: 500; }

/* ------------------------------------------------------------------ buttons (content buttons + note) */

.action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 26px 14px 28px;
  border: 2px solid var(--red);
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn .icon-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 10px 24px -12px rgba(143, 21, 7, 0.7);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--paper);
}

.btn--secondary {
  background: transparent;
  color: var(--red);
}

.btn--secondary:hover {
  background: var(--red);
  color: var(--paper);
}

.action__note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ------------------------------------------------------------------ footer (footer.md) */

.site-footer {
  padding: clamp(56px, 8vw, 96px) 0 32px;
  background: var(--brown);
  color: var(--cream);
  --focus: var(--gold);
}

.footer__inner {
  display: grid;
  gap: 36px;
  /* Same frame as .site-header and .hero--page .hero__inner: logo lines up with the nav logo and page-hero titles. */
  width: min(var(--w-nav), calc(100% - 32px));
  margin-inline: auto;
  padding-inline: 14px;
}

.footer__logo { width: 120px; height: auto; }

.footer__org {
  margin-top: 10px;
  font-size: 0.9375rem;
}

.site-footer a { color: var(--cream); text-decoration-color: rgba(237, 218, 203, 0.45); }
.site-footer a:hover { color: #fff; text-decoration-color: var(--gold); }

.footer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

.footer__nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.footer__copy {
  padding-top: 24px;
  border-top: 1px solid rgba(237, 218, 203, 0.16);
  font-size: 0.875rem;
  color: var(--taupe);
}

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 64px;
  }

  .footer__side {
    align-items: flex-end;
    justify-self: end;
  }

  .footer__copy { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero__cue { display: none; }
}

/* ------------------------------------------------------------------ print */

@media print {
  @page { margin: 16mm 18mm; }

  :root { --band-pad: 14pt; --gutter: 0; }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .skip-link,
  .site-header,
  .hero__img,
  .hero__cue,
  .video__frame,
  .footer__side,
  .footer__logo { display: none !important; }

  .hero,
  .hero--landing,
  .hero--page {
    min-height: 0;
    padding: 0 0 12pt;
    background: none;
    color: #000;
    text-align: left;
  }

  .hero { display: block; }
  .hero::before { display: none; }
  .hero__title,
  .hero--landing .hero__title { color: #000; font-size: 26pt; max-width: none; margin: 0; }
  .hero__subtitle { font-size: 14pt; }
  .photo img { width: auto; max-width: 100%; max-height: 7cm; }
  .lead { font-size: 12pt; }
  .hero--page .hero__inner { width: auto; padding: 0; }

  .band,
  .band--dark,
  .site-footer {
    padding: 10pt 0;
    background: none;
    color: #000;
  }

  .band > *,
  .band > .video,
  .band > .funding { max-width: none; }

  .statement p { color: #000; font-weight: 300; font-size: 14pt; }
  .kicker, .band--dark .kicker { color: #000; }

  .accordion,
  .callout,
  .stat,
  .step,
  .funding__graphic,
  .funding__table { break-inside: avoid; }

  .accordion,
  .callout,
  .stat { background: none; border-color: #999; }

  details::details-content { content-visibility: visible; display: block; }
  .accordion__icon, .step__icon { display: none; }
  .step__teaser { display: none; }

  .funding__graphic *,
  .funding__swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .funding__cost, .funding__received { clip-path: none !important; }

  a { color: #000; }
  .footer__copy { border: 0; color: #000; }
}
