/* Hallmark · macrostructure: Narrative Workflow (multi-page, built on the v2 Portfolio Grid) · genre: editorial · nav: N1b-light + mobile sheet · footer: Ft1 mast-headed
 * theme: custom · vibe: "Flemish workshop, petrol on warm white, plain-spoken" · paper: oklch(96.5% 0.006 85) · accent: oklch(42% 0.075 220)
 * display: Barlow 600 · body: Overpass · wordmark: Manrope · axes: light / grotesk-sans / chromatic-petrol
 * signature: scripted workflow demos (flows.js) with a human check that waits for a click · approved pattern: "uitleg en voorbeelden" (.services)
 * motion: cross-document crossfade, hero entrance, the flows, the travelling dot · all off under reduced motion (jury 2026-10-18: no section fade-ups)
 * avoid-ai-design-ignore-file: SD4d
 * (SD4d fires on the middle dots of this stamp comment only; there are none in the pages)
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--space-xl); -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --focus-ring: var(--color-focus);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-raised);
  padding: var(--space-xs) var(--space-md); background: var(--color-paper); color: var(--color-ink);
  border-radius: var(--radius-sm); transform: translateY(-200%);
}
.skip:focus { transform: none; z-index: calc(var(--z-raised) + 1); }

/* Page edges: content sits inside --page-max, grounds run full width */
.top, .hero, .page-head, .feature, .services, .process, .talk, .flow-section, .cta-band, .note-band, .founders, .why, .write, .foot {
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2));
}

/* ---------- Wordmark (the brand's own: Code 800, Flanders 450, a period in the accent colour) ---------- */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-wordmark); font-size: var(--text-md); line-height: 1;
  letter-spacing: -0.04em; text-decoration: none; white-space: nowrap;
}
.wm-code { font-weight: 800; }
.wm-flanders { font-weight: 450; }
.wm-dot { color: var(--color-terracotta); font-weight: 800; }
.wordmark--large { font-size: clamp(2.25rem, 7vw, 5.5rem); max-width: 100%; flex-wrap: wrap; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 var(--space-lg);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--text-base); font-weight: 650; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: default; opacity: 0.6; transform: none; }
.btn--small { min-height: 2.75rem; padding: 0 var(--space-md); }
.btn--paper { background: var(--color-paper); color: var(--color-ink); }
.btn--paper:hover { background: var(--color-sage); }
.btn--forest { background: var(--color-forest); color: var(--color-on-forest); }
.btn--forest:hover { background: var(--color-forest-hover); }
.btn--quiet { background: transparent; color: var(--color-forest); border-color: var(--color-forest); }
.btn--quiet:hover { background: var(--color-paper-2); }

.link {
  color: var(--color-forest); font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  transition: text-decoration-thickness var(--dur-micro) var(--ease-out);
}
.link:hover { text-decoration-thickness: 2px; }
.link--light { color: var(--color-on-forest); }

/* ---------- Header: on paper, as on the live site ---------- */
.top {
  position: relative; z-index: var(--z-raised);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm);
  padding-block: var(--space-md);
  background: var(--color-paper);
  view-transition-name: site-header;
}
.top .wordmark { margin-right: auto; }
.top-nav { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
.top-link { text-decoration: none; padding-block: var(--space-xs); white-space: nowrap; }
.top-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.top-link[aria-current="page"] { font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--color-forest); }
.top-actions { display: flex; align-items: center; gap: var(--space-xs); }
.top-actions .btn--small, .js .menu-toggle { padding: 0 var(--space-sm); }
/* On phones the Contact button moves into the menu sheet, so the language switch keeps its room */
.top-link--sheet { display: none; }
.js .top-link--sheet { display: block; }
@media (max-width: 27.99rem) { .js .top-actions .btn { display: none; } }
.top-actions .btn[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-sage); }
.menu-toggle { display: none; }

/* The language switch: both languages side by side, quiet so it never reads as a second button: grey lines,
   the current one in ink on a light fill, the other muted. It is always in sight, next to the menu button
   (not inside the sheet); on the narrowest phones only the other language shows. */
.lang { display: inline-flex; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); }
.lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.6rem; min-height: calc(2.75rem - 2px); padding: 0 var(--space-xs);
  color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-decoration: none;
  transition: color var(--dur-micro) var(--ease-out);
}
.lang-opt:first-child { border-radius: 3px 0 0 3px; }
.lang-opt:last-child { border-radius: 0 3px 3px 0; }
.lang-opt + .lang-opt { border-left: 1px solid var(--color-rule); }
.lang-opt[aria-current] { background: var(--color-paper-2); color: var(--color-ink); }
.lang-opt:not([aria-current]):hover { color: var(--color-forest); text-decoration: underline; text-underline-offset: 0.3em; }
@media (max-width: 22.4rem) {
  .lang-opt[aria-current] { display: none; }
  .lang-opt, .lang-opt + .lang-opt { border: 0; border-radius: 3px; }
}

/* With JavaScript, phones and tablets get a menu sheet instead of a wrapped row */
.js .menu-toggle {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-md);
  background: transparent; border: 1px solid var(--color-forest); border-radius: var(--radius-sm);
  color: var(--color-forest); font-weight: 650; cursor: pointer;
}
.js .menu-toggle:hover { background: var(--color-paper-2); }
.js .top-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 0;
  padding: var(--space-xs) max(var(--gutter), calc((100% - var(--page-max)) / 2)) var(--space-lg);
  background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule);
  box-shadow: var(--shadow-whisper);
}
.js .top.is-open .top-nav { display: flex; animation: sheet var(--dur-short) var(--ease-out); }
.js .top-nav .top-link { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-md); }
.js .top-nav .top-link:first-child { border-top: 0; }
@keyframes sheet { from { opacity: 0; transform: translateY(calc(-1 * var(--space-xs))); } }

/* ---------- Hero (home) and page heads (inner pages) ---------- */
.hero, .page-head {
  display: grid; gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-xl);
  background: var(--color-forest-deep); color: var(--color-on-forest);
  --focus-ring: var(--color-focus-light);
}
.page-head { padding-block: var(--space-2xl); }
/* The home hero is the photo card of the current site: inside the page width, rounded, the photo under a
   veil of the hero ground (forest-deep), the quote with the lede and the actions stacked on the left.
   The page heads share .hero-line and .hero-side, so everything of the card stays on .hero. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  gap: var(--space-lg); justify-items: start;
  margin: var(--space-xs) max(var(--gutter), calc((100% - var(--page-max)) / 2)) 0;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: 14px;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklch, var(--color-forest-deep) 80%, transparent); }
.hero .hero-lede { font-size: var(--text-base); line-height: 1.6; }
.hero-title, .page-title {
  font-family: var(--font-display); font-weight: 600;
  line-height: 0.98; letter-spacing: -0.018em;
  overflow-wrap: anywhere; min-width: 0; text-wrap: balance;
}
.hero-title { font-size: var(--text-display); }
.page-title { font-size: var(--text-2xl); line-height: 1.02; }
.hero-line { display: block; }
.hero-line--sage { color: var(--color-sage); }
.hero-side { display: grid; gap: var(--space-lg); max-width: 30rem; align-self: end; }
.hero-lede, .page-lede { font-size: var(--text-md); line-height: 1.4; }
.page-lede { color: var(--color-on-forest); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.hero-note, .page-note { font-size: var(--text-sm); color: var(--color-on-forest-2); }

/* ---------- Home: the featured flow, half on the forest ground ---------- */
.feature {
  position: relative; isolation: isolate;
  padding-bottom: var(--space-2xl);
  --band: clamp(9rem, 16vw, 14rem);
}
.feature::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0;
  height: var(--band); background: var(--color-forest-deep);
}
.feature-head {
  display: grid; gap: var(--space-2xs);
  padding-block: var(--space-xl) var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-forest-line);
  color: var(--color-on-forest);
  --focus-ring: var(--color-focus-light);
}
.feature-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.04; letter-spacing: -0.012em; }
.feature-note { font-size: var(--text-sm); color: var(--color-on-forest-2); }
.feature-note .link { display: inline-block; margin-top: var(--space-2xs); }
.feature .flow { box-shadow: var(--shadow-whisper); }

/* ---------- Workflow demo (built by flows.js; .flow-fallback is what shows without it) ---------- */
.flow {
  position: relative; min-width: 0;
  background: var(--color-paper); border-radius: var(--radius-md);
  padding: var(--space-md) 0;
  --node: 2.5rem;
}
.flow-fallback { display: grid; gap: var(--space-sm); counter-reset: s; }
.flow-fallback li { counter-increment: s; padding-left: var(--space-xl); position: relative; color: var(--color-muted); }
.flow-fallback li::before { content: counter(s); position: absolute; left: 0; font-weight: 650; color: var(--color-forest); }
.flow-fallback strong { display: block; color: var(--color-ink); }

/* Steps: icon nodes on a line, spread edge to edge at equal distances. The first and last items
   take half a share (plus half a node), so the first node sits on the left edge, the last on the
   right edge, and their labels align outward. */
.flow-steps { position: relative; display: flex; }
.flow-steps > li { flex: 2 1 0; min-width: 0; display: grid; justify-items: center; }
.flow-steps > li:first-of-type { flex: 1 1 calc(var(--node) / 2); justify-items: start; }
.flow-steps > li:last-of-type { flex: 1 1 calc(var(--node) / 2); justify-items: end; }
.flow-steps > li:first-of-type .flow-step { justify-items: start; text-align: left; }
.flow-steps > li:last-of-type .flow-step { justify-items: end; text-align: right; }
/* A last label wider than its slot runs inward, never out of the demo: the button is pushed against the
   right edge as a whole (a button lays out its content in a box as wide as that content, so aligning
   inside the button cannot move a label that is too wide). */
.flow-steps > li:last-of-type { display: flex; justify-content: flex-end; }
.flow-steps > li:last-of-type > .flow-step { flex: none; max-width: none; }
.flow-line, .flow-fill {
  position: absolute; top: calc(var(--node-top, 1.25rem) - 1px); height: 2px;
  left: var(--line-start, 0px); width: var(--line-width, 0px);
}
.flow-line { background: var(--color-rule); }
.flow-fill { background: var(--color-forest); transform-origin: left center; transform: scaleX(var(--progress, 0)); transition: transform var(--dur-process) var(--ease-in-out); }
.flow-step {
  position: relative; z-index: 1;
  display: grid; justify-items: center; align-content: start; gap: var(--space-xs);
  min-height: 2.75rem; max-width: calc(100% - var(--space-2xs)); padding: 0; background: none; border: 0; cursor: pointer; text-align: center;
  color: var(--color-muted);
}
.flow-node {
  display: grid; place-items: center;
  width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--color-paper); border: 2px solid var(--color-muted); color: var(--color-muted);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.flow-node .ico { width: 1.25rem; height: 1.25rem; }
.flow-step.is-done .flow-node { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); }
.flow-step.is-current .flow-node { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); box-shadow: 0 0 0 3px var(--color-paper), 0 0 0 5px var(--color-forest); transform: scale(1.06); }
.flow-step.is-current .flow-step-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--color-forest); }
.flow-step.is-open .flow-node { border-style: dashed; border-color: var(--color-forest); color: var(--color-forest); }
.flow-step.is-current, .flow-step.is-done { color: var(--color-ink); }
.flow-step:hover .flow-node { border-color: var(--color-forest); color: var(--color-forest); }
.flow-step.is-done:hover .flow-node, .flow-step.is-current:hover .flow-node { color: var(--color-on-forest); }
.flow-step-label { display: none; font-size: var(--text-sm); font-weight: 650; line-height: 1.25; white-space: nowrap; }  /* one line: a clickable label never wraps (jury r5) */
.flow-human { display: none; }

/* The bar on top: where you are (phones) on the left, the controls top right. They come before
   the steps and the screen, on screen and in the tab order. */
.flow-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-sm); margin-bottom: var(--space-sm); }
.flow-now { min-width: 0; font-weight: 650; }
.flow-now span { color: var(--color-muted); font-weight: 400; }
/* At a check: "Een mens beslist" on a second line. A demo with a check keeps that line's room at every
   step, so the bar does not grow at the check: a line of text and a line of text-sm at the line-height
   of body (3rem would be a hair too low). */
.flow-now .flow-now-human { display: block; font-size: var(--text-sm); font-weight: 650; color: var(--color-forest); }
.flow:has(.flow-human) .flow-now { min-height: calc(1.55 * (var(--text-base) + var(--text-sm))); }
.flow-ctrls { display: flex; flex: none; gap: var(--space-xs); margin-left: auto; }

/* The stage: a calm grey table. The screen sits at its top at every width, with the same margin
   on all four sides, so its top edge stays put from step to step. */
.flow-stage {
  position: relative; margin-top: var(--space-md);
  min-height: 16rem;
  display: grid; place-items: start center;
  padding: var(--space-sm);
  background: var(--color-paper-2); border-radius: var(--radius-sm);
  overflow: hidden;
}
.flow-caption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); min-height: 2.6em; }

/* Scene layout: one product screen per step */
.flow-stage { container-type: inline-size; }
.sc { width: 100%; min-width: 0; display: grid; justify-items: center; align-items: start; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
.ico--sm { width: 1rem; height: 1rem; }
.ico-circle { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-sage); color: var(--color-forest); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  padding: var(--space-3xs) var(--space-xs); border: 1px solid var(--color-forest); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-forest);
  font-size: var(--text-ui-s); font-weight: 650; white-space: nowrap;
}
.chip.is-miss { border-style: dashed; }
.chip--off { border-color: var(--color-rule); color: var(--color-muted); }
.chip--code { font-variant-numeric: tabular-nums; min-width: 4.5rem; justify-content: center; }

/* ---------- UI kit for the example products (neutral: no client names or colours) ---------- */
.ui {
  width: 100%; min-width: 0; text-align: left;
  background: var(--color-surface); color: var(--color-ink);
  border: 1px solid var(--color-rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-whisper);
  font-size: var(--text-ui); line-height: 1.4; overflow: hidden;
}
.ui p { margin: 0; }
.ui--app { display: grid; grid-template-columns: minmax(0, 1fr); }
.ui-side { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.ui-logo { display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-3xs) var(--space-xs); border: 1px dashed var(--color-muted); border-radius: var(--radius-sm); color: var(--color-muted); font-size: var(--text-ui-s); font-weight: 700; white-space: nowrap; }
.ui-logo-mark { display: block; width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--color-muted); }
.ui-nav { display: none; }
.ui-main { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--color-rule); }
.ui-title { font-weight: 700; font-size: var(--text-ui-l); }
.ui-top-r { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); }
.ui-search { display: none; }
.ui-avatar { display: grid; color: var(--color-muted); }
.ui-avatar .ico { width: 1.5rem; height: 1.5rem; }
.ui-body { position: relative; display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-sm); min-width: 0; }
.ui-list { display: grid; border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; min-width: 0; }
.ui-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); align-items: center; padding: var(--space-xs) var(--space-sm); border-top: 1px solid var(--color-rule); min-width: 0; overflow: hidden; }
/* A plain row (text, and a badge or value on the right): the badge stays beside the text while the
   longest word still fits, and drops under it only when needed, so words are never cut.
   :where() keeps this as light as .ui-row, so a product's own row rules still win. */
.ui-row:where(:not(.ui-row--stock, .ui-row--map, :has(> .ui-actions))) {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  column-gap: var(--space-xs); row-gap: var(--space-2xs);
}
/* The text starts at its narrowest (its longest word) and grows; alone on a line it may shrink, so a
   string longer than the whole row breaks instead of being cut off. */
.ui-row:where(:not(.ui-row--stock, .ui-row--map, :has(> .ui-actions))) > .ui-row-main { flex: 1 1 auto; width: min-content; min-width: 0; }
.ui-row:first-child { border-top: 0; }
.ui-row.is-sel { background: var(--color-paper); }
/* On a narrow screen a row with buttons puts them under the text, never squeezes the text */
.ui-row:has(> .ui-actions) { grid-template-columns: minmax(0, 1fr); }
.ui-row > .ui-actions { padding-left: 2.4rem; }
/* Room for a toast, so it never covers the last row */
/* With the order proposal next to it, the stock table keeps only names and status */
.ui-split--drawer .ui-row--stock { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: var(--space-xs); row-gap: var(--space-2xs); }
.ui-split--drawer .ui-row--stock > .ui-row-t { flex: 1 1 auto; width: min-content; min-width: 0; }
.ui-split--drawer .ui-row--stock .ui-meter, .ui-split--drawer .ui-row--stock .ui-num { display: none; }
.ui-row-main { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.ui-row-txt { min-width: 0; }
.ui-row-ico { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; color: var(--color-forest); }
/* Labels, values and file names break between words; break-word is only a last resort for a string
   longer than the whole row (unlike "anywhere" it does not shrink the row's minimum width, so the
   badge drops under the text before a word is cut). */
.ui-row-t { font-weight: 650; overflow-wrap: break-word; }
.ui-row-s { color: var(--color-muted); font-size: var(--text-ui-s); overflow-wrap: break-word; }
.ui-badge { display: inline-flex; align-items: center; padding: 0 var(--space-xs); min-height: 1.35rem; border: 1px solid var(--color-muted); border-radius: var(--radius-sm); font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); white-space: nowrap; background: var(--color-surface); }
.ui-badge--new { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); }
.ui-badge--ok { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-ink); }
.ui-badge--warn { border-style: dashed; border-color: var(--color-forest); color: var(--color-forest); }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2rem; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-ink); font: inherit; font-weight: 700; white-space: nowrap; }
.ui-btn--primary { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); }
.ui-btn--block { width: 100%; min-height: 2.5rem; }
.ui-btn--live { gap: var(--space-2xs); min-height: 2.75rem; padding: 0 var(--space-md); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.ui-btn--live:hover { background: var(--color-forest-hover); }
.ui-btn--live:active { transform: translateY(1px); }
.ui-btn--live:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.ui-done { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 2.75rem; font-weight: 700; color: var(--color-forest); }
.ui-done:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; border-radius: 2px; }
.ui-card { display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface); min-width: 0; }
.ui-pane-t { font-weight: 700; font-size: var(--text-ui-l); }
.ui-k { font-size: var(--text-ui-s); color: var(--color-muted); }
.ui-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.ui-field { display: grid; gap: var(--space-3xs); min-width: 0; }
.ui-v { display: flex; align-items: center; gap: var(--space-2xs); min-height: 2rem; padding: 0 var(--space-xs); background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); font-weight: 600; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.ui-field.is-miss .ui-v { border-style: dashed; border-color: var(--color-forest); color: var(--color-forest); background: var(--color-surface); font-weight: 650; }
.ui-field.is-fixed .ui-v { background: var(--color-sage); border-color: var(--color-forest); }
.ui-banner { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: 1px dashed var(--color-forest); border-radius: var(--radius-sm); color: var(--color-forest); font-weight: 650; font-size: var(--text-ui-s); }
.ui-banner.is-ok { border-style: solid; background: var(--color-sage); color: var(--color-ink); }
.ui-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.ui-chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.ui-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.ui-hide-narrow { display: none; }
.ui-mail-head { display: flex; align-items: center; gap: var(--space-xs); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--color-rule); }
.ui-mail-body { line-height: 1.6; }
.ui-mail-body mark { background: var(--color-sage); color: inherit; padding: 0 var(--space-3xs); border-radius: 2px; }
.ui-kanban { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.ui-kanban .ui-col:not(:first-child) { display: none; }
.ui-col { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-xs); border-radius: var(--radius-md); background: var(--color-paper); }
.ui-col-h { font-size: var(--text-ui-s); font-weight: 700; color: var(--color-muted); }
.ui-kcard { display: grid; gap: var(--space-3xs); justify-items: start; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface); }
.ui-kcard.is-new { border-color: var(--color-forest); }
.ui-kcard--sk { gap: var(--space-2xs); }
.sk { display: block; height: 0.4rem; border-radius: 2px; background: var(--color-rule); }
.ui-drop { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); padding: var(--space-sm); border: 2px dashed var(--color-muted); border-radius: var(--radius-md); color: var(--color-muted); font-size: var(--text-ui-s); text-align: center; }
.ui-drop--big { flex-direction: column; min-height: 14rem; }
.ui-row--file .ui-row-ico { width: 1.9rem; height: 1.9rem; }
.ui-row--file .ui-row-ico .ico { width: 1.6rem; height: 1.6rem; }
.ui-row--file > .ui-badge { grid-column: 2; }
.ui-preview { justify-items: center; background: var(--color-paper); }
.ui-tree { display: grid; gap: var(--space-xs); }
.ui-tree-node { display: grid; gap: var(--space-2xs); }
.ui-tree-h { display: flex; align-items: center; gap: var(--space-2xs); font-weight: 700; color: var(--color-forest); }
.ui-tree-node .ui-row { border: 1px solid var(--color-rule); border-radius: var(--radius-sm); margin-left: var(--space-md); }
.ui-row--stock { grid-template-columns: minmax(0, 1fr) auto; }
.ui-row--stock .ui-meter { grid-column: 1 / -1; }
.ui-meter { position: relative; display: block; height: 0.5rem; border-radius: 999px; background: var(--color-paper-2); }
.ui-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--color-forest); transform-origin: left center; }
.ui-meter i.is-low { background: var(--color-sage-2); outline: 1px dashed var(--color-forest); }
.ui-meter-min { position: absolute; top: -0.2rem; bottom: -0.2rem; width: 2px; background: var(--color-ink); }
.ui-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-row--stock .ui-num { display: none; }
.ui-drawer { background: var(--color-surface); }
.ui-track { display: grid; gap: var(--space-xs); margin-top: var(--space-xs); }
.ui-track li { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); }
.ui-track li.is-on { color: var(--color-ink); font-weight: 650; }
.ui-track-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--color-forest); }
.ui-track li.is-on .ui-track-dot { background: var(--color-forest); }
.ui-connectors { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.ui-connector { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-xs); }
.ui-connector .ui-row-s { grid-column: 2 / -1; }
.ui-switch { position: relative; display: block; width: 2.25rem; height: 1.25rem; border-radius: 999px; background: var(--color-forest); }
.ui-switch::after { content: ""; position: absolute; top: 0.15rem; left: 1.15rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--color-surface); }
.ui-row--map { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); justify-items: center; }
.ui-link { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--color-sage); color: var(--color-forest); }
.ui-link.is-miss { background: var(--color-paper-2); color: var(--color-muted); }
.ui-chart { padding-bottom: var(--space-xs); }
.ui-comment { display: flex; align-items: flex-start; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-md); background: var(--color-paper); border: 1px solid var(--color-rule); }
.ui-comment .ico { color: var(--color-forest); margin-top: 0.1rem; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.kpi { padding: var(--space-xs) var(--space-sm); background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); min-width: 0; }
.kpi-num { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: var(--text-ui-s); color: var(--color-muted); overflow-wrap: break-word; hyphens: auto; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-xs); height: 7rem; margin-top: var(--space-xs); }
.bar { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-3xs); justify-items: center; min-width: 0; }
.bar i { display: block; align-self: end; width: 100%; background: var(--color-forest); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.bar span { font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; }

/* phone app (a screen, not a drawn phone: no notch, no status bar) */
.ui--phone { max-width: 17rem; display: grid; grid-template-rows: auto 1fr auto; border-radius: 1.25rem; }
.ui-appbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-sm) var(--space-md) var(--space-xs); border-bottom: 1px solid var(--color-rule); color: var(--color-muted); }
.ui-appbar .ui-title { color: var(--color-ink); }
.ui-appfoot { padding: var(--space-xs) var(--space-sm) var(--space-sm); border-top: 1px solid var(--color-rule); }
.ui-job { background: var(--color-paper); }
.checks li { display: flex; align-items: center; gap: var(--space-xs); padding-block: var(--space-xs); border-bottom: 1px solid var(--color-rule); }
.checks li:last-child { border-bottom: 0; }
.box { position: relative; flex: none; width: 1.2rem; height: 1.2rem; border: 2px solid var(--color-forest); border-radius: 4px; }
.box-tick { position: absolute; inset: -2px; border-radius: 4px; background: var(--color-forest); display: grid; place-items: center; }
.box-tick::after { content: ""; width: 0.6rem; height: 0.32rem; border-left: 2px solid var(--color-on-forest); border-bottom: 2px solid var(--color-on-forest); transform: translateY(-1px) rotate(-45deg); }
.mini-tag { margin-left: auto; font-size: var(--text-ui-s); color: var(--color-muted); white-space: nowrap; }
.photos { display: flex; gap: var(--space-xs); }
.photo { display: grid; place-items: center; width: 3.25rem; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--color-sage); color: var(--color-forest); }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
.fact { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 650; }
.fact .ico { color: var(--color-forest); }
.sig { padding-top: var(--space-xs); border-top: 1px dashed var(--color-rule); }
.sig-label { font-size: var(--text-ui-s); color: var(--color-muted); }
.sig-svg { display: block; width: 100%; height: 2.75rem; }
.sig-svg path { fill: none; stroke: var(--color-forest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* website */
.ui--site { display: grid; grid-template-rows: auto 1fr; }
.site-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--color-rule); }
.site-head .ui-btn { margin-left: auto; }
.site-nav { display: none; gap: var(--space-md); color: var(--color-muted); font-weight: 600; }
.site-body { padding: var(--space-md) var(--space-sm); }
.site-h { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.15; }
.site-list { display: grid; gap: var(--space-2xs); margin-top: var(--space-sm); }
.site-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); padding: var(--space-xs); border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-surface); min-width: 0; }
.site-item .ui-btn { min-height: 1.75rem; }
.site-item-txt { min-width: 0; }
.site-thumb { width: 3rem; }
.site-item .cursor { right: 1.25rem; bottom: -0.5rem; }
.site-item.is-pick::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--color-forest); border-radius: 8px; animation: fade-in var(--dur-short) var(--ease-out) both; animation-delay: var(--t2, 0ms); }
.tile-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--color-sage); color: var(--color-forest); }
.tile-name { font-weight: 700; }
.tile-price { font-size: var(--text-ui-s); color: var(--color-muted); overflow-wrap: break-word; hyphens: auto; }
.cursor { position: absolute; right: 14%; bottom: 30%; color: var(--color-ink); }
.cursor .ico { width: 1.5rem; height: 1.5rem; }
.site-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.site-img { max-height: 5rem; aspect-ratio: auto; height: 5rem; }
.site-form { display: grid; gap: var(--space-2xs); align-content: start; justify-items: start; }
.site-form .ui-field { width: 100%; margin-top: var(--space-2xs); }
.site-form .ui-btn--primary { margin-top: var(--space-xs); }
.site-step { display: inline-flex; align-items: center; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); }
.site-step-b { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--color-muted); }
.site-step-v { min-width: 2rem; text-align: center; font-weight: 700; }
.site-radio { display: flex; gap: var(--space-xs); }
.site-radio span { padding: var(--space-3xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); }
.site-radio .is-on { border: 2px solid var(--color-forest); font-weight: 700; }
.site-done { display: grid; justify-items: center; gap: var(--space-xs); text-align: center; padding-block: var(--space-sm); }
.site-done .ui-list { width: 100%; max-width: 20rem; text-align: left; }
.done-mark { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--color-forest); color: var(--color-on-forest); }
.done-mark .ico { width: 1.75rem; height: 1.75rem; }

/* planning timeline */
.tl { display: grid; gap: var(--space-xs); }
.tl-hours { position: relative; height: 1.25rem; font-size: var(--text-ui-s); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.tl-hours span { position: absolute; transform: translateX(-50%); }
.tl-hours span:first-child { transform: none; }
.tl-hours span:last-child { transform: translateX(-100%); }
.tl-lane { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); }
.tl-name { font-size: var(--text-ui-s); font-weight: 700; }
.tl-track { position: relative; height: 2.25rem; background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); }
.tl-job { position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; padding: 0 var(--space-2xs); background: var(--color-forest); color: var(--color-on-forest); border-radius: 3px; font-size: var(--text-ui-s); font-weight: 700; white-space: nowrap; overflow: hidden; transform-origin: left center; }

/* scanned invoice: an abstract sheet */
.sheet { position: relative; width: 7rem; aspect-ratio: 3 / 4; border-radius: 3px; background: var(--color-surface); border: 1px solid var(--color-rule); box-shadow: var(--shadow-whisper); overflow: hidden; }
.sheet.has-boxes { width: 9rem; }
.sheet > span { position: absolute; display: block; border-radius: 2px; background: var(--color-rule); }
.sh-logo { top: 8%; left: 8%; width: 30%; height: 9%; background: var(--color-sage-2) !important; }
.sh-line--a { top: 9%; right: 8%; width: 32%; height: 4%; }
.sh-line--b { top: 18%; right: 8%; width: 32%; height: 4%; }
.sh-meta { top: 22%; left: 8%; width: 40%; height: 3%; opacity: 0.6; }
.sh-row { left: 8%; right: 8%; height: 3%; }
.sh-row:nth-of-type(5) { top: 40%; }
.sh-row:nth-of-type(6) { top: 48%; }
.sh-row:nth-of-type(7) { top: 56%; }
.sh-total { right: 8%; bottom: 8%; width: 45%; height: 17%; background: var(--color-paper-2) !important; border: 1px solid var(--color-rule); }
.sheet > .sh-box { background: transparent; border: 2px solid var(--color-forest); border-radius: 3px; }
.sheet > .sh-box.is-miss { border-style: dashed; }
.sh-box--lev { top: 5%; left: 5%; width: 36%; height: 15%; }
.sh-box--nr { top: 6%; right: 5%; width: 38%; height: 10%; }
.sh-box--dat { top: 15%; right: 5%; width: 38%; height: 10%; }
.sh-box--bed { bottom: 16%; right: 5%; width: 51%; height: 11%; }
.sh-box--btw { bottom: 5%; right: 5%; width: 51%; height: 11%; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--color-forest); opacity: 0; --sweep: 3.5rem; }
.sheet > .scanline { --sweep: 12rem; border-radius: 0; }
.drop-name { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 650; color: var(--color-ink); }
.drop-name .ico { color: var(--color-forest); }

/* Wider stage: the desktop layout of each product */
@container (min-width: 34rem) {
  .ui--app { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .ui-side { flex-direction: column; align-items: stretch; gap: var(--space-sm); padding: var(--space-sm) var(--space-xs); border-bottom: 0; border-right: 1px solid var(--color-rule); }
  .ui-logo { align-self: start; }
  .ui-nav { display: grid; gap: var(--space-3xs); }
  .ui-nav-item { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); color: var(--color-muted); font-weight: 600; }
  .ui-nav-item .ico { width: 1.1rem; height: 1.1rem; }
  .ui-nav-item.is-on { background: var(--color-sage); color: var(--color-ink); }
  .ui-count { margin-left: auto; min-width: 1.25rem; padding: 0 var(--space-2xs); border-radius: 999px; background: var(--color-forest); color: var(--color-on-forest); font-size: var(--text-ui-s); text-align: center; }
  .ui-search { display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-3xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); min-width: 9rem; font-size: var(--text-ui-s); }
  .ui-body { padding: var(--space-md); }
  .ui-split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); align-items: start; }
  .ui-split--scan { grid-template-columns: auto minmax(0, 1fr); }
  .ui-split--drawer { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .ui-hide-narrow { display: grid; }
  .ui-kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui-kanban .ui-col:not(:first-child) { display: grid; }
  .ui-connectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui-connector { grid-template-columns: auto minmax(0, 1fr); }
  .ui-connector .ui-switch { grid-column: 1; grid-row: 2; margin-top: var(--space-xs); }
  .ui-connector .ui-row-s { grid-column: 2; grid-row: 2; align-self: end; }
  .ui-row--stock { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 2.5rem auto; }
  .ui-row--stock .ui-meter { grid-column: auto; }
  .ui-row--stock .ui-num { display: block; text-align: right; }
  .ui-split--drawer .ui-row--stock .ui-num { display: none; }
  .ui-row:has(> .ui-actions) { grid-template-columns: minmax(0, 1fr) auto; }
  .ui-row > .ui-actions { padding-left: 0; }
  .site-nav { display: flex; margin-left: auto; }
  .site-head .ui-btn { margin-left: var(--space-sm); }
  .site-body { padding: var(--space-lg); }
  .site-detail { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); }
  .site-img { height: auto; max-height: none; aspect-ratio: 4 / 3; align-self: start; }
  .tl-lane { grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; }
  .tl-hours { margin-left: 5rem; }
}

/* ---------- Scene motion (all off with .is-instant; frozen with .is-paused) ---------- */
.a-pop     { animation: sc-pop var(--dur-enter) var(--ease-out) var(--t, 0ms) both; }
.a-drop    { animation: sc-drop var(--dur-enter) var(--ease-out) var(--t, 0ms) both; }
.a-drop-in { animation: sc-drop-in var(--dur-process) var(--ease-out) var(--t, 0ms) both; }
.a-slide   { animation: sc-slide var(--dur-enter) var(--ease-out) var(--t, 0ms) both; }
.a-fade    { animation: fade-in var(--dur-short) var(--ease-out) var(--t, 0ms) both; }
.a-light   { animation: sc-light var(--dur-enter) var(--ease-out) var(--t, 0ms) both; }
.a-tick    { animation: sc-tick var(--dur-short) var(--ease-out) var(--t, 0ms) both; }
.a-grow-x  { animation: sc-grow-x var(--dur-long) var(--ease-out) var(--t, 0ms) both; }
.a-grow-y  { animation: sc-grow-y var(--dur-process) var(--ease-out) var(--t, 0ms) both; }
.a-from-scale { animation: sc-from-scale var(--dur-process) var(--ease-in-out) var(--t, 0ms) both; }
.a-draw    { animation: sc-draw var(--dur-process) var(--ease-in-out) var(--t, 0ms) both; }
.a-sweep   { animation: sc-sweep var(--dur-process) var(--ease-in-out) var(--t, 0ms) both; }
.a-cursor  { animation: sc-cursor var(--dur-process) var(--ease-out) var(--t, 0ms) both; }
.a-slide-l { animation: sc-slide-l var(--dur-enter) var(--ease-out) var(--t, 0ms) both; }
.a-switch  { animation: sc-switch var(--dur-short) var(--ease-out) var(--t, 0ms) both; }
.a-from-scale-x { animation: sc-from-scale-x var(--dur-process) var(--ease-in-out) var(--t, 0ms) both; }
.is-focus  { animation: sc-nudge var(--dur-process) var(--ease-in-out) var(--dur-long) 2; }
@keyframes sc-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes sc-drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes sc-drop-in { from { opacity: 0; transform: translateY(-3rem) scale(0.92); } }
@keyframes sc-slide { from { opacity: 0; transform: translateX(-1.5rem); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sc-light { from { background-color: transparent; } }
@keyframes sc-tick { from { opacity: 0; transform: scale(0.4); } }
@keyframes sc-grow-x { from { transform: scaleX(0); } }
@keyframes sc-grow-y { from { transform: scaleY(0); } }
@keyframes sc-from-scale { from { transform: scaleY(var(--k, 1)); } }
@keyframes sc-draw { from { stroke-dashoffset: 1; } }
@keyframes sc-sweep { 0% { opacity: 0.8; transform: translateY(0); } 100% { opacity: 0; transform: translateY(var(--sweep)); } }
@keyframes sc-cursor { from { opacity: 0; transform: translate(-5rem, 3rem); } }
@keyframes sc-nudge { 50% { transform: scale(1.03); } }
@keyframes sc-slide-l { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes sc-switch { from { background-color: var(--color-rule); } }
@keyframes sc-from-scale-x { from { transform: scaleX(var(--k, 1)); } }
.is-instant *, .is-instant *::before, .is-instant *::after { animation: none !important; }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

@media (min-width: 40rem) {
  .flow { padding: var(--space-md) 0; }
}

@media (min-width: 60rem) {
  .flow-step-label { display: block; }
  .flow-now { display: none; }
  .flow-human { display: block; margin-top: calc(-1 * var(--space-2xs)); font-size: var(--text-sm); font-weight: 400; color: var(--color-forest); }
}

/* ---------- Voorbeelden: one section per flow ---------- */
.flow-list .flow-section:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.flow-section {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg);
  padding-block: var(--space-2xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.flow-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
.flow-kind { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-2xs); }
.flow-screen, .jump-kind { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-sm); font-weight: 650; color: var(--color-forest); }
.flow-screen { margin-top: var(--space-xs); color: var(--color-ink); }
.flow-screen .ico { color: var(--color-forest); }
.flow-after .case-shift { margin-top: 0; }
.flow-turn { color: var(--color-forest); font-weight: 650; }
.case-shift {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm);
  margin-top: var(--space-md); padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.case-shift dt { font-size: var(--text-sm); font-weight: 650; color: var(--color-muted); }
.case-shift div:last-child dt { color: var(--color-forest); }
.case-shift dd { line-height: 1.45; text-wrap: pretty; }

/* ---------- Section heads (shared) ---------- */
.section-title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl);
  line-height: 1.04; letter-spacing: -0.012em; max-width: 20ch;
  text-wrap: balance; overflow-wrap: anywhere; min-width: 0;
}
.section-lede { color: var(--color-muted); max-width: 34ch; margin-top: var(--space-md); text-wrap: pretty; }
.section-more { margin-top: var(--space-lg); }

/* ---------- The approved pattern: "uitleg en voorbeelden" ---------- */
.services {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-3xl);
}
.service-list { border-bottom: var(--rule-hair) solid var(--color-rule); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs);
  padding-block: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.service:first-child { border-top: 0; }
.service-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.15; text-wrap: balance; }
.service-line { color: var(--color-muted); line-height: 1.45; text-wrap: pretty; }
/* The promises ("Past als", "Je krijgt") and the example links are not small print: body size, in ink,
   the label in petrol */
.service-fit { color: var(--color-ink); font-size: var(--text-base); }
.service-fit span { color: var(--color-forest); font-weight: 650; margin-right: var(--space-2xs); }
.service-case { margin-top: var(--space-2xs); font-size: var(--text-base); color: var(--color-ink); }
/* Phones: a taller tap area for the example links and the example link in the hero; the negative
   margin takes the room back, so no line moves */
@media (max-width: 39.99rem) {
  .service-case .link, .hero-actions .link { display: inline-block; white-space: normal; padding-block: var(--space-sm); margin-block: calc(-1 * var(--space-sm)); }
}
.services--detail .service-line { color: var(--color-ink); }
.phase-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); margin-top: var(--space-sm); }
.phase-pair dt { font-size: var(--text-sm); font-weight: 650; color: var(--color-forest); }
.phase-pair dd { color: var(--color-muted); line-height: 1.45; }
/* Voorbeelden: a short jump list to the seven flows */
.flow-index { padding-block: var(--space-xl) var(--space-lg); padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2)); }
.index-title { font-size: var(--text-sm); font-weight: 650; color: var(--color-muted); }
.jump-list { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.jump-item { display: grid; gap: var(--space-3xs); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.jump-link { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.2; color: var(--color-ink); text-decoration: none; }
.jump-link:hover { color: var(--color-forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ---------- Process (the brand's travelling dot, once) ---------- */
.process { padding-block: 0 var(--space-3xl); }
.process--page { padding-block: var(--space-2xl) var(--space-xl); }
.steps {
  position: relative; margin-top: var(--space-xl); padding-left: var(--space-xl);
  --dot: 0.875rem;
}
.process--page .steps { margin-top: 0; }
.step-list { display: grid; gap: var(--space-xl); }
.step { position: relative; max-width: 30rem; --n: 0; }
.step:nth-child(2) { --n: 1; }
.step:nth-child(3) { --n: 2; }
.step:nth-child(4) { --n: 3; }
.step:nth-child(5) { --n: 4; }
.step::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-xl)); top: 0.3em;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--color-forest); border: 2px solid var(--color-forest);
  transition: background-color var(--dur-short) var(--ease-out);
  transition-delay: calc(var(--n) * 260ms + 120ms);
}
/* Mobile: each step draws the line down to the next dot */
.step:not(:last-child)::after {
  content: ""; position: absolute; left: calc(-1 * var(--space-xl) + var(--dot) / 2 - 1px);
  top: calc(0.3em + var(--dot)); bottom: calc(-1 * var(--space-xl) - 0.3em);
  width: 2px; background: var(--color-rule);
}
.steps.is-waiting .step::before { background: var(--color-paper); transition-delay: 0ms; }
.step-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.15; }
.step-line { color: var(--color-muted); margin-top: var(--space-2xs); text-wrap: pretty; }
.steps-track, .steps-rail { display: none; }

/* ---------- Talk: the fill-in sentence ---------- */
.talk {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl);
  padding-block: var(--space-2xl);
  background: var(--color-sage);
  --color-muted: var(--color-muted-sage);
}
.talk-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.2; text-wrap: balance; }
.sum { margin-top: var(--space-md); }
.sum-sentence {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl);
  line-height: 1.3; letter-spacing: -0.01em; max-width: 26ch; text-wrap: pretty;
}
.sum-keep { white-space: nowrap; }
/* "naar" sits with "uur" on phones and with the task from 40rem, so no line is left with one word */
.sum-naar--wide { display: none; }
.sum-input {
  font: inherit; letter-spacing: inherit; color: var(--color-forest);
  background: transparent; border: 0; border-bottom: 2px solid var(--color-forest);
  border-radius: 0; padding: 0 var(--space-3xs); margin: 0;
  min-width: 0; max-width: 100%;
  field-sizing: content;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.sum-input:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 4px; border-radius: 2px; }
.sum-input--num { width: 2.6ch; min-width: 2ch; text-align: center; }
.sum-input--num::-webkit-outer-spin-button, .sum-input--num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sum-input--text { width: 14ch; min-width: 4ch; max-width: calc(100% - 0.5em); }
@supports (field-sizing: content) {
  .sum-input--num { width: auto; min-width: 2ch; }
  .sum-input--text { width: auto; }
}
.sum-input[aria-invalid="true"] { border-bottom-style: dashed; }
.sum-result { margin-top: var(--space-lg); font-size: var(--text-md); line-height: 1.35; }
.sum-total { color: var(--color-forest); font-weight: 750; font-variant-numeric: tabular-nums; }
.sum-math { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.talk-text { margin-top: var(--space-xl); max-width: var(--measure); }
.talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); }
.talk .btn--quiet:hover { background: var(--color-sage-2); }
.talk-mail { margin-top: var(--space-md); font-size: var(--text-sm); }
.talk-mail .link { white-space: normal; overflow-wrap: anywhere; }

.team { align-self: end; max-width: 24rem; }
.team-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.2; max-width: 20ch; }
.team-note { margin-top: var(--space-sm); color: var(--color-muted); max-width: 30ch; }

/* ---------- Bands that close inner pages ---------- */
.cta-band { padding-block: var(--space-2xl); background: var(--color-sage); --color-muted: var(--color-muted-sage); }
.cta-inner { display: grid; gap: var(--space-md); justify-items: start; }
.cta-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.04; letter-spacing: -0.012em; max-width: 20ch; text-wrap: balance; }
.cta-text { max-width: var(--measure); }
.note-band { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.note-inner .section-lede { max-width: 52ch; }

/* ---------- Over ons ---------- */
.founders { padding-block: var(--space-2xl) var(--space-xl); }
.founders-note { margin-top: var(--space-sm); max-width: var(--measure); color: var(--color-muted); }
.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-2xl); }
.why-text { display: grid; gap: var(--space-md); max-width: var(--measure); }

/* ---------- Contact: write it yourself ---------- */
.write { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-block: var(--space-2xl); }
.write-form { display: grid; gap: var(--space-lg); max-width: 40rem; }
.field { display: grid; gap: var(--space-2xs); }
.field-label { font-weight: 650; }
.field-optional { font-weight: 400; color: var(--color-muted); }
.field-input {
  width: 100%; min-height: 3rem; padding: var(--space-sm) var(--space-md);
  font: inherit; color: var(--color-ink);
  background: var(--color-surface); border: 1px solid var(--color-muted); border-radius: var(--radius-sm);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.field-input:hover { border-color: var(--color-ink); }
.field-input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
textarea.field-input { resize: vertical; line-height: 1.5; }
.field-input::placeholder { color: var(--color-muted); opacity: 1; }
.field-hint { font-size: var(--text-sm); color: var(--color-muted); }
.field-error { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 650; color: var(--color-ink); }
.field-error::before { content: "!" / ""; display: grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--color-forest); color: var(--color-on-forest); font-size: var(--text-sm); line-height: 1; }
.field-input[aria-invalid="true"] { border-style: dashed; border-color: var(--color-ink); }
.write-form .form-privacy { margin-top: calc(var(--space-xs) - var(--space-lg)); max-width: var(--measure); }
.faq { padding-top: var(--space-xl); }

/* ---------- Footer (Ft1: wordmark band, a few links, small print) ---------- */
.foot {
  padding-block: var(--space-2xl) var(--space-xl);
  background: var(--color-forest-deep); color: var(--color-on-forest);
  --focus-ring: var(--color-focus-light);
}
.foot-mast {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-sm) var(--space-xl);
  padding-bottom: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-forest-line);
}
.foot-tagline { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--color-sage); }
.foot-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md) var(--space-xl);
  padding-block: var(--space-lg);
}
.foot-mail { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); text-underline-offset: 0.2em; text-decoration-thickness: 1px; white-space: nowrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.foot-links a { text-decoration: none; white-space: nowrap; padding-block: var(--space-2xs); }
.foot-links a:hover, .foot-mail:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.foot-small {
  display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg);
  padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-forest-line);
  font-size: var(--text-sm); color: var(--color-on-forest-2);
}

/* ---------- Motion: one entrance and a calm page crossfade ---------- */
/* The entrance order (--i): the title line(s) first, then the side text. Home: line, line, side. */
.hero-line + .hero-line { --i: 1; }
.hero-side { --i: 1; }
.hero-title + .hero-side { --i: 2; }
@media (prefers-reduced-motion: no-preference) {
  .hero-line, .hero-side {
    opacity: 0; transform: translateY(var(--space-xs));
    animation: rise var(--dur-long) var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 60ms);
  }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out var(--dur-micro) var(--ease-in) both; }
  ::view-transition-new(root) { animation: vt-in var(--dur-short) var(--ease-out) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- 40rem: small tablets ---------- */
@media (min-width: 40rem) {
  .case-shift { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
  .sum-naar--narrow { display: none; }
  .sum-naar--wide { display: inline; }
  .sum-input--text { max-width: calc(100% - 2.8em); }
  /* The photo card from here: a little more room, and a veil that lets the photo through on the right */
  .hero { margin-top: var(--space-md); padding-inline: var(--space-xl); border-radius: 18px; }
  .hero .hero-lede { font-size: var(--text-md); line-height: 1.4; }
  .hero-photo { object-position: 58% 50%; }
  .hero::before {
    background: linear-gradient(90deg, color-mix(in oklch, var(--color-forest-deep) 94%, transparent) 0%,
      color-mix(in oklch, var(--color-forest-deep) 86%, transparent) 36%,
      color-mix(in oklch, var(--color-forest-deep) 74%, transparent) 65%,
      color-mix(in oklch, var(--color-forest-deep) 70%, transparent) 100%);
  }
  .services { padding-block: var(--space-2xl) var(--space-3xl); }
  .service { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); column-gap: var(--space-lg); align-items: baseline; }
  .service > :not(.service-name) { grid-column: 2; }
  .talk { padding-block: var(--space-3xl); }
  .foot { padding-block: var(--space-3xl) var(--space-xl); }
}

/* ---------- 60rem: desktop grid ---------- */
@media (min-width: 60rem) {
  .menu-toggle, .js .menu-toggle { display: none; }
  .top { flex-wrap: nowrap; }
  .top-nav, .js .top-nav {
    order: 0; flex-basis: auto; display: flex; flex-direction: row; align-items: center; gap: var(--space-lg);
    position: static; padding: 0; background: none; border: 0; box-shadow: none; animation: none;
  }
  .js .top-nav .top-link { padding-block: var(--space-xs); border-top: 0; font-size: var(--text-base); }
  .js .top-link--sheet { display: none; }
  .top { gap: var(--space-lg); }
  .top-actions .btn--small { padding: 0 var(--space-md); }

  .page-head {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg);
    padding-block: var(--space-3xl);
  }
  .page-title { grid-column: 1 / 9; }
  .page-side { grid-column: 9 / 13; padding-bottom: var(--space-xs); }
  .hero { padding-inline: var(--space-2xl); }

  .feature { padding-bottom: var(--space-3xl); }

  .services { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); padding-block: var(--space-3xl) var(--space-4xl); }
  .services-head { grid-column: 1 / 5; align-self: start; position: sticky; top: var(--space-xl); }
  .service-list { grid-column: 6 / 13; }
  .service-list { display: grid; grid-template-columns: subgrid; }
  .service { grid-column: 1 / -1; grid-template-columns: subgrid; padding-block: var(--space-lg); }
  .service > .service-name { grid-column: 1 / 4; }
  .service > :not(.service-name) { grid-column: 4 / -1; }
  .jump-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-lg); }
  .flow-index { padding-block: var(--space-2xl) var(--space-xl); }

  .flow-section { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); padding-block: var(--space-3xl); }
  .flow-section { grid-template-rows: auto 1fr; row-gap: 0; }
  .flow-intro { grid-column: 1 / 5; grid-row: 1; align-self: start; }
  .flow-after { grid-column: 1 / 5; grid-row: 2; align-self: start; padding-top: var(--space-lg); }
  .flow-section .flow { grid-column: 6 / 13; grid-row: 1 / span 2; }
  .flow-after .case-shift { grid-template-columns: minmax(0, 1fr); }

  /* Horizontal process line with the travelling dot */
  .process { padding-block: 0 var(--space-4xl); }
  .process--page { padding-block: var(--space-3xl) var(--space-2xl); }
  .steps {
    padding-left: 0; padding-top: calc(var(--dot) + var(--space-lg));
    --gap: var(--space-lg);
    --run: calc((100% * 4 + var(--gap) * 4) / 5);
  }
  .step:not(:last-child)::after { display: none; }
  .steps::before { content: ""; position: absolute; left: 0; top: calc(var(--dot) / 2 - 1px); width: calc(var(--run) + var(--dot)); height: 2px; background: var(--color-rule); }
  .step-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
  .step { max-width: none; padding-right: var(--space-sm); }
  .step::before { left: 0; top: calc(-1 * (var(--dot) + var(--space-lg))); }
  .steps-track, .steps-rail { display: block; position: absolute; left: 0; width: var(--run); pointer-events: none; }
  .steps-track {
    top: calc(var(--dot) / 2 - 1px); height: 2px; background: var(--color-forest);
    transform-origin: left center; transition: transform var(--dur-travel) var(--ease-in-out);
  }
  .steps-rail { top: 0; height: var(--dot); transition: transform var(--dur-travel) var(--ease-in-out); }
  .steps-rail::after {
    content: ""; position: absolute; right: calc(-1 * var(--dot)); top: 0;
    width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--color-forest);
    box-shadow: 0 0 0 4px var(--color-paper);
  }
  .steps.is-waiting .steps-track { transform: scaleX(0); }
  .steps.is-waiting .steps-rail { transform: translateX(-100%); }

  .talk { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); }
  .talk-main { grid-column: 1 / 8; }
  .team { grid-column: 9 / 13; }

  .why, .write { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); padding-block: var(--space-3xl); }
  .why > .section-title, .write-head { grid-column: 1 / 5; align-self: start; }
  .why-text, .write-form { grid-column: 6 / 13; }
  .founders { padding-block: var(--space-3xl) var(--space-xl); }
  .cta-band, .note-band { padding-block: var(--space-3xl); }
}

@media (hover: hover) and (pointer: fine) {
  .sum-input:hover { background: var(--color-sage-2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steps-track, .steps-rail, .step::before, .flow-fill, .flow-node { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .top.is-open .top-nav { animation: none !important; }
  .btn, .link, .sum-input { transition-duration: 1ms; }
}

/* Header button: "Bespreek je project" from 60rem, "Contact" below */
.cta-long { display: none; }
@media (min-width: 60rem) { .cta-long { display: inline; } .cta-short { display: none; } }

.flow-cta { margin-top: var(--space-lg); }
.legal { flex-basis: 100%; }
.form-status { display: grid; gap: var(--space-sm); padding: var(--space-md); border: 1px solid var(--color-forest); border-radius: var(--radius-sm); background: var(--color-surface); }
.form-status p { max-width: var(--measure); }
.price-line { margin-top: var(--space-md); max-width: 52ch; }
.flow-fiction { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-forest); }
.team-more { margin-top: var(--space-xs); }

/* Phones: the jump list as compact chips (icon + name), so the first screen comes sooner */
@media (max-width: 39.99rem) {
  .jump-list { display: flex; flex-wrap: wrap; gap: var(--space-2xs); border-top: 0; }
  .jump-item { position: relative; display: flex; align-items: center; gap: var(--space-2xs); min-height: 2.75rem; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); }
  .jump-item .jump-kind { order: -1; }
  .jump-item .jump-kind > span { display: none; }
  .jump-link { font-size: var(--text-sm); white-space: nowrap; }
  .jump-link::after { content: ""; position: absolute; inset: 0; }
  .jump-item:has(.jump-link:focus-visible) { outline: 2px solid var(--color-ink); outline-offset: 2px; }
}
