/* brand.css: GENERATED by dna.mjs tokens from brand/dna.json. Do not edit; change dna.json and regenerate.
   dna sha256 6240113d8ff79840ad5f54b7410dedecb9228525b8349ebb2bf2300a46ac0839
   body sha256 cf8c771f45c8124bdc0fdc0a90b276c298e250fc50dd4d0804438befb74d8dde
   --<name>       the client's exact colour: fills, large type (≥ 24px, or 18.66px bold), icons, bands
   --on-<name>    text on a --<name> fill, ≥ 4.5:1
   --fill-<name>  the same hue as a fill under white text, ≥ 4.5:1 (equals --<name> when it already reaches it)
   --ink-<name>   text in that colour on the page (--paper), ≥ 4.5:1, per theme
   Derived tokens change OKLCH lightness only (hue held, chroma clamped to sRGB). Set the page background to var(--paper). */
:root {
  --brand: #008ACE; /* brand · adopted · site-css · high */
  --on-brand: #001D31; /* on-brand: 4.53:1 against #008ACE (source #008ACE 1.00:1), ΔE00 37.6 from source, hue Δ1.0°, OKLCH L 0.606→0.221 */
  --fill-brand: #007DBC; /* fill-brand (under white text): 4.51:1 against #FFFFFF (source #008ACE 3.80:1), ΔE00 4.9 from source, hue Δ0.3°, OKLCH L 0.606→0.564 */
  --ground: #303030; /* ground · own · site-css · high */
  --on-ground: #FFFFFF; /* on-ground: white, 13.20:1 on #303030 */
  --fill-ground: #303030; /* fill-ground (under white text): 13.20:1 against #FFFFFF (source #303030 13.20:1), ΔE00 0.0 from source, OKLCH L 0.309→0.309 */
  --ground-2: #404040; /* support · own · site-css · medium */
  --on-ground-2: #FFFFFF; /* on-ground-2: white, 10.37:1 on #404040 */
  --fill-ground-2: #404040; /* fill-ground-2 (under white text): 10.37:1 against #FFFFFF (source #404040 10.37:1), ΔE00 0.0 from source, OKLCH L 0.371→0.371 */
  /* light theme (default): --paper is the page background the --ink-* tokens were derived against */
  --paper: #FFFFFF;
  --ink-brand: #007DBC; /* ink-brand: 4.51:1 against #FFFFFF (source #008ACE 3.80:1), ΔE00 4.9 from source, hue Δ0.3°, OKLCH L 0.606→0.564 */
  --ink-ground: #303030; /* ink-ground: 13.20:1 against #FFFFFF (source #303030 13.20:1), ΔE00 0.0 from source, OKLCH L 0.309→0.309 */
  --ink-ground-2: #404040; /* ink-ground-2: 10.37:1 against #FFFFFF (source #404040 10.37:1), ΔE00 0.0 from source, OKLCH L 0.371→0.371 */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #303030;
    --ink-brand: #2C9FE4; /* ink-brand: 4.52:1 against #303030 (source #008ACE 3.47:1), ΔE00 7.0 from source, hue Δ0.3°, OKLCH L 0.606→0.672 */
    --ink-ground: #979796; /* ink-ground: 4.51:1 against #303030 (source #303030 1.00:1), ΔE00 38.1 from source, OKLCH L 0.309→0.676 */
    --ink-ground-2: #979796; /* ink-ground-2: 4.51:1 against #303030 (source #404040 1.27:1), ΔE00 33.4 from source, OKLCH L 0.371→0.676 */
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #303030;
  --ink-brand: #2C9FE4; /* ink-brand: 4.52:1 against #303030 (source #008ACE 3.47:1), ΔE00 7.0 from source, hue Δ0.3°, OKLCH L 0.606→0.672 */
  --ink-ground: #979796; /* ink-ground: 4.51:1 against #303030 (source #303030 1.00:1), ΔE00 38.1 from source, OKLCH L 0.309→0.676 */
  --ink-ground-2: #979796; /* ink-ground-2: 4.51:1 against #303030 (source #404040 1.27:1), ΔE00 33.4 from source, OKLCH L 0.371→0.676 */
  color-scheme: dark;
}

/* ==========================================================================
   Autobedrijf van Riet. Direction A "Gevel": the fascia carries the site.
   Brand colours come from brand.css (generated from brand/dna.json): --brand, --fill-brand, --ink-brand,
   --ground, --ground-2, --paper. Everything else here is a neutral grey. No brand hex is typed in this file.
   Type: Barlow Condensed (display, capitals like the lettering on the fascia), Barlow (text).
   ========================================================================== */

/* metric-matched fallbacks so the swap to the web fonts does not move the layout */
@font-face { font-family: "Barlow Condensed Fallback"; src: local("Arial Narrow"), local("ArialNarrow"), local("Arial"); size-adjust: 88%; ascent-override: 113%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 94%; ascent-override: 107%; descent-override: 21%; line-gap-override: 0%; }

:root {
  --display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
  --sans: "Barlow", "Barlow Fallback", Arial, sans-serif;
  --text: #1c1c1c;
  --muted: #4d4d4d;
  --line: #d4d4d4;
  --field: #858585;
  --surface: #f1f1f1;
  --band: var(--ground);
  --on-band: #ffffff;
  --on-band-muted: #d2d2d2;
  --band-line: #555555;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(56px, 8vw, 104px);
  --r: 2px;
  --focus-ring: var(--fill-brand);
  --field-invalid: var(--text);
  --field-valid: var(--ink-brand);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f2f2f2; --muted: #c8c8c8; --line: #555555; --field: #9a9a9a; --surface: #3b3b3b;
    --band: #222222; --band-line: #4a4a4a; --focus-ring: var(--ink-brand);
  }
  /* the dark button would vanish on the dark page: it turns light */
  :root:not([data-theme="light"]) .btn--dark { background: #f2f2f2; color: #1c1c1c; }
  :root:not([data-theme="light"]) .btn--dark:hover { background: #ffffff; }
}
:root[data-theme="dark"] .btn--dark { background: #f2f2f2; color: #1c1c1c; }
:root[data-theme="dark"] { --text: #f2f2f2; --muted: #c8c8c8; --line: #555555; --field: #9a9a9a; --surface: #3b3b3b; --band: #222222; --band-line: #4a4a4a; --focus-ring: var(--ink-brand); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; scroll-padding-bottom: 88px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.125rem/1.55 var(--sans); font-variant-numeric: lining-nums; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, .sec__h, .board__cap, legend, .ftr__h, .call__h { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .98; hyphens: manual; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.375rem; line-height: 1.2; }
a { color: var(--ink-brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--paper); color: var(--text); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.todo { background: var(--surface); color: var(--text); outline: 2px dashed var(--field); padding: 0 .25em; }
.eyebrow { font: 600 .9375rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.eyebrow--on { color: var(--on-band-muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--r); font: 600 1.0625rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color var(--dur-feedback, 120ms) var(--ease-out, ease-out), border-color var(--dur-feedback, 120ms) var(--ease-out, ease-out), color var(--dur-feedback, 120ms) var(--ease-out, ease-out); }
.btn--brand { background: var(--fill-brand); color: #fff; }
.btn--brand:hover { background: color-mix(in oklch, var(--fill-brand) 82%, #000); }
.btn--dark { background: var(--ground); color: #fff; }
.btn--dark:hover { background: #1f1f1f; }
.btn--line { border-color: var(--on-band-muted); color: var(--on-band); }
.btn--line:hover { border-color: #fff; }
.btn--line-dark { border-color: var(--text); color: var(--text); }
.btn--line-dark:hover { background: var(--surface); }
.btn--wide { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------- header ---------- */
.hdr { background: var(--ground); color: #fff; position: relative; z-index: 20; }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.hdr__logo { display: block; padding: 8px 0; flex: 0 0 auto; }
.hdr__img { height: 56px; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.nav__list a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__list a[aria-current] { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav__cta a { background: var(--fill-brand); font-weight: 600; margin-left: 8px; padding: 0 16px; }
.nav__cta a:hover { background: color-mix(in oklch, var(--fill-brand) 82%, #000); text-decoration: none; }
.hdr__act { display: flex; align-items: center; gap: 8px; }
.hdr__call { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; justify-content: center; padding: 0 12px; color: #fff; text-decoration: none; font: 700 1.375rem/1 var(--display); letter-spacing: .02em; border: 2px solid var(--band-line); }
.hdr__call:hover { border-color: #fff; }
.menu-btn { display: none; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; background: none; color: #fff; border: 2px solid var(--band-line); border-radius: var(--r); font: 600 1rem var(--sans); cursor: pointer; }
@media (max-width: 1099.98px) {
  .hdr__in { flex-wrap: wrap; gap: 8px 12px; }
  .hdr__act { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; }
  .nav__list { flex-wrap: wrap; padding-bottom: 10px; }
  .nav__cta a { margin-left: 0; }
  html.js .menu-btn { display: inline-flex; }
  html.js .nav { display: none; }
  html.js .nav.is-open { display: block; }
  html.js .nav.is-open .nav__list { flex-direction: column; align-items: stretch; padding: 4px 0 16px; border-top: 1px solid var(--band-line); }
  html.js .nav.is-open .nav__list a { min-height: 48px; font-size: 1.1875rem; padding: 0 4px; }
  html.js .nav.is-open .nav__cta a { justify-content: center; margin-top: 8px; }
}
@media (max-width: 559.98px) {
  .hdr__img { height: 46px; }
  .hdr__bel, .hdr__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- home hero: the fascia photo, then the name band ---------- */
.hero__photo { background: var(--ground); }
.hero__img { width: 100%; height: auto; }
@media (min-width: 700px) { .hero__img { height: clamp(320px, 47vh, 560px); object-fit: cover; object-position: 50% 30%; } }
.hero__band { background: var(--band); color: var(--on-band); border-top: 6px solid var(--brand); }
.hero__in { display: grid; gap: 20px 48px; padding-block: 28px 32px; align-items: end; }
.hero h1 { font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.5rem); max-width: 19ch; }
.hero__lead { color: var(--on-band-muted); max-width: 46ch; flex-basis: 100%; margin-bottom: 6px; }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.15fr 1fr; padding-block: 36px 40px; } }
@media (max-width: 559.98px) { .hero__act .btn { flex: 1 1 100%; } }
.open { display: flex; align-items: center; gap: 10px; font-weight: 500; color: inherit; flex-basis: 100%; }
.hero .open { justify-content: inherit; color: var(--on-band-muted); }
.open__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--field); flex: 0 0 auto; }
.open.is-open .open__dot { background: var(--brand); }

/* ---------- sections ---------- */
.sec { padding-block: var(--space); }
.sec--tint { background: var(--surface); }
.sec--apk { padding-block: clamp(40px, 6vw, 72px); background: var(--surface); }
.sec__h { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); margin-bottom: 24px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 56px; align-items: start; }
@media (min-width: 900px) { .duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.prose-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 64px; align-items: start; }
@media (min-width: 900px) { .prose-duo { grid-template-columns: 1fr 1fr; } }
.prose-duo p + p, .prose p + p, .narrow p + p, .welkom__txt p + p { margin-top: 1em; }
.prose h2 { font-size: 1.75rem; margin: 1.6em 0 .4em; }
.prose h2:first-child { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- APK check: a job card with a number plate ---------- */
.apk__card { background: var(--paper); border: 2px solid var(--text); padding: clamp(20px, 3vw, 32px); }
.apk__h { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); margin-bottom: 12px; }
.apk__lead { color: var(--muted); margin-bottom: 20px; }
.apk__form { display: flex; flex-wrap: wrap; gap: 12px; }
.apk__form .plate { flex: 1 1 240px; }
.apk__form .btn { flex: 0 0 auto; min-width: 140px; }
.apk__hint { flex-basis: 100%; font-size: .9375rem; color: var(--muted); }
.apk__price { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.apk__price strong { color: var(--text); }
.plate { display: flex; align-items: stretch; background: #fff; border: 2px solid #1c1c1c; border-radius: 4px; overflow: hidden; min-height: 60px; }
.plate__nl { display: flex; align-items: flex-end; justify-content: center; width: 38px; flex: 0 0 38px; padding-bottom: 7px; background: var(--fill-brand); color: #fff; font: 700 .875rem/1 var(--sans); }
.plate__in { flex: 1 1 auto; min-width: 0; border: 0; background: #fff; color: #1c1c1c; font: 700 1.875rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; }
.plate__in::placeholder { color: #a6a6a6; font-weight: 400; letter-spacing: .1em; }
.plate__in:focus { outline: none; }
.plate:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.plate--sm { min-height: 54px; max-width: 320px; }
.plate--sm .plate__in { font-size: 1.625rem; }
.apk__out:not(:empty) { margin-top: 20px; }
.res { border-top: 3px solid var(--text); padding-top: 16px; }
.res__date { font: 700 clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem)/1.05 var(--display); text-transform: uppercase; }
.res__car { color: var(--muted); margin-top: 6px; }
.res__price { margin-top: 12px; font-size: 1.125rem; }
.res__price strong { font: 700 1.5rem var(--display); }
.res .btn { margin-top: 16px; }
.res--msg { border-top-color: var(--field); }

/* ---------- price board ---------- */
.board__cap { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin-bottom: 14px; }
.board__list { border-top: 3px solid var(--text); }
.board__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.board__row dt { font-weight: 500; }
.board__note { display: block; font-size: .9375rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.board__row dd { font: 700 1.625rem/1.05 var(--display); text-align: right; flex: 0 0 auto; white-space: nowrap; }
.board__unit { display: block; font: 500 .9375rem/1.3 var(--sans); color: var(--muted); white-space: nowrap; }
.board__foot { margin-top: 14px; font-size: .9375rem; color: var(--muted); }

/* ---------- what we do: one row per service, photo and text alternate ---------- */
.rows { list-style: none; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 56px; align-items: center; }
.row__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row__txt h3 { font: 700 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.row__txt h3 a { color: var(--text); text-decoration: none; }
.row__txt h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--brand); }
.row__txt p { max-width: 52ch; }
.row__meta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 500; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1.1fr 1fr; }
  .row:nth-child(even) .row__img { order: 2; }
}

/* ---------- welcome: the blue entrance and the waiting room ---------- */
.welkom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.welkom__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.welkom__sub { margin-top: 28px; margin-bottom: 12px; }
.welkom__txt .btn { margin-top: 24px; }
.ticks + p { margin-top: 12px; }
@media (min-width: 900px) { .welkom { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: 0 0 auto; margin-top: .3em; color: var(--ink-brand); }
.ticks--links { gap: 4px; }
.ticks--links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; font-size: 1.1875rem; }

/* ---------- dark band: the film and the car makes ---------- */
.sec--dark { background: var(--band); color: var(--on-band); }
.sec--dark .sec__h { color: #fff; }
.sec--dark a { color: #fff; }
.film { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 56px; align-items: center; }
@media (min-width: 900px) { .film { grid-template-columns: 1fr 1.3fr; } }
.film__txt > p { color: var(--on-band-muted); }
.quote { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--band-line); }
.quote p { font-size: 1.25rem; line-height: 1.45; }
.quote footer { margin-top: 10px; color: var(--on-band-muted); font-size: 1rem; }
.quote--big { margin-top: 0; border-top: 3px solid var(--text); }
.quote--big p { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.quote--big footer { color: var(--muted); }
.video .m-video { border: 1px solid var(--band-line); }
.video .m-video__note { color: var(--on-band-muted); }
.merken { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--band-line); --strip-h: 40px; --strip-gap: clamp(28px, 6vw, 72px); }
.merken__cap { text-align: center; color: var(--on-band-muted); font-size: .9375rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.merken [data-logo-strip] { padding-block: 6px; }
.merken .m-pause { background: var(--paper); color: var(--text); border: 1px solid var(--field); padding: 4px 10px; }

/* ---------- where ---------- */
.waar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: start; }
@media (min-width: 900px) { .waar { grid-template-columns: 1fr 1.2fr; } }
.waar__txt > p { margin-bottom: 18px; }
.hours { max-width: 360px; margin-bottom: 18px; }
.hours__row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours__row dd { font-weight: 600; }
.map { margin: 0; }
.map__view { position: relative; }
.map__img { width: 100%; height: auto; aspect-ratio: 640 / 420; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
.map__pin { position: absolute; left: 50%; top: 50%; translate: -50% -100%; color: var(--fill-ground); filter: drop-shadow(0 1px 1px rgb(0 0 0 / .35)); }
.map__pin path { fill: currentColor; }
.map__pin circle { fill: var(--brand); }
.map__credit { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.map__cap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; }
.map__cap a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }

/* ---------- call band: the brand blue as a band ---------- */
.call { background: var(--fill-brand); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.call a:not(.btn) { color: #fff; }
.call__in { display: grid; gap: 24px 48px; align-items: center; }
.call__h { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 10px; }
.call__act { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.call__num { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1 var(--display); letter-spacing: .02em; text-decoration: none; min-height: 48px; }
.call__num:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 900px) { .call__in { grid-template-columns: 1.2fr 1fr; } .call__act { justify-content: flex-end; } }

/* ---------- sub-page head ---------- */
.phead { background: var(--band); color: var(--on-band); display: grid; }
.phead__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.phead__txt { padding: 28px var(--gutter) 36px; border-top: 6px solid var(--brand); }
.phead h1 { font-size: clamp(2.375rem, 1.6rem + 3vw, 4.25rem); max-width: 16ch; }
.phead__lead { margin-top: 16px; color: var(--on-band-muted); max-width: 52ch; }
.phead .eyebrow { color: var(--on-band-muted); }
.phead--plain { border-top: 6px solid var(--brand); }
.phead--plain .phead__txt { border-top: 0; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-block: 36px 44px; }
@media (min-width: 1100px) {
  .phead:not(.phead--plain) { grid-template-columns: 1fr 1fr; }
  .phead:not(.phead--plain) .phead__img { order: 2; }
  .phead:not(.phead--plain) .phead__img img { height: 100%; aspect-ratio: auto; max-height: 520px; min-height: 420px; }
  .phead:not(.phead--plain) .phead__txt { border-top: 0; border-bottom: 6px solid var(--brand); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 56px 48px max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
}
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9375rem; margin-bottom: 16px; color: var(--on-band-muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; }
.crumbs a { color: #fff; display: inline-flex; min-height: 24px; align-items: center; }

/* ---------- content blocks ---------- */
.steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .05em; font: 700 2rem/1 var(--display); color: var(--ink-brand); }
.aside { background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.aside h3 + p { margin-top: 8px; }
.aside p + h3 { margin-top: 24px; }
.aside p + p { margin-top: 1em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair img, .caption img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.caption figcaption { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 3px solid var(--text); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 10px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.75rem/1 var(--display); color: var(--ink-brand); }
.faq details[open] summary::after { content: "–"; }
.faq__a { padding-bottom: 18px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 64px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact__info .sec__h { font-size: 1.75rem; margin-bottom: 12px; }
.contact__info > p { margin-bottom: 28px; }
.contact__info .open { margin-bottom: 8px; }
.contact__big a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; font-size: 1.25rem; color: var(--text); }
.contact__big a.num { font: 700 2rem/1 var(--display); }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 64px; align-items: start; }
@media (min-width: 1000px) { .form-wrap { grid-template-columns: 1fr 320px; } .form-aside { position: sticky; top: 24px; } }
.form-aside { background: var(--surface); padding: 24px; }
.form-aside h2 { font-size: 1.75rem; margin-bottom: 8px; }
.form-aside .call__num { color: var(--text); font-size: 2rem; }
.form-aside p + p, .form-aside .open + p { margin-top: 12px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.form legend { font-size: 1.75rem; padding: 0; margin-bottom: 16px; }
.form__grid { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 20px; min-width: 0; }
.field > label, .field__label { display: block; font-weight: 600; margin-bottom: 6px; }
.field__hint { font-size: .9375rem; color: var(--muted); margin: -2px 0 8px; }
.opt { font-weight: 400; }
.field .opt, label .opt { color: var(--muted); }
.form input[type="text"]:not(.plate__in), .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form textarea {
  width: 100%; min-height: 50px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--paper); border: 2px solid var(--field); border-radius: var(--r);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; border-color: var(--text); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts > .opt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; border: 2px solid var(--field); border-radius: var(--r); color: var(--text); cursor: pointer; }
.opts > .opt:has(input:checked) { border-color: var(--text); background: var(--surface); }
.opts > .opt > input { width: 20px; height: 20px; margin: 0; accent-color: var(--fill-brand); }
.opts > .opt > span { font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--fill-brand); }
.form__note { font-size: .9375rem; color: var(--muted); margin-top: 12px; }
.form__err { font-weight: 600; border: 2px solid var(--text); padding: 12px 14px; margin-bottom: 16px; }
.form__done { margin-top: 24px; border: 2px solid var(--text); padding: 20px; background: var(--paper); }
.form__done h3 { font: 700 1.75rem/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.form__sum { white-space: pre-wrap; font: inherit; font-size: 1rem; color: var(--muted); margin: 12px 0 0; }
.form.is-sent > :not([data-done]) { display: none; }

/* ---------- footer ---------- */
.ftr { background: var(--ground); color: #e6e6e6; padding-top: clamp(48px, 6vw, 72px); }
.ftr a { color: #fff; }
.ftr__in { display: grid; gap: 32px 40px; padding-bottom: 40px; }
@media (min-width: 640px) { .ftr__in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ftr__in { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.ftr__img { height: 64px; width: auto; }
.ftr__promise { margin-top: 16px; max-width: 30ch; color: #d2d2d2; }
.ftr__h { font-size: 1.375rem; margin-bottom: 10px; color: #fff; }
.ftr__col p + p { margin-top: 10px; }
.ftr__phone { font: 700 1.625rem/1.2 var(--display); text-decoration: none; letter-spacing: .02em; }
.ftr__hours { color: #d2d2d2; }
.ftr__links { list-style: none; padding: 0; }
.ftr__links a { display: inline-flex; min-height: 36px; align-items: center; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-block: 20px 28px; border-top: 1px solid #4d4d4d; font-size: .9375rem; color: #d2d2d2; }
.ftr__legal a, .ftr__legal .motion-toggle { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.ftr__partner { display: inline-flex; align-items: center; gap: 10px; }
.ftr__partner img { height: 26px; width: auto; }

/* ---------- mobile action bar ---------- */
.actionbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: auto auto 1fr; background: var(--ground); border-top: 1px solid #555; padding-bottom: env(safe-area-inset-bottom); }
.actionbar a:not(.actionbar__main) { font-size: 0; gap: 0; padding: 0 20px; }
.actionbar a + a { border-left: 1px solid #555; }
.actionbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; color: #fff; font-weight: 600; text-decoration: none; }
.actionbar__main { background: var(--fill-brand); }
.actionbar.is-waiting { visibility: hidden; }
@media (max-width: 899.98px) { .ftr { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .actionbar { display: none; } }
@media print { .actionbar, .menu-btn, .skip { display: none; } }

/* links on the grey surface use the text colour (the brand ink reaches 4.5:1 on paper only) */
:is(.sec--tint, .sec--apk, .aside, .form-aside) a:not(.btn) { color: var(--text); }
.apk__card a:not(.btn) { color: var(--ink-brand); }

/* ======================= v2: occasions + beheer ======================= */
.occ-wrap.is-filled .narrow { display: none; }
.occ-demo, .bh-demo { margin: 0 0 24px; padding: 14px 16px; border-left: 4px solid currentColor; background: #f3f4f6; color: #1f2937; }
.occ-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.occ-card a { display: block; color: inherit; text-decoration: none; }
.occ-card__img { position: relative; aspect-ratio: 4 / 3; background: #e5e7eb; overflow: hidden; }
.occ-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.occ-card a:hover img { transform: scale(1.03); }
.occ-card__t { margin: 14px 0 4px; font-size: 1.25rem; line-height: 1.25; }
.occ-card a:hover .occ-card__t { text-decoration: underline; text-underline-offset: .2em; }
.occ-card__s { margin: 0; color: #4b5563; font-size: .9375rem; }
.occ-card__p { margin: 6px 0 0; font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.occ-card.is-sold img { filter: grayscale(.85); }
.occ-sold { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 4px 10px; background: #111827; color: #fff; font-weight: 700; font-size: .875rem; }
.occ-status { padding: 24px 0; }
.occ-car { display: grid; gap: 32px; }
@media (min-width: 960px) { .occ-car { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.occ-gal__main { position: relative; aspect-ratio: 4 / 3; background: #e5e7eb; overflow: hidden; }
.occ-gal__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.occ-gal__thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.occ-gal__thumbs button { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: #e5e7eb; cursor: pointer; overflow: hidden; }
.occ-gal__thumbs button[aria-current] { border-color: #111827; }
.occ-gal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.occ-car__t { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; }
.occ-car__p { margin: 10px 0 18px; font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.occ-specs { margin: 0; display: grid; border-top: 1px solid #d1d5db; }
.occ-specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #d1d5db; }
.occ-specs dt { color: #4b5563; } .occ-specs dd { margin: 0; font-weight: 600; }
.occ-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.occ-desc { max-width: 70ch; margin-top: 40px; } .occ-desc h2 { font-size: 1.5rem; margin: 0 0 12px; }
.occ-opts { columns: 2 16rem; padding-left: 1.2em; }
.sec--top { padding-top: clamp(20px, 3vw, 40px); }

/* beheer (admin) */
.bh .wrap { max-width: 1040px; }
.bh-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.bh-top__r { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.bh-h { margin: 0; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
.bh-h2 { margin: 0 0 10px; font-size: 1.25rem; }
.bh-card { border: 1px solid #d1d5db; padding: clamp(16px, 3vw, 28px); margin-bottom: 18px; background: #fff; }
.bh-login { max-width: 460px; margin: 24px auto; }
.bh-login form { display: grid; gap: 16px; }
.bh-link { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; color: #111827; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.bh-link--danger { color: #991b1b; }
.bh-who { color: #4b5563; font-size: .9375rem; }
.bh-say { min-height: 1.5em; margin: 8px 0; } .bh-say--ok { color: #14532d; } .bh-say--err { color: #991b1b; font-weight: 600; }
.bh-empty { padding: 28px; border: 1px dashed #9ca3af; }
.bh-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d1d5db; }
.bh-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid #d1d5db; }
@media (max-width: 640px) { .bh-row { grid-template-columns: 72px minmax(0, 1fr); } .bh-row .btn, .bh-chip { grid-column: 2; justify-self: start; } }
.bh-row__img { display: block; aspect-ratio: 4 / 3; background: #e5e7eb; overflow: hidden; }
.bh-row__img img, .bh-ph__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-row__s { color: #4b5563; font-size: .9375rem; }
.bh-chip { padding: 3px 10px; font-size: .875rem; font-weight: 700; border: 1px solid currentColor; }
.bh-chip--published { color: #14532d; } .bh-chip--draft { color: #4b5563; } .bh-chip--sold { color: #111827; }
.bh-drop { display: grid; place-items: center; min-height: 140px; border: 2px dashed #6b7280; background: #f9fafb; text-align: center; padding: 20px; cursor: pointer; position: relative; }
.bh-drop.is-over { background: #eef2ff; border-color: #111827; }
.bh-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bh-drop:focus-within { outline: 3px solid #111827; outline-offset: 2px; }
.bh-photos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bh-ph { position: relative; }
.bh-ph__img { display: block; aspect-ratio: 4 / 3; background: #e5e7eb; overflow: hidden; }
.bh-ph__cover { position: absolute; left: 6px; top: 6px; background: #111827; color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; }
.bh-ph__btns { display: flex; gap: 4px; margin-top: 6px; }
.bh-ph__btns button { flex: 1; min-height: 40px; border: 1px solid #6b7280; background: #fff; font: 600 1rem/1 inherit; cursor: pointer; }
.bh-ph__btns button:disabled { opacity: .35; cursor: default; }
.bh-form .field { margin-bottom: 14px; }
.bh-form input, .bh-form select, .bh-form textarea { width: 100%; }
.bh-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.bh-rdw { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 6px; }
.bh-rdw .field { flex: 0 1 220px; margin: 0; }
.bh-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 8px; }
.sec--top .crumbs ol { color: #4b5563; }
.sec--top .crumbs a { color: #111827; text-decoration: underline; text-underline-offset: .2em; }
.bh input:not([type="file"]), .bh select, .bh textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #6b7280; border-radius: 0; background: #fff; color: #111827; font: inherit; font-size: 1rem; }
.bh textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.bh input:focus-visible, .bh select:focus-visible, .bh textarea:focus-visible { outline: 3px solid var(--focus-ring, #111827); outline-offset: 1px; border-color: #111827; }
.bh .field label { display: block; font-weight: 600; margin-bottom: 6px; }
.occ-opts { margin-bottom: 0; }
.occ-desc + .more, .occ-car + .more { margin-top: 32px; }
.sec--top .more a { color: #111827; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Facebook band (home) */
.fb { background: #1f2937; color: #fff; padding-block: clamp(32px, 5vw, 56px); }
.fb__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.fb__h { margin: 0 0 6px; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.fb p { margin: 0; color: #e5e7eb; max-width: 52ch; }
.btn--fb { background: #fff; color: #111827; border: 2px solid #fff; gap: 10px; }
.btn--fb:hover { background: #e5e7eb; }
.fb :focus-visible { outline-color: #fff; }
/* WhatsApp in the header */
.hdr__wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: #fff; border: 1px solid rgba(255, 255, 255, .55); text-decoration: none; font-weight: 700; }
@media (max-width: 899px) { .hdr__wal { display: none; } }
/* AAA text contrast (7:1): text links and small brand text one step darker; the blue buttons keep the approved brand blue */
main a:not(.btn):not(.call__num) { color: color-mix(in oklch, var(--ink-brand) 72%, #000); }
main :is(.sec--dark, .call, .fb, .hero__band, .phead__txt) a:not(.btn) { color: inherit; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main a:not(.btn):not(.call__num) { color: color-mix(in oklch, var(--ink-brand) 55%, #fff); } }

/* motion tokens: mechanical-precise, restrained band (generated by src/motion/personalities.mjs) */
:root {
  --dur-feedback: 90ms;
  --dur-state: 160ms;
  --dur-enter: 320ms;
  --dur-exit: 140ms;
  --dur-signature: 900ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-enter: cubic-bezier(0.2, 0, 0, 1);
  --ease-signature: cubic-bezier(0.2, 0, 0, 1);
  --ease-settle: linear(0, 0.0352, 0.1167, 0.2188, 0.3258, 0.4287, 0.5228, 0.6058, 0.6774, 0.738, 0.7886, 0.8304, 0.8646, 0.8923, 0.9147, 0.9326, 0.947, 0.9583, 0.9674, 0.9745, 0.9801, 0.9845, 0.988, 0.9907, 0.9928, 0.9944, 0.9957, 0.9967, 0.9974, 0.998, 0.9985, 0.9988, 1);
  --dist-enter: 12px;
  --stagger: 40ms;
  --scale-enter: 1;
  --rot-enter: 0deg;
  --press-depth: 1px;
  --dur-reveal: 900ms;
  --ease-reveal: cubic-bezier(.25, .1, .25, 1);
  --dist-reveal: 10px;
  --stagger-reveal: 100ms;
  --scale-reveal: 0.97;
}

/* ==========================================================================
   Motion layer. Two layers, one file:
     1. motion-core  (between the @motion-core markers): feedback only. Press, focus ring, field focus/valid/invalid, menu and
        dialog entrance, the page transition (crossfade, header held, shared elements), the "Minder beweging" toggle, the pause
        control for any loop, the click-to-load video facade, the logo strip and the photo frame. SHARED CODE: sha256-locked in src/motion/core.lock.json; tests/motion.test.mjs fails
        when a site edits it. Edit the skill's template instead (see src/motion/core.mjs).
     2. expression   (below the core): reveals, hero entrances, line draw, drawn underline, scroll story, ticker, signature
        helpers. Opt-in per element by data attribute; nothing here is global. The computer-style effects (glitch slice,
        pointer lean, shader, parallax) are NOT in this file: motion-extra.css, only when direction.json asks for it.
     3. bindings: this template's own components (adapt or delete per site).
   Timing comes from the generated token block (src/motion/personalities.mjs → :root{--dur-*;--ease-*;--dist-enter;--stagger;…}),
   already held inside the site's band (src/data/motion.json).

   The rule that keeps content safe: a start state that hides anything needs ALL of
     html.js  +  screen and (prefers-reduced-motion: no-preference)  +  not html[data-motion="reduce"]
     +  a mechanism known to run
   (@supports for scroll timelines; html.io-reveal / html.motion-ok, which motion.js sets only after
   its observers are attached). Without JS, with reduced motion (OS setting or the footer toggle), in print:
   everything is visible. The build appends the reduce blocks a second time under html[data-motion="reduce"].

   Cost grades follow the motion-audit scale: S = compositor (transform, translate, scale, rotate,
   opacity, clip-path, filter); C = paint (colours, mask, box-shadow, stroke-dashoffset). Paint recipes are
   marked. Nothing here animates a layout property (slopscan's layout-animation rule enforces it).
   ========================================================================== */

/* @motion-core:begin */
/* motion-core 1.1.0 */

/* ---------- C1. press + focus + field feedback ---------- */
[data-press] { transition: translate var(--dur-feedback) var(--ease-out), scale var(--dur-feedback) var(--ease-out); }
[data-press]:active { translate: 0 var(--press-depth); }
/* focus ring: zero specificity, so a site's own ring wins; the ring eases out by 2px instead of snapping (S/C, tiny) */
:where(a[href], button, input, select, textarea, summary, [tabindex]) { transition: outline-offset var(--dur-feedback) var(--ease-out); }
:where(a[href], button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus-ring, currentColor); outline-offset: 2px; }
/* fields: focus colour eases in; after the visitor has touched a field, invalid/valid show as a 2px underline (C: paint, colour only) */
:where(input, select, textarea) { transition: border-color var(--dur-feedback) var(--ease-out), box-shadow var(--dur-feedback) var(--ease-out); }
:where(input, select, textarea):user-invalid { box-shadow: inset 0 -2px 0 var(--field-invalid, #b3261e); }
:where(input, select, textarea):user-valid { box-shadow: inset 0 -2px 0 var(--field-valid, #1d7a46); }

/* ---------- C2. entrances without JS: @starting-style for [data-enter] (menus, toasts), dialog, popover (S) ---------- */
@media (prefers-reduced-motion: no-preference) {
  :is([data-enter], dialog, [popover]) {
    transition: opacity var(--dur-exit) var(--ease-out), translate var(--dur-exit) var(--ease-out), scale var(--dur-exit) var(--ease-out), display var(--dur-exit) allow-discrete, overlay var(--dur-exit) allow-discrete;
  }
  :is([data-enter]:not([hidden]), dialog[open], [popover]:popover-open) { transition-duration: var(--dur-state); }
  @starting-style {
    :is([data-enter]:not([hidden]), dialog[open], [popover]:popover-open) { opacity: 0; translate: 0 calc(var(--dist-enter) / -2); scale: max(var(--scale-enter), .97); }
  }
  :is([data-enter][hidden], dialog:not([open]), [popover]:not(:popover-open)) { opacity: 0; translate: 0 calc(var(--dist-enter) / -4); }
}

/* ---------- C3. cross-document view transitions (S), no JS: the page crossfades at --dur-state while the header (.hdr,
   the template's one persistent header) stays put. Shared elements: write data-vt="<id>" on the same photo or title on a
   list card and on its detail page; the build turns it into a unique view-transition-name (class vt-shared) and the
   browser morphs one into the other (280 ms, --ease-move). Browsers without support navigate plainly. ---------- */
.hdr { view-transition-name: site-header; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: var(--dur-state); animation-timing-function: var(--ease-out); }
  ::view-transition-group(*.vt-shared) { animation-duration: 280ms; animation-timing-function: var(--ease-move); }
}

/* ---------- C4. success tick: [data-motion-success] needs no CSS. When its [hidden] goes away motion.js runs success():
   the panel rises in, the first svg settles and its strokes draw (WAAPI; draw = C). ---------- */

/* ---------- C5. loops: any [data-loop] gets a visible pause button from motion.js ([data-motion-pause], WCAG 2.2.2) and
   pauses under reduced motion. The footer's "Minder beweging" / "Reduce motion" toggle is wired by motion.js too. ---------- */
:is([data-loop]) { position: relative; }
.m-pause { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; z-index: 1; font: inherit; font-size: .8125rem; }
[data-loop][data-paused], [data-loop][data-paused] * { animation-play-state: paused !important; }
.motion-toggle { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.motion-toggle[aria-pressed="true"]::before { content: "\2713\00a0"; }

/* ---------- C6. logo strip: <div data-logo-strip role="region" aria-label="…" tabindex="0"><ul class="m-strip__track"><li><img …></li>…</ul></div>
   A static row by default (a scrollable one when the logos do not fit and no JS runs). motion.js rolls it ONLY when the
   row overflows its box and motion is allowed: it adds a pause button, pauses on hover and focus, and stops under
   reduced motion. It is the site's one ambient loop (declare it in motion.json). ---------- */
[data-logo-strip] { overflow-x: auto; }
.m-strip__track { display: flex; align-items: center; width: max-content; min-width: 100%; justify-content: center; margin: 0; padding: 0; list-style: none; }
.m-strip__track > li { flex: 0 0 auto; margin-inline-end: var(--strip-gap, 2.5rem); }
.m-strip__track img { display: block; height: var(--strip-h, 2.5rem); width: auto; }
[data-logo-strip]:not([data-rolling]) .m-strip__track > li:last-child { margin-inline-end: 0; }
[data-logo-strip]:not([data-rolling]) [data-clone] { display: none; }
@keyframes m-strip { to { translate: -50% 0; } }
@media screen and (prefers-reduced-motion: no-preference) {
  html.motion-ok [data-logo-strip][data-rolling][data-loop] { overflow-x: hidden; }
  html.motion-ok [data-logo-strip][data-rolling][data-loop] .m-strip__track { justify-content: flex-start; min-width: 0; animation: m-strip var(--strip-dur, 40s) linear infinite; }
  html.motion-ok [data-logo-strip][data-rolling][data-loop]:is(:hover, :focus-within) .m-strip__track { animation-play-state: paused; }
}

/* ---------- C7. video facade: <div class="m-video" data-video="youtube:ID"><a class="m-video__link" href="the video"><img poster><span class="m-video__play">…</a></div>
   (build it with src/motion/facade.mjs). Nothing third-party loads until the visitor clicks; then motion.js puts a
   youtube-nocookie.com / player.vimeo.com iframe in its place. Without JS the link opens the video. No motion at all. ---------- */
.m-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.m-video > a, .m-video > iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
.m-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-video__play { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: rgb(0 0 0 / .62); transition: background-color var(--dur-state) var(--ease-out); }
.m-video__play::before { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; margin: -.7rem 0 0 -.4rem; border-style: solid; border-width: .7rem 0 .7rem 1.2rem; border-color: transparent transparent transparent #fff; }
.m-video__label { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem .75rem; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
.m-video__note { margin: .5rem 0 0; font-size: .875rem; }
@media (hover: hover) and (pointer: fine) { .m-video__link:hover .m-video__play { background: rgb(0 0 0 / .85); } }

/* ---------- C8. reduced motion for the core: reduce, don't remove. (Replaces the old `* { animation: none !important }`
   kill switch, which also deleted feedback people rely on.) Applies to the OS setting and, through the build's generated
   copy, to the footer toggle (html[data-motion="reduce"]).
   - No travel, scale or rotation: tokens zero out distance/scale/rotation, so every recipe that still runs
     (entrances, @starting-style, success) becomes an opacity crossfade of at most 200 ms.
   - No view transitions, no loops (paused). Reveals, hero, draws and the story are gated in the expression layer. ---------- */
/* ---------- C9. photo frame: a content photo (main img[srcset], main picture img, anything in [data-frame]) sits on --frame
   (default: the brand page ground --paper, 8% toward the text colour, so it holds in both themes), so a photo that is still
   loading reads as an empty pane, never a white hole. Its width/height attributes reserve the box (qa:motion checks them).
   Zero specificity: a site sets --frame (e.g. a darker brand ground) or its own rule. ---------- */
:where(main img[srcset], main picture img, [data-frame] img):not(:where([data-logo-strip] img)) { background-color: var(--frame, color-mix(in oklab, var(--paper, Canvas) 92%, currentColor)); }

@media (prefers-reduced-motion: reduce) {
  :root {
    --dist-enter: 0px; --scale-enter: 1; --rot-enter: 0deg; --press-depth: 0px; --stagger: 0ms;
    --dist-reveal: 0px; --scale-reveal: 1; --stagger-reveal: 0ms; --dur-reveal: 200ms; --ease-reveal: ease-out;
    --dur-feedback: 100ms; --dur-state: 160ms; --dur-enter: 200ms; --dur-exit: 120ms; --dur-signature: 200ms;
    --ease-enter: ease-out; --ease-move: ease-out; --ease-settle: ease-out;
  }
  :is([data-enter], dialog, [popover]) { transition: opacity var(--dur-state) ease-out, display var(--dur-state) allow-discrete, overlay var(--dur-state) allow-discrete; }
  @starting-style {
    :is([data-enter]:not([hidden]), dialog[open], [popover]:popover-open) { opacity: 0; translate: none; scale: none; }
  }
  [data-press]:active { transform: none; translate: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}
/* @motion-core:end */

/* ==========================================================================
   Expression layer. Opt-in per element: nothing here runs unless the markup asks for it (data-reveal, data-hero,
   data-draw, data-story, data-count, data-signature, .m-underline). Budget: motion.json maxMovers.
   ========================================================================== */

/* ---------- keyframes (start states; the end state is the element's own style) ---------- */
@keyframes m-rise { from { opacity: 0; translate: 0 var(--dist-reveal); rotate: var(--rot-enter); } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-scale { from { opacity: 0; scale: max(var(--scale-reveal), .95); } }
@keyframes m-clip { from { clip-path: inset(0 0 100% 0); translate: 0 calc(var(--dist-reveal) / 2); } }
/* mechanical: three hard steps on an 8px grid */
@keyframes m-step { from { opacity: 0; translate: 0 24px; animation-timing-function: steps(3, end); } }
/* handmade: a small rotation jitter on the way in */
@keyframes m-jitter { from { opacity: 0; translate: 0 var(--dist-reveal); rotate: -2deg; } 60% { opacity: 1; rotate: 1deg; } 82% { rotate: -.4deg; } }
/* organic / playful / tactile: weight, settled by the spring easing (--ease-settle overshoots) */
@keyframes m-settle { from { opacity: 0; scale: max(var(--scale-reveal), .95); } }
@keyframes m-pop { from { opacity: 0; scale: .95; rotate: calc(var(--rot-enter) * -1); translate: 0 var(--dist-reveal); } }
@keyframes m-lift { from { opacity: 0; translate: 0 var(--dist-reveal); scale: max(var(--scale-reveal), .95); } }
/* editorial: set like a line of type, left to right */
@keyframes m-line { from { clip-path: inset(0 100% 0 0); } }
/* calm: long, low-amplitude */
@keyframes m-drift { from { opacity: 0; translate: 0 calc(var(--dist-reveal) / 2); } }
/* cinematic (scrubbed): a curtain rises off the content */
@keyframes m-curtain { from { clip-path: inset(100% 0 0 0); translate: 0 var(--dist-reveal); } }
@keyframes m-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes m-grow-x { from { scale: 0 1; } }
@keyframes m-story-step { 0%, 100% { opacity: .35; } 30%, 70% { opacity: 1; } }
/* hero entrances: the h1 is visible (opacity ≥ .5, never clipped) from the first frame, so LCP never waits */
@keyframes m-hero-words { from { opacity: .55; translate: 0 min(.32em, var(--dist-enter, 24px)); } }
@keyframes m-hero-wipe { from { mask-position: 100% 0; } }
@keyframes m-hero-settle { from { opacity: .6; scale: .96; } }
@keyframes m-hero-step { from { opacity: .5; translate: 0 24px; animation-timing-function: steps(3, end); } }

/* ---------- 1. reveals: [data-reveal="<variant>"], [data-reveal-stagger="<variant>"] (the build resolves a bare one) ----------
   Two modes, chosen by the personality (html[data-reveal-mode]): scrub (cinematic only: progress follows the
   scroll on a view() timeline) and trigger (time-based: motion.js marks .is-in once and the variant plays with
   --dur-reveal / --ease-reveal / --stagger-reveal, the one calm content-entrance set). Browsers without view() always use
   trigger. A reveal that holds photos starts only once they are decoded (motion.js; [data-motion-wait] while it waits, at
   most 1.2 s); one already on screen at load with a photo still loading is shown at once (.is-still), never animated. */
[data-reveal="rise"], [data-reveal-stagger="rise"] { --rv: m-rise; }
[data-reveal="fade"], [data-reveal-stagger="fade"] { --rv: m-fade; }
[data-reveal="clip"], [data-reveal-stagger="clip"] { --rv: m-clip; }
[data-reveal="scale"], [data-reveal-stagger="scale"] { --rv: m-scale; }
[data-reveal="step"], [data-reveal-stagger="step"] { --rv: m-step; }
[data-reveal="jitter"], [data-reveal-stagger="jitter"] { --rv: m-jitter; }
[data-reveal="settle"], [data-reveal-stagger="settle"] { --rv: m-settle; --rve: var(--ease-settle); }
[data-reveal="pop"], [data-reveal-stagger="pop"] { --rv: m-pop; --rve: var(--ease-settle); }
[data-reveal="lift"], [data-reveal-stagger="lift"] { --rv: m-lift; }
[data-reveal="line"], [data-reveal-stagger="line"] { --rv: m-line; }
[data-reveal="drift"], [data-reveal-stagger="drift"] { --rv: m-drift; }
[data-reveal="curtain"], [data-reveal-stagger="curtain"] { --rv: m-curtain; }
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.js[data-reveal-mode="scrub"]:not(.io-reveal, .io-arm, [data-motion="reduce"]) :is([data-reveal], [data-reveal-stagger] > *) {
      animation: var(--rv, m-rise) var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    /* Items in one row share a scroll position, so a stagger shifts their range instead of a delay. */
    html.js[data-reveal-mode="scrub"]:not(.io-reveal, .io-arm, [data-motion="reduce"]) [data-reveal-stagger] > * { animation-range: entry calc(var(--n, 0) * 8%) entry calc(60% + var(--n, 0) * 8%); }
  }
  /* trigger mode (and the fallback): held at the first frame (paused) until motion.js marks it .is-in.
     motion.js marks what is already on screen BEFORE it adds html.io-reveal, so nothing visible blinks out. */
  html.io-reveal:not([data-motion="reduce"]) :is([data-reveal], [data-reveal-stagger] > *) {
    animation: var(--rv, m-rise) var(--dur-reveal) var(--rve, var(--ease-reveal)) both paused;
    animation-delay: calc(var(--n, 0) * var(--stagger-reveal));
  }
  html.io-reveal:not([data-motion="reduce"]) :is([data-reveal].is-in, [data-reveal-stagger].is-in > *) { animation-play-state: running; }
  html.io-reveal:not([data-motion="reduce"]) :is([data-reveal].is-still, [data-reveal-stagger].is-still > *) { animation: none; }
}
[data-reveal-stagger] > :nth-child(2) { --n: 1; }
[data-reveal-stagger] > :nth-child(3) { --n: 2; }
[data-reveal-stagger] > :nth-child(4) { --n: 3; }
[data-reveal-stagger] > :nth-child(5) { --n: 4; }
[data-reveal-stagger] > :nth-child(n + 6) { --n: 5; }

/* ---------- 2. hero entrance: <h1 data-hero="kinetic-words|mask-wipe|scale-settle|stepped|none"> (the build resolves a bare one) ---------- */
.kin__w, .kin__i { display: inline-block; }
@media screen and (prefers-reduced-motion: no-preference) {
  html.js:not([data-motion="reduce"]) h1[data-hero="kinetic-words"] .kin__i { animation: m-hero-words var(--dur-enter) var(--ease-enter) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
  /* C: mask-position paints; the part not yet wiped stays at 55% so the h1 reads (and counts for LCP) at once */
  html.js:not([data-motion="reduce"]) h1[data-hero="mask-wipe"] { mask-image: linear-gradient(90deg, #000 45%, rgb(0 0 0 / .55) 55%); mask-size: 250% 100%; mask-position: 0 0; animation: m-hero-wipe calc(var(--dur-enter) * 1.4) var(--ease-out) both; }
  html.js:not([data-motion="reduce"]) h1[data-hero="scale-settle"] { transform-origin: 0 100%; animation: m-hero-settle var(--dur-enter) var(--ease-settle) both; }
  html.js:not([data-motion="reduce"]) h1[data-hero="stepped"] { animation: m-hero-step calc(var(--dur-enter) * 1.2) linear both; }
}

/* ---------- 3. SVG line draw: <svg data-draw="view|load"> with pathLength="1" on every stroke (C: paint) ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.js:not([data-motion="reduce"]) [data-draw="view"] { view-timeline-name: --m-draw; }
    html.js:not([data-motion="reduce"]) [data-draw="view"] [pathLength] {
      stroke-dasharray: 1;
      animation: m-draw linear both;
      animation-timeline: --m-draw;
      animation-range: entry 20% cover 45%;
    }
  }
  html.js:not([data-motion="reduce"]) [data-draw="load"] [pathLength] { stroke-dasharray: 1; animation: m-draw var(--dur-signature) var(--ease-enter) both; }
}

/* ---------- 5. link underline drawn by a scaled pseudo-element: class="m-underline" (S) ---------- */
.m-underline { position: relative; text-decoration: none; }
.m-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: max(1px, .08em);
  background: currentColor; scale: 0 1; transform-origin: 100% 50%;
  transition: scale var(--dur-state) var(--ease-out);
}
.m-underline:focus-visible::after { scale: 1 1; transform-origin: 0 50%; }
@media (hover: hover) and (pointer: fine) {
  .m-underline:hover::after { scale: 1 1; transform-origin: 0 50%; }
}

/* ---------- 8. scroll-told section: [data-story] > [data-story-stage] (sticky) + [data-story-step]s (S) ---------- */
[data-story-stage] { position: sticky; top: var(--story-top, 12vh); }
[data-story-progress] { display: block; height: 3px; background: currentColor; transform-origin: 0 50%; }
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.js:not([data-motion="reduce"]) [data-story] { view-timeline-name: --m-story; }
    html.js:not([data-motion="reduce"]) [data-story-progress] { animation: m-grow-x linear both; animation-timeline: --m-story; animation-range: contain 0% contain 100%; }
    html.js:not([data-motion="reduce"]) [data-story-step] { animation: m-story-step linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}

/* ---------- 10. number ticker: [data-count] (motion.js builds odometer strips; transform only, S) ---------- */
[data-count] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.odo__c { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: -0.25em; } /* hidden, not clip: the baseline becomes the box edge */
.odo__s { display: block; white-space: pre; line-height: 1.2em; }

/* ---------- 11. signature helpers (the recipes are WAAPI in motion.js; table in templates/motion/README.md) ---------- */
/* stop-motion-frames: [data-frames] is a window, its children the frames. Without JS (and with reduced motion)
   the LAST frame shows, the end state; motion.js steps the strip from the first frame to it. */
[data-frames] { display: flex; flex-direction: row-reverse; justify-content: flex-end; overflow: hidden; }
[data-frames] > * { flex: 0 0 100%; }
/* kinetic-type signature: words rise out of a soft mask */
html.motion-ok [data-signature] .kin__w { clip-path: inset(-.3em -.2em -.2em -.2em); }

/* ---------- 12. ambient ground drift (opt-in: src/data/motion.json "ambient": { "kind": "ground-drift", "from", "to" }) ----------
   layout.mjs puts <div class="m-ambient" aria-hidden="true"> first in <body>; the build sets the page ground to `from` and
   the layer to `to` (personalities.mjs ambientCss). The layer's OPACITY follows the root scroll (S), so the ground drifts
   from one brand ground to the other; sections that should show it keep a transparent background. Without scroll
   timelines, under reduced motion and with the toggle the layer stays at 0: the page keeps its stepped grounds.
   It is the site's one ambient loop (motion.json allows ambient OR loop). */
.m-ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; }
@keyframes m-ambient { to { opacity: 1; } }
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    html.js:not([data-motion="reduce"]) .m-ambient { animation: m-ambient linear both; animation-timeline: scroll(root); animation-range: 0% 62%; }
  }
}

/* Keyboard focus inside a reveal shows it at once (WCAG 2.4.7, 2.4.11); motion.js also finishes it. */
/* !important: an accessibility override must beat every hiding rule, including the trigger mode's paused first frame. */
:is([data-reveal], [data-reveal-stagger] > *):focus-within { animation: none !important; transition: none !important; opacity: 1 !important; translate: none !important; transform: none !important; clip-path: none !important; }


/* ---------- site bindings: Autobedrijf van Riet (outside the locked core) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .nav.is-open { transition: opacity var(--dur-state) var(--ease-out), translate var(--dur-state) var(--ease-out); }
  /* FAQ answers only slide: text never passes through low contrast (axe and readers see it at once). */
  .faq details[open] .faq__a { transition: translate var(--dur-state) var(--ease-out); }
  @starting-style {
    .js .nav.is-open { opacity: 0; translate: 0 calc(var(--dist-enter) / -2); }
    .faq details[open] .faq__a { translate: 0 -6px; }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .link-arrow svg { transition: translate var(--dur-feedback) var(--ease-out); }
  html:not([data-motion="reduce"]) .link-arrow:hover svg { translate: 3px 0; }
}
/* the bindings' reduced motion (the core's is in the core section) */
@media (prefers-reduced-motion: reduce) {
  .js .nav.is-open { transition: opacity var(--dur-state) ease-out; }
  @starting-style { .js .nav.is-open { opacity: 0; translate: none; scale: none; } }
  .faq details[open] .faq__a { transition: none; }
}

/* the reduce block again, for html[data-motion="reduce"] (generated) */
:root[data-motion="reduce"] {
    --dist-enter: 0px; --scale-enter: 1; --rot-enter: 0deg; --press-depth: 0px; --stagger: 0ms;
    --dist-reveal: 0px; --scale-reveal: 1; --stagger-reveal: 0ms; --dur-reveal: 200ms; --ease-reveal: ease-out;
    --dur-feedback: 100ms; --dur-state: 160ms; --dur-enter: 200ms; --dur-exit: 120ms; --dur-signature: 200ms;
    --ease-enter: ease-out; --ease-move: ease-out; --ease-settle: ease-out;
  }
html[data-motion="reduce"] :is([data-enter], dialog, [popover]) { transition: opacity var(--dur-state) ease-out, display var(--dur-state) allow-discrete, overlay var(--dur-state) allow-discrete; }
@starting-style {html[data-motion="reduce"] :is([data-enter]:not([hidden]), dialog[open], [popover]:popover-open) { opacity: 0; translate: none; scale: none; }
}
html[data-motion="reduce"] [data-press]:active { transform: none; translate: none; }
html[data-motion="reduce"]::view-transition-group(*), html[data-motion="reduce"]::view-transition-old(*), html[data-motion="reduce"]::view-transition-new(*) { animation: none; }
html[data-motion="reduce"].js .nav.is-open { transition: opacity var(--dur-state) ease-out; }
@starting-style {html[data-motion="reduce"].js .nav.is-open { opacity: 0; translate: none; scale: none; }
}
html[data-motion="reduce"] .faq details[open] .faq__a { transition: none; }

/* shared elements (data-vt) */
[data-vt="werkplaats"]{view-transition-name:vt-werkplaats;view-transition-class:vt-shared}
[data-vt="onderkant"]{view-transition-name:vt-onderkant;view-transition-class:vt-shared}
