/* Version 1, Wouter's first review (12 Nov 2026, night): "Van mij mag de layout en design structuur helemaal aligned
   zijn met bloomlabs, ik vind dat het nu erg druk is, alles teveel verticaal gecentreerd, dus ook meer de bredere
   uitlijning zoals op de website van bloomlabs." So: wider pages, headings at the left edge instead of centred, the hero
   words from the top, and two new home sections after bloomlabs.earth's "Serving": the services panel (what we read,
   biotiq, the accounts worth a call, six features) and "Built for". Brand 2.0 has no dark boxes, so Bloom's dark panel
   is the lime field here. Loaded last (build.py STACK).
   19 Nov 2026 (the Cardinal round): the services panel made way for three options, see "the block after the hero". */

/* ---------- wider, like bloomlabs.earth: up to 1440 px, 40 px from the edge on wide screens ---------- */
.a-wrap, .a-nav-in, .foot .wrap { max-width: 1440px; }
@media (min-width: 1200px) {
  .a-wrap { --wp: 40px; }
  .a-nav-in, .foot .wrap { padding-inline: 40px; }
}

/* ---------- headings at the left edge, and the blocks under them start there too ---------- */
.h-c { text-align: left; }
.h-state { margin: 0; max-width: 17em; }
.h-c .a-lead { margin: 22px 0 0; }
.h-steps { max-width: none; margin: 56px 0 0; }

/* ---------- hero: the words from the top, not centred against the panel ---------- */
.h-hero-grid { align-items: start; }
@media (min-width: 901px) { .h-copy { padding-top: 40px; } }

/* the example, more concrete (Wouter: "mag van mij een stuk concreter worden"): sector and staff, a signal on three
   accounts, and a record with who to talk to and the next step */
@media (min-width: 901px) {
  .h-hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); }
  .h-stage { left: 4.5%; right: 4.5%; }
}
.h-tr { grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr) 40px minmax(0, 1.75fr); gap: 12px; }
.h-th > span { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1279px) {   /* too narrow for four columns: the sector goes, as on a phone */
  .h-tr { grid-template-columns: minmax(0, 1.2fr) 40px minmax(0, 1.75fr); }
  .h-tr > :nth-child(2) { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) { .h-chip small { display: none; } }
.h-meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--a-ink2); }
[data-beat="2"] .is-hot + .is-hot + .is-hot .h-chip { transition-delay: .95s; }
.h-pause { right: auto; left: 14px; }   /* the card sits bottom right, so the pause button moves to the left corner */

/* Process: the words left, the picture right (Michiel, 19 Nov: "process flip the two sides, so image on the right") */
@media (min-width: 901px) {
  .h-hero--flip .h-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); }
  .h-hero--flip .h-fig { order: 2; }
}

/* ---------- Platform: the headline left, the words and buttons right ---------- */
.h-copy--w { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 72px; align-items: end; padding: 0; }
.h-copy--w .a-display { max-width: 10em; }
.h-copy--w .a-lead { margin-top: 0; max-width: 34em; }
.h-copy--w .a-ctas { margin-top: 28px; }

/* ---------- home, the globe: the statement left, the globe right ---------- */
.h-us-top .h-globe-cap { max-width: 26em; margin: 24px 0 0; text-align: left; }
@media (min-width: 1201px) {
  .h-us-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 48px; align-items: center; }
  .h-us-top .h-globe { width: 100%; max-width: 900px; margin: 0 0 0 auto; }
}

/* ---------- home: the block after the hero (#what), three options to choose from (group "home") ----------
   Michiel, 19 Nov 2026: "for the sustainability meets GTM block on home-> remove whole block and start fresh, do it
   like cardinal (give me options ...)". The lime services panel is gone. In its slot stand three blocks, one per
   option, built from the card kit (variant-hx.css, x-) and switched with data-o:
     A  w-tri   three cells, each a small fragment over a title and two lines
     B  w-sig   the words beside a painting with one signal's timeline
     C  w-how   two steps; from 1100 px the picture stays in place while the words pass (variant-hw.js)
   Start states only under html.x-ok or .is-pin (both set by script), so a page without script shows every block
   finished and C as plain stacked steps. */
.w-what { padding-top: 96px; }
.w-hd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 48px; }
.w-hd .h-state { max-width: 20em; }
@media (min-width: 901px) { :is(.w-hd, .w-sig-tx) .h-dim { display: block; } }

/* A: three cells. Up to 1099 px each cell is a row (fragment left, words right), on a phone the fragment sits on top */
.w-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.w-cell { display: flex; flex-direction: column; min-height: 520px; padding: 28px; border-radius: 12px; background: var(--a-soft, #efede9); }
.w-stage { display: grid; flex: 1; place-items: center; padding: 8px 0 36px; }
.w-stage > * { width: 100%; max-width: 340px; }
.w-cell > h3 { margin: 0; font: 400 28px/1.06 var(--font); letter-spacing: -.04em; color: var(--a-ink); }
.w-cell > p { max-width: 30em; margin: 10px 0 0; font-size: 15px; line-height: 22px; color: var(--a-ink2); text-wrap: pretty; }
.w-tri .x-feed { --x-cols: 2; --x-cols-m: 2; }
.w-tri .x-srcs { gap: 8px; }   /* the tiles are the whole picture here, so a size up from the kit's */
.w-tri .x-srcs > * { height: 40px; gap: 8px; font-size: 13.5px; }
.w-tri .x-srcs svg { width: 15px; height: 15px; }
@container (max-width: 320px) {   /* a narrow cell: back to the kit's type, so "Company websites" is never cut */
  .w-tri .x-srcs > * { gap: 6px; font-size: 12px; }
  .w-tri .x-srcs svg { width: 13px; height: 13px; }
}
/* the source tiles drift a few px, one after the other, and only while they are on screen (.is-live, variant-hw.js) */
@keyframes w-float { 50% { translate: 0 -4px; } }
html.x-ok .w-float.is-live .x-srcs > * { animation: w-float 5s ease-in-out calc(var(--i, 0) * .4s) infinite; }

/* B: a painting with one signal's timeline. The card stands on the water, under the cranes */
.w-sig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; align-items: start; }
.w-sig-tx { padding-top: 8px; }
.w-sig-tx .a-lead { max-width: 30em; margin-top: 22px; }
.w-sig-tx .a-link { margin-top: 28px; }
.w-sig .w-sig-fig { --x-h: 600px; --x-w: 380px; place-items: end center; padding-bottom: 44px; }
.w-sig-fig .x-surf-bg, .w-how-fig .x-surf-bg { transition: transform 1.6s cubic-bezier(.19, 1, .22, 1); }
html.x-ok .w-sig-fig:not(.is-in) .x-surf-bg { transform: scale(1.06); }
.w-sig .x-sig { --x-tl: 46px; }
.w-sig .x-kv { border-top: 0; }

/* C: how it works, two steps. Plain flow first: step, its picture, step, its picture */
.w-how { --w-vh: 100vh; display: flex; flex-direction: column; }
@supports (height: 100svh) { .w-how { --w-vh: 100svh; } }
.w-how-hd .a-link { margin-top: 24px; }
.w-how-step { padding: 48px 0 24px; }
.w-how-step[data-n="1"] { order: 1; }
.w-how-fig[data-n="1"] { order: 2; }
.w-how-step[data-n="2"] { order: 3; }
.w-how-fig[data-n="2"] { order: 4; }
.w-how-stage { display: contents; }
.w-how-bars { display: none; }
.w-how-k { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 12px/16px var(--font); letter-spacing: .03em; text-transform: uppercase; color: var(--forest, #003d20); }
.w-how-k i { width: 28px; height: 1.5px; border-radius: 1px; background: currentColor; }
.w-how-step h3 { margin: 0; font: 400 clamp(28px, 2.8vw, 40px)/1.05 var(--font); letter-spacing: -.04em; color: var(--a-ink); }
.w-how-step > p:last-child { max-width: 28em; margin: 14px 0 0; font-size: 17px; line-height: 26px; color: var(--a-ink2); text-wrap: pretty; }
.w-how-fig { --x-h: 500px; --x-w: 480px; }
.w-how .x-feed { --x-cols: 3; --x-cols-m: 2; }
@container (max-width: 430px) { .w-how .x-srcs > :nth-child(9) { display: none; } }   /* two across: eight tiles, no loose one */
/* 21 Nov: the kit's tiles went from 12 to 12.5 px. Where a tile here is under 145 px wide the longest labels would be cut, so those keep
   12 px: three across in a feed of 431 to 446 px (a window of about 1100 to 1122 px), two across in a feed under 284 px (a phone under 348 px) */
@container (min-width: 431px) and (max-width: 446px) { .w-how .x-srcs > * { font-size: 12px; } }
@container (max-width: 283px) { .w-how .x-srcs > * { font-size: 12px; } }
/* from 1100 px, with script: the words left, one picture right that stays while the steps pass and changes with them */
@media (min-width: 1100px) and (min-height: 640px) {
  .w-how.is-pin { --w-h: min(calc(var(--w-vh) - 170px), 640px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 24px; }
  .w-how.is-pin > :is(.w-how-hd, .w-how-step) { grid-column: 1 / span 5; }
  .w-how.is-pin .w-how-step { display: flex; flex-direction: column; justify-content: center; min-height: min(56vh, 560px); padding: 24px 0; opacity: .32; }
  .w-how.is-pin .w-how-step[data-n="2"] { min-height: min(60vh, 620px); }
  .w-how.is-pin .w-how-k i { width: 12px; }
  .w-how.is-pin[data-step="1"] .w-how-step[data-n="1"], .w-how.is-pin[data-step="2"] .w-how-step[data-n="2"] { opacity: 1; }
  .w-how.is-pin[data-step="1"] [data-n="1"] .w-how-k i, .w-how.is-pin[data-step="2"] [data-n="2"] .w-how-k i { width: 28px; }
  .w-how.is-pin .w-how-stage { position: sticky; top: calc((var(--w-vh) + 64px - var(--w-h) - 28px) / 2); display: block; grid-column: 7 / -1; grid-row: 1 / -1; align-self: start; height: calc(var(--w-h) + 28px); }
  .w-how.is-pin .w-how-fig { position: absolute; inset: 0 0 28px; min-height: 0; opacity: 0; transform: scale(.985); }
  .w-how.is-pin[data-step="1"] .w-how-fig[data-n="1"], .w-how.is-pin[data-step="2"] .w-how-fig[data-n="2"] { opacity: 1; transform: none; }
  /* nothing eases while the layout is being set up; from the first change of step on (.has-run) everything does */
  .w-how.has-run .w-how-step { transition: opacity .5s ease; }
  .w-how.has-run .w-how-k i { transition: width .4s var(--x-ease); }
  .w-how.has-run .w-how-fig { transition: opacity .6s ease, transform .8s var(--x-ease); }
  /* the second picture starts when its step does: until then the card waits outside its picture, so the kit's
     sequence (which starts on sight) sees it arrive, and the painting settles */
  .w-how.is-pin:not([data-step="2"]) .w-how-fig[data-n="2"] > .x-card { translate: 0 100vh; }
  .w-how.is-pin.has-run:not([data-step="2"]) .w-how-fig[data-n="2"] > .x-card { transition: translate 0s .6s; }
  .w-how.is-pin:not([data-step="2"]) .w-how-fig[data-n="2"] .x-surf-bg { transform: scale(1.06); }
  .w-how.is-pin .w-how-bars { position: absolute; inset: auto 0 0; display: flex; justify-content: center; gap: 6px; }
  .w-how-bars i { width: 18px; height: 3px; border-radius: 2px; background: rgba(36, 35, 32, .14); transition: width .3s ease, background-color .3s ease; }
  .w-how[data-step="1"] .w-how-bars i:nth-child(1), .w-how[data-step="2"] .w-how-bars i:nth-child(2) { width: 32px; background: var(--forest, #003d20); }
}
@media (prefers-reduced-motion: reduce) { .w-how *, .w-sig-fig .x-surf-bg { transition: none !important; } }

/* ---------- home: "Built for", the two audiences as a ledger (Wouter: make climate tech and sustainability SaaS explicit) */
.w-for { padding-top: 120px; }
.w-for-ls { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--a-ink); }
.w-for-ls li { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px 40px; align-items: baseline; padding: 32px 0 36px; border-bottom: 1px solid var(--a-line2); }
.w-for-ls .n { font: 400 clamp(28px, 2.6vw, 36px)/1 var(--font); letter-spacing: -.04em; color: var(--forest, #003d20); }
.w-for-ls h3 { margin: 0; font: 400 clamp(30px, 3.2vw, 46px)/1.02 var(--font); letter-spacing: -.045em; color: var(--a-ink); }
.w-for-k { margin: 0 0 10px; font-size: 14px; line-height: 20px; color: var(--a-ink); }
.w-for-ls p:not(.w-for-k) { margin: 0; font-size: 17px; line-height: 26px; color: var(--a-ink2); text-wrap: pretty; }

/* ---------- About: the founders, smaller (Michiel, 19 Nov 2026: "on about smaller sized pictures pls") ----------
   The photo sits beside the words instead of on top of them, at less than half its old width, and the two cards still
   span the page under the section heading. One founder per row up to 1100 px; on a phone a small photo next to the name. */
.a-fdrs--about .a-fdr { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
.a-fdrs--about .a-fdr img { height: 100%; }   /* square at least, and as tall as the words when they run longer */
.a-fdrs--about .a-fdr figcaption { display: flex; flex-direction: column; padding: 24px 28px; }
.a-fdrs--about .a-fdr p:not(.a-fdr-l) { font-size: 15px; line-height: 23px; }
.a-fdrs--about .a-fdr .a-fdr-l { margin-top: auto; padding-top: 16px; }   /* the links sit on the bottom edge, so both cards line up */
@media (max-width: 1100px) {
  .a-fdrs--about { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .a-fdrs--about .a-fdr { grid-template-columns: 240px minmax(0, 1fr); }
  .a-fdrs--about .a-fdr p:not(.a-fdr-l) { max-width: 34em; }
}
@media (max-width: 600px) {
  .a-fdrs--about .a-fdr { display: block; padding: 16px; }
  .a-fdrs--about .a-fdr img { float: left; width: 104px; height: 104px; margin: 0 16px 14px 0; border-radius: 8px; }
  .a-fdrs--about .a-fdr figcaption { display: block; padding: 0; }
  .a-fdrs--about .a-fdr figcaption > b { padding-top: 28px; }
  .a-fdrs--about .a-fdr figcaption > p { clear: left; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .h-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .h-tr > :nth-child(2), .h-tr > :nth-child(3) { display: none; }
  .h-filters span { white-space: nowrap; }
  .h-chip small { display: none; }
  .h-copy--w { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .w-what { padding-top: 64px; }
  .w-for { padding-top: 80px; }
  .w-for-ls li { grid-template-columns: 48px minmax(0, 1fr); padding: 24px 0 28px; }
  .w-for-ls li > div { grid-column: 2; }
  .w-hd { margin-bottom: 32px; }
  .w-sig { grid-template-columns: minmax(0, 1fr); }
  .w-sig-tx { padding-top: 0; }
  .w-sig .w-sig-fig { --x-h: 0px; padding: 176px 16px 28px; }   /* the panel grows with the card, the harbour shows above it */
}
@media (max-width: 1099px) {
  .w-cells { grid-template-columns: minmax(0, 1fr); }
  .w-cell { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 40px; min-height: 248px; }
  .w-stage { grid-row: 1 / span 2; padding: 0; }
  .w-cell > h3 { align-self: end; }
}
@media (max-width: 760px) {
  .h-filters span:nth-child(2) { display: none; }
}
@media (max-width: 699px) {
  .w-cell { display: flex; min-height: 0; padding: 20px; }
  .w-stage { min-height: 216px; padding: 12px 0 32px; }
  .w-cell > h3 { align-self: auto; font-size: 26px; }
  .w-how .x-surf--paint { --x-h: 0px; padding-top: 104px; }   /* the painting shows above the card */
}

/* Michiel, 21 Nov 2026: no painting and no stone panel behind the two how-it-works cards; they sit straight on the page. */
.w-how .w-how-fig.x-surf { border-radius: 0; background: none; overflow: visible; }

/* 21 Nov 2026, after the independent review: the pinned block ended in about 410 px of empty page before "Built for".
   The picture column was still as high as the painted panels were (up to 640 px) for cards of 254 and 366 px, the last
   step stood in the middle of a cell of up to 620 px, and the next section adds 120 px. Now the picture column is as
   high as its tallest picture needs, the last step stands at the foot of a 340 px cell (level with the step marks),
   and the block gives 32 px back: 176 px from the last step to the next headline, the rhythm of the page. The picture
   still stays put while the steps pass, and step 2 still takes over while it is pinned. */
@media (min-width: 1100px) and (min-height: 640px) {
  .w-how.is-pin { --w-h: min(calc(var(--w-vh) - 170px), 414px); margin-bottom: -32px; }
  .w-how.is-pin .w-how-step[data-n="2"] { justify-content: flex-end; min-height: 340px; padding-bottom: 0; }
}
