/* ───────────────────────── Hector — "re-invent" ─────────────────────────
   White, black and one red. Stack Sans Text, light + regular only.
   Lines: only the three vertical grid lines.                            */

h1, h2, h3, .statements p, .reveal.big, .amount, .oval { font-family: var(--f-title); }

/* two themes: red (default) and dark green — the toggle in the header (theme.js) sets data-theme */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #FECC02; }
@property --paper  { syntax: "<color>"; inherits: true; initial-value: #FEFEFE; }
@property --ink    { syntax: "<color>"; inherits: true; initial-value: #0E0E0E; }
html { --theme-t: 1.1s cubic-bezier(.45, 0, .2, 1); transition: --accent var(--theme-t), --paper var(--theme-t), --ink var(--theme-t); }
html[data-theme="green"] {
  /* flat green #0A9000 with white on it; a lighter green for text on the black page.
     The hero keeps its own (original) green glow image. */
  --accent: #0A9000;
  --accent-text: #4CC23F;   /* readable on the black page */
  /* the green theme also inverts the page: white sections turn black and black ones white */
  --paper: #0E0E0E;
  --ink: #FEFEFE;
  --hero-head: var(--white);   /* logo + links over the green glow */
  --on-accent: var(--white);
  --on-accent-dim: rgba(254, 254, 254, .35);
  --accent-ink: #4CC23F;
}

:root {
  --hero-head: var(--ink);     /* the red hero image is near-white at the top */
  /* three colours, nothing else.
     --white/--black never change; --paper/--ink are the page colours and swap in the green theme */
  --white: #FEFEFE;
  --black: #0E0E0E;
  --paper: #FEFEFE;
  --ink: #0E0E0E;
  /* the accent: yellow. Red was #FF2A12 with white on it — to go back, use those two values,
     --accent-ink: var(--accent) and the hero image assets/hero-red.jpg */
  --accent: #FECC02;
  --on-accent: var(--black);  /* text colour on accent surfaces: black on yellow */
  --on-accent-dim: rgba(14, 14, 14, .28);
  --accent-ink: #9A7600;      /* the accent as text on white: a deep gold, pure yellow is unreadable there */
  --accent-text: var(--accent-ink);   /* accent used as text/lines on the page background */
  --f-title: "Stack Sans Text", "Helvetica Neue", Arial, sans-serif;
  /* tints of black, not new colours */
  --paper-2: var(--paper);
  --ink-2: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);

  --f: "Stack Sans Text", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, strong, b { font-weight: 300; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* small caps-style labels: regular weight, tracked */
.label { font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.red { color: var(--accent); }

/* ── Logo: the Hector Studio wordmark, used as a mask so it takes currentColor ── */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img {
  display: block;
  aspect-ratio: 2000 / 667;
  background: currentColor;
  -webkit-mask: url(assets/logo-hector.png) center / contain no-repeat;
          mask: url(assets/logo-hector.png) center / contain no-repeat;
}
.logo .logo-img { width: clamp(84px, 7.5vw, 112px); transition: background-color .3s ease; }

/* ── Intro (intro.js) ───────────────────────── */
.intro {
  --paper: #FEFEFE; --ink: #0E0E0E;   /* always black on white, also in the green theme */
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  /* failsafe: if the script never runs, the white screen clears itself */
  animation: intro-failsafe .5s ease 4.5s forwards;
}
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.intro-word {
  width: clamp(220px, 32vw, 420px); aspect-ratio: 1112 / 141;
  background: currentColor;
  -webkit-mask: url(assets/logo-hector-studio.png) center / contain no-repeat;
          mask: url(assets/logo-hector-studio.png) center / contain no-repeat;
  opacity: 0; animation: intro-in .5s ease .1s forwards;
}
@keyframes intro-in { to { opacity: 1; } }
.intro-stage { position: absolute; left: 50%; top: 50%; }
.intro-stage .w { position: absolute; left: 0; top: 0; }
.intro-stage .ch {
  position: absolute; top: 0; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  backface-visibility: hidden; will-change: transform, opacity;
}
html.intro-on, html.intro-on body { overflow: hidden; }

html.intro-on .top .logo { opacity: 0; }   /* the real menu logo appears when the flying one lands */

/* ── Header ───────────────────────── */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);   /* thin full-width line */
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
/* right after a theme switch the header fades on the slow theme timing (theme.js sets .theme-anim) */
.theme-anim .top, .theme-anim .top * { transition-duration: 1.1s !important; transition-timing-function: cubic-bezier(.45, 0, .2, 1) !important; }
/* over the red hero: no bar, no line — only the logo, links and button (layout.js sets .is-bare) */
.top.is-bare { background: transparent; border-bottom-color: transparent; color: var(--hero-head); }
.top.is-bare .nav a { background-image: linear-gradient(var(--hero-head), var(--hero-head)); }

/* theme switch: glassy track with a red and a green dot; a glossy knob in the current colour slides across */
.theme-toggle {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 45;
  width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--black);
  transition: background-color .3s ease, transform .3s cubic-bezier(.5, 1.7, .4, 1);
}
.theme-toggle::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; }   /* bigger hit area */
.theme-toggle.on-dark { background: var(--white); }
.theme-toggle:hover { transform: scale(1.35); }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

/* over the project photos (data-tone="photo"): no bar, white text */
/* over black sections (data-tone="dark", set by layout.js) */
.top.is-dark { background: var(--ink); color: var(--paper); border-bottom-color: color-mix(in srgb, var(--paper) 16%, transparent); }
.top.is-photo {
  background: rgba(14, 14, 14, .18); color: var(--white); border-bottom-color: rgba(254, 254, 254, .14);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
/* always-black sections (the contact form): black bar in both themes */
.top.is-black { background: var(--black); color: var(--white); border-bottom-color: rgba(254, 254, 254, .16); }
.top.is-black .nav a { background-image: linear-gradient(var(--white), var(--white)); }
.top.is-photo .nav a { background-image: linear-gradient(var(--white), var(--white)); }
/* over red sections (data-tone="accent"): red bar, white text, white button */
.top.is-accent { background: var(--accent); color: var(--on-accent); border-bottom-color: color-mix(in srgb, var(--on-accent) 22%, transparent); }
.top.is-accent .nav a { background-image: linear-gradient(var(--on-accent), var(--on-accent)); }
.top.is-dark .nav a { background-image: linear-gradient(var(--paper), var(--paper)); }
.nav { display: flex; gap: 28px; }
.nav a {
  font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(var(--accent-text), var(--accent-text)) left 55% / 0 1.5px no-repeat;
  transition: background-size .25s ease;
}
.nav a:hover { background-size: 100% 1.5px; }

/* Services: a small panel under the menu, four groups side by side; it takes the header's colours */
.nav { align-items: center; }
.nav-dd { position: relative; }
.nav-dd-btn {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; cursor: pointer;
  color: inherit; font: inherit; font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left 55% / 0 1.5px no-repeat;
  transition: background-size .25s ease;
}
.nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { background-size: calc(100% - 13px) 1.5px; }
.nav-dd-caret {
  width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor;
  transform: rotate(45deg); transition: transform .3s cubic-bezier(.2, .75, .1, 1), margin .3s ease;
}
.nav-dd.is-open .nav-dd-caret { transform: rotate(225deg); margin-top: 3px; }
.nav-dd-panel {
  --dd-bg: var(--paper); --dd-fg: var(--ink);
  position: absolute; top: calc(100% + 22px); left: 50%; z-index: 2; min-width: 190px;
  padding: 14px 10px; border-radius: 14px;
  background: var(--dd-bg); color: var(--dd-fg);
  border: 1px solid color-mix(in srgb, var(--dd-fg) 10%, transparent);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .75, .1, 1), visibility 0s linear .35s;
}
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }   /* hover bridge */
.nav-dd.is-open .nav-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.top.is-dark .nav-dd-panel { --dd-bg: var(--ink); --dd-fg: var(--paper); }
.top.is-accent .nav-dd-panel { --dd-bg: var(--accent); --dd-fg: var(--on-accent); }
.top.is-photo .nav-dd-panel, .top.is-black .nav-dd-panel { --dd-bg: var(--black); --dd-fg: var(--white); }
.dd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.top .nav .nav-dd-panel a {
  display: flex; align-items: baseline; gap: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; background: none;
  font-weight: 300; font-size: 17px; letter-spacing: -.01em; text-transform: none;
  transition: opacity .2s ease, background-color .2s ease;
}
.nav-dd-panel a span { font-size: 11px; letter-spacing: .06em; color: color-mix(in srgb, var(--dd-fg) 45%, transparent); }
.nav-dd-panel:hover a { opacity: .5; }
.top .nav .nav-dd-panel a:hover, .top .nav .nav-dd-panel a:focus-visible {
  opacity: 1; background-color: color-mix(in srgb, var(--dd-fg) 6%, transparent);
}
/* the groups come in one after another */
.dd-list li { opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .75, .1, 1); }
.nav-dd.is-open .dd-list li { opacity: 1; transform: none; transition-delay: calc(.04s + var(--c, 0) * .045s); }
.dd-list li:nth-child(2) { --c: 1; } .dd-list li:nth-child(3) { --c: 2; } .dd-list li:nth-child(4) { --c: 3; }

/* ── Buttons: outlined pills with an icon (BOOK A CALL →) ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f); font-size: 11.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; line-height: 1;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  text-decoration: none; cursor: pointer; background: transparent; color: inherit;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
.btn-ico { font-size: 1.15em; transition: transform .25s ease; }
.btn:hover .btn-ico { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
/* filled pills where an action needs weight */
.btn-red { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-red:hover { background: var(--accent); filter: brightness(1.08); }
.btn-solid { background: var(--paper); border-color: var(--paper); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; }
.btn-solid:hover { background: var(--paper); filter: brightness(.94); }

/* ── Hero: red glow, Hector in X'en over the full width, headline + CTAs only ── */
:root { --hh: 71px; }   /* header height (kept in sync by script.js) */
/* the wrapper pins the hero for two extra screens: panels rise, then the manifest appears and lights up */
.hero-wrap { position: relative; z-index: 1; height: 300svh; }   /* above the contact section that waits behind the page */
.hero {
  position: sticky; top: 0; overflow: hidden;
  height: 100svh;
  display: flex; align-items: flex-end;
  /* the glow photo keeps its light; the theme accent supplies hue + saturation */
  background: var(--accent);
  color: var(--on-accent);
}

/* both theme images sit in the hero and crossfade when the theme flips */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: center / cover no-repeat;
  transition: opacity var(--theme-t);
}
.hero::before { background-image: url(assets/hero-yellow.jpg?v=2); opacity: 1; }
.hero::after  { background-image: url(assets/hero-green.jpg?v=4); opacity: 0; }
html[data-theme="green"] .hero::before { opacity: 0; }
html[data-theme="green"] .hero::after  { opacity: 1; }
.hero-art { z-index: 1; }
/* on the dark green, the black buttons turn white so they stay visible */

/* four white panels on the site grid rise over the pinned hero, staggered (--p0..--p3 from layout.js) */
.wipe {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: grid; grid-template-columns: var(--gutter) repeat(4, minmax(0, 1fr)) var(--gutter);
}
.wipe i { background: var(--paper); transform: translateY(calc((1 - var(--p, 0)) * 101%)); will-change: transform; }
.wipe i + i { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--ink) 12%, transparent); }   /* the grid line */
.wipe i:not(:last-child) { margin-right: -1px; }   /* no sub-pixel slivers of red between panels */
.wipe i:nth-child(1) { grid-column: 1 / 3; --p: var(--p0); }
.wipe i:nth-child(2) { grid-column: 3; --p: var(--p1); }
.wipe i:nth-child(3) { grid-column: 4; --p: var(--p2); box-shadow: none; }   /* no centre line */
.wipe i:nth-child(4) { grid-column: 5 / 7; --p: var(--p3); }
.hero-wrap ~ * { position: relative; z-index: 1; }

/* the manifest: a second pinned layer on top of the hero, centred, shown once the white has closed */
.stage {
  position: sticky; top: 0; height: 100svh; margin-top: -100svh; z-index: 5;
  display: grid; place-items: center; padding: 0 var(--gutter);
  opacity: var(--m, 0); pointer-events: none;
}
.stage-inner { width: min(100%, 760px); }
.reveal-stage .w { opacity: .14; transition: opacity .2s linear; }
.reveal-stage .w.on { opacity: 1; }
.hero-copy {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) clamp(40px, 6vw, 88px);
  max-width: min(58%, 900px);
  pointer-events: none;            /* the X field underneath keeps reacting */
}
.hero-cta { pointer-events: auto; }
@keyframes fade { to { opacity: 1; } }
.hero-title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(44px, 6vw, 104px);
  line-height: .96;
  letter-spacing: -.045em;
}
/* each word rises out of its own line mask (layout.js wraps them; .is-in starts it) */
.hero-title .hw, .rise-words .hw { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .04em .26em; margin: -.08em -.04em -.26em; }
.hero-title .hw > span, .rise-words .hw > span { display: inline-block; transform: translateY(135%); transition: transform 1s cubic-bezier(.2, .75, .1, 1) var(--d, 0s); }
.hero-title.is-in .hw > span, .rise-words.is-in .hw > span { transform: none; }
.hero-title em { font-weight: 400; color: inherit; white-space: nowrap; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(28px, 3vw, 44px); opacity: 0; transform: translateY(10px); transition: opacity .8s ease .75s, transform .8s ease .75s; }
.hero-title.is-in + .hero-cta { opacity: 1; transform: none; }
.hero .btn:focus-visible { outline-color: var(--white); }

/* the X field covers the whole hero; the statue sits right */
.hero-art { position: absolute; inset: 0; margin: 0; touch-action: pan-y; }
.xfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.xfield.on-statue { cursor: none; }
.sr-link { position: absolute; left: -9999px; }
.sr-link:focus { left: var(--gutter); top: calc(var(--hh) + 12px); z-index: 3; background: var(--paper); color: var(--ink); padding: 8px 12px; }

/* custom cursor over the statue: white disc reading "about" */
.statue-cursor {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  pointer-events: none; z-index: 2; will-change: transform;
}
.statue-cursor span {
  position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--black);
  font-weight: 400; font-size: 15px; letter-spacing: -.01em;
  transform: scale(0); transition: transform .28s cubic-bezier(.2, .8, .2, 1.2);
}
.statue-cursor.is-on span { transform: scale(1); }

/* ══════════════════ Below the hero: one 4-column system ══════════════════
   Visible hairline columns (Iceberg/Merus), sticky label column (Nick Clement/BEK). */
:root { --n: 4; --pad: clamp(12px, 1.3vw, 20px); --stick: 84px; }

.g {
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --cw: calc((100% - 2 * var(--gutter)) / 4);
  /* the grid lines fade in/out where they meet a section without lines (--lt / --lb, see below) */
  --lt: 0px; --lb: 0px;
  --lg: linear-gradient(to bottom, transparent, var(--line) var(--lt), var(--line) calc(100% - var(--lb)), transparent);
  /* the two outer grid lines; the centre one only in the footer */
  background-image: var(--lg), var(--lg);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: calc(var(--gutter) + var(--cw)) 0, calc(var(--gutter) + 3 * var(--cw)) 0;
}
.foot.g {
  --lt: 160px;   /* the footer follows a section without lines: its lines fade in */
  background-image: var(--lg), var(--lg), var(--lg);
  background-position: calc(var(--gutter) + var(--cw)) 0, calc(var(--gutter) + 2 * var(--cw)) 0, calc(var(--gutter) + 3 * var(--cw)) 0;
}
.cols {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  padding-inline: var(--gutter);
  margin: 0;
}
.cols > * { padding-inline: var(--pad); min-width: 0; }
.span-2 { grid-column-end: span 2; }
.span-3 { grid-column-end: span 3; }   /* end-side, so .col-2 can set the start */
.col-2 { grid-column-start: 2; }
.sticky-col { position: sticky; top: var(--stick); align-self: start; }

.sec {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(96px, 10vw, 150px);
}
.idx { color: var(--accent-text); margin: 0 0 14px; }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; max-width: 30ch; }
.sec h2 {
  margin: 0; font-weight: 300;
  font-size: clamp(28px, 3.2vw, 52px); line-height: 1.06; letter-spacing: -.035em; max-width: 20ch;
}
.sec h2 em { color: var(--accent-text); font-weight: 400; }
.sub { font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-2); max-width: 56ch; margin: 22px 0 0; }

/* X as the bullet / sparkle (BEK) */
.x { color: var(--accent-text); font-size: .9em; }
.xlink { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.xlist { list-style: none; margin: 0; padding: 0; }
.xlist li { padding-left: 1.4em; position: relative; }
.xlist li::before { content: "✕"; position: absolute; left: 0; color: var(--accent-text); font-size: .8em; top: .2em; }

/* ── Manifest: words light up on scroll (Iceberg) ── */
.statements p { margin: 0 0 1.1em; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.14; letter-spacing: -.03em; }
.statements p:last-child { margin-bottom: 0; }
.reveal .w { opacity: .16; transition: opacity .25s linear; }
.reveal .w.on { opacity: 1; }

/* ── Diensten: black; one sentence, the service at its end rolls on with the scroll ── */
.svc { height: calc(100vh + 8 * 70vh); position: relative; background: var(--ink); color: var(--paper); }
.svc-stick {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--hh, 70px) + 2vh) var(--gutter) 6vh;
  --f: 0;
}
.svc-title {
  margin: 0; font-weight: 300; font-size: clamp(34px, min(5.6vw, 10.5vh), 124px);
  letter-spacing: -.045em; line-height: 1.04;
  /* room under the current service for the three that follow */
  margin-bottom: calc(3 * 1.04em);
}
.svc-lead, .svc-wheel { display: block; }
/* words of the sentence rise in when the section arrives */
.svc-title .hw { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .04em .24em; margin: -.08em -.04em -.24em; }
.svc-title .hw > span { display: inline-block; transform: translateY(108%); transition: transform 1s cubic-bezier(.2, .75, .1, 1) var(--d, 0s); }
.svc.is-in .svc-title .hw > span { transform: none; }
.svc-wheel { position: relative; height: 1.04em; clip-path: inset(0 -100vw -100vh -100vw); }   /* the outgoing service rolls away under the sentence */
.svc-list {
  list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 0;
  transform: translateY(calc(var(--f) * -1.04em));
}
.svc-list li {
  height: 1.04em; white-space: nowrap;
  opacity: 0; translate: 0 .4em;
  transition: opacity 1s ease, translate 1s cubic-bezier(.2, .75, .1, 1), color .35s ease;
  transition-delay: calc(.45s + var(--i, 0) * .1s);
}
.svc.is-in .svc-list li { opacity: var(--o, 0); translate: none; }
.svc.is-run .svc-list li { transition-delay: 0s; transition-duration: .15s, 1s, .35s; }
.svc-list a { color: inherit; text-decoration: none; }
.svc-list li.is-current { color: var(--accent); }
.svc-list li.is-current a:hover { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .12em; }
.svc-cta { margin: 0; position: absolute; left: var(--gutter); bottom: 5vh; }
.svc-cta .view-link {
  color: inherit; text-decoration: none; white-space: nowrap;
  font-weight: 300; font-size: clamp(18px, 1.7vw, 28px); letter-spacing: -.02em; line-height: 1;
}

/* ── Scanner: title left, the test centred between the two lines (same rhythm as Wanneer) ── */
.scanner { background-color: var(--paper); position: relative; overflow: hidden; }
/* full-height bar on the right edge, sticking out a little into the section */
.side-cta {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: 3; width: clamp(64px, 5vw, 84px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: background-color .4s ease, color .4s ease, opacity .8s ease, transform 1s cubic-bezier(.2, .75, .1, 1);
}
/* hover: the bar turns red (green in the green theme) */
.side-cta:hover { background: var(--accent); color: var(--on-accent); }
.side-cta-txt {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: 400; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.side-cta-ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font-size: 16px;
  transition: background-color .4s ease, color .4s ease, transform .35s cubic-bezier(.5, 1.7, .4, 1);
}
.side-cta:hover .side-cta-ico { background: var(--on-accent); color: var(--accent); transform: rotate(-45deg); }
.side-cta:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -6px; }
.scan-grid { padding-right: calc(var(--gutter) + clamp(64px, 5vw, 84px)); }
.scan-grid { align-items: stretch; min-height: calc(100svh - 2 * clamp(96px, 10vw, 150px)); }
.scan-left { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.scan-left h2 { margin: 0; font-weight: 300; font-size: clamp(32px, 3.3vw, 62px); line-height: 1.04; letter-spacing: -.04em; white-space: nowrap; max-width: none; }
.scan-note { margin: 0; }
.scan-main { width: min(100%, 680px); justify-self: center; display: flex; flex-direction: column; justify-content: center; }
.scan-main > .sub { margin: 0 0 clamp(28px, 4vh, 44px); }
.scan-form .label { display: block; color: var(--ink-2); margin-bottom: 12px; }
.scan-field { display: flex; gap: 10px; align-items: center; }
textarea, input {
  width: 100%; font: inherit; font-weight: 300; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent); border: 0; border-radius: 14px;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.scan-field input { flex: 1; height: 54px; padding: 0 20px; font-size: 18px; letter-spacing: -.01em; }
input:hover, textarea:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--accent-text); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.scan-field .btn { flex: none; height: 54px; padding-inline: 22px; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy .btn-ico { width: 1em; height: 1em; font-size: 0; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-status { font-size: 14px; color: var(--ink-2); min-height: 1.5em; margin: 14px 0 0; }

/* the result folds open the first time, then each part arrives in turn */
.scan-out { padding-top: clamp(20px, 3vh, 32px); }
.scan-out:not(.has-result) { display: none; }
.score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.score-num { font-weight: 300; font-size: clamp(64px, 6.4vw, 108px); line-height: .9; letter-spacing: -.06em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.score-unit { font-weight: 400; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.scan-src { text-transform: none; letter-spacing: 0; }
.verdict { font-weight: 400; font-size: clamp(17px, 1.3vw, 21px); letter-spacing: -.015em; margin: 14px 0 18px; }
/* one bar per service group: one total score out of 10 and one tip; each row links to the group */
.bars { list-style: none; margin: 4px 0 26px; padding: 0; display: grid; }
.bars > li { border-bottom: 1px solid var(--rule); animation: rise-in .6s ease both; animation-delay: calc(.25s + var(--i, 0) * .1s); }
.bar-head { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 6px 18px; padding: 14px 0; color: inherit; text-decoration: none; }
.bar-name { font-weight: 400; font-size: 15px; letter-spacing: -.01em; transition: color .2s ease; }
.bar-head:hover .bar-name { color: var(--accent-text); }
.bar-num { font-weight: 300; font-size: 26px; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: right; }
.bar-num small { font-size: 12px; letter-spacing: 0; color: var(--ink-2); margin-left: 2px; }
.bar-track { grid-column: 2; grid-row: 1; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--ink); transform-origin: left; animation: bar-grow 1.1s cubic-bezier(.2, .75, .1, 1) both; animation-delay: calc(.45s + var(--i, 0) * .12s); }
.bars li.is-low .bar-track i { background: var(--accent-text); }
.bars li.is-low .bar-num { color: var(--accent-text); }
.bars li.is-na .bar-num { color: var(--ink-2); }
.bar-tip { grid-column: 2 / 4; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.bar-tip span { display: inline-block; opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .25s ease; }
.bar-head:hover .bar-tip span { opacity: 1; transform: none; }
.bars-note { padding: 14px 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@keyframes bar-grow { from { transform: scaleX(0); } }
.scan-out:not(.has-result) .bars li, .scan-out:not(.has-result) .bar-track i { animation: none; }
@media (max-width: 560px) {
  .bar-head { grid-template-columns: 1fr auto; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bar-tip { grid-column: 1 / -1; }
}
.hits { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hits li {
  font-size: 12.5px; font-weight: 400; padding: 7px 13px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  text-decoration: line-through; text-decoration-color: var(--accent-text);
  animation: pop .5s cubic-bezier(.5, 1.7, .4, 1) both; animation-delay: calc(.35s + var(--i, 0) * .06s);
}
.hits b { font-weight: 400; color: var(--accent-text); text-decoration: none; display: inline-block; }
.scan-result { line-height: 1.7; }
.scan-result p { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); animation: rise-in .6s ease both; animation-delay: calc(.6s + var(--i, 0) * .12s); }
.scan-result s {
  text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--accent-text), var(--accent-text)) 0 58% / 0% 2px no-repeat;
  animation: strike-draw .6s cubic-bezier(.7, 0, .2, 1) forwards; animation-delay: calc(.9s + var(--i, 0) * .12s);
}
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(6px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes strike-draw { to { background-size: 100% 2px; } }
.verdict, .score { animation: rise-in .6s ease both; }
.scan-out:not(.has-result) .verdict, .scan-out:not(.has-result) .score { animation: none; }

.scan-paste { margin-top: clamp(24px, 4vh, 40px); }
.scan-paste summary { cursor: pointer; color: var(--ink-2); list-style: none; width: fit-content; }
.scan-paste summary::-webkit-details-marker { display: none; }
.scan-paste summary::before { content: "+ "; }
.scan-paste[open] summary::before { content: "− "; }
.scan-paste textarea { margin: 12px 0; padding: 16px 20px; font-size: 16px; resize: vertical; }

/* parts of a section rise in when it scrolls into view (layout.js adds .in) */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .75, .1, 1); transition-delay: var(--rd, 0s); }
.rise.in { opacity: 1; transform: none; }
.rise.rise-x { transform: translateX(100%); }
.rise.rise-x.in { transform: none; }

/* ── When: black, one situation per column ── */
/* pinned for a few screens. Left: title, CTA at the bottom. Right: the situations appear one by one;
   the newest is lit in the accent with a ✕, earlier ones dim (layout.js sets .is-on / .is-current) */
.when { position: relative; height: 340vh; background-color: var(--ink); color: var(--paper); }
.when-stick {
  --line: color-mix(in srgb, var(--paper) 12%, transparent);
  position: sticky; top: 0; height: 100svh;
  padding-block: calc(var(--hh) + clamp(40px, 8vh, 96px)) clamp(36px, 7vh, 80px);
}
.when-grid { height: 100%; align-items: stretch; }
.when-left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.when-left h2 { margin: 0; font-weight: 300; font-size: clamp(32px, 3.3vw, 62px); line-height: 1.04; letter-spacing: -.04em; white-space: nowrap; }
.when-cta { display: flex; }
.when-list {
  list-style: none; margin: 0; padding-block: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;   /* centred between the two lines */
  gap: clamp(26px, 5vh, 56px);
}
.when-list > li { width: min(100%, 680px); }   /* one shared width, so the left edges line up */
.when-list li {
  position: relative; padding-left: clamp(26px, 2.2vw, 40px);
  opacity: 0; transform: translateY(40px); filter: blur(6px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .75, .1, 1), filter .7s ease, color .5s ease;
}
.when-list li.is-on { opacity: .38; transform: none; filter: none; }
.when-list li.is-current { opacity: 1; }
.when-list li::before {   /* the marker on the current one */
  content: "✕"; position: absolute; left: 0; top: .15em;
  font-size: clamp(14px, 1.2vw, 20px); color: var(--accent);
  opacity: 0; transform: scale(.4) rotate(-90deg); transition: opacity .5s ease, transform .6s cubic-bezier(.5, 1.7, .4, 1);
}
.when-list li.is-current::before { opacity: 1; transform: none; }
.when-list h3 { margin: 0 0 10px; font-size: clamp(22px, 2.1vw, 36px); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; transition: color .5s ease; }
.when-list li.is-current h3 { color: var(--accent); }
.when-list p { margin: 0; color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: clamp(14px, 1.1vw, 19px); line-height: 1.5; }
.when-list p span { display: block; white-space: nowrap; }   /* exactly two lines on desktop */

/* ── Work: full-screen image cards (Iceberg); each sticks under the header, the next slides over it ── */
.work { position: relative; }
.case {
  position: sticky; top: 0; display: block; height: 100svh;   /* the photo runs under the (frosted) menu */
  overflow: hidden; text-decoration: none; color: var(--white);
  background: var(--black) var(--img, none) center / cover no-repeat;
}
.case::before {   /* keeps the white text legible on any photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, .55) 0%, rgba(14, 14, 14, .1) 45%, rgba(14, 14, 14, .35) 100%);
}
.case-in {
  --line: rgba(254, 254, 254, .22);
  position: relative; z-index: 2; height: 100%; padding-top: calc(var(--hh) + clamp(48px, 9vh, 110px)); align-content: start;
  pointer-events: none;   /* clicks fall through to .case-link, except on the expertise links */
}
.case-in.g {   /* only the outer two of the three lines on the photos */
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-position: calc(var(--gutter) + var(--cw)) 0, calc(var(--gutter) + 3 * var(--cw)) 0;
}
.case-link { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
html.cursor-custom .case, html.cursor-custom .case-link { cursor: none; }
.case-link:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; }
.case-client { margin: .5em 0 0; opacity: .85; }
.case-text { margin: 0; font-weight: 400; font-size: clamp(18px, 1.85vw, 32px); line-height: 1.18; letter-spacing: -.025em; }
.case-text span { display: block; white-space: nowrap; }   /* exactly three lines on desktop */
.case-tags { list-style: none; margin: .5em 0 0; padding-block: 0; display: grid; gap: 8px; align-content: start; }
.case-tags a {
  pointer-events: auto; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.case-tags a:hover { color: var(--accent); }
/* last card: link to all projects, bottom right */
.case-more {
  position: absolute; right: var(--gutter); bottom: clamp(96px, 14vh, 130px); z-index: 3;   /* clear of the colour circle */
  color: var(--white); text-decoration: none; cursor: pointer;
  font-weight: 300; font-size: clamp(18px, 1.7vw, 28px); letter-spacing: -.02em; line-height: 1;
}
.view-link span { display: inline-block; margin-left: .25em; font-size: .42em; vertical-align: .3em; transition: transform .3s ease; }
.view-link:hover span { transform: translate(4px, 3px); }
.case + .case { box-shadow: 0 -30px 60px -20px rgba(14, 14, 14, .45); }
/* photos with their own text (the billboard): put ours at the bottom, over a darker fade */
.case-low .case-in { align-content: end; padding-top: 0; padding-bottom: clamp(48px, 9vh, 110px); }
.case-low::before { background: linear-gradient(180deg, rgba(14, 14, 14, .25) 0%, rgba(14, 14, 14, 0) 35%, rgba(14, 14, 14, .55) 62%, rgba(14, 14, 14, .9) 100%); }

/* cursor over the project cards: red disc reading "View project" */
.link-cursor { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; will-change: transform; }
.link-cursor span {
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: var(--on-accent);
  font-weight: 400; font-size: 14px; letter-spacing: .01em;
  transform: scale(0); transition: transform .28s cubic-bezier(.2, .8, .2, 1.2);
}
.link-cursor.is-on span { transform: scale(1); }

/* ── System: pinned on red, words light up grey → white (like the manifest), bigger and medium ── */
.system { height: 240vh; position: relative; background: var(--accent); color: var(--on-accent); }
.system-stick {
  position: sticky; top: var(--hh); height: calc(100svh - var(--hh));
  display: grid; place-items: center; padding: 0 var(--gutter);
}
.reveal-pin {
  margin: 0; text-align: center;
  font-weight: 500; font-size: clamp(24px, 2.9vw, 50px); line-height: 1.12; letter-spacing: -.035em;
}
.reveal-pin .line { display: block; white-space: nowrap; }   /* one line per <br> on desktop, each sentence on its own line */
.reveal-pin .w { color: var(--on-accent-dim); transition: color .2s linear; }
.reveal-pin .w.on { color: var(--on-accent); }

/* ── Not: dark, square-bullet rows ── */
.not { background-color: var(--ink); color: var(--paper); --line: color-mix(in srgb, var(--paper) 12%, transparent); border-top: 0; }
.not .sub, .not .small { color: color-mix(in srgb, var(--paper) 65%, transparent); }
/* title in the left frame, the refusals in the middle, their reasons on the right */
/* content sits high in the section; the About link sits bottom-left, under the title */
.sec.not { justify-content: flex-start; }
.not-grid { align-items: start; flex: 1; }
.not-side { grid-column: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.not-cta { align-self: flex-start; }
.sec .not-title { margin: 0; padding-top: clamp(14px, 1.8vw, 22px); padding-right: var(--pad); max-width: none; }
.not-list {
  grid-column: 2 / -1; display: grid; grid-template-columns: subgrid; padding: 0; margin: 0; list-style: none;
}
.not-list > li {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding-inline: 0;
  padding-block: clamp(14px, 1.8vw, 22px); align-items: center;
}
.not-list s {
  grid-column: 1 / 3; padding-inline: calc(var(--pad) + 24px) var(--pad); position: relative;
  font-weight: 300; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.1; letter-spacing: -.03em;
  text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px;
}
.not-list s::before { content: ""; position: absolute; left: var(--pad); top: .42em; width: 10px; height: 10px; background: var(--accent); }
.not-list span { grid-column: 3; padding-inline: var(--pad); color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 14px; line-height: 1.5; }

/* ── Contact: a sentence with fields in it. It sticks to the bottom of the screen behind
   "Wat we niet doen", which scrolls up and away to reveal it (--rv from layout.js). ── */
.not { position: relative; z-index: 2; }
section.contact {
  /* a light section: white in the red theme, black in the green one */
  position: sticky; bottom: 0; z-index: 0;
  height: 100svh; min-height: 0; padding-block: calc(var(--hh) + 24px) 40px;
  background: var(--paper); color: var(--ink);
}
section.contact .btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.contact-in {
  padding-inline: var(--gutter);
  opacity: calc(.15 + .85 * var(--rv, 1));
  transform: translateY(calc((1 - var(--rv, 1)) * 70px));
}
.s-hello, .s-text {
  margin: 0; font-weight: 300; font-size: clamp(28px, 4.1vw, 70px); line-height: 1.32; letter-spacing: -.035em;
}
.s-hello { margin-bottom: .3em; }
.s-field, .s-select select {
  font: inherit; letter-spacing: -.01em; color: var(--ink);
  height: 1.12em; padding: 0 .3em; vertical-align: -.16em;
  background: color-mix(in srgb, var(--ink) 7%, transparent); border: 0; border-radius: 12px;
  transition: background-color .2s ease;
}
.s-field:hover, .s-select select:hover { background: color-mix(in srgb, var(--ink) 11%, transparent); }
.s-field:focus, .s-select select:focus { background: color-mix(in srgb, var(--ink) 13%, transparent); outline: 2px solid var(--accent-text); outline-offset: 2px; }
.s-name { width: 6.5em; }
.s-company { width: 6em; }
.s-mail { width: 9.5em; }
.s-tel { width: 6.5em; }
.s-select { position: relative; display: inline-block; }
/* the dropdown text sits smaller inside a field of the same height */
.s-select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font-size: .42em; height: 2.67em; width: 13em; padding: 0 2.6em 0 .8em; vertical-align: .05em;
  letter-spacing: 0; border-radius: 10px;
}
.s-select.s-wide select { width: 13em; }
.s-select select option { color: var(--ink); background: var(--paper); font-size: 16px; }
.s-select::after {   /* the little chevron tile */
  content: ""; position: absolute; right: .2em; top: 50%; width: .5em; height: .5em; margin-top: -.3em;
  border-radius: 8px; pointer-events: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / 80% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.s-field:user-invalid, .s-select select:user-invalid { outline: 2px solid var(--accent-text); }
.s-actions { margin-top: clamp(28px, 5vh, 56px); display: flex; align-items: center; justify-content: center; gap: 20px; }
.s-status { margin: 0; font-size: 14px; color: color-mix(in srgb, var(--ink) 65%, transparent); }
.contact-alt { margin-top: clamp(28px, 5vh, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-tel { margin-left: auto; text-decoration: none; opacity: .8; }

/* ── Footer: red bookend, link columns, full-bleed wordmark ── */
.foot {
  background-color: var(--accent); color: var(--on-accent); --line: rgba(14, 14, 14, .18);
  min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hh) + clamp(20px, 3vh, 40px)) 0 18px;
}
.foot-cols { align-items: start; }
.foot-cols > * { display: flex; flex-direction: column; gap: 6px; }
.foot-cols .label { margin: 0 0 10px; opacity: .7; }
.foot-cols a { text-decoration: none; width: fit-content; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-tag { margin: 0; font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.02em; line-height: 1.15; max-width: 14ch; }
.foot-logo {
  flex: none; aspect-ratio: 2000 / 667;
  width: calc(100% - 2 * var(--gutter) - 2 * var(--pad)); margin: clamp(20px, 4vh, 56px) auto 0;   /* the full content width */
}
.foot-row {
  margin-top: 14px; padding-inline: calc(var(--gutter) + var(--pad));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.foot-vat { text-align: center; }
/* language choice, bottom-right under the logo: the current one full strength, the others faded */
.lang { justify-self: end; display: flex; gap: 14px; }
.lang a { color: inherit; text-decoration: none; opacity: .5; transition: opacity .2s ease; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 960px) { .lang { margin-right: 28px; } }   /* keep clear of the theme dot */

/* ── Time / chronograph ───────────────────────── */
.time {
  --fg: var(--paper); --bg: var(--ink); --mute: color-mix(in srgb, var(--paper) 65%, transparent);
  --line: color-mix(in srgb, var(--paper) 12%, transparent);
  background-color: var(--bg); color: var(--fg);
  /* only the outer two of the three grid lines */
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-position: calc(var(--gutter) + var(--cw)) 0, calc(var(--gutter) + 3 * var(--cw)) 0;
}
.time .sub { color: var(--mute); transition: color .5s ease; }
.time h2 em { color: inherit; font-weight: 400; }
.time { padding-block: clamp(110px, 14vh, 160px); }
.time-row { align-items: stretch; min-height: calc(100svh - 2 * clamp(110px, 14vh, 160px)); }
.time-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.time-row .clock-wrap { align-self: center; }
.readout { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.readout .label { color: var(--mute); }
.readout-num { font-weight: 300; font-size: clamp(40px, 3.6vw, 60px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.time-ctrl { display: flex; gap: 24px; margin-top: 22px; }
.link-btn {
  background: none; border: 0; padding: 4px 0; color: inherit; cursor: pointer; font-family: var(--f);
  border-bottom: 1px solid currentColor;
}
.link-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.clock-wrap { margin: 0; display: grid; justify-items: center; gap: 14px; }
.clock { width: min(112%, 640px); height: auto; overflow: visible; color: var(--fg); }
.clock.flip { animation: flip .5s cubic-bezier(.6, 0, .4, 1); }
@keyframes flip { 50% { transform: scaleX(0); } }
.clock-cap { color: var(--mute); }

.clock .bezel { fill: var(--bg); stroke: currentColor; stroke-width: 3; transition: fill .5s ease; }
.clock .ring, .clock .subdial { fill: none; stroke: currentColor; stroke-width: 1; }
.clock .tick { stroke: currentColor; stroke-width: 1; }
.clock .tick-h { stroke-width: 3; }
.clock .brand-logo { fill: currentColor; }
.clock .sub-label { fill: currentColor; font-family: var(--f); font-weight: 400; font-size: 8px; letter-spacing: .14em; opacity: .7; }
.clock line { stroke: currentColor; stroke-linecap: round; }
.clock .hand-h { stroke-width: 6; }
.clock .hand-m { stroke-width: 3.5; }
.clock .hand-cs { stroke-width: 1.2; }
.clock .hand-thin { stroke-width: 1.5; }
.clock .hub { fill: currentColor; }
.clock .hub-ring { fill: var(--bg); stroke: currentColor; stroke-width: 1.2; transition: fill .5s ease; }
.clock .pusher { cursor: pointer; outline: none; }
.clock .pusher:focus-visible rect { stroke-width: 4; }
.clock .pusher rect { fill: var(--bg); stroke: currentColor; stroke-width: 2.5; transition: transform .12s ease, fill .5s ease; }
.clock .pusher:hover rect { fill: currentColor; }
.clock .pusher.pressed rect { transform: translateY(6px); }
.clock .crown { cursor: default; }
.clock .crown:hover rect { fill: var(--bg); }   /* the crown is decoration */

/* ── Responsive ───────────────────────── */
@media (max-width: 960px) {
  :root { --n: 2; }
  .nav { display: none; }
  .hero-copy { max-width: none; }
  .cols > *, .span-2, .span-3, .col-2 { grid-column: 1 / -1; }
  .sticky-col { position: static; margin-bottom: 20px; }
  .when { height: auto; }
  .when-stick { position: relative; height: auto; min-height: 100svh; }
  .when-list { margin-top: 36px; }
  .when-list li, .when-list li.is-on { opacity: 1; transform: none; filter: none; }
  .when-left { gap: 24px; }
  .when-left h2 { white-space: normal; }
  .when-list { align-items: stretch; }
  .when-list > li { width: auto; }
  .when-list p span { display: inline; white-space: normal; }
  .scan-left h2 { white-space: normal; }
  .scan-main { width: auto; margin-top: 32px; }
  .scan-grid { padding-right: var(--gutter); }
  .side-cta {
    position: relative; inset: auto; width: auto; height: 64px; margin: 40px var(--gutter) 0;
    flex-direction: row; border-radius: 999px;
  }
  .side-cta-txt { writing-mode: horizontal-tb; transform: none; }
  .scan-field { flex-direction: column; align-items: stretch; }
  .not-side, .not-list { grid-column: 1 / -1; }
  .not-side { display: contents; }
  .not-cta { order: 2; grid-column: 1 / -1; justify-self: start; margin: 32px var(--pad) 0; }
  .sec .not-title { padding-inline: var(--pad); }
  .sec .not-title { margin-bottom: 24px; }
  .not-list, .not-list > li { display: block; }
  .not-list s, .not-list span { display: block; padding-left: calc(var(--pad) + 24px); }
  .not-list span br { display: none; }
  .not-list span { margin-top: 6px; }
  .foot-cols > * { grid-column: span 1; margin-bottom: 28px; }
  .foot-cols .foot-tag { grid-column: 1 / -1; }
  .foot { min-height: 100svh; }
  /* grid: one centre line on tablets, none on phones */
  .g { background-image: none; }
  .foot.g { background-image: linear-gradient(var(--line), var(--line)); background-position: 50% 0; }
  .case-in { padding-top: calc(var(--hh) + 32px); }
  .case-client, .case-text { margin-bottom: 18px; }
  .reveal-pin .line { display: inline; white-space: normal; }
  .case-in.g, .time { background-image: none; }
  .time-row { min-height: 0; }
  section.contact { position: relative; height: auto; min-height: 100svh; }
  .contact-in { opacity: 1; transform: none; }
  .s-name, .s-mail, .s-tel, .s-company, .s-select select, .s-select.s-wide select { width: 100%; max-width: 100%; margin-block: 4px; }
  .s-select { display: block; }
  .contact-tel { margin-left: 0; }
  .case-more { font-size: 18px; }
  .case-text span { display: inline; white-space: normal; }
}
@media (max-width: 560px) {
  :root { --n: 1; }
  .svc-title { font-size: 27px; }
  .svc-lead br { display: none; }
  .g { background-image: none; }
  .form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .reveal .w, .reveal-stage .w { opacity: 1; }
  .svc { height: auto; }
  .svc-stick { position: relative; height: auto; min-height: 100vh; }
  .svc-title { margin-bottom: 0; }
  .svc-wheel { height: auto; }
  .svc-list { position: static; transform: none; }
  .svc-list li { opacity: 1; translate: none; }
  .svc-title .hw > span { transform: none; }
  .hero-wrap { height: auto; }
  .stage { position: relative; top: 0; margin-top: 0; opacity: 1; min-height: 100svh; background: var(--paper); }
  .reveal-pin .w { color: var(--on-accent); }
  .system { height: auto; }
  .system-stick { position: relative; min-height: 100svh; }
  .hero { position: relative; }
  .hero-title .hw > span { transform: none; }
  .rise { opacity: 1; transform: none; }
  .when { height: auto; }
  .when-stick { position: relative; height: auto; min-height: 100svh; }
  .when-list li, .when-list li.is-on { opacity: 1; transform: none; filter: none; }
  .hero-cta { opacity: 1; transform: none; }
  .wipe { display: none; }
}

/* ── Service pages (diensten/<group>/) ──
   black hero with jump links · white list with a sticky intro · yellow statement · project photo · the form */
.sp-page .theme-toggle { background: var(--ink); }
.sp-hero { min-height: 88svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--hh, 70px) + 8vh) 0 clamp(40px, 8vh, 90px); }
.sp-hero .cols { align-items: end; row-gap: clamp(24px, 4vh, 44px); }
.sp-kicker { grid-column: 1 / -1; margin: 0; }
.sp-kicker a { color: inherit; text-decoration: none; }
.sp-kicker a:hover { text-decoration: underline; }
.sp-title { grid-column: 1 / -1; margin: 0; font-weight: 300; font-size: clamp(72px, 14vw, 250px); line-height: .92; letter-spacing: -.045em; }
.sp-line { grid-column: 1 / 3; margin: 0; font-weight: 300; font-size: clamp(24px, 2.6vw, 44px); letter-spacing: -.025em; line-height: 1.15; max-width: 20ch; text-wrap: balance; }
.sp-chips { grid-column: 4; align-self: end; }
.sp-chips .label { margin: 0 0 12px; opacity: .6; }
.sp-chips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sp-chips a {
  display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none; font-size: clamp(16px, 1.25vw, 20px); letter-spacing: -.015em; transition: color .2s ease, padding .3s ease;
}
.sp-chips a span { font-size: 12px; letter-spacing: .06em; opacity: .55; }
.sp-chips a i { margin-left: auto; font-style: normal; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .3s ease; }
.sp-chips a:hover { color: var(--accent); padding-left: 6px; }
.sp-chips a:hover i { opacity: 1; transform: none; }
html[data-theme="green"] .sp-chips a:hover { color: var(--accent-text); }

/* the list: white, the intro sticks in the left frame, every service a big row */
.sp-list { padding: clamp(80px, 14vh, 160px) 0; }
.sp-list .cols { align-items: start; }
.sp-aside { grid-column: 1; position: sticky; top: calc(var(--hh, 70px) + 32px); }
.sp-intro { margin: 0; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.sp-rows { grid-column: 2 / -1; }
.sp-row {
  display: grid; grid-template-columns: 4.5em 1fr auto; gap: 0 28px; align-items: start;
  padding: clamp(28px, 5vh, 52px) 0; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--hh, 70px) + 16px);
}
.sp-row:last-child { border-bottom: 1px solid var(--line); }
.sp-num { color: color-mix(in srgb, var(--ink) 45%, transparent); padding-top: .9em; }
.sp-name { margin: 0 0 14px; font-weight: 300; font-size: clamp(34px, 4vw, 72px); letter-spacing: -.035em; line-height: 1.02; transition: color .5s ease; }
.sp-desc { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.sp-ask { align-self: end; }
/* the service you clicked through to */
.sp-row:target .sp-name, .sp-row:target .sp-num { color: var(--accent-text); }

/* the statement: yellow, big, lights up word by word */
.sp-statement { background: var(--accent); color: var(--on-accent); padding: clamp(100px, 22vh, 240px) var(--gutter); }
.sp-statement p { max-width: 24ch; margin: 0 auto; text-align: center; font-size: clamp(32px, 4.6vw, 84px); line-height: 1.08; text-wrap: balance; }
.sp-statement .w { opacity: .22; }
.sp-statement .w.on { opacity: 1; }

.sp-case { height: 64svh; }
.next-case .h-xl { font-size: clamp(30px, 3.6vw, 64px); letter-spacing: -.03em; }
.next-case .h-xl > span { display: inline-block; font-size: .5em; vertical-align: .35em; margin-left: .2em; transition: transform .3s ease; }
.next-case:hover .h-xl > span { transform: translate(4px, 3px); }
.sp-contact { border-top: 0; }
.sp-contact .kicker { margin: 0 0 3vh; }

.sp-next { padding: 7vh var(--gutter) 9vh; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-end; text-align: right; }   /* bottom right */
.sp-next .label { margin: 0 0 18px; }
.sp-next-link { color: inherit; text-decoration: none; font-weight: 300; font-size: clamp(28px, 3.2vw, 54px); letter-spacing: -.03em; line-height: 1; }
.sp-next-link:hover { color: var(--accent-text); }
@media (max-width: 960px) {
  .sp-line, .sp-chips, .sp-aside, .sp-rows { grid-column: 1 / -1; }
  .sp-aside { position: static; margin-bottom: 32px; }
  .sp-row { grid-template-columns: 1fr; gap: 12px; }
  .sp-num { padding-top: 0; }
  .sp-ask { justify-self: start; }
}


/* ══════════════════ Pages (over-ons, werk, werkwijze, contact, …) ══════════════════
   Same pieces as the home page: the 4-column grid with two lines, light titles whose words rise,
   black and red sections, outlined pills, the X statue on the red/green glow. */
.nav a[aria-current] { background-size: 100% 1.5px; }
.dd-list .dd-all { margin-top: 6px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--dd-fg) 10%, transparent); }
.top .nav .nav-dd-panel .dd-all a { font-size: 13px; letter-spacing: .02em; }
.top .nav .nav-dd-panel .dd-all a span { font-size: 13px; color: inherit; }

/* utilities */
.dark { background-color: var(--ink); color: var(--paper); --line: color-mix(in srgb, var(--paper) 12%, transparent); }
.dark .sub, .dark .small, .dark .muted { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.muted { color: var(--ink-2); }
.kicker { color: var(--accent-text); margin: 0 0 22px; }
.dark .kicker, .xsec .kicker, .accent .kicker { color: inherit; opacity: .75; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.h-xl { margin: 0; font-weight: 300; font-size: clamp(44px, 7.6vw, 150px); line-height: .95; letter-spacing: -.045em; text-wrap: balance; }
.h-l { margin: 0; font-weight: 300; font-size: clamp(32px, 4.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.h-m { margin: 0; font-weight: 300; font-size: clamp(26px, 3vw, 50px); line-height: 1.1; letter-spacing: -.03em; text-wrap: pretty; }
.lead { margin: 0; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; letter-spacing: -.015em; max-width: 38ch; }
/* a red line drawn through the words once their block has risen in */
.draw {
  text-decoration: none;
  background: linear-gradient(var(--accent-text), var(--accent-text)) 0 56% / 0 .07em no-repeat;
  transition: background-size 1s cubic-bezier(.7, 0, .2, 1) .45s;
}
.in .draw, .draw.in { background-size: 100% .07em; }

/* page hero: big title bottom-left, intro and buttons on the grid underneath */
.ph {
  min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hh) + 10vh) 0 clamp(40px, 7vh, 80px);
}
.ph .cols { align-items: end; row-gap: clamp(28px, 5vh, 56px); }
.ph-title { grid-column: 1 / -1; }
.ph-foot { grid-column: 2 / 4; }
.ph-side { grid-column: 1; align-self: end; }
.ph-side .label { margin: 0; }
.ph .lead + .btns { margin-top: 28px; }

/* section heads: label + title on the left frame, text in the middle */
.shead { align-items: start; margin-bottom: clamp(40px, 7vh, 80px); }
.shead > :first-child { grid-column: 1; }
.shead > :nth-child(2) { grid-column: 2 / 4; }

/* the X statue on the red (green) glow */
.xsec {
  position: relative; overflow: clip; isolation: isolate;   /* clip, not hidden: the werkwijze section pins inside */
  background: var(--accent); color: var(--black);   /* like the marks: black on the light red glow, white on the green */
  --line: rgba(14, 14, 14, .14);
}
.xsec::before, .xsec::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: center / cover no-repeat; transition: opacity var(--theme-t);
}
.xsec::before { background-image: url(assets/hero-yellow.jpg?v=2); }
.xsec::after { background-image: url(assets/hero-green.jpg?v=4); opacity: 0; }
html[data-theme="green"] .xsec::before { opacity: 0; }
html[data-theme="green"] .xsec::after { opacity: 1; }

.xsec-art { position: absolute; inset: 0; margin: 0; touch-action: pan-y; }
.xsec-copy { position: relative; z-index: 2; pointer-events: none; }
.xsec-copy a, .xsec-copy button { pointer-events: auto; }
.xsec .btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* Hector, the warrior (about page): copy left, the statue right, one screen and a bit */
.hector { min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--hh) + 8vh) 0 clamp(48px, 9vh, 110px); }
.hector .cols { width: 100%; }
.hector-copy { grid-column: 1 / 3; max-width: 480px; }
.hector-count b { font-weight: 400; }
.hector-copy p { margin: 0 0 1em; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; }
.hector-copy .h-l { margin-bottom: 28px; }
.hector-facts { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 10px 28px; width: fit-content; }
.hector-facts li { display: grid; gap: 4px; }
.hector-facts b { white-space: nowrap; font-weight: 300; font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -.04em; line-height: 1; }

/* faceless → character (werkwijze): pinned, the marks come together while you scroll */
.assemble { height: 320vh; position: relative; }
.assemble-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.assemble .xsec-copy { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: calc(var(--hh) + 6vh) clamp(40px, 7vh, 80px); }
.assemble .xsec-copy > div { width: min(100%, 50vw); }
.assemble-words { position: relative; display: block; height: 1em; }
.assemble-words span { position: absolute; left: 0; top: 0; transition: opacity .5s ease, transform .7s cubic-bezier(.2, .75, .1, 1), filter .5s ease; }
.assemble-words .a { opacity: calc(1 - var(--mix, 0) * 1.8); filter: blur(calc(var(--mix, 0) * 10px)); }
.assemble-words .b { opacity: calc(var(--mix, 0) * 2.4 - 1.3); transform: translateY(calc((1 - var(--mix, 0)) * .25em)); }
.assemble-bar { width: min(100%, 360px); height: 2px; background: color-mix(in srgb, currentColor 22%, transparent); position: relative; margin-top: 18px; }
.assemble-bar::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--mix, 0)); }

/* values / principles: four columns with a number and a line on top */
.vals { list-style: none; padding-block: 0; margin: 0; row-gap: 48px; }
.vals li { border-top: 1px solid var(--line, var(--rule)); padding-top: 22px; }
.vals .n { display: block; color: var(--accent-text); margin-bottom: 40px; }
.dark .vals .n { color: var(--accent); }
html[data-theme="green"] .dark .vals .n { color: var(--accent-text); }
.vals h3 { margin: 0 0 12px; font-weight: 400; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.1; letter-spacing: -.025em; }
.vals p { margin: 0; font-size: 15px; line-height: 1.55; }
.dark .vals p { color: color-mix(in srgb, var(--paper) 68%, transparent); }

/* before → after: the faceless line struck through, the line with character next to it */
.ba { list-style: none; padding-block: 0; margin: 0; }
.ba li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding-block: clamp(18px, 2.6vh, 30px); border-top: 1px solid var(--line); }
.ba li:last-child { border-bottom: 1px solid var(--line); }
.ba .from { grid-column: 1 / 3; font-size: clamp(20px, 2vw, 32px); letter-spacing: -.03em; line-height: 1.15; opacity: .5; }
.ba .to { grid-column: 3 / 5; font-size: clamp(20px, 2vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.ba .to::before { content: "→ "; color: var(--accent); }
.ba-head { margin-bottom: 14px; }
.ba-head > :first-child { grid-column: 1 / 3; }
.ba-head > :last-child { grid-column: 3 / 5; }

/* closing call: a red band with a big question and the buttons */
.cta-band { background: var(--accent); color: var(--on-accent); --line: color-mix(in srgb, var(--on-accent) 18%, transparent); padding: clamp(80px, 16vh, 180px) 0; }
.cta-band .cols { align-items: end; row-gap: 40px; }
.cta-band .h-xl { grid-column: 1 / 4; }
.cta-band .btns { grid-column: 4; justify-content: flex-end; flex-direction: column; align-items: flex-end; }

/* overview of the four service groups: one big row each */
.groups { list-style: none; margin: 0; padding: 0 var(--gutter); }
.groups li { border-top: 1px solid var(--line); }
.groups li:last-child { border-bottom: 1px solid var(--line); }
.groups a {
  display: grid; grid-template-columns: var(--cw4) 1fr minmax(0, 30ch) var(--cw4); gap: 0 32px; align-items: center;
  padding: clamp(28px, 5vh, 56px) 0; text-decoration: none; color: inherit; position: relative;
  --cw4: calc((100vw - 2 * var(--gutter)) / 4 - 24px);
}
.groups .n { padding-left: var(--pad); }
.groups .nm { font-weight: 300; font-size: clamp(42px, 6.4vw, 120px); line-height: .95; letter-spacing: -.045em; transition: color .35s ease, transform .5s cubic-bezier(.2, .75, .1, 1); }
.groups .ds { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.groups .ds b { display: block; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.groups .go { justify-self: end; width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 20px; transition: background-color .3s ease, color .3s ease, transform .4s cubic-bezier(.5, 1.7, .4, 1); }
.groups a:hover .nm { color: var(--accent-text); transform: translateX(14px); }
.groups a:hover .go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }

/* clichés we cut: one long struck-through sentence wall */
.wall { margin: 0; font-weight: 300; font-size: clamp(30px, 4.2vw, 76px); line-height: 1.15; letter-spacing: -.035em; }
.wall s { text-decoration: none; opacity: .38; background: linear-gradient(var(--accent), var(--accent)) 0 56% / 0 .06em no-repeat; transition: background-size .9s cubic-bezier(.7, 0, .2, 1), opacity .9s ease; transition-delay: calc(.2s + var(--i, 0) * .14s); }
.wall.in s { background-size: 100% .06em; opacity: .7; }
.wall em { color: var(--accent); }

/* project pages */
.case-hero { position: relative; height: 100svh; overflow: hidden; color: var(--white); background: var(--black) var(--img) center / cover no-repeat; }
.case-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 14, .45) 0%, rgba(14, 14, 14, 0) 40%, rgba(14, 14, 14, .65) 80%, rgba(14, 14, 14, .85) 100%); }
.case-hero .cols { position: relative; height: 100%; align-content: end; padding-bottom: clamp(40px, 8vh, 96px); --line: rgba(254, 254, 254, .22); }
.case-hero .h-xl { grid-column: 1 / -1; font-size: clamp(44px, 7vw, 132px); }
.case-hero .kicker { color: var(--white); opacity: .8; }
.facts { list-style: none; margin: 0; padding-block: clamp(28px, 5vh, 48px); row-gap: 24px; border-bottom: 1px solid var(--line); }
.facts li { display: grid; gap: 8px; align-content: start; }
.facts .label { color: var(--ink-2); }
.facts a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.facts a:hover { color: var(--accent-text); }
.strike { margin: 0; font-weight: 300; font-size: clamp(38px, 6vw, 112px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.case-img { margin: 0; }
.case-img div { aspect-ratio: 16 / 8; background: var(--black) var(--img) center / cover no-repeat; }
.next-case { position: relative; display: block; height: 80svh; color: var(--white); text-decoration: none; overflow: hidden; background: var(--black); }
.next-case::before { content: ""; position: absolute; inset: 0; background: var(--img) center / cover no-repeat; opacity: .55; transform: scale(1.04); transition: opacity .6s ease, transform 1.2s cubic-bezier(.2, .75, .1, 1); }
.next-case:hover::before { opacity: .75; transform: none; }
html.cursor-custom .next-case { cursor: none; }
.next-case .cols { position: relative; height: 100%; align-content: end; padding-bottom: clamp(40px, 8vh, 96px); --line: rgba(254, 254, 254, .22); }
.next-case .h-xl { grid-column: 1 / -1; }

/* contact page: the sentence form as a normal section */
section.contact.is-page { position: relative; height: auto; min-height: 100svh; padding-block: calc(var(--hh) + 10vh) clamp(48px, 9vh, 110px); }
.steps { list-style: none; margin: 0; padding-block: 0; row-gap: 40px; counter-reset: st; }
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.steps .n { display: block; margin-bottom: 36px; color: var(--accent); }
.steps h3 { margin: 0 0 10px; font-weight: 400; font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -.025em; line-height: 1.1; }
.steps p { margin: 0; font-size: 15px; line-height: 1.55; }
.dark .steps p { color: color-mix(in srgb, var(--paper) 68%, transparent); }
.faq { grid-column: 2 / 5; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(20px, 1.8vw, 30px); letter-spacing: -.03em; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2em; line-height: .9; transition: transform .35s cubic-bezier(.5, 1.7, .4, 1); color: var(--accent-text); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.info { row-gap: 32px; }
.info > div { display: grid; gap: 6px; align-content: start; }
.info .label { color: var(--ink-2); margin-bottom: 6px; }
.info a { text-decoration: none; font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -.02em; width: fit-content; padding-block: 8px; }
.info a:hover { color: var(--accent-text); }

/* legal pages: a narrow text column between the two lines */
.legal { padding: 0 0 clamp(80px, 14vh, 160px); }
.legal .txt { grid-column: 2 / 4; max-width: 68ch; }
.legal h2 { margin: 56px 0 14px; font-weight: 400; font-size: clamp(22px, 1.8vw, 30px); letter-spacing: -.025em; line-height: 1.15; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal a { color: var(--ink); }
.legal .toc { grid-column: 1; align-self: start; position: sticky; top: calc(var(--hh) + 32px); display: grid; gap: 8px; }
.legal .toc a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.legal .toc a:hover { color: var(--accent-text); }

/* a path of steps: title sticky on the left, big outlined numbers that fill when their step arrives */
.path .cols { align-items: start; }
.path-head { grid-column: 1 / 3; position: sticky; top: calc(var(--hh) + 40px); }
.path-head .h-l { margin-bottom: 32px; }
.path-list { grid-column: 3 / -1; list-style: none; margin: 0; padding: 0; position: relative; }
.path-list::before { content: ""; position: absolute; left: calc(.3em + var(--pad)); top: 1em; bottom: 1em; width: 1px; background: var(--line); font-size: clamp(64px, 7vw, 120px); }
.path-list li { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding-bottom: clamp(48px, 10vh, 110px); }
.path-list li:last-child { padding-bottom: 0; }
.path-n {
  position: relative; font-weight: 300; font-size: clamp(64px, 7vw, 120px); line-height: .85; letter-spacing: -.06em; width: .9em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--paper) 45%, transparent);
  background: var(--ink); transition: color .8s ease .3s, -webkit-text-stroke-color .8s ease .3s;
}
.path-list li.in .path-n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
html[data-theme="green"] .path-list li.in .path-n { color: var(--accent-text); -webkit-text-stroke-color: var(--accent-text); }
.path-list h3 { margin: .4em 0 10px; font-weight: 400; font-size: clamp(22px, 2vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.path-list p { margin: 0; font-size: 16px; line-height: 1.55; color: color-mix(in srgb, var(--paper) 68%, transparent); max-width: 40ch; }
@media (max-width: 960px) { .path-head, .path-list { grid-column: 1 / -1; } .path-head { position: static; margin-bottom: 48px; } }

/* 404 */
.lost { min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--hh) + 6vh) 0 clamp(48px, 9vh, 110px); }

@media (max-width: 960px) {
  .ph-foot, .ph-side, .shead > :first-child, .shead > :nth-child(2), .hector-copy, .faq, .legal .txt, .legal .toc { grid-column: 1 / -1; }
  .legal .toc { position: static; }
  .cta-band .h-xl { grid-column: 1 / -1; }
  .cta-band .btns { grid-column: 1 / -1; align-items: flex-start; }
  .ba li { display: block; }
  .ba .from, .ba .to { display: block; }
  .ba .to { margin-top: 8px; }
  .ba-head { display: none; }
  .groups a { grid-template-columns: 1fr auto; gap: 14px 20px; }
  .groups .n { grid-column: 1 / -1; padding-left: 0; }
  .groups .ds { grid-column: 1 / -1; order: 3; }
  .hector { min-height: 0; padding-top: calc(var(--hh) + 40px); flex-direction: column; align-items: stretch; }
  .hector .xsec-art { position: relative; height: 70svh; order: 2; }
  .assemble .xsec-copy { padding-top: calc(var(--hh) + 24px); }
  .assemble .xsec-copy > div { width: 100%; }
}
@media (max-width: 560px) {
  .hector-facts { grid-template-columns: repeat(2, auto); }
}
@media (prefers-reduced-motion: reduce) {
  .assemble { height: auto; }
  .assemble-stick { position: relative; }
  .rise-words .hw > span { transform: none; }
  .draw, .wall s { background-size: 100% .07em; }
}


/* ── Menu on phones: a button in the middle of the bar opens a full-screen menu ── */
.menu-btn { display: none; }
.mnav { display: none; }
@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex; align-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid currentColor; background: none; color: inherit;
    font: inherit; font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; z-index: 2;
  }
  .menu-l-close { display: none; }
  html.menu-open .menu-l-open { display: none; }
  html.menu-open .menu-l-close { display: inline; }
  .mnav {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 1; padding: calc(var(--hh) + 28px) var(--gutter) 32px;
    background: var(--ink); color: var(--paper); overflow-y: auto;
    clip-path: circle(0 at 50% 34px); visibility: hidden;
    transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .6s;
  }
  html.menu-open .mnav { clip-path: circle(150% at 50% 34px); visibility: visible; transition-delay: 0s; }
  html.menu-open { overflow: hidden; }
  /* while open the bar sits on the menu: same colours, no blur */
  html.menu-open .top { background: var(--ink); color: var(--paper); border-bottom-color: color-mix(in srgb, var(--paper) 14%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.menu-open .top .top-cta { visibility: hidden; }
  .mnav-in { display: grid; gap: 4px; }
  .mnav-main {
    color: inherit; text-decoration: none; font-weight: 300; font-size: clamp(38px, 10vw, 64px); letter-spacing: -.035em; line-height: 1.1;
    opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .75, .1, 1);
  }
  .mnav-sub { list-style: none; margin: 6px 0 18px; padding: 0 0 0 2px; display: grid; gap: 2px; }
  .mnav-sub a { display: flex; gap: 14px; align-items: baseline; color: inherit; text-decoration: none; font-size: 20px; letter-spacing: -.015em; padding: 6px 0; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .75, .1, 1); }
  .mnav-sub a span { font-size: 11px; letter-spacing: .06em; color: var(--accent); }
  html[data-theme="green"] .mnav-sub a span { color: var(--accent-text); }
  html.menu-open .mnav-main, html.menu-open .mnav-sub a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--d, 0) * .05s); }
  .mnav-in > :nth-child(2) a { --d: 1; }
  .mnav-cta { align-self: flex-start; margin-top: 32px; opacity: 0; transition: opacity .5s ease .45s; }
  html.menu-open .mnav-cta { opacity: 1; }
  /* the bar on phones: logo left, menu in the middle; the call to action moves into the menu */
  .top-cta { display: none; }
  .top .logo { position: relative; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) { .mnav { transition: none; } }

/* ══════════════════ Pages, round 2: rhythm, feedback, motion ══════════════════ */

/* reading progress under the menu */
.progress {
  position: fixed; left: 0; right: 0; top: var(--hh); z-index: 19; height: 2px; pointer-events: none;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
}
html[data-theme="green"] .progress { background: var(--accent-text); }
html.menu-open .progress { opacity: 0; }

/* buttons: a clear answer to the pointer. The send button fills with the accent */
.btn { transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
.btn:active { transform: scale(.97); }
section.contact .btn-solid, .btn-solid { transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
section.contact .btn-solid:hover, section.contact .btn-solid:focus-visible, .btn-solid:hover {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent); filter: none;
}
.btn-solid { min-width: 132px; height: 48px; justify-content: center; font-size: 13px; }

/* parallax images */
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.case-img [data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.case-img { overflow: hidden; border-radius: 6px; margin-inline: var(--gutter); padding: 0; clip-path: inset(6% 4% round 6px); transition: clip-path 1.4s cubic-bezier(.2, .75, .1, 1), opacity .8s ease; }
.case-img.in { clip-path: inset(0 0 round 6px); }

/* principles (over ons): rows that open; the number turns accent, the text slides in */
.rules { list-style: none; margin: 0; padding: 0 var(--gutter); }
.rules li {
  /* on the site grid: number in the first frame, rule across the middle two, text in the last */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: baseline;
  padding: clamp(24px, 4.5vh, 44px) 0; border-top: 1px solid var(--line); cursor: default; outline: none;
}
.rules li > * { padding-inline: var(--pad); }
.rules h3 { grid-column: 2 / 4; }
.rules p { grid-column: 4; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules .n { color: color-mix(in srgb, var(--ink) 45%, transparent); transition: color .3s ease; }
.rules h3 { margin: 0; font-weight: 300; font-size: clamp(30px, 3.6vw, 64px); letter-spacing: -.035em; line-height: 1.02; transition: transform .5s cubic-bezier(.2, .75, .1, 1); }
.rules p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); opacity: .0; transform: translateX(-10px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .75, .1, 1); }
.rules li:hover .n, .rules li:focus-visible .n, .rules li.is-open .n { color: var(--accent-text); }
.rules li:hover h3, .rules li:focus-visible h3, .rules li.is-open h3 { transform: translateX(12px); }
.rules li:hover p, .rules li:focus-visible p, .rules li.is-open p { opacity: 1; transform: none; }
.rules li:focus-visible { box-shadow: inset 3px 0 0 var(--accent-text); }
@media (hover: none) { .rules p { opacity: 1; transform: none; } }

/* a running band of words */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(18px, 3vh, 30px) 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { flex: none; padding-right: .6em; font-weight: 300; font-size: clamp(34px, 5vw, 88px); letter-spacing: -.035em; line-height: 1.05; white-space: nowrap; }
.marquee span i { font-style: normal; color: var(--accent); margin-right: .6em; }
html[data-theme="green"] .marquee span i { color: var(--accent-text); }
.dark .marquee span i, .marquee.on-light span i { color: var(--accent-text); }
.dark .marquee span i { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* studio facts next to the band */
.facts2 { list-style: none; margin: clamp(40px, 7vh, 72px) 0 0; padding-block: 0; row-gap: 36px; }
.facts2 li { display: grid; gap: 8px; align-content: start; }
.facts2 b { font-weight: 400; font-size: clamp(19px, 1.5vw, 24px); letter-spacing: -.02em; }
.facts2 p { margin: 0; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--paper) 66%, transparent); }

/* bento (werkwijze, what you get): cards of different sizes and colours */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 var(--gutter); }
.bento > a, .bento > div {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: clamp(220px, 30vh, 320px); padding: clamp(22px, 2.4vw, 36px); border-radius: 18px; text-decoration: none; color: inherit;
  background: color-mix(in srgb, var(--ink) 5%, var(--paper)); overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .75, .1, 1), background-color .3s ease;
}
.bento .b-wide { grid-column: span 2; }
.bento .b-ink { background: var(--ink); color: var(--paper); }
.bento .b-accent { background: var(--accent); color: var(--on-accent); }
.bento .label { opacity: .65; }
.bento h3 { margin: 0 0 10px; font-weight: 300; font-size: clamp(26px, 2.6vw, 44px); letter-spacing: -.035em; line-height: 1.05; }
.bento p { margin: 0; font-size: 15px; line-height: 1.55; opacity: .78; max-width: 40ch; }
.bento .go { position: absolute; right: clamp(22px, 2.4vw, 36px); top: clamp(22px, 2.4vw, 36px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .4s cubic-bezier(.5, 1.7, .4, 1); }
.bento > a:hover { transform: translateY(-6px); }
.bento > a:hover .go { transform: rotate(-45deg); }

/* sideways cards (project pages): pinned on desktop, swipe on touch screens */
.hscroll { position: relative; --pin: 0; }
.hscroll-stick { overflow: hidden; }
.hscroll-head { padding: 0 var(--gutter); margin-bottom: clamp(28px, 5vh, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; }
@media (max-width: 560px) { .hscroll-count { flex-basis: 100%; } }
.hscroll-head .h-l { max-width: 14ch; }
.hscroll-count { font-variant-numeric: tabular-nums; }
.hscroll-track { display: flex; gap: 16px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hcard {
  flex: none; width: min(78vw, 520px); min-height: clamp(300px, 46vh, 460px); padding: clamp(24px, 2.6vw, 40px); border-radius: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: color-mix(in srgb, var(--paper) 7%, var(--ink)); color: var(--paper);
}
.hcard:nth-child(2n) { background: var(--accent); color: var(--on-accent); }
.hcard .n { font-weight: 300; font-size: clamp(64px, 7vw, 120px); line-height: .85; letter-spacing: -.06em; }
.hcard h3 { margin: 0 0 12px; font-weight: 400; font-size: clamp(24px, 2.2vw, 36px); letter-spacing: -.03em; line-height: 1.08; }
.hcard p { margin: 0; font-size: 16px; line-height: 1.55; opacity: .8; }
.hscroll-bar { margin: clamp(24px, 4vh, 40px) var(--gutter) 0; height: 2px; background: var(--line); position: relative; }
.hscroll-bar::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--hp, 0)); }
@media (min-width: 961px) and (hover: hover) {
  .hscroll { --pin: 1; }
  .hscroll-stick { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--hh); }
}
@media (max-width: 960px), (hover: none) {
  /* only the row of cards swipes; the title stays put and the first card keeps the page margin */
  .hscroll-stick { overflow: visible; }
  .hscroll-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: none; }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .hcard { scroll-snap-align: start; width: min(82vw, 440px); }
  .hscroll-bar { display: none; }
}

/* timeline (contact, what happens next): a line that fills between the steps */
.timeline { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; position: relative; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 9px; height: 2px; background: var(--line); }
.timeline::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
html[data-theme="green"] .timeline::after { background: var(--accent-text); }
.timeline li { position: relative; padding-top: 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; z-index: 1;
  background: var(--ink); border: 2px solid color-mix(in srgb, var(--paper) 40%, transparent); transition: background-color .4s ease, border-color .4s ease;
}
.timeline li.in::before { background: var(--accent); border-color: var(--accent); }
.timeline .label { display: block; margin-bottom: 14px; opacity: .6; }
.timeline h3 { margin: 0 0 10px; font-weight: 400; font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -.025em; line-height: 1.1; }
.timeline p { margin: 0; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--paper) 68%, transparent); }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: calc(var(--gutter) + 40px); }
  .timeline::before, .timeline::after { left: calc(var(--gutter) + 9px); right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; }
  .timeline::after { transform: scaleY(var(--p)); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -40px; }
}

/* project index (werk): rows with sector and services; a photo follows the pointer */
.index-list { list-style: none; margin: 0; padding: 0 var(--gutter); }
.index-list li { border-top: 1px solid var(--line); }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px 28px; align-items: center;
  padding: clamp(22px, 3.6vh, 36px) var(--pad); color: inherit; text-decoration: none; transition: background-color .3s ease, padding .4s cubic-bezier(.2, .75, .1, 1);
}
.index-list .nm { font-weight: 300; font-size: clamp(28px, 3vw, 52px); letter-spacing: -.035em; line-height: 1.05; }
.index-list .meta { font-size: 14px; color: var(--ink-2); }
.index-list .go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .4s cubic-bezier(.5, 1.7, .4, 1), background-color .3s ease, color .3s ease; }
.index-list a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); padding-inline: calc(var(--pad) + 14px); }
.index-list a:hover .go { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 960px) {
  .index-list a { grid-template-columns: 1fr auto; }
  .index-list .meta { grid-column: 1; }
  .index-list .go { grid-column: 2; grid-row: 1 / span 3; }
}

/* legal: the table of contents follows the reader; on phones it scrolls sideways */
.legal .toc a { padding: 4px 0 4px 12px; border-left: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.legal .toc a.is-current { color: var(--ink); border-left-color: var(--accent-text); }
.legal .txt h2 { scroll-margin-top: calc(var(--hh) + 24px); }
@media (max-width: 960px) {
  .legal .toc {
    position: sticky; top: var(--hh); z-index: 5; display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 32px;
    padding: 10px var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); scrollbar-width: none;
  }
  .legal .toc::-webkit-scrollbar { display: none; }
  .legal .toc a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .legal .toc a.is-current { border-color: var(--accent-text); }
}

/* FAQ: the answer animates (pages.js); keep it from spilling while it does */
.faq details p { overflow: hidden; }
.faq summary { min-height: 48px; align-items: center; }
.faq summary:hover { color: var(--accent-text); }

/* phones: readable labels and buttons, thumb-sized targets */
@media (max-width: 960px) {
  .btn { min-height: 44px; font-size: 12px; }
  .foot-cols a, .foot-cols span { padding-block: 6px; }
  .top .logo { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-tel { padding-block: 12px; }
  .sp-next-link, .view-link { display: inline-block; padding-block: 8px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .b-wide { grid-column: 1 / -1; }
  .rules li { grid-template-columns: 1fr; gap: 10px; }
  .rules h3, .rules p { grid-column: 1; }
  .rules li > * { padding-inline: 0; }
  .rules h3 { font-size: clamp(30px, 8vw, 44px); }
  .rules li:hover h3, .rules li.is-open h3 { transform: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .h-xl { font-size: clamp(40px, 11.5vw, 64px); }
  .ph { min-height: 84svh; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  [data-parallax] { transform: none !important; }
}
.hscroll.dark { padding-block: clamp(72px, 12vh, 140px); }
.hscroll .hscroll-stick { padding-block: 0; }
@media (min-width: 961px) and (hover: hover) { .hscroll.dark { padding-block: 0; } }
.hcard-cta { text-decoration: none; background: var(--paper) !important; color: var(--ink) !important; transition: transform .4s cubic-bezier(.2, .75, .1, 1); }
.hcard-cta:hover { transform: translateY(-6px); }
.hcard-cta .n { color: var(--accent-text); }
@media (max-width: 960px) and (min-width: 561px) { .sp-hero, .ph { min-height: 70svh; } }


/* ══ Round 3 ══ */
/* lines fade where they meet a section that has none (yellow bands, photos, the X glow) */
:is(:not(.g), .cta-band, .xsec) + .g { --lt: 140px; }
/* at the bottom the lines run right up to the edge of the section (no fade-out) */
.cta-band.g, .xsec.g { background-image: none; }

/* horizontal rules run edge to edge */
.groups li, .rules li, .index-list li, .ba li { position: relative; border-top: 0 !important; border-bottom: 0 !important; }
.groups li::before, .rules li::before, .index-list li::before, .ba li::before,
.groups li:last-child::after, .rules li:last-child::after, .index-list li:last-child::after, .ba li:last-child::after {
  content: ""; position: absolute; left: 50%; width: 100vw; height: 1px; background: var(--line); transform: translateX(-50%); pointer-events: none;
}
.groups li::before, .rules li::before, .index-list li::before, .ba li::before { top: 0; }
.groups li:last-child::after, .rules li:last-child::after, .index-list li:last-child::after, .ba li:last-child::after { bottom: 0; }
.rules li:focus-visible { box-shadow: none; }
.rules li:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--accent-text); text-underline-offset: 6px; }
/* rows that start at a grid line: their rule runs from that line to the right edge */
.sp-row, .faq details { position: relative; border-top: 0 !important; border-bottom: 0 !important; }
.sp-row::before, .faq details::before, .sp-row:last-child::after, .faq details:last-child::after {
  content: ""; position: absolute; left: calc(-1 * var(--pad)); right: calc(-1 * (var(--gutter) + var(--pad))); height: 1px; background: var(--line); pointer-events: none;
}
.sp-row::before, .faq details::before { top: 0; }
.sp-row:last-child::after, .faq details:last-child::after { bottom: 0; }
@media (max-width: 960px) {
  .sp-row::before, .faq details::before, .sp-row:last-child::after, .faq details:last-child::after { left: calc(-1 * (var(--gutter) + var(--pad))); }
}

/* yellow bands: the question always fits on two lines */
.cta-band .h-xl { font-size: clamp(30px, 4.6vw, 88px); line-height: 1.02; text-wrap: balance; max-width: 22ch; }
.cta-band .h-xl br { display: none; }
@media (max-width: 960px) { .cta-band .h-xl { font-size: clamp(26px, 6.4vw, 56px); max-width: none; } }
@media (max-width: 560px) { .cta-band .h-xl { font-size: 7.4vw; } }

/* the path (diensten): steps arrive one at a time while you scroll */
.path-list li { opacity: .12; transform: translateY(28px); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .75, .1, 1); }
.path-list li.in { opacity: 1; transform: none; }
.path-list::before { background: linear-gradient(to bottom, transparent, var(--line) 12%, var(--line) 88%, transparent); }

/* werkwijze: faceless → character on a full yellow (green) field */
.assemble { background: var(--accent); }
.assemble::before, .assemble::after { display: none; }
.assemble-kick { position: relative; display: block; height: 1.4em; margin: 0 0 22px; }
.assemble-kick span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .4s ease; }
.assemble-kick .a { opacity: calc(1 - var(--mix, 0) * 2.2); }
.assemble-kick .b { opacity: calc(var(--mix, 0) * 2.4 - 1.3); }

/* werk: one statement instead of a wall of crossed-out words */
.cut-line { margin: 0; font-weight: 300; font-size: clamp(30px, 4.2vw, 76px); line-height: 1.06; letter-spacing: -.035em; }
@media (max-width: 960px) { .cut-line br { display: none; } .cut-line { text-wrap: balance; } }
.cut-line em { color: var(--accent); }
html[data-theme="green"] .cut-line em { color: var(--accent-text); }


/* ══ Round 4 ══ */
/* menu: no line through the words; they lift a little on hover; the current page is underlined */
.nav a, .nav-dd-btn { background: none !important; display: inline-block; transition: transform .25s cubic-bezier(.2, .75, .1, 1), opacity .25s ease; }
.nav-dd-btn { display: inline-flex; }
.nav a:hover, .nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { transform: translateY(-2px); }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* service pages: smaller statement, no numbering, rules from edge to edge, a darker photo */
.sp-statement p { font-size: clamp(26px, 3.2vw, 58px); max-width: 26ch; line-height: 1.12; }
.sp-row { grid-template-columns: 1fr auto; }
.sp-row::before, .faq details::before, .sp-row:last-child::after, .faq details:last-child::after {
  left: calc(-1 * (var(--gutter) + (100vw - 2 * var(--gutter)) / 4 + var(--pad)));
}
@media (max-width: 960px) {
  .sp-row { grid-template-columns: 1fr; }
  .sp-row::before, .faq details::before, .sp-row:last-child::after, .faq details:last-child::after { left: calc(-1 * (var(--gutter) + var(--pad))); }
}
.sp-chips a { gap: 0; }
.sp-case::before { opacity: .32; }
.sp-case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 14, .25), rgba(14, 14, 14, .7)); pointer-events: none; }
.sp-case .cols { z-index: 1; }
.sp-case:hover::before { opacity: .45; }

/* ══ Round 5 ══ */
/* footer: exactly one screen — tagline and links clear of the menu, the wordmark sized by the height and sitting low */
.foot { height: 100svh; min-height: 620px; padding-top: calc(var(--hh) + clamp(28px, 5vh, 56px)); }
.foot-logo {
  margin: auto auto 0;   /* pushed down, towards the bottom row */
  width: min(calc(100% - 2 * var(--gutter) - 2 * var(--pad)), calc((100svh - var(--hh) - 330px) * 2000 / 667));
}
.foot-row { margin-top: clamp(14px, 2.4vh, 26px); }
@media (max-width: 960px) { .foot { height: auto; min-height: 100svh; } .foot-logo { width: calc(100% - 2 * var(--gutter) - 2 * var(--pad)); } }

/* sections on the pages: no empty half screens — they take the height their content needs */
body.page .sec, body.sp-page .sec { min-height: 0; padding-block: clamp(80px, 13vh, 150px); }
body.page .sec.not, body.page .ph { min-height: 0; }
body.page .ph { min-height: 86svh; }

/* FAQ: big rows that react, one open at a time */
.faq { counter-reset: q; }
.faq details { transition: background-color .35s ease; }
.faq summary {
  position: relative; padding: clamp(22px, 3.4vh, 34px) 0; padding-right: 64px;
  font-size: clamp(22px, 2.2vw, 38px); transition: color .25s ease, transform .45s cubic-bezier(.2, .75, .1, 1);
}
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  border: 1px solid currentColor; transform: none !important;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: background-size .35s ease, background-color .3s ease, border-color .3s ease, rotate .45s cubic-bezier(.5, 1.7, .4, 1);
}
.faq summary:hover { transform: translateX(10px); color: var(--accent-text); }
.faq details[open] summary { color: var(--accent-text); }
.faq details[open] summary::after { rotate: 135deg; background-color: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dark .faq summary:hover, .dark .faq details[open] summary { color: var(--accent); }
.faq details p { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.6; max-width: 56ch; margin-bottom: clamp(24px, 4vh, 40px); }
.faq-side .lead { margin: 18px 0 28px; max-width: 26ch; }


/* ══ Green theme: flat green surfaces (no grain, no gradient) ══ */


/* ══ Round 6 ══ */
/* menu: "Diensten" keeps its little chevron (it had collapsed into a vertical stroke) */
.nav .nav-dd-btn { display: inline-flex; align-items: center; gap: 7px; }
.nav .nav-dd-caret { display: inline-block; }

/* FAQ: the rules start at the questions, not in the left column; no focus box on click */
.faq details::before, .faq details:last-child::after { left: calc(-1 * var(--pad)); }
@media (max-width: 960px) { .faq details::before, .faq details:last-child::after { left: calc(-1 * (var(--gutter) + var(--pad))); } }
.faq summary:focus { outline: none; }
.faq summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 4px; }

/* the footer always stands apart from the section above: a deeper shade of the accent and a rule */
.foot { background-color: color-mix(in srgb, var(--accent) 86%, var(--black)); border-top: 1px solid color-mix(in srgb, var(--on-accent) 22%, transparent); }

/* green theme: only the hero shows the green glow photo; the other glow sections are flat #0A9000 */
html[data-theme="green"] .xsec::after { opacity: 0; }

/* closing calls with buttons: the page colour, not the accent — white with the yellow, black with the green —
   set apart from the section above by a rule */
.cta-band.cta-end { background: var(--paper); color: var(--ink); --line: color-mix(in srgb, var(--ink) 12%, transparent); border-top: 1px solid var(--line); }
html[data-theme="green"] .cta-band.cta-end { background: var(--paper); }
/* the list of groups ends on its last rule: no gap before the next section */
.groups-sec .groups li:last-child::after { display: none; }


/* ══ Round 7 ══ */
/* no empty bands between sections: lists with rules run right up to the section edges */
.sp-list { padding: 0; }
.sp-rows .sp-row:first-child::before, .sp-rows .sp-row:last-child::after { display: none; }
.sp-aside { padding-top: clamp(28px, 5vh, 52px); }
:is(.sec, section):has(> :is(.rules, .index-list, .ba):last-child),
.sec:has(.faq) { padding-bottom: 0 !important; }
.rules li:last-child::after, .index-list li:last-child::after, .ba li:last-child::after, .faq details:last-child::after { display: none; }
.sec:has(.faq) .faq-side { padding-bottom: clamp(40px, 7vh, 80px); }

/* the line in the service hero: inside the first frame, always two lines */
.sp-line { grid-column: 1; font-size: clamp(18px, 1.85vw, 34px); max-width: none; padding-right: var(--pad); text-wrap: balance; }
@media (max-width: 960px) { .sp-line { grid-column: 1 / -1; font-size: clamp(20px, 5.6vw, 34px); padding-right: 0; } }

/* the statement on the accent: Hector in X'en on the right, the line on the left */
.sp-statement { position: relative; overflow: clip; isolation: isolate; min-height: 78svh; display: flex; align-items: center; }
.sp-statement .xsec-art { position: absolute; inset: 0; margin: 0; z-index: 0; }
.sp-statement p { position: relative; z-index: 1; margin: 0; text-align: left; max-width: 15ch; pointer-events: none; }
@media (max-width: 960px) { .sp-statement { min-height: 90svh; align-items: flex-start; } .sp-statement p { max-width: 16ch; } }
.sp-line { white-space: nowrap; font-size: clamp(15px, 1.7vw, 34px); }
@media (max-width: 960px) { .sp-line { font-size: min(6vw, 30px); } }


/* ══ Round 8 ══ */
/* home, last project card: the link to all projects sits low on the right, clear of the theme dot */
.case-more { right: calc(var(--gutter) + 8px); bottom: clamp(40px, 6vh, 64px); }
/* service pages: the statement is just the accent colour with the line centred */
.sp-statement { display: flex; align-items: center; justify-content: center; min-height: 0; }
.sp-statement p { text-align: center; max-width: 24ch; margin: 0 auto; }
@media (max-width: 960px) { .sp-statement { min-height: 0; } .sp-statement p { max-width: 18ch; } }
/* the form: the phone field stays next to "of"; a bigger send button */
.s-keep { white-space: nowrap; }
section.contact .btn-solid, .btn-solid { min-width: 190px; height: 60px; padding: 0 34px; font-size: 15px; letter-spacing: .02em; }
@media (max-width: 960px) { .s-keep { white-space: normal; } section.contact .btn-solid, .btn-solid { width: 100%; max-width: 320px; } }

/* ══ Project pages (werk/<project>/): head, reel, idea ══ */
.pj-head { padding: calc(var(--hh) + clamp(28px, 5vh, 56px)) 0 clamp(32px, 6vh, 64px); }
.pj-head .cols { align-items: end; row-gap: clamp(24px, 4vh, 40px); }
.pj-back { grid-column: 1 / -1; justify-self: start; }
.pj-back .btn-ico { margin-right: 4px; }
.pj-back:hover .btn-ico { transform: translateX(-4px); }
.pj-title { grid-column: 1 / 4; }
.pj-title .h-xl { font-size: clamp(48px, 8vw, 150px); line-height: .92; }
.pj-title .lead { margin-top: 18px; color: var(--ink-2); }
.pj-did { grid-column: 4; align-self: end; }
.pj-did .kicker { margin-bottom: 14px; }
.pj-did ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.pj-did a { color: inherit; text-decoration: none; font-size: clamp(20px, 1.7vw, 30px); letter-spacing: -.025em; line-height: 1.15; display: inline-block; transition: color .2s ease, transform .3s cubic-bezier(.2, .75, .1, 1); }
.pj-did a:hover { color: var(--accent-text); transform: translateX(6px); }

/* the reel: a wide rounded frame with the mockup video (or, until it's there, the photo moving through frames) */
.pj-reel-wrap { padding: 0 var(--gutter) clamp(64px, 10vh, 120px); }
.reel { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--black); }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.reel.has-video .reel-video { opacity: 1; }
.reel-slides i {
  position: absolute; inset: 0; background: var(--img) center / cover no-repeat; opacity: 0;
  animation: reel 12s infinite; will-change: opacity, transform;
}
.reel-slides i:nth-child(1) { background-position: 50% 50%; animation-delay: 0s; }
.reel-slides i:nth-child(2) { background-size: 180%; background-position: 15% 30%; animation-delay: 3s; }
.reel-slides i:nth-child(3) { background-size: 220%; background-position: 85% 60%; animation-delay: 6s; }
.reel-slides i:nth-child(4) { background-size: 150%; background-position: 50% 90%; animation-delay: 9s; }
@keyframes reel {
  0% { opacity: 0; transform: scale(1.06); }
  4% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.reel.has-video .reel-slides { display: none; }

/* the idea: label and the line we cut on the left, the idea across the rest */
.pj-idea .cols { align-items: start; }
.pj-idea-side { grid-column: 1; }
.pj-cut { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 24ch; }
.pj-cut em { color: var(--ink); }
.pj-idea-text { grid-column: 2 / -1; margin: 0; max-width: 32ch; }

@media (max-width: 960px) {
  .pj-title, .pj-did, .pj-idea-side, .pj-idea-text { grid-column: 1 / -1; }
  .pj-did ul { gap: 0; }
  .pj-did a { padding: 8px 0; }
  .reel { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) { .reel-slides i { animation: none; } .reel-slides i:first-child { opacity: 1; } }

/* werkwijze: faceless → character, only the words (page colour: white with yellow, black with green) */
.morph { padding-block: clamp(88px, 18vh, 200px); }
.morph .cols { align-items: end; row-gap: 32px; }
.morph .assemble-kick { margin-bottom: 18px; }
.morph .h-xl { margin: 0; font-size: clamp(48px, 7vw, 128px); line-height: 1.05; }
.morph .assemble-words { height: 1.1em; }
.morph .assemble-words .b { color: inherit; }
.morph-side .lead { margin: 0; max-width: 34ch; }
@media (max-width: 960px) { .morph .span-2 { grid-column: 1 / -1; } .morph .h-xl { font-size: clamp(48px, 10vw, 96px); } }

/* contact: the e-mail and phone fields always stay side by side */
.s-pair { display: inline-flex; align-items: baseline; gap: .25em; max-width: 100%; white-space: nowrap; vertical-align: baseline; }
.s-pair .s-keep { display: inline-flex; align-items: baseline; gap: .25em; flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.s-pair .s-mail { flex: 1.5 1 9.5em; min-width: 0; }
.s-pair .s-tel { flex: 1 1 6.5em; min-width: 0; }
@media (max-width: 960px) {
  .s-pair { display: flex; width: 100%; margin-block: 4px; }
  .s-pair .s-mail, .s-pair .s-tel { width: auto; margin-block: 0; }
  .s-pair .s-mail { flex: 1.15 1 0; }
  .s-pair .s-keep { flex: 1 1 0; }
  .s-pair .s-tel { flex: 1 1 0; width: 0; }
}

/* ══ Round 9: text never runs over a thin grid line (desktop; the lines only show above 960px) ══
   The lines sit between columns 1|2 and 3|4. Text stays in column 1, in columns 2–3 or in column 4;
   sections whose display type or artwork spans the lines by design (page heroes, the clock) have no lines. */
@media (min-width: 961px) {
  .ph.g, .sp-hero.g, .pj-head.g, .time.g, .g.nolines { background-image: none; }
  :is(.ph, .sp-hero, .pj-head, .time, .nolines) + .g { --lt: 140px; }

  /* FAQ answers end before the right-hand line */
  .faq details p { max-width: min(56ch, calc(66.667% - var(--pad))); }
  /* service rows: name and text in columns 2–3, the button in column 4 */
  .sp-row { grid-template-columns: minmax(0, calc(66.667% - var(--pad))) 1fr; column-gap: var(--pad); }
  .sp-row .sp-ask { justify-self: end; }
  /* the path (diensten): number in column 3, text in column 4 */
  .path-list li { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .path-list li > div { padding-left: calc(var(--pad) * 2); }
  /* the project on a service page: in the middle columns */
  .next-case .h-xl, .next-case .kicker { grid-column: 2 / 4 !important; }
  /* project index: name | sector | services | arrow, one column each */
  .index-list a { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-inline: 0; }
  .index-list a > * { padding-inline: var(--pad); }
  .index-list .nm { font-size: clamp(26px, 2.4vw, 44px); }
  .index-list .go { justify-self: end; padding-inline: 0; margin-right: var(--pad); }
  .index-list a:hover { padding-inline: 0; }
  .index-list .nm { transition: transform .4s cubic-bezier(.2, .75, .1, 1); }
  .index-list a:hover .nm { transform: translateX(10px); }
  /* statements that ran into column 4 now end at the right-hand line */
  .pj-idea-text, .cut-line { grid-column: 2 / 4 !important; }
  .cut-line { font-size: clamp(30px, 3.1vw, 56px); }
  .dark .reveal.col-2.span-3 { grid-column: 2 / 4; }
  /* werkwijze: faceless → character in the middle columns */
  .morph .span-2 { grid-column: 2 / 4; }
  .morph .h-xl { font-size: clamp(48px, 6.4vw, 116px); }
}
.next-case .kicker { grid-column: 1 / -1; }

/* project reel as a cut sequence of real mockups (Nagels & Cuypers): four 3.5s scenes, each wipes in
   over the last and drifts slowly, like an edited film. A mashup.mp4 replaces it once it's there. */
.reel-slides.scenes i {
  background: var(--img, none) center / cover no-repeat; opacity: 1; clip-path: inset(0 0 0 100%);
  animation: scene-cut 14s infinite both, scene-move 14s infinite both; will-change: clip-path, transform;
}
.reel-slides.scenes .sc-1 { animation-delay: 0s; transform-origin: 62% 38%; --z0: 1; --z1: 1.14; }
.reel-slides.scenes .sc-2 { animation-delay: 3.5s; --z0: 1.06; --z1: 1; }
.reel-slides.scenes .sc-3 { animation-delay: 7s; transform-origin: 50% 55%; --z0: 1.18; --z1: 1.02; }
.reel-slides.scenes .sc-4 { animation-delay: 10.5s; background-size: 150%; background-position: 50% 78%; transform-origin: 50% 70%; --z0: 1; --z1: 1.12; }
.reel-slides.scenes .split { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--black); }
.reel-slides.scenes .split b { background: var(--img) center / cover no-repeat; }
.reel-slides.scenes .split b:last-child { background-position: 58% 50%; }
@keyframes scene-cut {
  0% { clip-path: inset(0 0 0 100%); z-index: 3; }
  5% { clip-path: inset(0 0 0 0); z-index: 3; }
  5.01% { z-index: 2; }
  30% { clip-path: inset(0 0 0 0); z-index: 2; }
  30.01%, 100% { clip-path: inset(0 0 0 100%); z-index: 1; }
}
@keyframes scene-move {
  0% { transform: scale(var(--z0, 1)); }
  30% { transform: scale(var(--z1, 1.08)); }
  100% { transform: scale(var(--z1, 1.08)); }
}
@media (max-width: 960px) { .reel-slides.scenes .split { grid-template-columns: 1fr; } .reel-slides.scenes .split b:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .reel-slides.scenes i { animation: none; clip-path: none; } .reel-slides.scenes i:not(:first-child) { display: none; } }
/* the set lines (two on "Wanneer", three on the photos) may wrap when a translation runs longer, so they never cross a line */
html:not([lang="nl"]) .when-list p span, html:not([lang="nl"]) .case-text span { white-space: normal; text-wrap: balance; }
/* footer bottom row on the column grid: the VAT number ends just before the centre line instead of straddling it */
@media (min-width: 961px) {
  .foot-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: var(--gutter); }
  .foot-row > * { padding-inline: var(--pad); }
  .foot-row .foot-vat { grid-column: 2; justify-self: end; text-align: right; }
  .foot-row .lang { grid-column: 4; }
}

/* project pages: one steady rhythm between the blocks instead of stacked section paddings */
.pj-head { --pj-gap: clamp(64px, 10vh, 120px); }
.pj-head ~ * { --pj-gap: clamp(64px, 10vh, 120px); }
.pj-head { padding-bottom: clamp(28px, 4vh, 44px); }
.pj-head ~ .pj-reel-wrap { padding-bottom: 0; }
.pj-head ~ section.pj-idea.sec { padding-block: var(--pj-gap); min-height: 0; }
.pj-head ~ .cta-band.cta-end { padding-block: var(--pj-gap); }
.pj-head ~ section.contact { padding-block: var(--pj-gap); min-height: 0; }
@media (max-width: 960px) {
  .pj-head ~ * { --pj-gap: clamp(48px, 9vw, 72px); }
  .pj-head { padding-top: calc(var(--hh) + 24px); }
  .pj-head .cols { row-gap: 22px; }
  .reel { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .reel { aspect-ratio: 4 / 5; } }

/* werkwijze: more air between the before → after rows */
.ba li { padding-block: clamp(30px, 4.6vh, 52px); }
/* a closing CTA band followed by the form: the same steady gap as on the project pages */
.cta-band.cta-end:has(+ section.contact) { padding-block: clamp(64px, 10vh, 120px); }
.cta-band.cta-end + section.contact { padding-block: clamp(64px, 10vh, 120px); min-height: 0; }
@media (max-width: 960px) {
  .cta-band.cta-end:has(+ section.contact), .cta-band.cta-end + section.contact { padding-block: clamp(48px, 9vw, 72px); }
}

/* contact sentence: "mailen en bellen op [e-mail] of [telefoon]." always stays together on one line */
.s-hello, .s-text { font-size: clamp(26px, 3.1vw, 56px); }
.s-pair .s-op { flex: none; white-space: nowrap; }
.s-pair .s-mail { flex-basis: 8em; }
.s-pair .s-tel { flex-basis: 5.5em; }
@media (min-width: 961px) { .s-pair .s-mail { width: 8em; } .s-pair .s-tel { width: 5.5em; } }
@media (max-width: 960px) {
  .s-pair { flex-wrap: wrap; row-gap: 4px; }
  .s-pair .s-op { flex-basis: 100%; }
  .s-pair .s-mail { flex: 1.15 1 0; }
  .s-pair .s-tel { flex: 1 1 0; }
}
.s-pair .s-keep { column-gap: 0; } .s-pair .s-keep .s-tel { margin-left: .25em; margin-right: .04em; }
@media (max-width: 960px) { .s-pair .s-op { white-space: normal; } }
/* contact sentence on desktop: it only breaks between phrases ("Mijn naam is […]." · "Ik werk bij […]" · "& heb hulp nodig met […]." · "Je kan me" · "mailen en bellen op […] of […]."), never inside one */
@media (min-width: 961px) { .s-g { white-space: nowrap; } }
/* contact sentence on desktop: three set lines that run the full content width; the fields stretch to fill each line */
.s-pt { font-style: normal; }
@media (min-width: 961px) {
  .s-hello, .s-text { font-size: clamp(26px, 3.3vw, 60px); }
  .s-line { display: flex; align-items: baseline; white-space: nowrap; }
  .s-line .s-g { display: contents; }
  .s-line .s-g > .s-field, .s-line .s-g > .s-select { flex: 1 1 6em; min-width: 0; width: auto; margin-inline: .25em; }
  .s-line .s-g > .s-select select { width: 100%; }
  .s-line .s-g > .s-pt { margin-left: -.21em; margin-right: .25em; }
  .s-line > .s-pair { flex: 1 1 auto; display: flex; }
  .s-pair .s-mail { width: auto; flex: 1.4 1 0; }
  .s-pair .s-keep { flex: 1 1 0; }
  .s-pair .s-tel { width: auto; flex: 1 1 0; min-width: 0; }
}
@media (min-width: 961px) { .s-line .s-g:last-child > .s-field:last-child { margin-right: 0; } }

/* contact: the service dropdown in the sentence's own type, exactly as wide as its longest option */
.s-select select, .s-select.s-wide select {
  font-size: 1em; letter-spacing: -.01em; height: 1.12em; width: auto;
  padding: 0 1.05em 0 .3em; vertical-align: -.16em; border-radius: 12px;
}
.s-select select option { font-size: 16px; letter-spacing: 0; }
@media (min-width: 961px) {
  .s-line .s-g > .s-select { flex: none; }
  .s-line .s-g > .s-select select { width: auto; }
}

/* project pages: "Wat we deden" lines up with the right edge of the reel */
.pj-did ul { margin-bottom: 0; }
@media (min-width: 961px) {
  .pj-did { justify-self: end; text-align: right; padding-right: 0; }
  .pj-did ul { justify-items: end; }
  .pj-did a:hover { transform: translateX(-6px); }
}
/* project index: the hover highlight runs edge to edge, like the rules between the rows */
.index-list a { --hl: color-mix(in srgb, var(--ink) 4%, transparent); clip-path: inset(0 -100vmax); transition: background-color .3s ease, box-shadow .3s ease, padding .4s cubic-bezier(.2, .75, .1, 1); }
.index-list a:hover { background: var(--hl); box-shadow: 0 0 0 100vmax var(--hl); }

/* contact: the service field. The field itself (.s-select) carries the look and shows the choice in the sentence's
   type (.s-face, filled by script.js); the real select lies invisibly on top at a normal size, so the native list
   that opens stays normal-sized too. */
.s-select {
  display: inline-grid; align-items: center; height: 1.12em; padding: 0 1.05em 0 .3em; vertical-align: -.16em;
  border-radius: 12px; background: color-mix(in srgb, var(--ink) 7%, transparent); transition: background-color .2s ease;
  cursor: pointer; white-space: nowrap;
}
.s-select:hover { background: color-mix(in srgb, var(--ink) 11%, transparent); }
.s-select:focus-within { background: color-mix(in srgb, var(--ink) 13%, transparent); outline: 2px solid var(--accent-text); outline-offset: 2px; }
.s-select:has(select:user-invalid) { outline: 2px solid var(--accent-text); }
.s-face { display: grid; line-height: 1; }
.s-face > span { grid-area: 1 / 1; visibility: hidden; letter-spacing: -.01em; }
.s-face > span.on { visibility: visible; }
.s-select select, .s-select.s-wide select {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer;
  font-size: 16px; letter-spacing: 0; border-radius: inherit; background: none; outline: none;
}
.s-select select option { font-size: 16px; }
@media (max-width: 960px) {
  .s-select { display: grid; width: 100%; max-width: 100%; margin-block: 4px; }
  .s-select select, .s-select.s-wide select { width: 100%; margin: 0; }
}
/* "op [e-mail] of [telefoon]." — on phones the little "op" stays in front of the fields */
@media (max-width: 960px) { .s-pair .s-op { flex-basis: auto; } }
@media (min-width: 961px) {
  .s-hello, .s-text { font-size: clamp(26px, 3.1vw, 58px); }
  /* the service field gives way when a long service is chosen; the name then ends in an ellipsis */
  .s-line .s-g > .s-select { flex: 0 1 auto; min-width: 2.5em; }
}
.s-face { min-width: 0; overflow: hidden; }
.s-face > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a long service (chosen on a service page) is shown in full; only then does "Je kan me mailen en bellen" move down */
@media (min-width: 961px) {
  .s-line { flex-wrap: wrap; row-gap: 0; }
  .s-line .s-g > .s-select { flex: none; min-width: 0; }
}
/* yellow theme: the footer is the brand yellow itself (#FECC02); the sections above it are white, so it still stands apart */
html:not([data-theme="green"]) .foot { background-color: var(--accent); }

/* photos and video frames: square corners, everywhere */
.case-img, .reel, .reel-video, img, video { border-radius: 0; }
.case-img { clip-path: inset(6% 4%); }
.case-img.in { clip-path: inset(0 0); }
/* a section with only the left grid line: the text may then run on into column 4 (over ons, the manifesto) */
@media (min-width: 961px) {
  .g.line-left { background-image: var(--lg); background-position: calc(var(--gutter) + var(--cw)) 0; }
  .line-left .reveal.col-2.span-3 { grid-column: 2 / -1; max-width: 40ch; }
}
/* a closing CTA directly followed by the form: one short gap between them, not two section paddings */
main .cta-band.cta-end:has(+ section.contact) { padding-bottom: clamp(20px, 3vh, 36px); }
main .cta-band.cta-end + section.contact { padding-top: clamp(32px, 5vh, 56px); }

/* contact: the FAQ follows the section above without a screen of air, and has no rule above the first question */
.faq-sec.sec { min-height: 0; justify-content: flex-start; padding-top: clamp(56px, 9vh, 100px); }
.faq details:first-child::before { display: none; }
.faq-side .lead { max-width: none; font-size: clamp(16px, 1.45vw, 22px); }
/* layout.js measures line breaks on an invisible copy without animation offsets */
.ss-copy { position: absolute !important; visibility: hidden !important; pointer-events: none !important; left: 0; top: 0; box-sizing: border-box; margin: 0 !important; }
.ss-copy, .ss-copy * { transform: none !important; transition: none !important; animation: none !important; translate: none !important; }

/* ══ Service pages, round 10 ══ */
/* the statement carries the way to the project (the photo card below it is gone) */
.sp-statement-in { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4.4vh, 48px); width: 100%; }
.sp-work:hover { background: var(--on-accent); border-color: var(--on-accent); color: var(--accent); }
html[data-theme="green"] .sp-work:hover { background: var(--white); border-color: var(--white); color: var(--accent); }
/* the rules between the services start at the vertical line, not at the page edge, so the intro on the left
   runs down freely; the list ends on the last description (no rule, no padding), where the intro stops too */
@media (min-width: 961px) {
  .sp-row::before, .sp-row:last-child::after { left: calc(-1 * var(--pad)); }
  .sp-row:last-child { padding-bottom: 0; }
  .sp-row:last-child::after { display: none; }
  .sp-list .cols { align-items: stretch; }
  .sp-aside { align-self: start; }
}
/* diensten overview: the title on two lines, a size smaller */
.ph-title-2 { font-size: clamp(40px, 6vw, 112px); }
@media (min-width: 961px) { .sp-aside .sp-intro { margin-bottom: 0; } }
@media (min-width: 961px) { .one-line { white-space: nowrap; } }
/* service pages: the statement sits over a field of loose X marks (no figure); the list above keeps clear air */
.sp-statement .xsec-art { position: absolute; inset: 0; margin: 0; z-index: 0; }
.sp-statement .xsec-art canvas { display: block; width: 100%; height: 100%; }
.sp-statement-in { position: relative; z-index: 1; pointer-events: none; }
.sp-statement-in .sp-work { pointer-events: auto; background: var(--accent); }
.sp-list { padding-bottom: clamp(72px, 12vh, 140px); }
@media (min-width: 961px) { .sp-list { padding-bottom: clamp(100px, 14vh, 160px); } }
/* arriving with a section in the address (e.g. /#potentieel): the intro never shows */
html.deep-link .intro { display: none; }

/* over ons, the principles: every row the same height (as "Schrappen is ontwerpen"); the explanation appears in
   column 4 without making its row taller */
@media (min-width: 961px) {
  .rules li { position: relative; align-items: center; }
  .rules li p {
    position: absolute; left: 0; right: 0; top: 50%;   /* inside its own grid cell (column 4) */
    transform: translate(-10px, -50%);
  }
  .rules li:hover p, .rules li:focus-visible p, .rules li.is-open p { transform: translate(0, -50%); }
  .rules .n { align-self: center; }
}
@media (min-width: 961px) {
  .rules li { min-height: clamp(150px, 19vh, 190px); padding-block: 0; }
  .rules h3 { font-size: clamp(28px, 2.9vw, 58px); white-space: nowrap; }
}

/* N&C reel with three scenes: 3 × 3.5s */
.reel-slides.scenes.n3 i { animation-name: scene-cut3, scene-move3; animation-duration: 10.5s, 10.5s; }
@keyframes scene-cut3 {
  0% { clip-path: inset(0 0 0 100%); z-index: 3; }
  6.67% { clip-path: inset(0 0 0 0); z-index: 3; }
  6.68% { z-index: 2; }
  40% { clip-path: inset(0 0 0 0); z-index: 2; }
  40.01%, 100% { clip-path: inset(0 0 0 100%); z-index: 1; }
}
@keyframes scene-move3 {
  0% { transform: scale(var(--z0, 1)); }
  40%, 100% { transform: scale(var(--z1, 1.08)); }
}

/* project pages: the brand name starts exactly on the left edge of the reel */
.pj-title { padding-left: 0; }
.pj-title .h-xl { margin-left: -.071em; }   /* the side bearing of the N and K: the ink starts on the reel edge */

/* inverted closing (project pages): the CTA and the form in the opposite colours — black with the yellow,
   white with the green. The page colours swap inside, so fields, buttons and labels follow along. */
.invert {
  --paper: var(--black); --ink: var(--white); --accent-text: var(--accent);
  --ink-2: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  background-color: var(--paper) !important; color: var(--ink) !important;
}
html[data-theme="green"] .invert { --paper: var(--white); --ink: var(--black); --accent-text: var(--accent); }
.cta-band.cta-end.invert { border-top-color: transparent; }
.cta-band.cta-end.invert + section.contact.invert { border-top: 0; }
.cta-band.cta-end.invert { position: relative; z-index: 1; box-shadow: 0 1px 0 0 var(--paper); }   /* no hairline of the page colour in the seam with the form */
/* project pages, the idea: only the left grid line, so the text runs on into column 4 */
@media (min-width: 961px) { .line-left .pj-idea-text { grid-column: 2 / -1 !important; max-width: 40ch; } }
/* a project card without its own page: no link, no "view project" cursor */
.case-static, html.cursor-custom .case-static { cursor: auto; }
.case-static .case-in { pointer-events: auto; }
/* text on green is always white: the X sections (over ons “Wie is Hector?”, the 404) too */
html[data-theme="green"] .xsec { color: var(--white); --line: rgba(254, 254, 254, .2); }

/* page heroes (diensten, werk, werkwijze, over ons): the intro on two balanced lines across columns 2–4,
   the buttons under it on the right edge */
@media (min-width: 961px) {
  .ph-foot { grid-column: 2 / -1; }
  .ph-foot .lead { max-width: none; font-size: clamp(16px, 1.42vw, 24px); text-wrap: balance; }
  .ph .lead + .btns { justify-content: flex-end; }
}
/* potential test, a brand from our own work: no score, only the message and a link to the project */
.scan-out.is-project .score { display: none; }
.scan-out.is-project .verdict { font-size: clamp(22px, 2.2vw, 36px); line-height: 1.2; max-width: 30ch; }
.scan-out.is-project .bars { border: 0; }
.bars .bars-project { border: 0; padding: 0; margin-top: clamp(18px, 3vh, 28px); }

/* the side bar CTA next to the potential test: always in the accent colour (yellow, or green in the green theme);
   on hover it deepens a little and the arrow turns */
.side-cta { background: var(--accent); color: var(--on-accent); }
.side-cta .side-cta-ico { background: var(--on-accent); color: var(--accent); }
.side-cta:hover { background: color-mix(in srgb, var(--accent) 86%, var(--black)); color: var(--on-accent); }
.side-cta:focus-visible { outline-color: var(--on-accent); }
/* potential test, compact: scores only, then one invitation to ask what we saw */
.bars .bars-tease { border: 0; padding: clamp(16px, 2.6vh, 24px) 0 0; }
.bars .bars-tease .view-link { font-size: clamp(15px, 1.1vw, 18px); }
/* potential test, a part we made ourselves: a full bar in the accent colour and "ours" instead of a number */
.bars li.is-ours .bar-track i { background: var(--accent-text); }
.bars li.is-ours .bar-ours { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; }
/* potential test, a brand we're still building: no score; "ours" bars full, "in progress" bars half and moving */
.scan-out.is-building .score { display: none; }
.scan-out.is-building .verdict { font-size: clamp(22px, 2.2vw, 36px); line-height: 1.2; max-width: 32ch; }
.bars li.is-wip .bar-track i {
  background: repeating-linear-gradient(-45deg, var(--accent-text) 0 6px, color-mix(in srgb, var(--accent-text) 45%, transparent) 6px 12px);
  background-size: 34px 34px; animation: bar-grow 1.1s cubic-bezier(.2, .75, .1, 1) both, wip-move 1.2s linear infinite;
}
.bars li.is-wip .bar-ours { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; }
@keyframes wip-move { to { background-position: 34px 0; } }
@media (prefers-reduced-motion: reduce) { .bars li.is-wip .bar-track i { animation: none; } }



/* the closing block on every page (the CTA title and buttons together with the form), like the home page form:
   on desktop it stands still at the bottom of the screen behind the section above it, which scrolls up and away to
   reveal it (--rv from layout.js). Both sit in .reveal-pair (build_pages.py), so the block can only stick there. */
.reveal-pair { position: relative; }
.reveal-pair > section:first-child { position: relative; z-index: 2; }
.reveal-pair > section:first-child:not([class*="dark"]):not(.sp-statement):not(.invert) { background-color: var(--paper); }   /* never see-through */
.contact-block > .cta-band.cta-end { border-top: 0; }
@media (min-width: 961px) {
  .contact-block { position: sticky; bottom: 0; z-index: 0; }
  .contact-block > .cta-band > .cols { opacity: calc(.15 + .85 * var(--rv, 1)); transform: translateY(calc((1 - var(--rv, 1)) * 70px)); }
}
/* the closing block in the opposite colour of the section above it (layout.js adds .flip when they would match) */
.contact-block > .flip:not(.invert) {
  --paper: var(--black); --ink: var(--white); --accent-text: var(--accent);
  --ink-2: color-mix(in srgb, var(--ink) 62%, var(--paper)); --line: color-mix(in srgb, var(--ink) 12%, transparent);
  background-color: var(--paper) !important; color: var(--ink) !important;
}
html[data-theme="green"] .contact-block > .flip:not(.invert) { --paper: var(--white); --ink: var(--black); }

/* ══ Werkwijze: faceless → character ══
   Pinned while you scroll. Left: the big word turns from "Gezichtloos." into "Karakter.". Right: loose details, each in
   its own letter, colour and angle, slide into one column in the brand's own type. --mix (0–1) from pages.js; every
   piece follows a little later than the one before (--pm). */
.fuse { position: relative; }
.fuse-stick { position: relative; }
.fuse-grid { align-items: center; row-gap: 40px; }
.fuse-head { grid-column: 1 / 3; }
.fuse-kick, .fuse-word, .fuse-lead { display: grid; }
.fuse-kick > span, .fuse-word > span, .fuse-lead > span, .fp > span { grid-area: 1 / 1; }
.fuse-kick { margin: 0 0 18px; }
.fuse-word { margin: 0; font-weight: 300; font-size: clamp(52px, 7vw, 128px); line-height: 1.02; letter-spacing: -.045em; }
.fuse-lead { margin: 28px 0 0; max-width: 30ch; }
.fuse .a { opacity: calc(1 - var(--mix, 0) * 1.8); }
.fuse .b { opacity: calc(var(--mix, 0) * 1.8 - .8); }
.fuse-word .b { transform: translateY(calc((1 - var(--mix, 0)) * .18em)); }

.fuse-pieces { grid-column: 3 / -1; list-style: none; margin: 0; padding: 0; position: relative; height: clamp(300px, 46vh, 440px); }
.fp {
  --pm: clamp(0, calc(var(--mix, 0) * 1.6 - var(--i) * .2), 1);
  position: absolute; display: grid; white-space: nowrap;
  left: calc(var(--lx) * (1 - var(--pm)));
  top: calc(var(--ly) * (1 - var(--pm)) + var(--ty) * var(--pm));
  transform: rotate(calc(var(--lr) * (1 - var(--pm))));
}
.fp .a { opacity: calc(1 - var(--pm) * 1.6); }
.fp .b { opacity: calc(var(--pm) * 1.6 - .6); font-weight: 300; font-size: clamp(22px, 2vw, 36px); letter-spacing: -.03em; line-height: 1.2; }
/* the loose details, each dressed differently but all in the site's own letter and motifs: outline type (like the path
   numbers), a label in a pill (like the buttons), a yellow band (the accent) and a strike-through (like the clichés) */
.fp-1 { --i: 0; --lx: 2%;  --ly: 2%;  --lr: -6deg; --ty: 4%; }
.fp-2 { --i: 1; --lx: 52%; --ly: 28%; --lr: 4deg;  --ty: 27%; }
.fp-3 { --i: 2; --lx: 6%;  --ly: 50%; --lr: -2deg; --ty: 50%; }
.fp-4 { --i: 3; --lx: 26%; --ly: 80%; --lr: 2deg;  --ty: 73%; }
.fp .a { align-self: start; justify-self: start; }
.fp-1 .a { font-weight: 500; font-size: clamp(32px, 3.2vw, 56px); letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.fp-2 .a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 999px; }
.fp-3 .a { font-size: clamp(17px, 1.4vw, 23px); letter-spacing: -.02em; background: var(--accent); color: var(--on-accent); padding: 4px 12px; }
.fp-4 .a { font-size: clamp(15px, 1.15vw, 19px); color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; }
/* together: one numbered list in one voice, a thin rule drawing itself under every line */
.fp .b { display: flex; align-items: baseline; gap: .9em; }
.fp .b i { font-style: normal; font-size: 12px; letter-spacing: .1em; color: var(--accent-text); transform: translateY(-.3em); }
.fp::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 1px; background: var(--line, color-mix(in srgb, currentColor 14%, transparent));
  transform-origin: left; transform: scaleX(clamp(0, calc(var(--pm) * 2 - 1), 1)); }

@media (min-width: 961px) {
  /* a normal section that fits its content; the pieces fall together while it scrolls through the screen */
  .fuse { padding-block: clamp(96px, 15vh, 160px); overflow: clip; }
  .fp { width: 100%; }
  .fuse-pieces { height: clamp(300px, 40vh, 400px); }
}
@media (max-width: 960px) {
  .fuse { padding-block: clamp(72px, 14vh, 120px); }
  .fuse-head, .fuse-pieces { grid-column: 1 / -1; }
  .fuse-pieces { height: auto; display: grid; gap: 14px; }
  .fp { position: relative; left: auto; top: auto; transform: rotate(calc(var(--lr) * (1 - var(--pm)) * .5)); white-space: normal; }
}

