/* Hallmark · shape: Chapters (five numbered chapters with a chapter bar, after nabilissa.com) · genre: editorial · theme: custom · job: book · idea: "a dark architectural story in five chapters; the pool photo ripples like water under the cursor" · vibe: "dark, quiet, architectural, thin capitals, still water"
 * paper: oklch(23% 0.03 270) · accent: oklch(81% 0.025 215) · display: Tenor Sans uppercase (brandbook) · body: Manrope standing in for TT Norms (brandbook) · hero: dark full-bleed pool photo, stacked thin capitals in a column, the header as one band across the middle · nav: band in the hero, docks at the top with an offerte pill and a menu button · footer: the logo lockup in grey on near-black · imagery: photographs (client's own shoot, site photos, supplied pool house photos) · signature: the hero photo ripples like the brandbook's dark water under the cursor
 * axes: navy/tenor/brand-blue · surface: absolute (white #FFFFFF is a brandbook colour) · posture: full-bleed photo, column title, mid band · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H3 E3 S3 R2 V3 · weakest: R (the reference's uppercase labels break the label-case rule; kept because the client asked for this reference's text styles) */
/* Hallmark · waive 38iii · the footer lockup is the Busschop logo in its own Tenor Sans with the wave as O · the client asked for the exact logo lettering */
/* Hallmark · waive 7b · white #FFFFFF and black #000000 are colours of the Busschop brandbook · the client asked for the brandbook colours on this homepage */
/* Hallmark · waive 83 · the reference site the client chose is carried by large photographs, and every picture here is their own pool work · photographs lead each chapter */
/* Hallmark · waive 59 · the chapter cards are full-bleed screens that meet the next chapter edge to edge, as on the reference · every chapter opens on a card */
/* Hallmark · waive 26b · no button or input on this homepage is ever disabled · the quote form with its states lives on the separate offerte page */
/* Hallmark · dropped #aanbod, #bouwen, #projecten, #zorg · the client asked for one chapter per service (nieuwbouw, renovatie, bouwchemie, technieken, zwembadfolie), so the old chapter anchors became #nieuwbouw, #renovatie, #bouwchemie, #technieken, #folie */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- base ---------- */
body { background: var(--color-night); color: var(--color-on-night); font-size: var(--text-md); }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-tooltip); padding: var(--space-sm) var(--space-md); background: var(--color-on-night); color: var(--color-ink); }
.skip:focus-visible { top: var(--space-md); }
:focus-visible { outline-color: var(--color-blue); }
.container { --gutter: 40px; }

/* Display type: Tenor Sans in capitals, tight leading, set like the reference's thin Gotham. */
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: var(--tracking-tight); }
.display .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.display .line > span { display: inline-block; }
.accent { color: var(--color-blue); }
/* Small type: the reference's 12px bold capitals, in the brandbook's text face. */
.small { font-family: var(--font-body); font-size: var(--text-label); font-weight: 400; line-height: 1.32; text-transform: uppercase; letter-spacing: -0.01em; }
.small strong { font-weight: 700; }

/* Brand mark: the wave from the logo in a circle (the reference uses a round monogram) */
.mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--color-on-night); color: var(--color-ink); flex: none; }
.mark svg { width: 56%; height: auto; fill: currentColor; margin-top: 16%; }
.mark--light { width: 64px; height: 64px; }

/* Offerte button: a square outline in Tenor Sans. On hover a fill rises from the bottom like water filling a pool,
   and the text colour follows. Colours come from custom properties, so every surface sets its own pair. */
.pill {
  --pill-line: var(--color-line-night); --pill-ink: var(--color-on-night); --pill-fill: var(--color-on-night); --pill-ink-hover: var(--color-ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); border-radius: 0;
  border: var(--rule-hair) solid var(--pill-line); background: var(--pill-bg, transparent); color: var(--pill-ink);
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap;
  transition: color 520ms var(--ease-out), border-color 520ms var(--ease-out);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pill-fill);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 620ms var(--ease-out);
}
.pill:hover, .pill:focus-visible { color: var(--pill-ink-hover); border-color: var(--pill-fill); }
.pill:hover::before, .pill:focus-visible::before { transform: scaleY(1); }
.pill:active::before { transition-duration: var(--dur-micro); }
.pill:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }
/* On a light surface: navy line and text, navy water. */
.pill--dark { --pill-line: var(--color-ink); --pill-ink: var(--color-ink); --pill-fill: var(--color-ink); --pill-ink-hover: var(--color-on-night); }
.pill--dark:focus-visible { outline-color: var(--color-accent); }
/* The main call to action on a dark surface: a cream line that reads from a distance. */
.pill--light { --pill-line: var(--color-on-night); }
@media (prefers-reduced-motion: reduce) { .pill, .pill::before { transition-duration: 1ms; } }
.textlink { font-family: var(--font-body); font-size: var(--text-label); font-weight: 700; text-transform: uppercase; color: inherit; text-underline-offset: 0.35em; }
.textlink:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; }

/* ---------- header band ---------- */
.bar { position: absolute; top: calc(50svh - var(--bar-h) / 2); left: 0; right: 0; z-index: var(--z-sticky-nav); height: var(--bar-h); color: var(--color-on-night); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__brand { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; color: inherit; text-decoration: none; }
.bar__name { position: absolute; font-family: var(--font-body); font-size: var(--text-label); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.bar__brand .bar__name { position: absolute; left: calc(12vw - 28px); }
.bar__menu { position: absolute; left: 70vw; top: 50%; transform: translateY(-50%); display: grid; font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.18; text-transform: uppercase; letter-spacing: -0.01em; }
.bar__menu a { color: inherit; text-decoration: none; justify-self: start; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-short) var(--ease-out); }
.bar__menu a:hover { background-size: 100% 1px; }
.bar__menu a:focus-visible, .bar__brand:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; }
.bar__actions { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: var(--space-lg); }
.burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.burger__lines { display: block; width: 34px; height: 8px; margin-inline: auto; border-block: var(--rule-hair) solid currentColor; transition: transform var(--dur-short) var(--ease-out); }
.burger:hover .burger__lines { transform: scaleX(0.8); }
.burger:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 2px; }

/* Motion state: the band is fixed and slides from the middle of the hero to the top (see site.js). */
.motion .bar { position: fixed; top: 0; transform: translate3d(0, calc(50svh - var(--bar-h) / 2), 0); }
.motion .burger { display: block; }
.bar.is-docked .bar__menu, .bar.is-docked .bar__name { visibility: hidden; }
.bar.on-light { color: var(--color-ink); }
.bar.on-light .mark { background: var(--color-ink); color: var(--color-on-night); }
/* In the fixed header the button gets a solid ground, so content scrolling underneath never shows through. */
.bar .pill { --pill-bg: var(--color-night-2); }
.bar.on-light .pill { --pill-bg: var(--color-oat); --pill-line: var(--color-ink); --pill-ink: var(--color-ink); --pill-fill: var(--color-ink); --pill-ink-hover: var(--color-on-night); }

/* ---------- menu panel ---------- */
/* The panel fills the screen exactly: the rows share the height between the header and the foot, and the words scale with
   whichever is tighter, width or height, so the foot with the offerte button is always in view. */
.panel { position: fixed; inset: 0; z-index: calc(var(--z-sticky) + 50); background: var(--color-paper); color: var(--color-ink); display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100svh; padding-block: calc(var(--bar-h) + var(--space-md)) var(--space-lg); overflow-y: auto; }
.panel[hidden] { display: none; }
.panel__inner { display: grid; align-content: center; width: 100%; }
.panel__inner a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-hair-light); color: inherit; text-decoration: none; }
.panel__inner a { padding-block: clamp(var(--space-xs), 1.4svh, var(--space-md)); }
.panel__label { font-family: var(--font-body); font-size: var(--text-label); font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.panel__word { font-family: var(--font-display); font-size: clamp(1.75rem, min(6vw, 7.6svh), 6.5rem); line-height: 0.95; text-transform: uppercase; letter-spacing: var(--tracking-tight); transition: color var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.panel__inner a:hover .panel__word, .panel__inner a:focus-visible .panel__word { color: var(--color-accent); transform: translateX(-12px); }
.panel__inner a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); margin-top: clamp(var(--space-md), 3svh, var(--space-xl)); font-family: var(--font-body); font-size: var(--text-label); font-weight: 700; text-transform: uppercase; }
.panel__foot a:not(.pill) { color: inherit; }
.panel__foot .pill { margin-left: auto; min-height: 60px; padding: 0 var(--space-2xl); font-size: 1rem; }
.panel__foot a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.panel-open .bar { color: var(--color-ink); }
.panel-open .bar .pill { visibility: hidden; }
.panel-open .bar .mark { background: var(--color-ink); color: var(--color-on-night); }
.panel-open .burger__lines { transform: scaleY(0.12) translateY(0); }
.panel-open body { overflow: hidden; }

/* ---------- chapter bar ---------- */
.chapters { display: none; }
.motion .chapters {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg);
  position: fixed; left: 28px; right: 28px; bottom: 14px; z-index: var(--z-sticky); color: var(--color-on-night);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long), color var(--dur-long) var(--ease-out);
}
.motion .chapters.is-on { opacity: 1; visibility: visible; transition: opacity var(--dur-long) var(--ease-out), visibility 0s, color var(--dur-long) var(--ease-out); }
.chapters.on-light { color: var(--color-ink); }
.chapters a { display: grid; gap: var(--space-xs); color: inherit; text-decoration: none; font-family: var(--font-body); font-size: 0.6875rem; text-transform: uppercase; opacity: 0.45; transition: opacity var(--dur-short) var(--ease-out); }
.chapters a.is-active, .chapters a:hover { opacity: 1; }
.chapters a:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; opacity: 1; }
.chapters i { display: block; height: var(--rule-hair); background: currentColor; opacity: 0.3; position: relative; }
.chapters i::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.chapters a.is-active i { opacity: 1; background: var(--color-hair-night); }
.chapters.on-light a.is-active i { background: var(--color-hair-light); }

/* ---------- loader ---------- */
.loader { display: none; }
.js.is-intro .loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: var(--z-toast); background: var(--color-night-2); color: var(--color-on-night); animation: loader-failsafe 0.5s 7s forwards; }
.loader__lockup { display: flex; align-items: center; gap: var(--space-md); font-family: var(--font-brand); font-size: 1.375rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0; }
.loader__bar { width: var(--rule-hair); height: 1.6em; background: currentColor; opacity: 0.6; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
@keyframes show-failsafe { to { opacity: 1; transform: none; } }
.is-intro body { overflow: hidden; }
.is-intro .bar, .is-intro .hero__sub { opacity: 0; animation: show-failsafe 0.5s 7s forwards; }
.is-intro .hero__title .line > span { transform: translateY(105%); animation: show-failsafe 0.5s 7s forwards; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--color-night-2); color: var(--color-on-night); }
.hero__media { position: absolute; inset: 0; transform-origin: 50% 60%; }
.hero__media picture, .hero__img, .hero__water { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; }
.hero__water { display: none; }
.water-on .hero__water { display: block; }
.water-on .hero__img { visibility: hidden; }
.hero__shade { position: absolute; inset: 0; background: var(--color-shade); pointer-events: none; }
.hero__col { position: absolute; left: 27vw; top: 50%; transform: translateY(-50%); }
.hero__title { font-size: var(--text-hero); color: var(--color-on-night); }
.hero__sub { margin-top: clamp(28px, 5svh, 56px); font-family: var(--font-body); font-size: var(--text-label); line-height: 1.32; text-transform: uppercase; letter-spacing: -0.01em; }
.hero__sub strong { font-weight: 700; }
.hero__band { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); margin-top: var(--space-xl); }
.hero__links { display: grid; font-family: var(--font-body); font-size: var(--text-label); line-height: 1.5; text-transform: uppercase; }
.hero__links a { color: inherit; text-decoration: none; justify-self: start; }
.hero__links a:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 2px; }
/* Reduced motion: no band animation, the compact bar sits at the top from the start. */
.rm .bar { position: fixed; top: 0; }
.rm .bar__menu, .rm .bar__name { display: none; }
.rm .burger { display: block; }
.motion .bar:not(.is-docked) .burger { visibility: hidden; }

/* ---------- chapter card ---------- */
.card { position: relative; height: 100svh; background: var(--color-night-2); color: var(--color-on-night); }
.card__sticky { position: relative; height: 100%; overflow: hidden; display: grid; place-items: center; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(1); }
.card__label { position: relative; font-family: var(--font-body); font-size: var(--text-label); text-transform: uppercase; letter-spacing: -0.01em; }
.card__label strong { font-weight: 700; }
/* Body text on a card: bottom right, its left edge on the header menu column, clear of the chapter bar. */
.card__text { position: absolute; left: 70vw; right: 28px; bottom: 112px; max-width: 36ch; font-family: var(--font-body); font-size: var(--text-md); line-height: 1.45; color: var(--color-on-night); text-wrap: pretty; }
.card__num { position: absolute; right: 22vw; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: var(--text-label); text-transform: uppercase; color: var(--color-on-night-muted); }

/* ---------- statement ---------- */
.statement { padding-block: var(--section-gap) var(--space-3xl); background: var(--color-night); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: end; gap: var(--space-xl); }
.statement__title { grid-column: 2; font-size: var(--text-big); }
.statement__note { grid-column: 1; grid-row: 1; max-width: 22ch; color: var(--color-on-night-muted); }
/* Longer notes read in sentence case, like the step notes; the bold lead-in keeps the capitals. */
.statement__note { text-transform: none; font-size: var(--text-sm); max-width: 30ch; }
.statement__note strong { text-transform: uppercase; font-size: var(--text-label); }
.statement__note, .split__text p, .tech p, .phase li, .light__lead, .close__lead { text-wrap: pretty; }
.statement--right .statement__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.statement--right .statement__title { grid-column: 2; }

/* ---------- services rows ---------- */
.services { position: relative; padding-bottom: var(--section-gap); background: var(--color-night); }
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-hair-night); }
.rows a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: baseline; gap: var(--space-xl); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-hair-night); color: inherit; text-decoration: none; }
.rows__label { font-family: var(--font-body); font-size: var(--text-label); font-weight: 700; line-height: 1.32; text-transform: uppercase; color: var(--color-on-night-muted); transition: color var(--dur-short) var(--ease-out); }
.rows__word { justify-self: end; font-family: var(--font-display); font-size: clamp(2.2rem, 5.6vw, 7rem); line-height: 0.95; text-transform: uppercase; letter-spacing: var(--tracking-tight); transition: color var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.rows a:hover .rows__word, .rows a:focus-visible .rows__word { color: var(--color-blue); transform: translateX(-16px); }
.rows a:hover .rows__label { color: var(--color-on-night); }
.rows a:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; }
/* The picture that follows the cursor over the rows, rippled by the water filter */
.peek { display: none; }
.js.motion .peek { display: block; position: fixed; left: 0; top: 0; z-index: var(--z-raised); width: 340px; aspect-ratio: 4 / 3; margin: 0; pointer-events: none; overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.85); transition: opacity var(--dur-long) var(--ease-out); }
.peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: url(#water-peek); }
.peek.is-on { opacity: 1; }

/* ---------- bouw (waterline signature) ---------- */
.bouw { background: var(--color-night); padding-block: var(--section-gap); }
.bouw__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "title frame" "steps frame"; column-gap: var(--space-2xl); row-gap: var(--space-xl); align-items: start; }
/* Smaller than the other big titles: ONDERBOUWD has to fit the narrow title column. */
.bouw__title { grid-area: title; font-size: clamp(2rem, 3.8vw, 3.5rem); }
.bouw__frame { grid-area: frame; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.stage { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-night-2); }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage[data-stage="4"] { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
.bouw__line { display: none; }
.bouw__steps { grid-area: steps; list-style: none; margin: 0; padding: 0; }
.bouw__steps li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-hair-night); font-size: var(--text-sm); color: var(--color-on-night-muted); transition: color var(--dur-long) var(--ease-out); }
.bouw__steps .small { font-weight: 700; }
.bouw.is-live { padding-block: 0; }
.bouw.is-live .bouw__pin { min-height: 100svh; display: flex; align-items: center; padding-block: 104px 72px; }
.bouw.is-live .bouw__grid { width: 100%; }
.bouw.is-live .bouw__frame { display: block; position: relative; aspect-ratio: 4 / 3; max-height: calc(100svh - 190px); overflow: hidden; align-self: center; }
.bouw.is-live .stage { position: absolute; inset: 0; aspect-ratio: auto; }
.bouw.is-live .stage:not([data-stage="0"]) { clip-path: inset(100% 0% 0% 0%); }
.bouw.is-live .bouw__line { display: block; position: absolute; inset: 0 0 auto; height: 0; border-top: var(--rule-hair) solid var(--color-on-photo); will-change: transform; }
.bouw__line span { position: absolute; right: var(--space-md); bottom: var(--space-xs); font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; color: var(--color-on-photo); }
.bouw.is-live .bouw__steps li.is-active { color: var(--color-on-night); }
.bouw.is-live .bouw__steps li.is-active .small { color: var(--color-blue); }

/* ---------- reveal paragraph ---------- */
.reveal { padding-block: var(--section-gap); background: var(--color-night); }
.reveal__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-xl); align-items: start; }
.reveal__side { display: grid; gap: var(--space-lg); }
.reveal__side img { width: min(100%, 220px); aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); }
.reveal__text { font-size: var(--text-statement); line-height: 1.02; letter-spacing: -0.02em; }
.reveal__text .w { transition: color var(--dur-short) linear; }
.motion .reveal__text .w { color: var(--color-dim); }
.motion .reveal__text .w.is-lit { color: var(--color-on-night); }

/* ---------- three steps, vertical words ---------- */
.steps3 { padding-block: var(--space-3xl) var(--section-gap); background: var(--color-night); overflow: clip; }
.steps3__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); max-width: var(--container); margin-inline: auto; padding-inline: var(--space-xl); }
.steps3__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-md); min-height: 82svh; }
.steps3__note { align-self: end; max-width: 22ch; color: var(--color-on-night-muted); text-transform: none; font-size: var(--text-sm); }
.steps3__note strong { color: var(--color-on-night); text-transform: uppercase; font-size: var(--text-label); }
.steps3__word { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0; font-family: var(--font-display); font-size: var(--text-vertical); line-height: 0.82; text-transform: uppercase; letter-spacing: var(--tracking-tight); color: var(--color-on-night); }
.steps3__word--fill { color: var(--color-blue); }

/* ---------- collage ---------- */
.collage { padding-block: var(--section-gap-s) var(--section-gap); background: var(--color-night); }
.collage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); row-gap: var(--space-3xl); }
.tile { position: relative; margin: 0; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile__cap { position: absolute; font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.02em; color: var(--color-on-night); white-space: nowrap; }
.tile--a { grid-column: 2 / span 5; }
.tile--a .tile__cap { left: calc(100% + var(--space-lg)); top: 6%; }
.tile--b { grid-column: 8 / span 5; margin-top: 34%; }
.tile--b .tile__cap { right: calc(100% + var(--space-lg)); bottom: 4%; text-align: right; }
.tile--c { grid-column: 1 / span 5; }
.tile--c .tile__cap { left: calc(100% + var(--space-lg)); bottom: 6%; }
.tile--d { grid-column: 8 / span 4; margin-top: 22%; }
.tile--d { margin-bottom: calc(var(--space-3xl) + var(--space-xl)); }
.tile--d .tile__cap { left: 0; top: calc(100% + var(--space-md)); }
.tile--e { grid-column: 3 / span 6; }
.tile--e .tile__cap { left: calc(100% + var(--space-lg)); top: 10%; }

/* ---------- perks (short lists of what a service brings) ---------- */
.perks { list-style: none; margin: var(--space-3xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.perks li { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-hair-night); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.15; text-transform: uppercase; }

/* ---------- split (bouwchemie: photo and text, alternating sides) ---------- */
.split { padding-block: var(--space-xl) var(--section-gap); background: var(--color-night); }
.split__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.split__item + .split__item { margin-top: var(--space-3xl); }
.split__item figure { grid-column: 2 / span 4; grid-row: 1; margin: 0; }
.split__item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.split__text { grid-column: 7 / span 5; grid-row: 1; }
.split__item:nth-child(even) figure { grid-column: 8 / span 4; }
.split__item:nth-child(even) .split__text { grid-column: 2 / span 5; }
.split__title { font-size: var(--text-statement); }
.split__text p { margin-top: var(--space-lg); max-width: 48ch; color: var(--color-on-night-muted); }

/* ---------- phases (zwembadfolie) ---------- */
.phases { padding-block: var(--space-xl) var(--section-gap); background: var(--color-night); }
.phases__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.phase:nth-child(2) { margin-top: var(--space-3xl); }
.phase figure { margin: 0 0 var(--space-lg); aspect-ratio: 4 / 3; overflow: hidden; }
.phase img { width: 100%; height: 100%; object-fit: cover; }
.phase__title { font-size: var(--text-statement); }
.phase ul { list-style: none; margin: var(--space-lg) 0 0; padding: 0; }
.phase li { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-hair-night); color: var(--color-on-night-muted); }

/* ---------- light chapter ---------- */
.light { padding-block: var(--section-gap); background: var(--color-paper); color: var(--color-ink); }
.light .accent { color: var(--color-accent); }
.light__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-xl); align-items: start; }
.light__note { padding-top: var(--space-sm); }
.light__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xl); }
.light__bar { width: 14px; background: var(--color-ink); }
.light__title { font-size: var(--text-big); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-3xl) 0 0; }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-sm); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink); }
.facts dd { margin: 0; display: flex; align-items: baseline; gap: var(--space-xs); }
.facts .num { font-family: var(--font-display); font-size: clamp(3.2rem, 6.4vw, 7.5rem); line-height: 0.9; letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.facts .unit { font-family: var(--font-display); font-size: var(--text-xl); text-transform: uppercase; }
.facts dt { max-width: 28ch; }
.light__lead { margin-top: var(--space-xl); max-width: 52ch; color: var(--color-muted); }
.tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-3xl); }
.tech figure { margin: 0 0 var(--space-lg); aspect-ratio: 16 / 10; overflow: hidden; }
.tech img { width: 100%; height: 100%; object-fit: cover; }
.tech__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; line-height: 1.05; text-transform: uppercase; }
.tech p { margin-top: var(--space-sm); color: var(--color-muted); }
.facts--night > div { border-top-color: var(--color-on-night); }
.facts--night dt { color: var(--color-on-night-muted); }
.service { list-style: none; margin: var(--space-3xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.service li { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-hair-light); font-family: var(--font-display); font-size: var(--text-lg); text-transform: uppercase; }

/* ---------- close ---------- */
.close { padding-block: var(--section-gap); background: var(--color-night); }
.close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; }
.close__copy .small:first-child { color: var(--color-on-night-muted); margin-bottom: var(--space-lg); }
.close__title { font-size: var(--text-big); }
.close__lead { margin-top: var(--space-xl); max-width: 40ch; color: var(--color-on-night-muted); }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); }
.close address { margin-top: var(--space-2xl); font-style: normal; color: var(--color-on-night-muted); }
.close address a { color: var(--color-on-night); }
.close address a:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }
.close__photo { margin: 0; aspect-ratio: 2 / 3; max-height: 78svh; overflow: hidden; }
.close__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.footer { background: var(--color-night-2); color: var(--color-on-night-muted); padding-block: var(--space-3xl); padding-bottom: var(--space-3xl); }
.wordmark { display: inline-block; margin-left: -0.066em; font-family: var(--font-brand); font-weight: 400; line-height: 1; letter-spacing: 0.3704em; white-space: nowrap; }
.wordmark__o { display: inline-block; width: 0.77em; height: 0.7em; margin: 0 0.407em 0 0.0583em; vertical-align: baseline; fill: currentColor; }
.wordmark__p { letter-spacing: 0; }
.wordmark__sub { display: block; margin-top: 1.312em; font-family: var(--font-brand-sub); font-weight: 400; font-size: 0.2755em; line-height: 1; letter-spacing: 0.974em; }
.footer__logo { margin: 0 0 var(--space-3xl); text-align: center; font-size: clamp(2.4rem, 9.6vw, 9rem); color: var(--color-grey); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-hair-night); }
.footer__cols > * { display: grid; gap: var(--space-xs); align-content: start; }
.footer a { color: var(--color-on-night); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer a:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }

/* ---------- oat sections: the section after each chapter card, light, to balance the dark cards ---------- */
section.is-oat { background: var(--color-oat); color: var(--color-ink); }
.is-oat .accent { color: var(--color-accent); }
.is-oat .statement__note, .is-oat .facts--night dt { color: var(--color-muted); }
.is-oat .perks li { border-top-color: var(--color-hair-light); }
.is-oat .tile__cap { color: var(--color-ink); }
/* Two oat sections in a row: cover the sub-pixel seam where the dark page shows through. */
section.is-oat + section.is-oat { box-shadow: 0 -2px 0 var(--color-oat); }
.is-oat .facts--night > div { border-top-color: var(--color-ink); }
.is-oat .facts .unit { color: var(--color-accent); }
.motion .is-oat .reveal__text .w { color: var(--color-hair-light); }
.motion .is-oat .reveal__text .w.is-lit { color: var(--color-ink); }

/* ---------- motion states (only when the script runs; everything is visible without it) ---------- */
.js.motion .display .line > span { transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease-out); }
.js.motion .display.is-in .line > span { transform: none; }
.js.motion .display.is-in .line:nth-child(2) > span { transition-delay: 0.07s; }
.js.motion .display.is-in .line:nth-child(3) > span { transition-delay: 0.14s; }
.js.motion .display.is-in .line:nth-child(4) > span { transition-delay: 0.21s; }
.js.motion .display.is-in .line:nth-child(5) > span { transition-delay: 0.28s; }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .container { --gutter: 20px; }
  .bar { position: fixed; top: 0; }
  .motion .bar { transform: none; }
  .bar__name, .bar__menu { display: none; }
  .burger { display: block; }
  .bar__brand { left: 16px; }
  .bar__actions { right: 12px; gap: var(--space-xs); }
  .mark { width: 44px; height: 44px; }
  .pill { min-height: 44px; padding: 0 var(--space-md); font-size: 0.8125rem; letter-spacing: 0.06em; }
  .hero__col { left: 20px; right: 20px; top: 112px; transform: none; }
  .hero__band { display: grid; }
  .motion .bar:not(.is-docked) .burger { visibility: visible; }
  .motion .chapters { grid-template-columns: repeat(5, minmax(0, 1fr)); left: 16px; right: 16px; gap: var(--space-xs); }
  .chapters span { display: none; }
  .chapters a.is-active span { display: block; position: absolute; bottom: 10px; left: 0; white-space: nowrap; }
  .card__num { right: 20px; top: auto; bottom: 64px; transform: none; }
  .card__text { left: 20px; right: 20px; bottom: 88px; }
  .statement__grid, .statement--right .statement__grid, .reveal__grid, .light__grid, .close__grid { grid-template-columns: minmax(0, 1fr); }
  .statement__title, .statement--right .statement__title { grid-column: 1; }
  .statement__note { grid-row: auto; }
  .rows a { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .rows__word { justify-self: start; }
  .bouw__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "frame" "steps"; row-gap: var(--space-lg); }
  .bouw.is-live .bouw__pin { padding-block: 84px 56px; }
  .bouw.is-live .bouw__title { font-size: clamp(2rem, 9vw, 3rem); }
  .bouw.is-live .bouw__steps li { display: none; }
  .bouw.is-live .bouw__steps li.is-active { display: grid; }
  .steps3__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); padding-inline: 20px; }
  .steps3__word { font-size: clamp(3.6rem, 18vw, 6rem); }
  .collage__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: 1; margin-top: 0; }
  .tile__cap { position: static; margin-top: var(--space-sm); white-space: normal; }
  .light__body { gap: var(--space-md); }
  .light__bar { width: 8px; }
  .facts, .service, .tech, .phases__grid { grid-template-columns: minmax(0, 1fr); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase:nth-child(2) { margin-top: var(--space-2xl); }
  .split__item figure, .split__item:nth-child(even) figure { grid-column: 1 / -1; grid-row: 1; }
  .split__text, .split__item:nth-child(even) .split__text { grid-column: 1 / -1; grid-row: 2; margin-top: var(--space-lg); }
  .tech { row-gap: var(--space-2xl); }
  .service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close__photo { max-height: 60svh; aspect-ratio: 4 / 5; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .perks, .service { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .bouw__frame { grid-template-columns: minmax(0, 1fr); }
  .stage[data-stage="4"] { aspect-ratio: 4 / 3; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .loader__lockup { font-size: 1rem; }
}
