/* henkbatenburg.com: main stylesheet.
   Tokens and rules come from DESIGN.md (decisions D1–D29). Light theme only; the
   photo lightbox (later) is the one dark surface. */

/* ---------- Tokens ---------- */
:root {
  /* Colour (D26) */
  --paper: #f6f4ef;
  --paper-raised: #fbfaf7;
  --paper-sunk: #ebe8e2;
  --line: #d9d5ce;
  --line-strong: #8a857d; /* edges of form controls: 3:1 on paper and raised (WCAG 1.4.11) */
  --ink: #1c1a17;
  --ink-2: #55524c;
  --ink-3: #6b6760;
  --on-ink: #f6f4ef;
  --on-ink-2: #cfcac2;
  --rust: #bf4e28;
  --rust-text: #a8401b;
  --sage: #93c2a7;
  --mustard: #e8ad2a;
  --coffee: #6e4220; /* only for spilled coffee (D68) */
  --coffee-on-ink: #b98457;

  /* Type (D28) */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  --text-hero: clamp(3rem, 1.2rem + 7.4vw, 9rem);
  --text-display: clamp(2.5rem, 1.4rem + 4.4vw, 5rem);
  --text-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --text-h3: clamp(1.3125rem, 1.1rem + 0.8vw, 1.75rem);
  --text-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-meta: 0.78rem;

  /* Space: 4px base */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-6: 1.5rem;
  --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem; --s-32: 8rem;
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);
  --content: 80rem;
  --measure: 68ch;

  /* Shape and depth */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-pill: 999px;
  --shadow-float: 0 12px 32px rgba(28, 26, 23, 0.1), 0 2px 6px rgba(28, 26, 23, 0.06);

  /* Motion (DESIGN.md: Motion) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-med: 280ms;

  --header-h: 4rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
  scrollbar-color: var(--ink-3) var(--paper-sunk);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-body) / 1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--rust);
  overflow-x: clip;
}
::selection { background: var(--mustard); color: var(--ink); }
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}
p, ul, ol, dl, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--rust-text); outline-offset: 2px; border-radius: var(--r-xs); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute; left: var(--s-4); top: -10rem; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0.8rem 1.25rem;
  border: 0; border-radius: var(--r-sm);
  font: 600 1rem / 1 var(--font-text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: #33302a; }
.btn--secondary { background: var(--paper-sunk); color: var(--ink); }
.btn--secondary:hover { background: #e0dcd4; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline:hover { background: var(--paper-sunk); }
.btn--inverse { background: var(--paper); color: var(--ink); }
.btn--inverse:hover { background: #fff8e8; }
.btn:active { transform: translateY(1px); }

.text-link {
  display: inline-flex; align-items: baseline; gap: 0.35em;
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  transition: text-decoration-color var(--t-fast) ease;
}
.text-link span { transition: transform var(--t-fast) var(--ease-out); }
.text-link:hover { text-decoration-color: var(--rust); }
.text-link:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease;
}
.site-header.is-scrolled { background: var(--paper-raised); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; margin-right: auto; }
.emblem { display: block; width: 2.25rem; height: 2.25rem; flex: none; }
.emblem__img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font: 800 1.05rem / 1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: var(--s-6); }
.site-nav__list { display: flex; gap: var(--s-6); }
.site-nav__list a {
  font-size: 1rem; color: var(--ink-2); text-decoration: none;
  padding-block: var(--s-2);
  background: linear-gradient(var(--rust), var(--rust)) left bottom / 0 2px no-repeat;
  transition: color var(--t-fast) ease, background-size var(--t-med) var(--ease-out);
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a { color: var(--ink); background-size: 100% 2px; }
.site-nav__extra { display: flex; align-items: center; gap: var(--s-4); }
.site-nav__cta { display: none; }

/* The small flag before each language (Henk, 2026-12-04); the hairline keeps the white stripe visible on paper. */
.lang-flag { display: inline-block; flex: none; width: 1.125em; height: 0.75em; vertical-align: -0.05em; margin-right: 0.4em; border-radius: 1px; box-shadow: 0 0 0 1px var(--line); }
.lang-switch { display: flex; gap: 0.15rem; font: 600 var(--text-meta) / 1 var(--font-text); letter-spacing: 0.08em; }
.lang-switch li + li::before { content: "/"; color: var(--ink-3); margin-right: 0.15rem; }
.lang-switch a { color: var(--ink-3); text-decoration: none; padding: var(--s-1); }
.lang-switch a[aria-current="true"], .lang-switch a:hover { color: var(--ink); }
/* Header (B): only the other language, right of the button. */
.lang-one {
  display: none; flex: none;
  font: 600 var(--text-meta) / 1 var(--font-text); letter-spacing: 0.08em;
  color: var(--ink-2); text-decoration: none;
  padding: 0.55rem 0.15rem; border-bottom: 1px solid var(--line);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.lang-one:hover { color: var(--ink); border-color: var(--ink); }
/* Open phone menu: both languages written out. */
.lang-menu { display: none; gap: var(--s-6); font: 600 1rem / 1 var(--font-text); }
.lang-menu a { display: flex; align-items: center; color: var(--ink-3); text-decoration: none; padding-block: var(--s-2); }
.lang-menu a:hover { color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px var(--rust); }

.menu-toggle {
  display: none; align-items: center; gap: var(--s-2);
  min-height: 2.75rem; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent;
  font: 600 0.95rem / 1 var(--font-text); color: var(--ink); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before {
  display: block; width: 1rem; height: 2px; background: currentColor; position: relative;
  transition: transform var(--t-med) var(--ease-out);
}
.menu-toggle__bars::before { content: ""; position: absolute; top: 5px; }
.menu-toggle__bars { transform: translateY(-2.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-5px) rotate(-90deg); }

@media (max-width: 64rem) {
  .menu-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: var(--s-8);
    padding: var(--s-8) max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--s-8), env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block; padding-block: var(--s-3);
    font: 800 clamp(2rem, 1.4rem + 3vw, 2.75rem) / 1.1 var(--font-display); letter-spacing: -0.035em;
    color: var(--ink); background: none;
  }
  .site-nav__extra { flex-direction: column; align-items: stretch; gap: var(--s-6); }
  .site-nav__cta { display: inline-flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--paper); border-bottom-color: var(--line); }
}
@media (min-width: 64.01rem) {
  .site-header__cta { display: inline-flex; }
  .lang-one { display: inline-block; }
}
@media (max-width: 64rem) {
  .lang-menu { display: flex; }
}
/* Logged in: the header and the phone menu sit below the WordPress admin bar (fixed above 600px). */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 64rem) {
  .admin-bar .site-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)); }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* ---------- Page intro and sections ---------- */
.page-intro { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--s-12); display: grid; gap: var(--s-6); }
.page-intro__title { font-size: var(--text-display); line-height: 1; letter-spacing: -0.04em; max-width: 18ch; }
.page-intro__lead { font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-4) var(--s-8); margin-bottom: var(--s-8); }
.section-head__title { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.035em; }

/* ---------- Home: intro + contact sheet (surface brief: front-page) ---------- */
/* The first screen fills to the fold: the sheet sits on the bottom edge, the slack goes between text and sheet. */
.home-intro {
  display: flex; flex-direction: column;
  min-height: min(calc(100svh - var(--header-h)), 68rem);
}
/* Slack on tall or wide screens is shared above and below the text, so no empty strip collects in one place. */
.home-intro__text {
  flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(2rem, 0.5rem + 2.5vw + 2svh, 4rem) clamp(2rem, 1rem + 2vw + 2svh, 4rem);
}
.hero__title {
  font-size: clamp(2.75rem, 1rem + 6.4vw, 9rem);
  line-height: 0.9; letter-spacing: -0.04em;
}
.hero__line { display: block; }
.hero__mark { color: var(--rust); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.home-intro__row {
  display: grid; grid-template-columns: minmax(0, 37.5rem) minmax(0, 1fr);
  gap: var(--s-8) clamp(2rem, 1rem + 5vw, 6rem); align-items: start;
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem);
}
.hero__lead { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }

.meet { border-top: 2px solid var(--ink); padding-top: var(--s-4); justify-self: end; width: min(100%, 30rem); }
.meet__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.meet__legend { padding: 0; font-weight: 600; font-size: 1rem; margin-bottom: var(--s-3); }
.meet__choices, .choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.meet__choice, .choice { position: relative; display: inline-flex; }
.meet__choice input, .choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.meet__choice span, .choice span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.meet__choice:hover span, .choice:hover span { border-color: var(--ink-3); color: var(--ink); }
.meet__choice input:checked + span, .choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.meet__choice input:focus-visible + span, .choice input:focus-visible + span { outline: 2px solid var(--rust-text); outline-offset: 2px; }
/* Ink links with an ink underline; rust only on hover, so at rest rust belongs to the pencil (DESIGN.md: text link). */
.meet__submit { margin-top: var(--s-4); }
.meet__submit, .link-button {
  padding: var(--s-1) 0; text-align: left; border: 0; background: none; cursor: pointer;
  font: 600 1rem / 1.4 var(--font-text); color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  transition: text-decoration-color var(--t-fast) ease;
}
.meet__submit:hover, .link-button:hover { text-decoration-color: var(--rust); }
.meet__submit span, .link-button span { display: inline-block; transition: transform var(--t-fast) var(--ease-out); }
.meet__submit:hover span, .link-button:hover span { transform: translateX(3px); }

@media (max-width: 48rem) {
  .home-intro__row { grid-template-columns: minmax(0, 1fr); }
  .meet { justify-self: stretch; width: auto; }
}

/* The contact sheet: full-bleed; frames scale with width and a little with height; 6–7 visible at 1440px; at most 10. */
.sheet {
  --frame-h: clamp(6.5rem, 1.4rem + 3.6vw + 5svh, 11.5rem);
  --sheet-start: max(var(--gutter), calc((100% - var(--content)) / 2));
  margin-top: auto;
  background: var(--paper-sunk);
}
.sheet .sheet__track {
  display: flex; align-items: flex-end; gap: clamp(1rem, 0.6rem + 1vw, 1.75rem);
  margin: 0; padding: clamp(3.75rem, 2.5rem + 2svh, 4.75rem) var(--sheet-start) clamp(1.25rem, 0.5rem + 1.5svh, 2rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--sheet-start);
  scrollbar-width: thin;
  cursor: grab;
}
.sheet__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.sheet__track.is-dragging .frame__link { pointer-events: none; }
.sheet__track:focus-visible { outline: 2px solid var(--rust-text); outline-offset: -4px; }
.frame { position: relative; flex: none; scroll-snap-align: start; }
.frame__link { display: grid; gap: var(--s-2); text-decoration: none; color: inherit; }
.frame__media { position: relative; display: block; }
.frame__img { display: block; height: var(--frame-h); width: auto; max-width: none; border-radius: 1px; user-select: none; -webkit-user-drag: none; }
.frame__blank { display: block; height: var(--frame-h); aspect-ratio: 3 / 2; background: var(--line); }
.frame__label {
  font: 600 0.75rem / 1.3 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.frame__link:hover .frame__label, .frame__link:focus-visible .frame__label { color: var(--ink); }
.frame__link:focus-visible { outline: none; }

/* Grease pencil (signature interaction): one tool, one weight, a waxy edge.
   The ring is revealed by a sweeping mask, so its stroke can stay a constant 3px on every frame shape. */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pencil { position: absolute; max-width: none; pointer-events: none; overflow: visible; fill: none; stroke: var(--rust); stroke-linecap: round; stroke-linejoin: round; filter: url(#hb-wax); }
.pencil--ring {
  inset: -0.7rem -0.8rem; width: calc(100% + 1.6rem); height: calc(100% + 1.4rem); stroke-width: 3px;
  -webkit-mask: conic-gradient(from 300deg, #000 var(--sweep), #0000 0);
  mask: conic-gradient(from 300deg, #000 var(--sweep), #0000 0);
  transition: --sweep 650ms var(--ease-out);
}
.pencil--tick { width: 2.4rem; height: 1.8rem; right: -0.6rem; top: -1.1rem; stroke-width: 3px; }
.pencil--tick path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.frame__link:hover .pencil--ring,
.frame__link:focus-visible .pencil--ring { --sweep: 360deg; }
.frame__note {
  position: absolute; left: calc(100% - 5rem); top: -2.5rem; white-space: nowrap;
  font: 800 1.25rem / 1 var(--font-display); letter-spacing: -0.01em; color: var(--rust);
  transform: rotate(-5deg); transform-origin: left bottom; pointer-events: none;
}
.frame--all { align-self: stretch; display: flex; align-items: center; padding-inline: var(--s-4) var(--s-8); scroll-snap-align: end; }
.frame__all {
  display: inline-flex; gap: 0.35em; white-space: nowrap;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  transition: text-decoration-color var(--t-fast) ease;
}
.frame__all:hover { text-decoration-color: var(--rust); }

/* One authored entrance: the headline rises, then the pencil draws Henk's pick, the note and the tick. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: hb-rise 900ms var(--ease-out) both; }
  .is-pick .pencil--ring { animation: hb-sweep 700ms var(--ease-out) 650ms forwards; }
  .is-ticked .pencil--tick path { animation: hb-draw 450ms var(--ease-out) 1250ms forwards; }
  .frame__note { animation: hb-note 400ms var(--ease-out) 1150ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .is-pick .pencil--ring { --sweep: 360deg; }
  .is-ticked .pencil--tick path { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes hb-rise {
  from { opacity: 0.001; transform: translateY(0.4em); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes hb-sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@keyframes hb-draw { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes hb-note { from { opacity: 0.001; transform: rotate(-5deg) translateY(4px); } to { opacity: 1; transform: rotate(-5deg); } }

/* ---------- Kennismaken (surface brief: template-kennismaken) ---------- */
/* The visitor's way to meet leads: three tiles, the chosen one in grease pencil, its agenda or the form below. */
.kennis { padding-bottom: var(--section); }
.kennis-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27.5rem);
  gap: var(--s-6) clamp(2rem, 1rem + 4vw, 4rem); align-items: end;
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.kennis-intro__title { font-size: clamp(2.5rem, 1rem + 5.6vw, 6rem); line-height: 0.92; letter-spacing: -0.04em; }
.kennis-intro__lead { font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); max-width: 44ch; padding-bottom: 0.3em; }

.ways { margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem); }
.ways__title { font-size: var(--text-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.ways__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-8); }
.way { position: relative; }
.way__link {
  position: relative; display: grid; align-content: start; gap: var(--s-2); height: 100%;
  padding: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.way__link:hover { border-color: var(--ink); }
/* The chosen tile: a 2px ink edge (inset, so nothing shifts) inside the pencil ring. */
.way.is-chosen .way__link { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.way__link:focus-visible { outline-offset: 4px; }
.way__name { font: 800 clamp(1.75rem, 1.1rem + 1.9vw, 2.75rem) / 1 var(--font-display); letter-spacing: -0.035em; }
.way__line { font-size: 1.125rem; color: var(--ink-2); }
.way__ring { inset: -0.75rem -0.9rem; width: calc(100% + 1.8rem); height: calc(100% + 1.5rem); transition: none; }
.way.is-chosen .way__ring { --sweep: 360deg; transition: --sweep 650ms var(--ease-out); }
.way__note {
  position: absolute; right: 0.5rem; top: -2.4rem; white-space: nowrap; pointer-events: none;
  font: 800 1.25rem / 1 var(--font-display); letter-spacing: -0.01em; color: var(--rust);
  transform: rotate(-5deg); transform-origin: right bottom;
  opacity: 0;
}
.ways.has-choice .is-chosen .way__note { opacity: 1; transition: opacity var(--t-med) ease 450ms; }

.panel {
  /* Three columns, like the tiles above: the text under the first tile, the agenda or form under the other two. */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "intro main main" "direct main main"; grid-template-rows: auto 1fr;
  gap: var(--s-12) var(--s-6);
  margin-top: clamp(3rem, 2rem + 2vw, 4rem); padding-top: var(--s-6);
  border-top: 2px solid var(--ink);
}
.panel__intro { grid-area: intro; display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.panel__title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.panel__text { color: var(--ink-2); max-width: 36ch; }
.panel__switch { margin-top: var(--s-1); }
.panel__main { grid-area: main; min-width: 0; }

.agenda__frame { position: relative; min-height: 34rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper-raised); }
.agenda__frame.is-ready { min-height: 0; border: 0; background: none; }
.agenda__status { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-8); text-align: center; color: var(--ink-3); }
.agenda__out { margin-top: var(--s-4); }

.form { display: grid; gap: var(--s-6); max-width: 46rem; }
.panel .form { max-width: none; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.form__row--who { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: var(--s-2); align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font-weight: 600; color: var(--ink); }
.field--choices .field__label { margin-bottom: var(--s-2); }
.field__req, .field__opt { font-weight: 400; color: var(--ink-3); }
.field__input {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.875rem;
  background: var(--paper-raised); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: 400 var(--text-body) / 1.4 var(--font-text);
  transition: border-color var(--t-fast) ease;
}
.field__input:hover { border-color: var(--ink-3); }
.field__input:focus { border-color: var(--ink); }
.field__input--area { min-height: 7.5rem; resize: vertical; }
.field__input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--paper-raised) inset; }
.field.is-invalid .field__input { border-color: var(--rust-text); }
.field__error { display: flex; align-items: flex-start; gap: var(--s-2); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--rust-text); }
.icon { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.08em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.icon__dot { fill: currentColor; stroke: none; }
.check { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 2.75rem; font-weight: 600; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.field--check { margin-block: calc(-1 * var(--s-2)); }
/* Budget and deadline only show once "offerte" is ticked; browsers without :has() just show them. */
@supports selector(:has(*)) {
  .form:not(:has(#hb-quote:checked)) .form__quote { display: none; }
}
.form__send { display: grid; justify-items: start; gap: var(--s-3); margin-top: var(--s-2); }
.form__submit { white-space: normal; text-align: left; line-height: 1.25; }
.form__submit:disabled { opacity: 0.75; cursor: progress; }
.form__note { font-size: var(--text-small); color: var(--ink-3); }
.form__note a { color: var(--ink-2); }
.notice {
  display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4);
  background: var(--paper-raised); border: 1px solid var(--rust-text); border-radius: var(--r-sm);
}
.notice .icon { color: var(--rust-text); }
.notice a { color: var(--rust-text); text-decoration-thickness: 2px; }

.sent { padding-block: var(--s-2) var(--s-8); outline: none; }
.sent__title { position: relative; display: inline-block; padding-right: 2.75rem; font: 800 var(--text-h2) / 1.05 var(--font-display); letter-spacing: -0.035em; }
.sent__tick { right: -0.25rem; top: -0.7rem; width: 2.75rem; height: 2.1rem; stroke-width: 3px; }
.sent__tick path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.sent__text { margin-top: var(--s-3); max-width: 40ch; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }

.direct { grid-area: direct; align-self: start; }
.direct__title { font-size: var(--text-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.direct__list { margin-top: var(--s-4); border-top: 1px solid var(--line); }
.direct__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.direct__row dt { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.direct__row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.direct__row a { font-weight: 600; text-decoration: none; }
.direct__row a:hover { text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 2px; }

/* One authored entrance: the headline rises, then the pencil circles the way the visitor arrived with. */
@media (prefers-reduced-motion: no-preference) {
  .kennis-intro__title { animation: hb-rise 900ms var(--ease-out) both; }
  .ways:not(.is-touched) .is-chosen .way__ring { animation: hb-sweep 700ms var(--ease-out) 650ms both; }
  .ways.has-choice:not(.is-touched) .is-chosen .way__note { animation: hb-note 400ms var(--ease-out) 1150ms both; }
  .kennis[data-sent] .sent__tick path { animation: hb-draw 450ms var(--ease-out) 500ms forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .sent__tick path { stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 60rem) {
  .kennis-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 56rem) {
  .panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "main" "direct"; grid-template-rows: auto; gap: var(--s-8); }
}
@media (max-width: 40rem) {
  .ways__list { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-6); }
  .way__link { padding-right: 8.5rem; }
  .way__note { top: calc(50% - 0.65rem); right: 2.25rem; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .agenda__frame { min-height: 28rem; }
}

/* ---------- Werk: the light table (surface brief: archive-project) ---------- */
/* Every project on one table at its own ratio; the chosen direction comes to the front, the rest dims behind it. */
.werk-intro {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-8) var(--s-12);
  padding-block: clamp(1.5rem, 0.75rem + 2vw, 2.5rem) clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
}
.werk-intro__title { font-size: clamp(3rem, 1.5rem + 5vw, 6rem); line-height: 0.9; letter-spacing: -0.04em; }
.werk-intro__lead { margin-top: var(--s-3); max-width: 46ch; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }

.dirs { display: grid; justify-items: end; gap: var(--s-4); }
.dirs__list { display: flex; flex-wrap: wrap; gap: var(--s-2) clamp(1.5rem, 0.6rem + 2.2vw, 2.75rem); }
.dir {
  position: relative; display: inline-flex; align-items: flex-start; gap: 0.18em; padding: 0.05em 0;
  font: 800 clamp(1.75rem, 1rem + 2.3vw, 2.875rem) / 1 var(--font-display); letter-spacing: -0.035em;
  color: var(--ink-3); text-decoration: none;
  transition: color var(--t-fast) ease;
}
.dir:hover, .dir[aria-current] { color: var(--ink); }
.dir:focus-visible { outline-offset: 0.4em; }
.dir__count { margin-top: 0.1em; font: 600 var(--text-meta) / 1 var(--font-text); letter-spacing: 0.06em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dir__ring { inset: -0.5em -0.55em; width: calc(100% + 1.1em); height: calc(100% + 1em); transition: none; }
.dir[aria-current] .dir__ring { --sweep: 360deg; transition: --sweep 650ms var(--ease-out); }
.subs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-1) var(--s-6); }
.sub { padding-block: var(--s-1); color: var(--ink-2); text-decoration: none; }
.sub:hover { color: var(--ink); }
.sub[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.sub__count { margin-left: 0.3em; font-size: var(--text-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; }

.table { background: var(--paper-sunk); padding-block: clamp(2rem, 1rem + 2vw, 2.75rem) var(--section); }
/* Justified rows: each slide grows in proportion to its ratio, so a row shares one height. */
.table__grid {
  --row: clamp(8.5rem, 5rem + 7vw, 12rem);
  --row-top: clamp(11rem, 6rem + 11vw, 18rem);
  --row-max: 24rem;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-8) var(--s-6);
}
.table__grid::after { content: ""; flex-grow: 999999; }
.slide {
  position: relative; min-width: 0;
  flex: calc(var(--ratio) * 100) 1 calc(var(--ratio) * var(--row));
  max-width: calc(var(--ratio) * var(--row-max));
}
.slide.is-top { flex-basis: calc(var(--ratio) * var(--row-top)); }
.table__break { flex-basis: 100%; height: 0; }
.table__rest {
  flex-basis: 100%; display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4);
  font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3);
}
.table__rest::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); opacity: 0.45; }
.table__empty { flex-basis: 100%; font-size: var(--text-lead); color: var(--ink-2); }
.table__empty a { color: var(--ink); text-decoration-thickness: 2px; }

.slide__link { display: grid; gap: var(--s-2); color: inherit; text-decoration: none; }
.slide__link:focus-visible { outline: none; }
/* The pick always carries its ring, so its keyboard focus needs its own mark. */
.slide.is-pick .slide__link:focus-visible .slide__img { outline: 2px solid var(--rust-text); outline-offset: 3px; }
.slide:not(.is-pick) .slide__pick-sr { display: none; }
.slide__media { position: relative; display: block; }
.slide__img {
  display: block; width: 100%; height: auto; aspect-ratio: var(--ratio); object-fit: cover;
  border-radius: var(--r-xs); background: var(--line);
  transition: opacity var(--t-med) ease, filter var(--t-med) ease, transform var(--t-med) var(--ease-out);
}
.slide__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5em; min-width: 0; }
.slide__name { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.slide__cat { font-size: var(--text-small); color: var(--ink-3); }
.slide.is-top .slide__name { font: 700 var(--text-h3) / 1.15 var(--font-display); letter-spacing: -0.02em; }
.slide__ring { inset: -0.6rem -0.7rem; width: calc(100% + 1.4rem); height: calc(100% + 1.2rem); }
.slide__link:hover .slide__ring, .slide__link:focus-visible .slide__ring, .slide.is-pick .slide__ring { --sweep: 360deg; }
.slide__link:hover .slide__name, .slide__link:focus-visible .slide__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.slide__note {
  display: none; position: absolute; left: calc(100% - 6rem); top: -2.6rem; white-space: nowrap; pointer-events: none;
  font: 800 1.25rem / 1 var(--font-display); letter-spacing: -0.01em; color: var(--rust);
  transform: rotate(-5deg); transform-origin: left bottom;
}
.slide.is-pick .slide__note { display: block; }
/* The other direction slides to the back: dimmed, still there, and back in full when you point at it. */
.slide.is-back .slide__img { opacity: 0.32; filter: grayscale(0.85); transform: scale(0.96); }
.slide.is-back .slide__link:hover .slide__img, .slide.is-back .slide__link:focus-visible .slide__img { opacity: 1; filter: none; transform: none; }
.slide.is-back .slide__name { color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .werk-intro__title { animation: hb-rise 900ms var(--ease-out) both; }
  .werk:not(.is-touched) .dir[aria-current] .dir__ring { animation: hb-sweep 700ms var(--ease-out) 650ms both; }
  .werk:not(.is-touched) .slide.is-pick .slide__ring { animation: hb-sweep 700ms var(--ease-out) 900ms both; }
  .werk:not(.is-touched) .slide.is-pick .slide__note { animation: hb-note 400ms var(--ease-out) 1450ms both; }
}

/* The subcategory row hangs under the words, so choosing one never moves the words under the pointer. */
@media (min-width: 70rem) {
  .werk-intro { padding-bottom: calc(clamp(1.25rem, 0.75rem + 1.5vw, 2rem) + 3.25rem); }
  .dirs { position: relative; }
  .subs { position: absolute; top: 100%; right: 0; width: max-content; margin-top: var(--s-6); flex-wrap: nowrap; }
  .subs > li { white-space: nowrap; } /* li carries text-wrap: pretty, which resets an inherited nowrap */
}
@media (max-width: 69.99rem) {
  .werk-intro { align-items: flex-start; }
  .dirs { justify-items: start; }
  .subs { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .table__grid { --row: 6.25rem; --row-top: 13rem; --row-max: 20rem; gap: var(--s-6) var(--s-4); }
  .slide__note { left: auto; right: 0.25rem; }
  .dirs__list { gap: var(--s-2) var(--s-4); }
  .dir { font-size: 1.5rem; }
}

/* ---------- Diensten: the menu card (surface brief: template-diensten) ---------- */
/* Left: the promise, two actions and how Henk works. Right: the card, dishes with a round photo of real work. */
.diensten {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40rem);
  grid-template-areas: "intro menu" "how menu"; grid-template-rows: auto 1fr;
  gap: var(--s-12) clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start;
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) var(--section);
}
.diensten__intro { grid-area: intro; display: grid; gap: var(--s-6); justify-items: start; }
.diensten__title { font-size: clamp(2.5rem, 1.25rem + 4.2vw, 5.25rem); line-height: 0.94; letter-spacing: -0.04em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; max-width: 100%; }
.diensten__lead { max-width: 40ch; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.diensten__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }

.how { grid-area: how; }
.how__title { font-size: var(--text-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.how .how__steps { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.how__step { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--s-3); max-width: 44ch; }
.how__n { font: 800 1.5rem / 1.1 var(--font-display); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.how__name { font: 700 1.125rem / 1.25 var(--font-display); letter-spacing: -0.015em; }
.how__text { color: var(--ink-2); }

/* The card: raised paper, a hairline edge and an inner printed frame. */
.menu {
  grid-area: menu; position: relative;
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1.5rem, 0.75rem + 2vw, 2.75rem);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-sm);
  outline: 1px solid var(--line); outline-offset: -0.6rem;
}
.menu__title { text-align: center; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1; letter-spacing: -0.03em; }
.menu__sub { margin-top: var(--s-2); text-align: center; font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.menu .menu__dishes { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.menu__foot { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); }

.dish__link { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-4) clamp(1rem, 0.5rem + 1vw, 1.5rem); padding: var(--s-3) 0; color: inherit; text-decoration: none; }
.dish__photo { position: relative; display: block; flex: none; width: clamp(4rem, 3rem + 2.5vw, 5.5rem); aspect-ratio: 1; }
.dish__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--paper-sunk); box-shadow: 0 0 0 1px var(--line); }
.dish__ring { inset: -0.45rem; width: calc(100% + 0.9rem); height: calc(100% + 0.9rem); }
.dish__link:hover .dish__ring, .dish__link:focus-visible .dish__ring { --sweep: 360deg; }
.dish__link:focus-visible { outline: none; }
.dish__body { display: grid; gap: var(--s-1); min-width: 0; }
.dish__head { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
.dish__name { font: 800 clamp(1.3rem, 1rem + 0.9vw, 1.75rem) / 1.05 var(--font-display); letter-spacing: -0.03em; }
.dish__dots { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(-0.3em); transition: border-color var(--t-fast) ease; }
.dish__price { font-weight: 600; white-space: nowrap; }
.dish__line { color: var(--ink-2); }
.dish__more { justify-self: start; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: text-decoration-color var(--t-fast) ease; }
.dish__link:hover .dish__dots, .dish__link:focus-visible .dish__dots { border-bottom-color: var(--ink); }
.dish__link:hover .dish__more, .dish__link:focus-visible .dish__more { text-decoration-color: var(--rust); }
@media (forced-colors: active) {
  .dish__link:focus-visible { outline: 2px solid CanvasText; outline-offset: 4px; }
}

/* A service page: the same card, one dish in full. */
.dish--head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-4) var(--s-6); }
.dish--head .dish__photo { width: clamp(5rem, 3.5rem + 3vw, 7rem); }
.dish--head .dish__name { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); }
.menu__part { margin-top: var(--s-8); font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.menu .menu__items { margin-top: var(--s-2); border-top: 1px solid var(--line); }
.menu__items li { display: grid; gap: 0.1rem; padding-block: var(--s-3); border-bottom: 1px dotted var(--line-strong); }
.menu__items strong { font: 700 1.1875rem / 1.25 var(--font-display); letter-spacing: -0.015em; }
.menu__items span { color: var(--ink-2); }
.dienst { padding-bottom: var(--s-16); }
.dienst__body { padding-block: 0 var(--section); }
.dienst-werk { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.dienst-werk__title { margin-bottom: var(--s-8); font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.035em; }
.dienst-werk__more { margin-top: var(--s-8); }
.dienst-werk .table__grid::after { display: none; } /* one row: let the projects fill it */
.dienst-quote {
  display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start;
  gap: var(--s-6) clamp(2rem, 1rem + 4vw, 5rem); padding-block: var(--section);
}
.dienst-quote__title { font-size: var(--text-h2); line-height: 1.02; letter-spacing: -0.035em; }
.dienst-quote__text { max-width: var(--measure); margin-bottom: var(--s-6); font-size: var(--text-lead); line-height: 1.6; color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .diensten__title { animation: hb-rise 900ms var(--ease-out) both; }
}
@media (max-width: 60rem) {
  .diensten { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "menu" "how"; grid-template-rows: auto; gap: var(--s-12); }
  .dienst-quote { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .dish__link { grid-template-columns: minmax(0, 1fr); }
  .dish__photo { width: 4.5rem; }
  .dish--head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fotografie: print envelopes (surface brief: template-fotografie) ---------- */
/* Each kind is an envelope from the photo shop with its prints sticking out. On a kind page the
   envelope is the order itself. The pencil only ticks the chosen kind: never a ring around an envelope. */
.foto { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) var(--s-16); }
.foto:not(.soort) { padding-bottom: 0; }
.foto-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: end; gap: var(--s-6) clamp(2rem, 1rem + 4vw, 5rem); }
.foto-intro__title { font-size: clamp(2.75rem, 1.2rem + 4.6vw, 5rem); line-height: 0.94; letter-spacing: -0.04em; }
.foto-intro__lead { max-width: 36ch; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }

/* Prints: real photos in a paper border, slightly turned, tucked into the envelope below them. */
.prints { position: relative; display: block; height: var(--prints-h, 15rem); margin-bottom: calc(-1 * var(--tuck, 3.25rem)); }
.print {
  --x: 0%; --lift: 0rem; --rot: -4deg;
  position: absolute; bottom: 0; left: 5%;
  padding: 0.55rem 0.55rem 1.6rem; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 1px;
  transform: translate(var(--x), var(--lift)) rotate(var(--rot));
  transition: transform 300ms var(--ease-out);
}
.print:nth-child(2) { left: auto; right: 5%; bottom: 0.75rem; --rot: 5deg; }
.print:only-child { left: 50%; --x: -50%; --rot: 3deg; }
.print__img { display: block; width: auto; max-width: none; height: var(--print-h, 9rem); background: var(--paper-sunk); }
.print--tall .print__img { height: var(--print-h-tall, 13.5rem); }

.envelope {
  position: relative; z-index: 1; display: block;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-sm);
  outline: 1px solid var(--line); outline-offset: -0.6rem;
}
.envelope__band {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-1) var(--s-4);
  margin: 0; padding: 0.85rem clamp(1.25rem, 0.8rem + 1.2vw, 1.75rem);
  background: var(--mustard); color: var(--ink); border-radius: 3px 3px 0 0;
  font: 800 clamp(1.3rem, 1rem + 0.9vw, 1.65rem) / 1.05 var(--font-display); letter-spacing: -0.03em;
}

/* The overview: one envelope per kind. Pointing at one slides its prints up out of it. */
.zakjes { --prints-h: 18rem; --print-h: 10.5rem; --print-h-tall: 17rem; --tuck: 3.5rem; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.zakjes__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3) var(--s-8); }
.zakjes__title { font-size: var(--text-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.zakjes .zakjes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-12) clamp(1.5rem, 0.5rem + 2.5vw, 2.5rem); margin-top: var(--s-12); }
.zakje__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.zakje__link:focus-visible { outline: none; }
.zakje__link:focus-visible .envelope { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--rust-text); }
.zakje__env { flex: 1; display: flex; flex-direction: column; gap: var(--s-3); padding-bottom: var(--s-8); }
.zakje__line, .zakje__more { margin-inline: clamp(1.25rem, 0.8rem + 1.2vw, 1.75rem); }
.zakje__line { margin-top: var(--s-2); color: var(--ink-2); }
.zakje__more {
  justify-self: start; align-self: flex-start; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  transition: text-decoration-color var(--t-fast) ease;
}
.zakje__more span { display: inline-block; transition: transform var(--t-fast) var(--ease-out); }
.zakje__link:hover .zakje__more, .zakje__link:focus-visible .zakje__more { text-decoration-color: var(--rust); }
.zakje__link:hover .print, .zakje__link:focus-visible .print { --lift: -1.75rem; }
.zakje__link:hover .print:nth-child(1):not(:only-child), .zakje__link:focus-visible .print:nth-child(1):not(:only-child) { --rot: -6deg; }
.zakje__link:hover .print:nth-child(2), .zakje__link:focus-visible .print:nth-child(2) { --lift: -2.25rem; --rot: 7deg; }
@media (forced-colors: active) {
  .zakje__link:focus-visible { outline: 2px solid CanvasText; outline-offset: 2px; }
}

/* A kind page: the H1 beside the order envelope, its prints above it. */
.soort {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40rem); align-items: start;
  gap: var(--s-12) clamp(2.5rem, 1rem + 5vw, 6rem);
}
.soort__intro { display: grid; justify-items: start; gap: var(--s-6); padding-top: clamp(0rem, -2rem + 6vw, 4rem); }
.soort__back { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.soort__back:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.soort__title { margin-top: calc(-1 * var(--s-2)); font-size: clamp(2.25rem, 1rem + 3.2vw, 4.25rem); line-height: 0.94; letter-spacing: -0.04em; overflow-wrap: anywhere; max-width: 100%; }
.soort__order { --prints-h: 20rem; --print-h: 12.5rem; --print-h-tall: 19rem; --tuck: 4rem; }
.order__sub { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; }
.order .order__rows { margin: 0; padding: var(--s-3) clamp(1.25rem, 0.8rem + 1.5vw, 2.1rem) 0; }
.order__row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: baseline; gap: var(--s-1) var(--s-4); padding-block: 0.75rem; border-bottom: 1px dotted var(--line-strong); }
.order__row:first-child { align-items: center; }
.order__row dt { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.order__row dd { margin: 0; font-weight: 600; }
.order .ticks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.ticks > li { white-space: nowrap; }
.tick { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink-2); font-weight: 400; text-decoration: none; }
.tick__box { position: relative; flex: none; width: 1.2rem; height: 1.2rem; border: 1.5px solid var(--line-strong); border-radius: 3px; background: var(--paper); transition: border-color var(--t-fast) ease; }
a.tick { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: color var(--t-fast) ease, text-decoration-color var(--t-fast) ease; }
a.tick:hover { color: var(--ink); text-decoration-color: var(--ink); }
a.tick:hover .tick__box { border-color: var(--ink); }
.tick.is-on { color: var(--ink); font-weight: 600; }
.tick__mark { left: -0.05rem; top: -0.8rem; width: 1.75rem; height: 1.75rem; stroke-width: 3px; }
.tick__mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.order__acts { padding: var(--s-6) clamp(1.25rem, 0.8rem + 1.5vw, 2.1rem) clamp(1.5rem, 1rem + 1vw, 2rem); }

.foto-acts { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.foto-acts.order__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foto-acts .btn { white-space: normal; text-align: center; line-height: 1.2; }

/* Every photo of the kind, large and at its own ratio, in justified rows. */
.series { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.series__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3) var(--s-8); margin-bottom: var(--s-8); }
.series__title { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.035em; }
.series .series__grid {
  --row: clamp(10rem, 4rem + 18vw, 24rem); --row-max: 34rem;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-8) var(--s-6);
}
.series__grid::after { content: ""; flex-grow: 999999; }
/* A few photos fill the row, up to a larger maximum. */
.series .series__grid.is-few { --row-max: min(46rem, 82svh); }
.series__grid.is-few::after { display: none; }
/* One or two photos: the heading sits beside them instead of above a half-empty band. */
@media (min-width: 60rem) {
  .series--few .wrap { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); align-items: start; gap: var(--s-8) clamp(2rem, 1rem + 4vw, 5rem); }
  .series--few .series__head { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
}
.shot { min-width: 0; flex: calc(var(--ratio) * 100) 1 calc(var(--ratio) * var(--row)); max-width: calc(var(--ratio) * var(--row-max)); }
.shot__link { display: grid; gap: var(--s-2); color: inherit; text-decoration: none; }
.shot__link:focus-visible { outline: none; }
.shot__link:focus-visible .shot__media { outline: 2px solid var(--rust-text); outline-offset: 3px; }
.shot__media { display: block; border-radius: var(--r-xs); background: var(--line); }
.shot__img { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio); object-fit: cover; border-radius: var(--r-xs); }
.shot__name { font-weight: 600; font-size: 0.9375rem; }
.shot__link:hover .shot__name, .shot__link:focus-visible .shot__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.soort__body { padding-block: var(--section) 0; }

@media (prefers-reduced-motion: no-preference) {
  .foto-intro__title, .soort__title { animation: hb-rise 900ms var(--ease-out) both; }
  .tick__mark path { stroke-dashoffset: 1; animation: hb-draw 450ms var(--ease-out) 700ms forwards; }
  .zakje__link:hover .zakje__more span, .zakje__link:focus-visible .zakje__more span { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .print { transition: none; }
}
@media (max-width: 60rem) {
  .foto-intro, .soort { grid-template-columns: minmax(0, 1fr); }
  .zakjes .zakjes__list { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
  .soort__order { max-width: 40rem; }
}
@media (max-width: 30rem) {
  .soort__order { --prints-h: 14rem; --print-h: 8.5rem; --print-h-tall: 13rem; --tuck: 3rem; }
  .order__row { grid-template-columns: minmax(0, 1fr); }
  .foto-acts, .foto-acts.order__acts { display: grid; grid-template-columns: minmax(0, 1fr); }
  .series .series__grid { gap: var(--s-6) var(--s-4); }
  .series .shot { flex: 1 1 100%; max-width: none; } /* one photo per row on phones */
}

/* ---------- Over Henk: the album (surface brief: template-over) ---------- */
/* The portrait is the sleeve with "Henk" up its edge; the record slides out of it. Side A is the story,
   side B the cv as one line from the first job to now, with the full list under it (DESIGN.md D55–D57). */
.album {
  --sleeve: min(41rem, 64%);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem); align-items: start;
  gap: var(--s-8) clamp(1.5rem, 0.5rem + 2.5vw, 3rem);
  padding-block: clamp(1.5rem, 0.5rem + 2vw, 2.5rem) 0;
}
.album__disc, .album__sleeve { grid-column: 1; grid-row: 1; aspect-ratio: 1; }
.album__sleeve {
  position: relative; z-index: 1; width: var(--sleeve); overflow: hidden; container-type: inline-size;
  background: #23272a; border-radius: var(--r-xs); box-shadow: 1rem 0 2rem -1.25rem rgb(0 0 0 / 0.45);
}
.album__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
/* The name runs up the dark wall at the left edge, as large as the sleeve allows. */
.album__name {
  position: absolute; left: 1.5cqw; bottom: 4cqw; margin: 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: var(--paper); font-size: 38cqw; line-height: 0.78; letter-spacing: -0.055em; white-space: nowrap;
  /* The tight line box holds every glyph (cap height plus a 2% descent); only the font's empty content
     area reaches past it, so clip that and the name keeps its own width. */
  overflow: hidden;
}
.album__cat {
  position: absolute; left: 34cqw; right: 5cqw; bottom: 4.5cqw; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  color: rgb(246 244 239 / 0.9); font: 600 max(0.66rem, 1.85cqw) / 1.3 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase;
}
.album__disc {
  position: relative; align-self: center; width: calc(var(--sleeve) * 0.94); margin-left: calc(var(--sleeve) * 0.52);
  border-radius: 50%; container-type: inline-size;
  background: repeating-radial-gradient(circle at 50% 50%, var(--ink) 0 2px, #2a2723 2px 4px);
}
.album__label {
  position: absolute; inset: 31cqw; display: grid; place-content: center end; gap: 0.6cqw; padding-right: 4.5cqw;
  border-radius: 50%; background: var(--rust); color: var(--paper); text-align: right;
}
.album__label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.4cqw; height: 2.4cqw; margin: -1.2cqw 0 0 -1.2cqw; border-radius: 50%; background: var(--paper); }
.album__label span { font: 600 max(0.55rem, 1.8cqw) / 1.2 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; }
.album__label b { font: 800 4cqw / 1 var(--font-display); letter-spacing: -0.02em; }

.album__side { grid-column: 2; padding-top: var(--s-2); }
.album__hi { font: 800 clamp(1.6rem, 1.2rem + 1vw, 2rem) / 1 var(--font-display); letter-spacing: -0.03em; }
.album__lead { margin-top: var(--s-3); font-size: 1.125rem; line-height: 1.5; }
.album__acts { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.album__acts .btn { white-space: normal; text-align: center; line-height: 1.2; }
.album .album__index ol { margin-top: var(--s-8); border-top: 2px solid var(--ink); }
.album__index li { list-style: none; border-bottom: 1px dotted var(--line-strong); }
.album .album__index ol { padding: 0; }
.album__index a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding-block: 0.55rem; font-weight: 600; text-decoration: none; }
.album__index a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.album__no { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }

/* Side A and side B */
.side { padding-top: var(--section); }
.side__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2) var(--s-8); padding-bottom: var(--s-6); border-bottom: 2px solid var(--ink); }
.side__title { font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); line-height: 0.95; letter-spacing: -0.04em; }
.side__meta { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.track {
  display: grid; grid-template-columns: 5rem minmax(0, 22rem) minmax(0, 1fr); align-items: baseline;
  gap: var(--s-2) var(--s-6); padding-block: var(--s-6); border-bottom: 1px dotted var(--line-strong);
  scroll-margin-top: var(--s-8);
}
.track__no { font: 800 1.35rem / 1 var(--font-display); color: var(--rust-text); }
.track__title { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.05; letter-spacing: -0.03em; }
.track__text { max-width: 62ch; color: var(--ink-2); font-size: 1.125rem; }
.track__text strong { color: var(--ink); font-weight: 600; }
.track__text p + p { margin-top: var(--s-3); }

/* The cv as one line: each job a stretch as long as it lasted, in lanes where jobs overlap. */
.side--b { scroll-margin-top: calc(var(--s-8) - var(--section)); } /* land on the heading, not on the gap above it */
/* On a narrow screen the line scrolls, and it opens at its end: now. */
.groove { display: flex; flex-direction: row-reverse; margin-top: var(--s-12); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.groove.is-scrolling:not(.at-start) { mask-image: linear-gradient(to right, transparent, #000 2.5rem); }
.groove__hint { display: none; margin-top: var(--s-2); font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.groove.is-scrolling + .groove__hint { display: block; }
/* 46rem: the whole line fits a tablet; the lane maths in hb_cv_groove() counts on at least this width. */
.groove__run { --lane-h: 3.6rem; position: relative; flex: none; width: 100%; min-width: 46rem; height: calc(var(--lanes) * var(--lane-h) + 3.25rem); }
.groove__job {
  position: absolute; top: calc(var(--lane) * var(--lane-h)); left: var(--left); width: calc(var(--width) - 4px); height: 3.2rem;
  display: grid; align-content: center; padding: 0.4rem 0.6rem; overflow: hidden; border-radius: 3px; white-space: nowrap;
}
.groove__job b { font: 800 0.95rem / 1.1 var(--font-display); letter-spacing: -0.01em; }
.groove__job small { font: 600 0.68rem / 1.3 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
/* A name longer than its stretch sits beside the bare block, in ink on paper (the lane is kept free for it). */
.groove__job.is-spill { grid-template-columns: 100% max-content; column-gap: 0.5rem; overflow: visible; padding-inline: 0; }
.groove__job.is-spill b, .groove__job.is-spill small { grid-column: 2; color: var(--ink); }
.groove__job.is-spill.is-flip { grid-template-columns: max-content 100%; justify-content: unsafe end; }
.groove__job.is-spill.is-flip b, .groove__job.is-spill.is-flip small { grid-column: 1; text-align: right; }
.groove__job--ink { background: var(--ink); color: var(--on-ink); }
.groove__job--rust { background: var(--rust); color: var(--paper); }
.groove__job--mustard { background: var(--mustard); color: var(--ink); }
.groove__job--sage { background: var(--sage); color: var(--ink); }
.groove__job--paper { background: var(--paper-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.groove__axis { position: absolute; left: 0; right: 0.6rem; top: calc(var(--lanes) * var(--lane-h) + 0.4rem); height: 6px; border-radius: 3px; background: var(--ink); }
.groove__head { position: absolute; right: -0.6rem; top: 50%; width: 1.2rem; height: 1.2rem; margin-top: -0.6rem; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px var(--paper); }
.groove__tick { position: absolute; left: var(--left); top: calc(var(--lanes) * var(--lane-h) + 1.4rem); color: var(--ink-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.groove__tick--now { left: auto; right: 0; }

.side .cv-list { margin-top: var(--s-12); columns: 2; column-gap: var(--s-16); }
.cv-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-4); padding-block: 0.7rem; border-bottom: 1px dotted var(--line-strong); break-inside: avoid; }
.cv-row__years { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cv-row__org { font-weight: 600; }
.cv-row__role { color: var(--ink-2); }
.cv-row__role::before { content: "· "; color: var(--ink-3); }

.credits { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-6) var(--s-12); margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.credits__list { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-12); margin: 0; }
.credits__list dt { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.credits__list dd { margin: 0.2rem 0 0; font-weight: 600; }
.credits__links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); }
.side--b { padding-bottom: var(--section); }

@media (prefers-reduced-motion: no-preference) {
  .album__disc { animation: hb-slide-out 1100ms var(--ease-out) 250ms both; }
}
@keyframes hb-slide-out { from { transform: translateX(-38%) rotate(-50deg); } to { transform: none; } }
@media (max-width: 60rem) {
  .album { --sleeve: 86%; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
  .album__disc { margin-left: calc(var(--sleeve) * 0.2); }
  .album__side { grid-column: 1; max-width: 34rem; }
  .track { grid-template-columns: 3rem minmax(0, 1fr); }
  .track__text { grid-column: 2; }
  .side .cv-list { columns: 1; }
}
@media (max-width: 30rem) {
  /* Clear of the name (its line box ends at about 31cqw); the line wraps over the dark shirt. */
  .album__cat { left: 34cqw; font-size: 0.58rem; line-height: 1.35; letter-spacing: 0.04em; }
  .album__cat span:last-child { display: none; }
  .cv-row { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .credits__list { display: grid; }
}

/* ---------- Tags ---------- */
.tag {
  justify-self: start; display: inline-flex; align-items: center;
  padding: 0.3rem 0.65rem; border-radius: var(--r-pill);
  font: 600 var(--text-meta) / 1 var(--font-text); letter-spacing: 0.02em; color: var(--ink);
}
.tag--design { background: var(--sage); }
.tag--fotografie { background: var(--mustard); }

.empty-state { color: var(--ink-2); font-size: var(--text-lead); padding-bottom: var(--section); }
.empty-state a { color: var(--rust-text); }

/* ---------- Services (the one coloured field on the home page) ---------- */
.services { background: var(--sage); }
.services__inner { padding-block: var(--section); display: grid; gap: var(--s-12); }
.services__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
.services__list a, .services__list li > div { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 2px solid var(--ink); text-decoration: none; }
.services__list h3 { font-size: var(--text-h3); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.services__list p { color: var(--ink); max-width: 30ch; }
.services__list a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
@media (max-width: 60rem) { .services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .services__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split block ---------- */
.split { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8) var(--s-16); align-items: start; }
.split__body { display: grid; gap: var(--s-6); justify-items: start; font-size: var(--text-lead); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 48rem) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Blog ---------- */
.blog-teaser { padding-bottom: var(--section); }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--s-12) var(--s-8); }
.post-card { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3);
}
.post-card__title { font-size: var(--text-h3); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.post-card__excerpt { color: var(--ink-2); }

/* ---------- Blog: the logbook (surface brief: home) ---------- */
/* Every article a dated entry on one ink line, newest at the top; "Gezien bij anderen" in the margin
   beside it (DESIGN.md D59–D61). The article keeps its date in the margin and the line beside the column. */
.logboek {
  --date: 6.5rem; --gap: 2.75rem;
  display: grid; grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr) minmax(15rem, 19rem); align-items: start;
  gap: var(--s-12) clamp(2rem, 0.5rem + 3vw, 3.5rem);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--section);
}
.logboek--solo { grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr); }
.logboek__title { font-size: clamp(3.5rem, 2rem + 4.5vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.logboek__lead { margin-top: var(--s-6); max-width: 34ch; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.logboek .kinds ul { margin-top: var(--s-8); padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.kinds li { border-bottom: 1px dotted var(--line-strong); }
.kinds a { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 0.6rem; text-decoration: none; white-space: nowrap; }
.kinds b { font-weight: 600; }
.kinds a span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kinds a:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.kinds a[aria-current="page"] b { box-shadow: inset 0 -2px var(--rust); }

.log { position: relative; padding: 0; list-style: none; }
.log::before {
  content: ""; position: absolute; left: calc(var(--date) + var(--gap) / 2 - 1.5px); top: 0.6rem; bottom: 0;
  width: 3px; border-radius: 2px; background: var(--ink); transform-origin: top;
}
/* The line ends in a hollow ring under the last entry. */
.log::after { content: ""; position: absolute; left: calc(var(--date) + var(--gap) / 2 - 7px); bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink); }
.entry { position: relative; display: grid; grid-template-columns: var(--date) minmax(0, 1fr); column-gap: var(--gap); padding-bottom: var(--s-12); }
.entry::before {
  content: ""; position: absolute; z-index: 1; left: calc(var(--date) + var(--gap) / 2 - 7px); top: 0.45rem;
  width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink);
}
.entry.is-new::before { left: calc(var(--date) + var(--gap) / 2 - 10px); top: 0.25rem; width: 20px; height: 20px; background: var(--rust); box-shadow: 0 0 0 4px var(--paper); }
.entry__date, .artikel__date { text-align: right; line-height: 1; }
.entry__date b, .artikel__date b { display: block; font: 800 1.75rem / 1 var(--font-display); letter-spacing: -0.03em; white-space: nowrap; }
.entry__date span, .artikel__date span { display: block; margin-top: 0.45rem; font: 600 var(--text-meta) / 1.2 var(--font-text); letter-spacing: 0.08em; color: var(--ink-3); }
.entry__meta {
  margin-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3);
  font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.kind-tag { padding: 0.2rem 0.5rem; border-radius: var(--r-xs); white-space: nowrap; color: var(--ink); text-decoration: none; }
.kind-tag:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.kind-tag--rust { background: var(--rust-text); color: var(--paper); } /* --rust-text: paper on it reaches 4.5:1 */
.kind-tag--mustard { background: var(--mustard); }
.kind-tag--sage { background: var(--sage); }
.kind-tag--paper { background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.entry__title { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.entry__title a, .verder__way { text-decoration: none; }
.entry__title a:hover, .verder__way:hover .verder__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.entry.is-new .entry__title { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.02; letter-spacing: -0.035em; }
.entry__intro { margin-top: var(--s-3); max-width: 52ch; color: var(--ink-2); }
.entry.is-new .entry__intro { font-size: var(--text-lead); line-height: 1.5; }
.entry__photo { grid-column: 2; grid-row: 2; width: min(100%, 15rem); margin-top: var(--s-4); }
.entry__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-xs); }
.entry.is-new .entry__photo { grid-column: 2; grid-row: 2; width: 100%; max-width: 40rem; margin-top: var(--s-6); }
.logboek__main .pagination { margin-left: calc(var(--date) + var(--gap)); }

/* The margin: other people's work, as clippings with Henk's reaction. Text only (D61). */
.gezien__title { padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.03em; }
.gezien__sub { margin-top: var(--s-2); font-size: var(--text-small); color: var(--ink-3); }
.gezien__clips { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.gezien__all { margin-top: var(--s-6); }
.clip {
  position: relative; padding: var(--s-4) var(--s-4) 1.1rem; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--paper-raised); box-shadow: 0 6px 14px -10px rgb(28 26 23 / 0.35); transform: rotate(-0.6deg);
}
.clip:nth-child(2n) { transform: rotate(0.5deg); }
.clip:hover { border-color: var(--line-strong); }
.clip:has(a:focus-visible) { outline: 2px solid var(--rust-text); outline-offset: 3px; }
.clip__src { margin-top: var(--s-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-3); font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.clip__title { margin-top: var(--s-2); font: 600 1.05rem / 1.3 var(--font-text); letter-spacing: 0; overflow-wrap: anywhere; }
.clip__title a { text-decoration: none; }
.clip__title a::after { content: ""; position: absolute; inset: 0; }
.clip__title a:focus-visible { outline: none; }
.clip:hover .clip__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.clip__maker { margin-top: 0.15rem; font-size: var(--text-small); color: var(--ink-3); }
.clip__note { margin-top: var(--s-2); font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); }
.clip__note b { font-weight: 600; color: var(--rust-text); }

.gezien-page { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--section); }
.gezien-page__intro { display: grid; justify-items: start; gap: var(--s-6); padding-bottom: var(--s-12); }
.gezien-page__intro .logboek__lead { margin-top: 0; max-width: 46ch; }
.gezien-page__clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--s-8); align-items: start; }

/* The article: the date in the margin, the line beside the reading column down to the three ways on. */
.artikel {
  --date: 6.5rem; --gap: 2.75rem;
  display: grid; grid-template-columns: var(--date) minmax(0, 1fr); column-gap: var(--gap);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--section);
}
.artikel::before {
  content: ""; grid-column: 1; grid-row: 1 / span 4; justify-self: end; width: 3px; margin: 0.6rem calc(var(--gap) / -2 - 1.5px) 0 0;
  border-radius: 2px; background: var(--ink);
}
.artikel__head { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: subgrid; align-content: start; }
.artikel__head > * { grid-column: 2; }
.artikel__date { position: relative; grid-column: 1; grid-row: 1 / span 3; }
.artikel__date::after {
  content: ""; position: absolute; right: calc(var(--gap) / -2 - 10px); top: 0.25rem;
  width: 20px; height: 20px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px var(--paper);
}
.artikel__title { max-width: 20ch; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.artikel__lead { margin-top: var(--s-6); max-width: 52ch; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.artikel__photo { grid-column: 2; grid-row: 2; margin-top: var(--s-12); }
.artikel__photo img { width: 100%; max-height: 75svh; object-fit: cover; border-radius: var(--r-xs); }
.artikel__body { grid-column: 2; grid-row: 3; margin-top: var(--s-12); padding-bottom: var(--s-16); }
.verder { position: relative; grid-column: 2; grid-row: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
.verder__way { display: grid; align-content: start; gap: var(--s-2); padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.verder__title { font: 800 clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem) / 1.12 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.verder__text { color: var(--ink-2); }
.verder::before { content: ""; position: absolute; left: calc(var(--gap) / -2 - 7px); bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .log::before { animation: hb-draw-down 700ms var(--ease-out) 150ms both; }
}
@keyframes hb-draw-down { from { transform: scaleY(0); } to { transform: none; } }

@media (max-width: 75rem) {
  .logboek, .logboek--solo { grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); }
  .logboek--solo { grid-template-columns: minmax(0, 1fr); }
  .logboek__intro { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: var(--s-4) var(--s-12); }
  .logboek__lead { margin-top: 0; padding-bottom: 0.4em; }
  .logboek .kinds { grid-column: 1 / -1; }
  .logboek .kinds ul { display: flex; gap: 0 var(--s-8); margin-top: var(--s-4); padding-top: var(--s-2); overflow-x: auto; scrollbar-width: thin; }
  .kinds li { border-bottom: 0; }
  .kinds a { gap: var(--s-2); }
}
@media (max-width: 48rem) {
  .logboek, .logboek--solo { grid-template-columns: minmax(0, 1fr); --date: 4.25rem; --gap: 1.75rem; }
  .logboek__intro { grid-template-columns: minmax(0, 1fr); }
  /* The soort row bleeds to the screen edge and fades there, so it reads as a row that scrolls. */
  .logboek .kinds { margin-top: var(--s-4); border-top: 2px solid var(--ink); }
  .logboek .kinds ul { margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-top: 0; scroll-padding-inline: var(--gutter); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); }
  .logboek .kinds ul::after { content: ""; flex: 0 0 1.5rem; }
  .entry__date b { font-size: 1.2rem; }
  .gezien { padding-top: var(--s-8); }
  /* A phone reads the article in one column: the date joins the meta row and the line steps aside. */
  .artikel { grid-template-columns: minmax(0, 1fr); }
  .artikel::before, .artikel__date::after, .verder::before { display: none; }
  .artikel__head > *, .artikel__date, .artikel__photo, .artikel__body, .verder { grid-column: 1; grid-row: auto; }
  .artikel__date { display: flex; gap: var(--s-2); align-items: baseline; margin-bottom: var(--s-3); text-align: left; }
  .artikel__date::before { content: ""; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--rust); }
  .artikel__date b { display: inline; font-size: 1.2rem; }
  .artikel__date span { display: inline; margin: 0; }
  .verder { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Project page: the magazine feature (surface brief: single-project) ---------- */
.case-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); align-items: end;
  gap: var(--s-8) clamp(2rem, 1rem + 4vw, 4.5rem);
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) clamp(1.75rem, 1rem + 2vw, 2.75rem);
}
.case-top__title { font-size: clamp(2.75rem, 1.25rem + 5vw, 6rem); line-height: 0.92; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.case-top__line { margin-top: var(--s-4); max-width: 40ch; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-top: 1px solid var(--line); }
.case-facts div { display: grid; gap: var(--s-1); align-content: start; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.case-facts dt { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.case-facts dd { margin: 0; font-weight: 600; }
.case-facts a { text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.case-facts a:hover { text-decoration-color: var(--rust); }

/* The cover: full-bleed sunk band, the image at its own ratio, as large as fits. */
.case-cover { margin: 0; padding: clamp(1.5rem, 0.75rem + 2vw, 3rem) var(--gutter); background: var(--paper-sunk); }
.case-cover__img { width: auto; height: auto; max-width: min(100%, var(--content)); max-height: min(max(calc(100svh - 20rem), 24rem), 56rem); margin-inline: auto; border-radius: var(--r-xs); }

/* Henk's own content: a heading sits beside its text; images and loupes take the full width. */
.case-body {
  display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: start;
  gap: var(--s-4) clamp(2rem, 1rem + 4vw, 5rem);
  padding-block: var(--section);
}
.case-body > * { grid-column: 2; max-width: var(--measure); margin: 0; }
.case-body > h2 { grid-column: 1; font-size: var(--text-h2); line-height: 1.02; letter-spacing: -0.035em; }
.case-body > h2:not(:first-child), .case-body > h2:not(:first-child) + * { margin-top: var(--s-16); }
.case-body > h3 { font-size: var(--text-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-top: var(--s-6); }
.case-body > p, .case-body > ul, .case-body > ol { font-size: var(--text-lead); line-height: 1.6; color: var(--ink-2); }
.case-body > ul, .case-body > ol { padding-left: 1.2em; }
.case-body a { color: var(--rust-text); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.case-body > blockquote { padding-left: var(--s-6); border-left: 2px solid var(--ink); font-size: var(--text-lead); color: var(--ink-2); }
.case-body > .wp-block-image, .case-body > .lupe, .case-body > .alignwide, .case-body > .alignfull { grid-column: 1 / -1; max-width: none; margin-block: var(--s-12); }
/* A single large image sits on its own full-bleed sunk band, like the cover and the loupe. */
.case-body > .wp-block-image:not(.alignfull) {
  margin-inline: calc(50% - 50vw); background: var(--paper-sunk);
  padding: clamp(1.5rem, 0.75rem + 2vw, 2.75rem) max(var(--gutter), calc((100vw - var(--content)) / 2));
}
.case-body > .wp-block-image img { width: auto; height: auto; max-width: 100%; max-height: min(calc(100svh - var(--header-h) - 8rem), 56rem); margin-inline: auto; border-radius: var(--r-xs); }
.case-body > .wp-block-image figcaption, .case-body > .wp-block-image .wp-element-caption { margin: var(--s-4) 0 0; color: var(--ink-2); text-align: left; }
.case-body > .alignfull { margin-inline: calc(50% - 50vw); }
.case-body > .alignfull img { max-width: 100%; }
/* A chapter that opens with images keeps its heading close to them. */
.case-body > h2 + .lupe, .case-body > h2 + .wp-block-image { margin-top: var(--s-6); }

/* The loupe: a contact sheet with one large stage; the current thumbnail carries the pencil. */
.lupe { margin-inline: calc(50% - 50vw); background: var(--paper-sunk); }
.lupe__inner { max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(1.5rem, 0.75rem + 2vw, 2.75rem) var(--gutter); }
.lupe { --stage: clamp(16rem, 8rem + 34vw, min(calc(100svh - var(--header-h) - 18rem), 46rem)); }
.lupe__stage { position: relative; display: flex; align-items: center; justify-content: center; height: var(--stage); }
.lupe__img { width: auto; height: auto; max-width: 100%; max-height: var(--stage); object-fit: contain; border-radius: var(--r-xs); transition: opacity var(--t-med) ease; }
/* The incoming image fades in over the outgoing one: a true cross-fade, never an empty stage. */
.lupe__img--next { position: absolute; inset: 0; margin: auto; opacity: 0; }
.lupe__img--next.is-in { opacity: 1; }
.lupe__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-4); margin-top: var(--s-4); min-height: 1.6em; }
.lupe__title { font: 700 var(--text-h3) / 1.15 var(--font-display); letter-spacing: -0.02em; }
.lupe__count { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lupe__text { color: var(--ink-2); }
.lupe .lupe__strip { /* .lupe raises it above the base ul[class] reset */
  display: flex; gap: var(--s-4); margin-top: var(--s-4);
  padding: var(--s-4) var(--s-4) var(--s-3); margin-inline: calc(-1 * var(--s-4));
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.lupe__thumb { position: relative; flex: none; display: block; color: inherit; }
.lupe__thumb:focus-visible { outline: none; }
.lupe__thumb-img { display: block; width: auto; height: clamp(4.5rem, 2.5rem + 4vw, 7rem); aspect-ratio: var(--ratio); object-fit: cover; border-radius: 1px; opacity: 0.72; transition: opacity var(--t-fast) ease; }
.lupe__thumb:hover .lupe__thumb-img, .lupe__thumb:focus-visible .lupe__thumb-img, .lupe__thumb[aria-current] .lupe__thumb-img { opacity: 1; }
.lupe__ring { inset: -0.45rem -0.5rem; width: calc(100% + 1rem); height: calc(100% + 0.9rem); }
.lupe__thumb:hover .lupe__ring, .lupe__thumb:focus-visible .lupe__ring, .lupe__thumb[aria-current] .lupe__ring { --sweep: 360deg; }
.lupe__thumb[aria-current]:focus-visible .lupe__thumb-img { outline: 2px solid var(--rust-text); outline-offset: 3px; }

/* What comes next: the next project in Henk's order, then all work. Meta follows the title (D36). */
.case-next { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6) var(--s-12); padding-block: 0 var(--section); }
.case-next::before { content: ""; flex-basis: 100%; border-top: 2px solid var(--ink); }
.case-next__link { display: flex; align-items: flex-end; gap: var(--s-6); color: inherit; text-decoration: none; flex: 1 1 32rem; }
.case-next__media img { display: block; width: auto; height: clamp(5rem, 3rem + 5vw, 8rem); border-radius: var(--r-xs); }
.case-next__text { display: grid; gap: var(--s-2); }
.case-next__title { font: 800 var(--text-h2) / 1.02 var(--font-display); letter-spacing: -0.035em; }
.case-next__title span { display: inline-block; transition: transform var(--t-med) var(--ease-out); }
.case-next__link:hover .case-next__title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; text-decoration-color: var(--rust); }
.case-next__link:hover .case-next__title span { transform: translateX(0.12em); }
.case-next__meta { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .case-top__title { animation: hb-rise 900ms var(--ease-out) both; }
}
@media (max-width: 56rem) {
  .case-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .case-body > *, .case-body > h2 { grid-column: 1; }
  .case-body > h2:not(:first-child) + * { margin-top: 0; }
}

/* ---------- Prose (pages, articles, case stories) ---------- */
.prose { padding-bottom: var(--section); }
.prose > * { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose > .alignwide { max-width: none; }
.prose > .alignfull { max-width: none; margin-inline: calc(-1 * var(--gutter)); }
.prose h2 { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.035em; margin-top: 2em; }
.prose h3 { font-size: var(--text-h3); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { color: var(--rust-text); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; } /* ul[class] resets it; block lists carry a class */
.prose li::marker { color: var(--rust-text); }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin-inline: 0; padding-left: var(--s-6); border-left: 2px solid var(--rust); font-size: var(--text-lead); color: var(--ink-2); }
.prose img { border-radius: var(--r-xs); }
.prose figcaption { margin-top: var(--s-2); font-size: var(--text-small); color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.prose th { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Privacy and Colofon: receipts (surface brief: template-privacy) ---------- */
/* Privacy as an "Ontvangstbewijs" of what the site keeps, the colophon as the receipt of who made it, and
   the cookie question as a slip that asks before anything is counted (DESIGN.md D63). */
.bon-page {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem); grid-template-areas: "intro bon" "toc bon" "body .";
  column-gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--section);
}
.bon-page--short { grid-template-areas: "intro bon" "body bon"; }
.bon-page__intro { grid-area: intro; }
.bon-page__title { max-width: 12ch; font-size: clamp(2.75rem, 1.6rem + 4vw, 5.25rem); line-height: 0.95; letter-spacing: -0.04em; }
.bon-page__lead { margin-top: var(--s-6); max-width: 46ch; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.bon-toc { grid-area: toc; max-width: 34rem; margin-top: var(--s-8); }
.bon-page .bon-toc ol { padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.bon-toc li { border-bottom: 1px dotted var(--line-strong); }
.bon-toc a { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 0.6rem; font-weight: 600; text-decoration: none; }
.bon-toc a:hover .bon-toc__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.bon-page__body { grid-area: body; margin-top: var(--s-16); padding-bottom: 0; }
.bon-page--short .bon-page__body { margin-top: var(--s-8); }
.bon-page__choice { margin-top: var(--s-8); }
.bon-page__updated { margin-top: var(--s-8); font-size: var(--text-small); color: var(--ink-3); }

.bon { grid-area: bon; margin-top: var(--s-2); transform: rotate(1.2deg); filter: drop-shadow(0 14px 16px rgb(28 26 23 / 0.16)); }
.bon__paper {
  --tooth: 9px;
  position: relative; padding: var(--s-8) var(--s-8) calc(var(--s-8) + var(--tooth)); background: var(--paper-raised);
  /* The toothed bottom edge of a till roll. */
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
}
.bon__title { text-align: center; font-size: 1.4rem; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; }
.bon__date { display: block; }
.bon__sub {
  margin-top: var(--s-1); padding-bottom: var(--s-4); border-bottom: 1px dashed var(--line-strong); text-align: center;
  font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.bon__rows { margin: var(--s-3) 0 0; }
.bon__row { display: flex; align-items: baseline; gap: var(--s-2); padding-block: 0.45rem; }
.bon__row dt { display: flex; flex: 1 1 0; min-width: 6.5rem; align-items: baseline; gap: var(--s-2); font-weight: 600; }
.bon__row dt::after { content: ""; flex: 1; min-width: 1.5rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(-0.25em); }
.bon__row dd { flex: 0 0 auto; max-width: 58%; margin: 0; text-align: right; color: var(--ink-2); overflow-wrap: anywhere; }
.bon__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px dashed var(--line-strong);
  font: 800 1.2rem / 1.2 var(--font-display); letter-spacing: -0.02em;
}
.bon__total b { font-size: 1.6rem; color: var(--rust-text); }
.bon__stamp {
  display: inline-block; margin-top: var(--s-6); padding: 0.4rem 0.75rem; border: 2px solid var(--rust-text); border-radius: 3px; transform: rotate(-5deg);
  font: 700 var(--text-meta) / 1.3 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-text);
}

/* The cookie question: a slip at the bottom left; both answers the same size, side by side. */
.consent {
  position: fixed; z-index: 60; left: max(var(--gutter), calc((100% - var(--content)) / 2)); bottom: var(--gutter); width: min(40rem, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title acts" "text acts"; gap: var(--s-1) var(--s-6); align-items: center;
  padding: var(--s-4) var(--s-6) var(--s-6); background: var(--paper-raised); border: 1px solid var(--line); border-top: 2px dashed var(--line-strong);
  box-shadow: 0 12px 28px -16px rgb(28 26 23 / 0.45);
}
.consent__title { grid-area: title; font: 800 1.2rem / 1.2 var(--font-display); letter-spacing: -0.02em; }
.consent__text { grid-area: text; font-size: var(--text-small); line-height: 1.45; color: var(--ink-2); }
.consent__text a { white-space: nowrap; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.consent__acts { grid-area: acts; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); align-self: end; }
.consent .btn { min-width: 8rem; }
.consent .btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); } /* the choice made earlier, shown on reopen */
.consent:focus { outline: 2px solid var(--rust-text); outline-offset: 3px; }
/* While the slip is open the end of the page stays reachable. */
body:has(.consent:not([hidden])) { padding-bottom: var(--consent-h, 11rem); }
.site-footer__cookies { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.site-footer__cookies:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: hb-slip 300ms var(--ease-out) both; }
}
@keyframes hb-slip { from { transform: translateY(1rem); opacity: 0; } }
@media (max-width: 60rem) {
  .bon-page, .bon-page--short { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "bon" "toc" "body"; }
  .bon-page--short { grid-template-areas: "intro" "bon" "body"; }
  .bon { max-width: 30rem; margin-top: var(--s-8); transform: none; }
}
@media (max-width: 40rem) {
  .consent { left: 0; bottom: 0; width: 100%; border-inline: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "text" "acts"; padding-inline: var(--gutter); }
  .consent__acts { grid-template-columns: 1fr 1fr; margin-top: var(--s-3); }
  .consent .btn { min-width: 0; }
  .bon__paper { padding-inline: var(--s-6); }
}

/* ---------- 404: the rejected sketch (surface brief: 404) ---------- */
/* On squared paper, the record from Over Henk drawn in pencil, scratched, the needle off; the heading
   sticks in the groove and the way back is a tracklist (DESIGN.md D62). */
.misser {
  --misser-size: clamp(1.85rem, 0.9rem + 2.7vw, 3.25rem);
  background-color: var(--paper);
  background-image: linear-gradient(rgb(28 26 23 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(28 26 23 / 0.05) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center -1px;
  border-bottom: 1px solid var(--line);
}
.misser__sheet {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  gap: var(--s-8) clamp(2rem, 1rem + 3vw, 4.5rem);
  padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(4.5rem, 2rem + 5vw, 7rem);
}
.misser__plaat { position: relative; max-width: 40rem; margin: 0; }
.misser__plaat svg { display: block; width: 100%; height: auto; max-width: none; overflow: visible; }
.pencil-ink { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pencil-soft { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.pencil-groove { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.pencil-ghost { fill: none; stroke: rgb(28 26 23 / 0.15); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.misser__label { fill: var(--rust-text); } /* paper text on it reaches 5.6:1 */
.misser__hole { fill: var(--paper); }
.misser__head { fill: var(--ink); }
.misser__big { font: 800 84px var(--font-display); letter-spacing: -0.04em; fill: var(--paper); text-anchor: middle; }
.misser__small { font: 600 13px var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; fill: var(--paper); text-anchor: middle; }
.misser__kras { fill: none; stroke: var(--rust); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.misser__note {
  position: absolute; white-space: nowrap; pointer-events: none;
  font: 700 clamp(1rem, 0.9rem + 0.4vw, 1.25rem) / 1.2 var(--font-display); letter-spacing: -0.01em; color: var(--rust-text);
}
.misser__note--kras { left: 3%; top: 22%; transform: rotate(-6deg); }
.misser__note--naald { left: 86%; top: 72%; transform: rotate(4deg); }
.misser__echo > span { display: block; white-space: nowrap; font: 800 var(--misser-size) / 1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }
.misser__echo > span:first-child { color: rgb(28 26 23 / 0.2); }
.misser__echo > span:last-child { color: rgb(28 26 23 / 0.45); }
/* The pencil strike on the second "zo—", then the rust correction lands on "zoek". */
.misser__struck { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 13 C30 8 60 12 98 6' fill='none' stroke='%23bf4e28' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 0 58% / 100% 0.35em no-repeat; }
.misser__title { font-size: var(--misser-size); line-height: 1; letter-spacing: -0.04em; }
.misser__fix { display: inline-block; color: var(--rust-text); }
.misser__lead { margin-top: var(--s-6); font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.misser .misser__tracks { margin-top: var(--s-8); padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.misser__tracks li { position: relative; border-bottom: 1px dotted var(--line-strong); }
.misser__tracks a { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: baseline; padding-block: 0.85rem; font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.misser__no { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.misser__arrow { color: var(--ink-3); transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) ease; }
.misser__tracks a:hover .misser__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.misser__tracks a:hover .misser__arrow { color: var(--ink); transform: translateX(3px); }
/* The small pencil ring around A1 (D53: only around something small). */
.misser__ring { position: absolute; left: -1.15rem; top: 0.15rem; width: 3.9rem; height: 2.7rem; max-width: none; overflow: visible; pointer-events: none; }
.misser__ring path { fill: none; stroke: var(--rust); stroke-width: 2.5; stroke-linecap: round; }
.misser__note--werkt { left: 9.75rem; right: auto; top: 50%; transform: translateY(-50%) rotate(-3deg); }
.misser__stamp {
  position: absolute; right: var(--gutter); bottom: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
  padding: 0.45rem 0.85rem; border: 2px solid var(--rust-text); border-radius: 3px; transform: rotate(-4deg);
  font: 700 var(--text-meta) / 1.3 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-text);
}
@media (prefers-reduced-motion: no-preference) {
  .misser__disc { transform-box: view-box; transform-origin: 290px 310px; animation: hb-needle-jolt 1100ms var(--ease-out) 150ms both; }
  .misser__echo > span { animation: hb-skip 1ms steps(1, end) both; }
  .misser__echo > span:first-child { animation-delay: 350ms; }
  .misser__echo > span:last-child { animation-delay: 650ms; }
  .misser__struck { animation: hb-strike 200ms var(--ease-out) 800ms both; }
  .misser__fix { animation: hb-correct 280ms var(--ease-out) 950ms both; }
  .misser__ring path { stroke-dasharray: 1; animation: hb-ring 450ms var(--ease-out) 1250ms both; }
}
@keyframes hb-needle-jolt { 0% { transform: rotate(-90deg); } 72% { transform: rotate(5deg); } 86% { transform: rotate(-2deg); } 100% { transform: none; } }
@keyframes hb-skip { from { opacity: 0; } }
@keyframes hb-strike { from { background-size: 0 0.35em; } }
@keyframes hb-correct { from { clip-path: inset(0 100% 0 0); } }
@keyframes hb-ring { from { stroke-dashoffset: 1; } }
@media (min-width: 60.01rem) and (max-width: 68rem) {
  .misser { --misser-size: 3.6vw; }
  .misser__note--kras { left: -4%; }
}
@media (max-width: 60rem) {
  /* Phone and tablet: the heading first, then the record, then the tracks. */
  .misser__sheet { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
  .misser__title { margin-top: calc(-1 * var(--s-6)); } /* the stutter stays tight */
  .misser__copy { display: contents; }
  .misser__echo { order: 1; } .misser__title { order: 2; }
  .misser__plaat { order: 3; width: min(78%, 26rem); justify-self: center; }
  .misser__small { display: none; }
  .misser__big { transform: translateY(12px); }
  .misser__note--kras { left: -4%; }
  .misser__lead { order: 4; margin-top: 0; } .misser__copy nav { order: 5; }
  .misser .misser__tracks { margin-top: 0; }
  .misser__stamp { order: 6; position: static; justify-self: end; }
}
@media (max-width: 30rem) {
  .misser__note--werkt { display: none; }
}

/* ---------- Binnenkort: the taped contact sheet (surface brief: binnenkort) ---------- */
/* One screen while the new site is being filled: the headline left, the contact sheet with its tape right, the sign-up under it. */
.bk {
  --bk-edge: max(var(--gutter), calc((100% - var(--content)) / 2));
  min-height: 100svh; display: flex; flex-direction: column;
  padding-inline: var(--bk-edge);
}
.bk__head { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); padding-block: var(--s-3); }
.bk__mail {
  color: var(--ink-2); font-size: 1rem; text-decoration: underline; text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px; text-underline-offset: 0.3em; overflow-wrap: anywhere;
  transition: color var(--t-fast) ease, text-decoration-color var(--t-fast) ease;
}
.bk__mail:hover { color: var(--ink); text-decoration-color: var(--rust); }
.bk__main {
  flex: 1; display: grid; grid-template-columns: minmax(0, 29rem) minmax(0, 46rem);
  justify-content: space-between; align-items: center; gap: var(--s-12) clamp(2rem, 1rem + 4vw, 6rem);
  padding-block: clamp(1.5rem, 0.5rem + 3svh, 3.5rem) clamp(2.5rem, 1rem + 4svh, 4.5rem);
}
.bk__title { font: 800 clamp(3.25rem, 1.6rem + 4.6vw, 6rem) / 0.9 var(--font-display); letter-spacing: -0.04em; text-wrap: balance; }
.bk__mark { display: block; color: var(--rust); }
.bk__lead { margin-top: var(--s-6); font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.bk__lead strong { color: var(--ink); font-weight: 600; }
.bk__sign { margin-top: var(--s-6); font-weight: 600; }
.bk__work { position: relative; display: grid; gap: clamp(2rem, 1.2rem + 2svh, 3rem); min-width: 0; }

/* The sheet: film black, mustard edge print, twelve frames. */
.bk-sheet {
  position: relative; margin: 0; padding: 2.2rem 1.9rem 3.3rem;
  background: var(--ink); color: var(--mustard); border-radius: var(--r-xs);
  box-shadow: var(--shadow-float); rotate: 0.6deg;
}
.bk-sheet__edge {
  position: absolute; inset-inline: 1.9rem; top: 0.75rem; display: flex; justify-content: space-between; gap: var(--s-4);
  font: 600 0.6875rem / 1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.bk-sheet__edge--foot { top: auto; bottom: 0.75rem; }
.bk-sheet__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 0.75rem; }
.bk-frame { position: relative; }
.bk-frame__media { position: relative; display: block; aspect-ratio: 3 / 2; background: #2a2723; }
.bk-frame__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.bk-frame__no { position: absolute; left: 0.2rem; bottom: -0.95rem; font: 600 0.625rem / 1 var(--font-text); font-variant-numeric: tabular-nums; }
.bk-frame__ring { inset: -0.6rem -0.7rem; width: calc(100% + 1.4rem); height: calc(100% + 1.2rem); }

/* Masking tape (signature interaction): a button; a click peels it off and shows the cover.
   The strip is ::before (torn short ends, slightly see-through), the folded-back underside ::after. */
.bk-tape {
  --tape: rgb(232 173 42 / 0.9); --tape-under: #b98a22;
  --torn-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 40' preserveAspectRatio='none'%3E%3Cpath d='M6 0H2l2 3-3 4 2 3-3 5 2 4-1 4 3 4-3 4 2 4-2 3 1 2h4z'/%3E%3C/svg%3E");
  --torn-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0h4L2 3l3 4-2 3 3 5-2 4 1 4-3 4 3 4-2 4 2 3-1 2H0z'/%3E%3C/svg%3E");
  position: absolute; inset: -2px -4px 0; display: grid; place-items: center; padding: 0; border: 0; background: none;
  color: var(--ink); font: 800 clamp(0.66rem, 0.42rem + 0.45vw, 0.95rem) / 1 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.4)); rotate: -2deg; transform-origin: 0 100%;
  transition: rotate var(--t-med) var(--ease-out), translate var(--t-med) var(--ease-out), filter var(--t-med) ease;
}
.bk-tape::before, .bk-tape::after { content: ""; position: absolute; inset: 0; }
.bk-tape::before {
  background: var(--tape);
  -webkit-mask: var(--torn-l) left / 6px 40px repeat-y, var(--torn-r) right / 6px 40px repeat-y, linear-gradient(#000 0 0) center / calc(100% - 11px) 100% no-repeat;
  mask: var(--torn-l) left / 6px 40px repeat-y, var(--torn-r) right / 6px 40px repeat-y, linear-gradient(#000 0 0) center / calc(100% - 11px) 100% no-repeat;
}
.bk-tape::after { background: var(--tape-under); clip-path: polygon(100% 100%, 100% 100%, 100% 100%); }
.bk-tape__word { position: relative; }
.bk-tape--paper { --tape: rgb(251 250 247 / 0.94); --tape-under: #d9d5ce; color: var(--ink-2); rotate: 1.5deg; }
.bk-tape--paper::before { -webkit-mask: none; mask: none; }
.bk-tape:not(:disabled) { cursor: pointer; }
.bk-tape:not(:disabled):hover { rotate: -4deg; translate: 0 -2px; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.45)); }
.bk-tape--paper:not(:disabled):hover { rotate: 3.5deg; }
.bk-tape:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
/* Two tapes already let go: a corner folds back on a diagonal and the cover shows under it. */
.bk-tape.is-loose::before { clip-path: polygon(0 0, 100% 0, 100% 40%, 58% 100%, 0 100%); }
.bk-tape.is-loose::after { clip-path: polygon(100% 40%, 58% 100%, 60% 37%); }
.bk-tape.is-loose--b::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 42% 100%, 0 40%); }
.bk-tape.is-loose--b::after { clip-path: polygon(0 40%, 42% 100%, 40% 37%); }
.bk-tape.is-loose .bk-tape__word { align-self: start; justify-self: start; margin: 16% 0 0 14%; }
.bk-tape.is-loose--b .bk-tape__word { justify-self: end; margin: 16% 14% 0 0; }
/* A peel lifts the tape from one corner, curls it over and slides it away. */
.bk-tape.is-off { pointer-events: none; animation: hb-peel 650ms var(--ease-out) forwards; }
@keyframes hb-peel {
  35% { transform: perspective(30rem) rotate3d(1, 1, 0, 42deg) translate(3%, -6%); filter: drop-shadow(0 12px 14px rgb(0 0 0 / 0.45)); }
  to { transform: perspective(30rem) rotate3d(1, 1, 0, 80deg) translate(26%, -150%) rotate(-18deg); opacity: 0; }
}

/* Pencil notes. */
.bk-note { font: 800 1.125rem / 1.15 var(--font-display); letter-spacing: -0.01em; color: var(--rust-text); rotate: -4deg; }
.bk-note--open { position: absolute; left: 0.4rem; bottom: calc(100% + 0.9rem); display: flex; align-items: flex-end; gap: 0.2rem; white-space: nowrap; }
.bk-note__arrow { position: relative; width: 1.1rem; height: 1.5rem; margin-bottom: -0.85rem; stroke-width: 3px; }
.bk-note--stiekem { font-size: 1rem; rotate: -1.5deg; }

/* The sign-up: a margin note under the sheet. */
.seintje { display: grid; gap: var(--s-3); scroll-margin-top: var(--s-8); }
.seintje:focus { outline: none; }
.seintje__label { font: 800 var(--text-h3) / 1.2 var(--font-display); letter-spacing: -0.015em; }
.seintje__row { display: flex; gap: var(--s-3); }
.seintje__input {
  flex: 1; min-width: 0; height: 3.25rem; padding: 0 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper-raised);
  font: 400 1.0625rem / 1 var(--font-text); color: var(--ink); caret-color: var(--rust);
  transition: border-color var(--t-fast) ease;
}
.seintje__input::placeholder { color: var(--ink-3); opacity: 1; }
.seintje__input:hover { border-color: var(--ink-3); }
.seintje__input:focus-visible { border-color: var(--ink); }
.seintje__input[aria-invalid="true"] { border-color: var(--rust-text); }
.seintje__send { min-height: 3.25rem; white-space: nowrap; }
.seintje__send span { display: inline-block; transition: transform var(--t-fast) var(--ease-out); }
.seintje__send:hover span { transform: translateX(3px); }
.seintje__error { font-size: 1rem; }
.seintje__done { font: 800 var(--text-h3) / 1.25 var(--font-display); letter-spacing: -0.015em; }
.seintje__promise { font-size: var(--text-small); color: var(--ink-3); }
.seintje__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* One authored entrance: the headline rises, the two loose tapes let go, the pencil rings the open frame. */
@media (prefers-reduced-motion: no-preference) {
  .bk__title { animation: hb-rise 900ms var(--ease-out) both; }
  .bk-tape.is-loose::before { animation: hb-fold 700ms var(--ease-out) 700ms backwards; }
  .bk-tape.is-loose::after { animation: hb-flap 700ms var(--ease-out) 700ms backwards; }
  .bk-tape.is-loose--b::before { animation-name: hb-fold-b; }
  .bk-tape.is-loose--b::after { animation-name: hb-flap-b; }
  .bk-frame.is-open .pencil--ring { animation: hb-sweep 700ms var(--ease-out) 1300ms forwards; }
  .bk-note--open { animation: hb-note 400ms var(--ease-out) 1800ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-frame.is-open .pencil--ring { --sweep: 360deg; }
}
@keyframes hb-fold { from { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%); } }
@keyframes hb-fold-b { from { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } }
@keyframes hb-flap { from { clip-path: polygon(100% 100%, 100% 100%, 100% 100%); } }
@keyframes hb-flap-b { from { clip-path: polygon(0 100%, 0 100%, 0 100%); } }

@media (max-width: 64rem) {
  .bk__main { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .bk__work { max-width: 46rem; }
  .bk-sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .bk__head { flex-wrap: wrap; row-gap: var(--s-1); }
  .bk-sheet { padding: 2rem 1rem 3.2rem; }
  .bk-sheet__edge { inset-inline: 1rem; letter-spacing: 0.1em; }
  .bk-sheet__edge span:nth-child(3) { display: none; }
  .seintje__row { flex-direction: column; }
  .seintje__input { flex: none; }
  .seintje__send { justify-content: center; }
}

/* ---------- CTA band (D13) ---------- */
.cta-band { background: var(--ink); color: var(--on-ink); }
.cta-band__inner { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-8) var(--s-16); }
.cta-band__title { color: var(--on-ink); font-size: var(--text-display); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; }
.cta-band__mark { background: var(--mustard); color: var(--ink); padding: 0 0.12em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cta-band__text { margin-top: var(--s-4); color: var(--on-ink-2); max-width: 44ch; }
.cta-band .btn--inverse:focus-visible, .cta-band a:focus-visible { outline-color: var(--mustard); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-16) max(var(--s-8), env(safe-area-inset-bottom, 0px)); }
.site-footer__cta {
  display: inline-block; text-decoration: none;
  font: 800 var(--text-display) / 1 var(--font-display); letter-spacing: -0.04em;
}
.site-footer__cta span { display: inline-block; color: var(--rust); transition: transform var(--t-med) var(--ease-out); }
.site-footer__cta:hover span { transform: translateX(0.12em); }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8); margin-top: var(--s-16); }
.site-footer__title { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3); }
.site-footer__grid ul { display: grid; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.site-footer__grid { margin-top: 0; }
.site-footer__cta + .site-footer__grid { margin-top: var(--s-16); }
.site-footer__grid a { text-decoration: none; }
.site-footer__grid a:hover { text-decoration: underline; text-decoration-color: var(--rust); }
.site-footer__base {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-8);
  margin-top: var(--s-16); padding-top: var(--s-6); border-top: 1px solid var(--line);
  font-size: var(--text-small); color: var(--ink-3);
}
.site-footer__legal { display: flex; gap: var(--s-6); margin-right: auto; }
.site-footer__base p { margin-right: auto; }
.site-footer__legal a { color: var(--ink-2); }
@media (max-width: 48rem) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pagination ---------- */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-12); }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ---------- Extraatjes (D67–D69) ---------- */
/* Nu op de plaat: a small record in the header; pointing or tapping opens the sleeve with the track. */
.plaat { position: relative; flex: none; }
.plaat__knop {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 2.75rem; padding: 0 var(--s-3) 0 0.45rem;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent;
  font: 600 0.9rem / 1 var(--font-text); color: var(--ink); cursor: pointer;
  transition: border-color var(--t-fast) ease;
}
.plaat__knop:hover, .plaat.is-open .plaat__knop { border-color: var(--ink); }
.plaat__mini, .plaat__disc {
  position: relative; display: block; border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--ink) 0 1px, #2a2723 1px 2.2px);
}
.plaat__mini { width: 1.6rem; height: 1.6rem; }
.plaat__mini::after, .plaat__disc::after { content: ""; position: absolute; inset: 35%; border-radius: 50%; background: var(--rust); }
.plaat__disc::after { box-shadow: inset 0 0 0 0.2rem var(--paper); }
.plaat.is-playing .plaat__mini, .plaat.is-playing .plaat__disc { animation: hb-spin 1.8s linear infinite; }
@keyframes hb-spin { to { transform: rotate(360deg); } }

.plaat__kaart {
  position: absolute; top: calc(100% + 0.6rem); right: 0; width: 21rem;
  display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(-0.25rem);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.plaat.is-open .plaat__kaart { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.plaat__pak { position: relative; flex: none; width: 6.4rem; height: 4.6rem; }
.plaat__disc { position: absolute; top: 0.2rem; left: 0.9rem; width: 4.2rem; height: 4.2rem; transition: left 500ms var(--ease-out); }
.plaat.is-open .plaat__disc { left: 2rem; }
.plaat__hoes {
  position: absolute; inset: 0 auto 0 0; width: 4.6rem; height: 4.6rem; object-fit: cover;
  border-radius: var(--r-xs); background: var(--paper-sunk); box-shadow: 0 0 0 1px rgb(28 26 23 / 0.08);
}
.plaat__tekst { min-width: 0; }
.plaat__label { display: flex; align-items: center; gap: 0.4rem; font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.plaat__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.7rem; }
.plaat__eq i { width: 3px; height: 30%; background: var(--ink-3); }
.plaat.is-playing .plaat__eq i { background: var(--rust); animation: hb-eq 900ms ease-in-out infinite alternate; }
.plaat.is-playing .plaat__eq i:nth-child(2) { animation-delay: -300ms; }
.plaat.is-playing .plaat__eq i:nth-child(3) { animation-delay: -600ms; }
@keyframes hb-eq { from { height: 25%; } to { height: 100%; } }
.plaat__titel { margin-top: 0.15rem; font: 700 1.15rem / 1.15 var(--font-display); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plaat__artiest { font-size: var(--text-small); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plaat__tijd { color: var(--ink-3); }
.plaat__via { display: inline-block; margin-top: var(--s-1); font-size: 0.8rem; color: var(--ink-3); text-underline-offset: 0.2em; }
.plaat__via:hover { color: var(--ink); }
@media (max-width: 64rem) {
  .plaat__knop { width: 2.75rem; padding: 0; justify-content: center; }
  .plaat__knoplabel { display: none; }
  .plaat__kaart { position: fixed; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 0.5rem); right: var(--gutter); width: min(21rem, calc(100vw - 2 * var(--gutter))); }
}

/* Gemorst: three quick clicks on any word "koffie" spill one of ten stains (D68). */
.kw.is-wobbling { display: inline-block; animation: hb-wobble 320ms var(--ease-out); }
@keyframes hb-wobble { 25% { transform: rotate(-5deg); } 75% { transform: rotate(4deg); } }
.spills { position: absolute; top: 0; left: 0; width: 100%; z-index: 45; pointer-events: none; overflow: clip; }
.has-spill > .spills { inset: 0; height: auto !important; z-index: 3; }
.spill {
  position: absolute; pointer-events: none; color: var(--coffee); mix-blend-mode: multiply;
  opacity: 0; transform: scale(0.82) rotate(var(--r, 0deg));
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.spill.is-on { opacity: 1; transform: rotate(var(--r, 0deg)); }
.spill--dark { color: var(--coffee-on-ink); mix-blend-mode: screen; }
.spill svg { display: block; }

/* The espresso cup, shared by the counter and the pour note. */
.espresso { display: block; width: 100%; height: auto; overflow: visible; }
.espresso__lijn { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.espresso__koffie { fill: var(--ink); }
.espresso__steam path { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; opacity: 0; }
.espresso.is-hot .espresso__steam path { animation: hb-steam 2.6s ease-in-out infinite; }
.espresso.is-hot .espresso__steam path + path { animation-delay: -1.3s; }
@keyframes hb-steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 0.6; } 100% { transform: translateY(-6px); opacity: 0; } }

/* The espresso counter on Kennismaken, under the coffee tile (D69). */
.teller { margin-top: var(--s-12); }
.direct > .teller:first-child { margin-top: 0; }
.teller__title { font-size: var(--text-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.teller__body { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-6); align-items: center; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.teller__meta { font: 600 var(--text-meta) / 1.4 var(--font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.teller__meta--next { margin-top: var(--s-3); }
.teller__odo { display: flex; height: 1em; overflow: hidden; margin-top: var(--s-1); font: 800 clamp(1.75rem, 1.4rem + 1vw, 2.25rem) / 1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.odo__col { display: flex; flex-direction: column; transform: translateY(calc(var(--d, 0) * -1em)); transition: transform 900ms var(--ease-out); }
.odo__col span, .odo__sep { display: block; height: 1em; line-height: 1; }
.teller__next { font: 700 1.25rem / 1.2 var(--font-display); letter-spacing: -0.02em; }
.teller__today { margin-top: var(--s-1); font-size: var(--text-small); color: var(--ink-3); }

/* The pour note: slides in from the left with a cup that fills; above the cookie slip when that is open. */
.espresso-note {
  position: fixed; z-index: 55; left: var(--gutter); bottom: var(--gutter);
  transform: translateX(calc(-100% - var(--gutter) - 1rem));
  transition: transform 420ms var(--ease-out);
}
.espresso-note.is-in { transform: none; }
body.menu-open .espresso-note { visibility: hidden; } /* would cover the language choice and the button */
.espresso-note__link {
  display: grid; justify-items: center; gap: var(--s-1); width: 6rem; padding: var(--s-3) var(--s-3) var(--s-3);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-float);
  color: var(--ink); text-decoration: none; transition: border-color var(--t-fast) ease;
}
.espresso-note__link:hover { border-color: var(--ink); }
.espresso-note .espresso { width: 3.75rem; }
.espresso-note__nr { font: 800 1.05rem / 1 var(--font-display); letter-spacing: -0.01em; }
.espresso-note__close {
  position: absolute; top: -0.65rem; right: -0.65rem; display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper-raised); color: var(--ink-2); font: 600 1rem / 1 var(--font-text); cursor: pointer;
}
.espresso-note__close:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
