/* Van Amerongen Bouw en Timmerwerken, redesign v6 demo: the v4 design ("doorsnede") with a light and a dark mode.
   The light mode and the toggle are at the end of the file; everything before it is v4.

   v4:
   The site is drawn as a construction drawing: chalk-white lines on a dark sheet, the copper of the logo for what you can use. */

@font-face {
    font-family: 'Anybody';
    src: url('../fonts/anybody.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 50% 150%;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('../fonts/atkinson.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('../fonts/atkinson-italic.woff2') format('woff2');
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --papier: #0e0e0e;
    --vel: #171717;
    --inkt: #ece6dc;
    --inkt-2: #c9c3b8;
    --koper: #b1875e;
    --koper-licht: #cfa679;
    --koper-tint: #2e2720;
    --koper-vlak: #3b3026;
    --op-koper: #17130e;
    --potlood: #a09c96;
    --lijn: #2a2a2a;
    --lijn-donker: #474747;
    --fout: #e8877c;
    --fout-tint: #3a2222;

    --kop: 'Anybody', 'Arial Narrow', Arial, sans-serif;
    --tekst: 'Atkinson Hyperlegible Next', 'Segoe UI', Helvetica, Arial, sans-serif;

    --stap-0: 1.0625rem;
    --stap-1: 1.25rem;
    --stap-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
    --stap-3: clamp(1.8rem, 1.3rem + 1.9vw, 2.75rem);
    --stap-4: clamp(2.2rem, 1.35rem + 3.3vw, 4rem);

    --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
    --max: 76rem;
    --kop-h: 5.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--kop-h) + 1rem);
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--inkt);
    font-family: var(--tekst);
    font-size: var(--stap-0);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
    font-family: var(--kop);
    font-stretch: 116%;
    font-weight: 680;
    line-height: 1.08;
    letter-spacing: -0.012em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: var(--stap-4); line-height: 1.02; font-weight: 720; }
h2 { font-size: var(--stap-3); }
h3 { font-size: var(--stap-1); font-stretch: 110%; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--koper); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--koper-licht); }

:focus-visible { outline: 3px solid var(--koper); outline-offset: 2px; }

.lead { font-size: var(--stap-1); line-height: 1.5; color: var(--inkt-2); max-width: 38em; }
.klein { font-size: 0.9375rem; color: var(--potlood); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.smal > * { max-width: 52rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icoon { width: 1.15em; height: 1.15em; flex: none; }

.skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--koper); color: var(--op-koper); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

/* Buttons and links */

.knop {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    min-height: 3rem; padding: 0.7em 1.25em;
    border: 1.5px solid var(--koper); border-radius: 3px;
    background: var(--koper); color: var(--op-koper);
    font-family: var(--kop); font-stretch: 108%; font-weight: 620; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.knop:hover { background: var(--koper-licht); border-color: var(--koper-licht); color: var(--op-koper); }
.knop--lijn { background: transparent; border-color: var(--inkt); color: var(--inkt); }
.knop--lijn:hover { background: var(--inkt); border-color: var(--inkt); color: var(--papier); }
.knop:disabled { opacity: 0.6; cursor: progress; }

.acties { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.tekstlink {
    display: inline-flex; align-items: center; gap: 0.45em;
    font-family: var(--kop); font-stretch: 108%; font-weight: 620; text-decoration: none;
}
.tekstlink:hover .icoon { transform: translateX(3px); }
.tekstlink .icoon { transition: transform 0.15s; }

/* Header */

.kop {
    position: sticky; top: 0; z-index: 50;
    background: var(--papier);
    border-bottom: 1px solid var(--lijn);
    transition: background-color 0.25s, border-color 0.25s;
}

/* At the top of the page the header is light (it turns dark on scroll): the tokens are redefined for everything inside it. */
.kop.is-licht {
    --papier: #f2eee7;
    --vel: #ffffff;
    --inkt: #1d1a16;
    --inkt-2: #3a342c;
    --koper: #8a6239;
    --koper-licht: #6f4d2b;
    --koper-tint: #efe4d6;
    --potlood: #5e5850;
    --lijn: #d9d2c6;
    --lijn-donker: #b8afa1;
    color: var(--inkt);
    color-scheme: light;
}
.kop.is-licht .menu-diensten ul { box-shadow: 6px 6px 0 var(--koper-tint); }
.merk-zwart { display: none; }
.kop.is-licht .merk-wit { display: none; }
.kop.is-licht .merk-zwart { display: block; }

.kop-rij { display: flex; align-items: center; gap: 2rem; min-height: var(--kop-h); }
.merk img { width: auto; height: 72px; }
@media (max-width: 960px) { :root { --kop-h: 4.75rem; } .merk img { height: 58px; } }

.menu { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.menu-lijst { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }

.menu-lijst > li > a, .menu-diensten summary {
    display: block; padding: 0.5rem 0.8rem;
    font-family: var(--kop); font-stretch: 108%; font-weight: 560; font-size: 1rem;
    color: var(--inkt); text-decoration: none; cursor: pointer; border-radius: 3px;
}
.menu-lijst > li > a:hover, .menu-diensten summary:hover { color: var(--koper); }
.menu-lijst a[aria-current="page"], .menu-diensten summary.is-current {
    color: var(--koper); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em;
}

.menu-diensten { position: relative; }
.menu-diensten summary { list-style: none; display: flex; align-items: center; gap: 0.4rem; }
.menu-diensten summary::-webkit-details-marker { display: none; }
.menu-diensten summary::after {
    content: ''; width: 0.45rem; height: 0.45rem; margin-top: -0.2rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.menu-diensten details[open] summary::after { transform: rotate(-135deg); margin-top: 0.2rem; }
.menu-diensten ul {
    position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 14rem;
    list-style: none; margin: 0; padding: 0.4rem;
    background: var(--vel); border: 1px solid var(--inkt); box-shadow: 6px 6px 0 var(--koper-tint);
}
.menu-diensten ul a {
    display: block; padding: 0.55rem 0.75rem; color: var(--inkt); text-decoration: none;
    font-family: var(--kop); font-stretch: 106%; font-weight: 520;
}
.menu-diensten ul a:hover, .menu-diensten ul a[aria-current="page"] { background: var(--koper-tint); color: var(--koper-licht); }

.menu-tel {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--kop); font-stretch: 108%; font-weight: 650; color: var(--inkt); text-decoration: none;
    padding: 0.55rem 0.9rem; border: 1.5px solid var(--inkt); border-radius: 3px;
}
.menu-tel:hover { background: var(--inkt); color: var(--papier); }

.menu-knop {
    display: none; align-items: center; gap: 0.5rem; margin-left: auto;
    padding: 0.55rem 0.8rem; border: 1.5px solid var(--inkt); border-radius: 3px;
    background: transparent; color: var(--inkt);
    font: 600 1rem/1 var(--kop); font-stretch: 108%; cursor: pointer;
}

@media (max-width: 960px) {
    .menu-knop { display: inline-flex; }
    .menu {
        position: fixed; inset: var(--kop-h) 0 0 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 1.5rem;
        padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
        background: var(--papier);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
    }
    .menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s, transform 0.18s; }
    .menu-lijst { flex-direction: column; align-items: stretch; gap: 0; }
    .menu-lijst > li { border-bottom: 1px solid var(--lijn); }
    .menu-lijst > li > a, .menu-diensten summary { padding: 1rem 0; font-size: 1.35rem; }
    .menu-diensten ul { position: static; box-shadow: none; border: 0; padding: 0 0 0.75rem; background: transparent; }
    .menu-diensten ul a { padding: 0.5rem 0; font-size: 1.1rem; }
    .menu-tel { justify-content: center; font-size: 1.15rem; padding: 0.9rem; }
}

/* Sections */

.sectie { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.sectie + .sectie { border-top: 1px solid var(--lijn); }
.sectie--vel { background: var(--vel); }
.sectie--vel + .sectie, .sectie + .sectie--vel { border-top: 0; }

.sectie-kop { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.sectie-kop p { color: var(--potlood); }
.sectie-kop--rij { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; max-width: none; }
.sectie-kop--rij > div { max-width: 40rem; }

.twee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }

@media (max-width: 860px) {
    .twee { grid-template-columns: 1fr; }
}

/* Homepage opening: the drawing */

.opening { padding: clamp(2rem, 1rem + 3vw, 3.5rem) 0 0; }

.opening-tekst { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.opening h1 { font-size: clamp(2rem, 1.2rem + 2.3vw, 3rem); max-width: 24em; margin: 0 0 1rem; }
.opening-rij { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.opening .lead { font-size: 1.125rem; max-width: 36em; margin: 0; }
.opening .acties { margin-top: 0; }

/* Phones: the drawing comes straight after the heading, so it is on the first screen while it draws itself. */
@media (max-width: 760px) {
    .opening { display: flex; flex-direction: column; padding-top: 1.25rem; }
    .opening-tekst { display: contents; }
    .opening h1 { order: 1; padding: 0 var(--gutter); font-size: 1.75rem; margin-bottom: 1rem; }
    .opening > .wrap:not(.opening-tekst) { order: 2; }
    .opening-rij { order: 3; padding: 1.5rem var(--gutter) 0; }
    .opening .rolmaat { order: 4; }
}

.vel {
    margin: 0; background: var(--vel);
    border: 1px solid var(--lijn-donker);
    padding: clamp(0.5rem, 0.2rem + 1.2vw, 1.5rem);
    position: relative;
}
.vel::before {
    /* the drawing border of a real sheet, set in from the edge */
    content: ''; position: absolute; inset: 6px; border: 1px solid var(--lijn); pointer-events: none;
}
@media (min-width: 1000px) {
    .vel figcaption { position: absolute; top: clamp(1rem, 0.5rem + 1vw, 2rem); left: clamp(1rem, 0.5rem + 1vw, 2rem); max-width: 15rem; margin: 0; }
}
.vel figcaption, .mini figcaption {
    margin-top: 0.5rem; padding: 0 0.5rem 0.25rem;
    font-size: 0.9375rem; color: var(--potlood);
}

/* SVG drawing */

.tekening { width: 100%; height: auto; overflow: hidden; }
.tekening .t, .tekening .k, .tekening .d, .tekening .leider { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.tekening .t { stroke: var(--inkt); stroke-width: 1.8; }
.tekening .k { stroke: var(--inkt); stroke-width: 1.4; }
.tekening .d { stroke: var(--potlood); stroke-width: 1.1; }
.tekening .maaiveld { stroke-width: 2.6; }
.tekening .dicht { fill: var(--vel); stroke: none; }
.tekening .staal { fill: var(--inkt); }
.tekening pattern path { fill: none; stroke: var(--potlood); stroke-width: 0.75; stroke-linecap: round; }
.tekening .bouw { pointer-events: none; }

.tekening .vlak { fill: transparent; transition: fill 0.18s; }
.tekening .zone { cursor: pointer; outline: none; }
.tekening .zone .k, .tekening .zone .d { transition: stroke 0.18s; }

.tekening .label-vlak { fill: transparent; }
.tekening .label-naam { font-family: var(--kop); font-stretch: 112%; font-weight: 680; font-size: 25px; fill: var(--inkt); transition: fill 0.18s; }
.tekening .label-sub { font-family: var(--tekst); font-size: 15px; fill: var(--potlood); }
.tekening .leider { stroke: var(--potlood); stroke-width: 1; transition: stroke 0.18s; }
.tekening .punt { fill: var(--inkt); transition: fill 0.18s; }

.tekening .zone:hover .vlak, .tekening .zone.is-active .vlak, .tekening .zone:focus-visible .vlak { fill: var(--koper-vlak); }
.tekening .zone:hover .k, .tekening .zone:hover .d,
.tekening .zone.is-active .k, .tekening .zone.is-active .d,
.tekening .zone:focus-visible .k, .tekening .zone:focus-visible .d { stroke: var(--koper); }
.tekening .zone:hover .label-naam, .tekening .zone.is-active .label-naam, .tekening .zone:focus-visible .label-naam { fill: var(--koper); }
.tekening .zone:hover .leider, .tekening .zone.is-active .leider, .tekening .zone:focus-visible .leider { stroke: var(--koper); stroke-width: 1.6; }
.tekening .zone:hover .punt, .tekening .zone.is-active .punt, .tekening .zone:focus-visible .punt { fill: var(--koper); }
.tekening .zone:focus-visible .vlak { stroke: var(--koper); stroke-width: 2; stroke-dasharray: 6 4; }
.tekening .zone:focus-visible .label-naam { text-decoration: underline; }

/* On the homepage the drawing draws itself once: structure, then frames, then furniture, then labels. */
@media (prefers-reduced-motion: no-preference) {
    .tekening--groot .t, .tekening--groot .k, .tekening--groot .d {
        stroke-dasharray: 1; stroke-dashoffset: 1;
        animation: trek 1.5s cubic-bezier(0.45, 0, 0.2, 1) forwards;
    }
    .tekening--groot .k { animation-delay: 0.45s; }
    .tekening--groot .d { animation-delay: 0.8s; animation-duration: 1.2s; }
    .tekening--groot .vul, .tekening--groot .label {
        opacity: 0; animation: verschijn 0.6s ease-out 1.35s forwards;
    }
    .tekening--groot .label .leider { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

@keyframes trek { to { stroke-dashoffset: 0; } }
@keyframes verschijn { to { opacity: 1; } }

@media (max-width: 760px) {
    .tekening--groot .label { display: none; }
}

/* Service legend under the drawing */

.sectie--legenda { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.legenda-kop { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.legenda-kop h2 { margin: 0; }

.keuze { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.keuze a {
    display: block; padding: 0.5rem 0.95rem;
    border: 1.5px solid var(--inkt); border-radius: 3px;
    font-family: var(--kop); font-stretch: 108%; font-weight: 580; font-size: 0.975rem;
    color: var(--inkt); text-decoration: none;
}
.keuze a:hover { background: var(--koper-tint); }
.keuze a[aria-selected="true"] { background: var(--koper); border-color: var(--koper); color: var(--op-koper); }

.legenda { display: grid; gap: 1.5rem; }

.dienst {
    display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start;
    background: var(--vel); border: 1px solid var(--lijn-donker); padding: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
}
.dienst-foto { grid-row: span 2; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lijn); }
.dienst-foto img { width: 100%; height: 100%; object-fit: cover; }
.dienst h3 { font-size: var(--stap-3); margin-bottom: 0.4em; }
.dienst-tekst p { color: var(--inkt-2); }
.dienst-lijst { list-style: none; margin: 0; padding: 0; }
.dienst-lijst li { display: flex; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--lijn); }
.dienst-lijst li:first-child { padding-top: 0.2rem; }
.dienst-lijst .icoon, .vinkjes .icoon { color: var(--koper); margin-top: 0.22em; }
.dienst-link {
    grid-column: 2; align-self: end; justify-self: start; margin-top: 1.5rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--kop); font-stretch: 108%; font-weight: 650; text-decoration: none;
}
.dienst-link:hover .icoon { transform: translateX(3px); }
.dienst-link .icoon { transition: transform 0.15s; }

.is-js .legenda .dienst[hidden] { display: none; }
.is-js .dienst:not([hidden]) { animation: verschijn 0.25s ease-out; }

@media (max-width: 960px) {
    .dienst { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .dienst-foto { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; margin-bottom: 1.25rem; }
    .dienst-link { grid-column: 1; }
}

@media (max-width: 620px) {
    .dienst { grid-template-columns: 1fr; }
    .dienst-lijst { margin-top: 0.75rem; }
}

/* Process as a planning: each phase starts where the previous one ends */

.planning { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: stap; }
.planning li { counter-increment: stap; padding: 0 1.5rem 0 0; padding-top: calc(var(--i) * 1.6rem); }
.planning .balk {
    display: flex; align-items: center; height: 2.5rem; margin: 0 -1.5rem 1.25rem 0; padding: 0 0.9rem;
    background: var(--koper-tint); border-left: 3px solid var(--koper);
    font-family: var(--kop); font-stretch: 112%; font-weight: 700; color: var(--koper-licht);
}
.planning .balk::before { content: 'Stap ' counter(stap); }
.planning li:last-child .balk { background: var(--koper); color: var(--op-koper); }
.planning p { color: var(--inkt-2); }

@media (max-width: 860px) {
    .planning { grid-template-columns: 1fr; gap: 1.75rem; }
    .planning li { padding: 0 0 0 calc(var(--i) * 1rem); }
    .planning .balk { margin: 0 0 0.75rem; }
}

/* Project index with a preview */

.werkmap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.werkmap-beeld {
    position: sticky; top: calc(var(--kop-h) + 1.5rem); margin: 0;
    aspect-ratio: 4 / 3; overflow: hidden; background: var(--lijn); border: 1px solid var(--lijn-donker);
}
.werkmap-beeld img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.werkmap-beeld.is-wissel img { opacity: 0.35; }

.werkmap-lijst { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--inkt); }
.werkmap-lijst li { border-bottom: 1px solid var(--lijn); }
.werkmap-lijst button {
    display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; width: 100%;
    padding: 1.05rem 0.25rem; border: 0; background: none; color: var(--inkt); text-align: left; cursor: pointer;
}
.werkmap-duim { display: none; }
.werkmap-naam { font-family: var(--kop); font-stretch: 112%; font-weight: 640; font-size: var(--stap-2); line-height: 1.15; transition: color 0.15s, transform 0.15s; }
.werkmap-aantal { font-size: 0.9375rem; color: var(--potlood); white-space: nowrap; }
.werkmap-lijst button:hover .werkmap-naam, .werkmap-lijst button:focus-visible .werkmap-naam,
.werkmap-lijst button.is-actief .werkmap-naam { color: var(--koper); transform: translateX(0.4rem); }

@media (max-width: 760px) {
    .werkmap { grid-template-columns: 1fr; }
    .werkmap-beeld { display: none; }
    .werkmap-lijst button { grid-template-columns: 4.5rem 1fr; align-items: center; padding: 0.75rem 0; }
    .werkmap-duim { display: block; grid-row: span 2; width: 4.5rem; height: 3.5rem; object-fit: cover; }
    .werkmap-naam { font-size: 1.25rem; }
}

/* About */

.over { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.over-tekst { max-width: 34rem; }
.over-video { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--vel); border: 1px solid var(--lijn-donker); }
.over-video video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
    .over { grid-template-columns: 1fr; }
}

/* Reviews */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.review { margin: 0; padding-top: 1.25rem; border-top: 2px solid var(--inkt); display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 1.25rem; }
.review blockquote p { font-size: 1.0625rem; line-height: 1.65; }
.review blockquote p::before { content: '“'; }
.review blockquote p::after { content: '”'; }
.review figcaption { margin-top: auto; font-family: var(--kop); font-stretch: 108%; font-weight: 620; color: var(--koper-licht); }

/* FAQ */

.klein-kop { font-size: 1.05rem; margin: 2rem 0 0.75rem; }
.plaatsen { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.plaatsen li { padding: 0.25rem 0.7rem; border: 1px solid var(--lijn-donker); border-radius: 3px; background: var(--vel); font-size: 0.9375rem; }
.plaatsen a { text-decoration: none; }

.vragen { border-top: 1.5px solid var(--inkt); }
.vragen details { border-bottom: 1px solid var(--lijn); }
.vragen summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 0; cursor: pointer; list-style: none;
    font-family: var(--kop); font-stretch: 108%; font-weight: 620; font-size: 1.125rem;
}
.vragen summary::-webkit-details-marker { display: none; }
.vragen summary:hover { color: var(--koper); }
.vragen summary .icoon { color: var(--koper); transition: transform 0.2s; }
.vragen details[open] summary .icoon { transform: rotate(45deg); }
.vragen details p { padding: 0 2.5rem 1.25rem 0; color: var(--inkt-2); }

/* Contact and form */

.sectie--contact { background: var(--koper-tint); }
.sectie--contact + .sectie { border-top: 0; }

.contact-lijnen { list-style: none; margin: 1.75rem 0 1rem; padding: 0; }
.contact-lijnen li { border-top: 1px solid var(--lijn-donker); }
.contact-lijnen li:last-child { border-bottom: 1px solid var(--lijn-donker); }
.contact-lijnen a {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 0;
    font-family: var(--kop); font-stretch: 108%; font-weight: 620; font-size: 1.1rem; color: var(--inkt); text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-lijnen a:hover { color: var(--koper); }
.contact-lijnen .icoon { color: var(--koper); }

.formulier {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem;
    background: var(--vel); border: 1px solid var(--inkt); padding: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);
    box-shadow: 10px 10px 0 var(--koper);
}
.veld { display: flex; flex-direction: column; gap: 0.35rem; }
.veld--breed, .formulier-voet, .formulier-status { grid-column: 1 / -1; }
.veld label { font-family: var(--kop); font-stretch: 106%; font-weight: 620; font-size: 0.95rem; }
.veld label span { font-family: var(--tekst); font-weight: 400; color: var(--potlood); }
.veld input, .veld select, .veld textarea {
    width: 100%; padding: 0.75rem 0.85rem;
    border: 1.5px solid var(--lijn-donker); border-radius: 2px; background: var(--vel);
    font: inherit; font-size: 1rem; color: var(--inkt);
}
.veld textarea { resize: vertical; min-height: 9rem; }
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: none; border-color: var(--koper); box-shadow: 0 0 0 3px var(--koper-tint); }
.veld input:user-invalid, .veld textarea:user-invalid { border-color: var(--fout); }
.formulier-voet { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.25rem; }
.formulier-voet p { font-size: 0.875rem; color: var(--potlood); margin: 0; }
.formulier-status:empty { display: none; }
.formulier-status { padding: 0.9rem 1rem; border-left: 3px solid var(--koper); background: var(--koper-tint); }
.formulier-status.is-fout { border-color: var(--fout); background: var(--fout-tint); }
.honeypot { position: absolute; left: -9999px; }

@media (max-width: 560px) {
    .formulier { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--koper); }
}

/* Footer as the title block of a drawing */

.titelblok { background: var(--papier); padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 6rem; border-top: 1px solid var(--lijn); }
.blok {
    display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 1px;
    background: var(--lijn-donker); border: 1.5px solid var(--lijn-donker);
}
.cel { background: var(--vel); padding: 0.85rem 1rem 1rem; font-size: 0.9375rem; overflow-wrap: anywhere; }
.cel a { color: var(--inkt); text-decoration: none; }
.cel a:hover { color: var(--koper); text-decoration: underline; }
.cel-kop { display: block; margin-bottom: 0.2rem; font-size: 0.8125rem; color: var(--potlood); }
.cel--merk { grid-row: span 3; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.cel--merk img { width: 13rem; }
.cel--merk p { color: var(--inkt-2); }
.cel--lijst ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1rem; }
.cel--lijst + .cel--lijst { grid-column: span 2; }
.cel--lijst li { padding: 0.1rem 0; }
.cel--klein { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--potlood); }

@media (max-width: 900px) {
    .blok { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cel--merk { grid-row: auto; grid-column: 1 / -1; }
    .cel--lijst, .cel--lijst + .cel--lijst { grid-column: 1 / -1; }
}

/* Floating call button on phones */

.belknop {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
    display: none; align-items: center; gap: 0.5rem; padding: 0.85rem 1.15rem;
    background: var(--koper); color: var(--op-koper); border-radius: 3px; text-decoration: none;
    font-family: var(--kop); font-stretch: 108%; font-weight: 650;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
    transform: translateY(150%); transition: transform 0.25s;
}
.belknop:hover { color: var(--op-koper); }
.belknop.is-zichtbaar { transform: none; }

@media (max-width: 760px) {
    .belknop { display: inline-flex; }
}

/* Subpage header */

.pagina-kop { padding: clamp(1.75rem, 1rem + 2.5vw, 3rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.pagina-kop-rij { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.pagina-kop h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.pagina-kop .lead { font-size: 1.125rem; }

.kruimel ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: 0.9375rem; color: var(--potlood); }
.kruimel li + li::before { content: '/'; margin-right: 0.35rem; color: var(--lijn-donker); }
.kruimel a { color: var(--potlood); }
.kruimel a:hover { color: var(--koper); }

.mini { margin: 0; background: var(--vel); border: 1px solid var(--lijn-donker); padding: 0.75rem 0.75rem 0.5rem; }
.mini .tekening { margin: 0 auto; }

.strook { margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 0; aspect-ratio: 21 / 8; overflow: hidden; background: var(--lijn); }
.strook img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
    .pagina-kop-rij { grid-template-columns: 1fr; }
    .strook { aspect-ratio: 16 / 9; }
}

/* Service text, set like a specification */

.bestek {
    display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 1rem clamp(2rem, 1rem + 4vw, 5rem);
    padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0; border-top: 1.5px solid var(--inkt);
}
.bestek:first-child { padding-top: 0; border-top: 0; }
.bestek h2 { font-size: var(--stap-2); align-self: start; position: sticky; top: calc(var(--kop-h) + 1.5rem); }
.bestek-tekst { max-width: 44rem; }
.bestek-tekst > p { color: var(--inkt-2); }

.specs { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--lijn-donker); }
.specs li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--lijn); }
.specs strong { font-family: var(--kop); font-stretch: 108%; font-weight: 650; }
.specs span { color: var(--inkt-2); }
.specs a { font-family: var(--kop); font-stretch: 108%; font-weight: 650; }

.vinkjes { list-style: none; margin: 0; padding: 0; }
.vinkjes li { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--lijn); }
.vinkjes li:first-child { padding-top: 0; }
.vinkjes strong { font-weight: 700; }

.stappen { list-style: none; margin: 0; padding: 0; counter-reset: stap; }
.stappen li {
    counter-increment: stap; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.2rem 1rem;
    padding: 1rem 0; border-bottom: 1px solid var(--lijn);
}
.stappen li:first-child { padding-top: 0; }
.stappen li::before {
    content: counter(stap); grid-row: span 2;
    display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
    border: 1.5px solid var(--koper); color: var(--koper);
    font-family: var(--kop); font-weight: 700; font-stretch: 112%;
}
.stappen strong { font-family: var(--kop); font-stretch: 108%; font-weight: 650; font-size: 1.1rem; }
.stappen span { color: var(--inkt-2); }

@media (max-width: 860px) {
    .bestek { grid-template-columns: 1fr; }
    .bestek h2 { position: static; }
    .specs li { grid-template-columns: 1fr; }
}

/* Cobalt band */

.band { background: var(--koper); color: var(--op-koper); padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; }
.band-rij { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.band-rij > div:first-child { max-width: 44rem; }
.band h2 { font-size: var(--stap-3); }
.band p { color: color-mix(in srgb, var(--op-koper) 88%, var(--koper)); }
.band a:not(.knop) { color: var(--op-koper); }
.band .acties { margin-top: 0; }
.band .knop { background: var(--papier); border-color: var(--papier); color: var(--inkt); }
.band .knop:hover { background: var(--op-koper); border-color: var(--op-koper); color: var(--inkt); }
.band .knop--lijn { background: transparent; border-color: var(--op-koper); color: var(--op-koper); }
.band :focus-visible { outline-color: var(--op-koper); }

/* Gallery: photos keep their own proportions */

.galerij { columns: 4 14rem; column-gap: 0.75rem; }
.galerij a { display: block; margin-bottom: 0.75rem; break-inside: avoid; background: var(--lijn); overflow: hidden; }
.galerij img { width: 100%; transition: transform 0.3s; }
.galerij a:hover img { transform: scale(1.03); }
.galerij .is-extra { display: none; }
.galerij.is-alles .is-extra { display: block; }
.galerij-meer { margin-top: 1.25rem; }

/* Other services */

.andere { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.andere a { display: block; height: 100%; padding-top: 1rem; border-top: 2px solid var(--inkt); color: var(--inkt); text-decoration: none; }
.andere span { display: block; margin-bottom: 0.35rem; font-family: var(--kop); font-stretch: 112%; font-weight: 680; font-size: 1.35rem; }
.andere small { display: block; font-size: 0.9375rem; color: var(--potlood); line-height: 1.5; }
.andere a:hover { border-color: var(--koper); }
.andere a:hover span { color: var(--koper); }

/* 404 */

.pagina-kop--404 { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.pagina-kop--404 .plaatsen { margin-top: 1.5rem; }

/* Lightbox */

.lichtbak {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(10, 10, 10, 0.97); color: var(--inkt);
}
.lichtbak::backdrop { background: rgba(0, 0, 0, 0.6); }
.lichtbak[open] { display: grid; grid-template-rows: auto 1fr; }
.lichtbak-balk { display: flex; align-items: center; gap: 1rem; padding: 0.75rem var(--gutter); }
.lichtbak-titel { margin: 0; font-family: var(--kop); font-stretch: 110%; font-weight: 650; }
.lichtbak-teller { margin: 0 auto 0 0; color: var(--potlood); font-size: 0.9375rem; }
.lichtbak-sluit, .lichtbak-vorige, .lichtbak-volgende {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.8rem;
    border: 1.5px solid rgba(236, 230, 220, 0.45); border-radius: 3px; background: transparent; color: var(--inkt);
    font: 600 0.95rem/1 var(--kop); cursor: pointer;
}
.lichtbak-sluit:hover, .lichtbak-vorige:hover, .lichtbak-volgende:hover { background: var(--inkt); color: var(--papier); }
.lichtbak-foto { margin: 0; display: grid; place-items: center; padding: 0 4.5rem 1.5rem; min-height: 0; }
.lichtbak-foto img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; }
.lichtbak-vorige, .lichtbak-volgende { position: absolute; top: 50%; transform: translateY(-50%); padding: 0.8rem; }
.lichtbak-vorige { left: 0.75rem; }
.lichtbak-volgende { right: 0.75rem; }
.lichtbak :focus-visible { outline-color: var(--koper); }

@media (max-width: 620px) {
    .lichtbak-foto { padding: 0 0.5rem 5rem; }
    .lichtbak-vorige, .lichtbak-volgende { top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.mini--foto { padding: 0.75rem; }
.mini--foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* The tape measure (rolmaat): the hook stays on the left edge while the case rolls to the right, paying out
   the tape behind it. On the homepage it waits, rolled up at the left, until it is scrolled into view (main.js adds .unfold). */

.rolmaat {
    --cm: 1.2rem;
    --band: calc(1.7 * var(--cm));
    --huis: calc(4.4 * var(--cm));
    --geel: #efc12f;
    --rood: #c8352b;
    --hout: #231b15;
    container-type: inline-size;
    position: relative;
    overflow-x: clip;
    height: calc(var(--huis) + 0.5rem);
    margin-top: clamp(2rem, 1rem + 2vw, 3rem);
}

.opening .rolmaat { margin-top: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem); }

/* The tape runs from the left edge to the middle of the case. */
.rolmaat-band {
    position: absolute; left: 0; top: calc(var(--huis) - var(--band) - 0.3 * var(--cm));
    width: calc(100% - var(--gutter) - var(--huis) / 2); height: var(--band);
    overflow: hidden;
    background-color: var(--geel);
    background-image:
        repeating-linear-gradient(to right, var(--hout) 0 1px, transparent 1px var(--cm)),
        repeating-linear-gradient(to right, transparent 0 calc(var(--cm) / 2), var(--hout) calc(var(--cm) / 2) calc(var(--cm) / 2 + 1px), transparent calc(var(--cm) / 2 + 1px) var(--cm)),
        repeating-linear-gradient(to right, rgba(35, 27, 21, 0.55) 0 1px, transparent 1px calc(var(--cm) / 10)),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent 25%, transparent 70%, rgba(0, 0, 0, 0.18));
    background-size: 100% 36%, 100% 24%, 100% 14%, 100% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 7px 12px -6px rgba(0, 0, 0, 0.75);
}

.rolmaat-cijfers {
    position: absolute; left: 0; bottom: 10%;
    display: flex;
    font-family: var(--kop); font-stretch: 62%; font-weight: 700;
    font-size: calc(0.6 * var(--cm)); line-height: 1; color: var(--hout);
}
.rolmaat-cijfers span { width: var(--cm); flex: none; text-align: right; padding-right: 2px; }
.rolmaat-cijfers .dm { color: var(--rood); }

/* The metal end hook, bent over the left edge. */
.rolmaat-haak {
    position: absolute; left: 0; top: calc(var(--huis) - var(--band) - 0.55 * var(--cm));
    width: calc(0.32 * var(--cm)); height: calc(var(--band) + 0.5 * var(--cm));
    background: linear-gradient(to right, #8d8a84, #e4e0d8 45%, #a9a59e);
    border-radius: 0 2px 2px 0;
}

/* The case: dark body, copper side plate with its centre screw, and the lock button on top. */
.rolmaat-huis {
    position: absolute; top: 0; left: calc(100% - var(--gutter) - var(--huis));
    width: var(--huis); height: var(--huis);
}
.rolmaat-kap {
    position: absolute; inset: 0;
    border-radius: 28% 28% 28% 12%;
    background: linear-gradient(160deg, #3a3a3a, #121212 60%);
    box-shadow: inset 0 0 0 2px #050505, 0 10px 18px -8px rgba(0, 0, 0, 0.8);
    transform-origin: 30% 100%;
}
.rolmaat-kap::before {
    content: ''; position: absolute; inset: 14%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--koper-licht), var(--koper) 55%, #6f4d2b);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.35);
}
.rolmaat-kap::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 16%; height: 16%; margin: -8% 0 0 -8%; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f4f1ea, #8d8a84 70%);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
}
.rolmaat-knop {
    position: absolute; top: -9%; left: 18%;
    width: 30%; height: 14%; border-radius: 4px 4px 0 0;
    background: linear-gradient(#efc12f, #b88f16);
}

@media (max-width: 760px) {
    .rolmaat { --cm: 0.95rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .rolmaat--scroll:not(.unfold) .rolmaat-huis { transform: translateX(calc(var(--huis) + var(--gutter) - 100cqw)); }
    .js .rolmaat--scroll:not(.unfold) .rolmaat-band { clip-path: inset(0 calc(100% - var(--huis) / 2) 0 0); }
    .rolmaat.unfold .rolmaat-huis { animation: rolmaat-huis 1.5s cubic-bezier(0.22, 0.75, 0.25, 1.04) both; }
    .rolmaat.unfold .rolmaat-band { animation: rolmaat-band 1.5s cubic-bezier(0.22, 0.75, 0.25, 1.04) both; }
    .rolmaat.unfold .rolmaat-kap { animation: rolmaat-rol 1.5s ease-out both; }
}

@keyframes rolmaat-huis { from { transform: translateX(calc(var(--huis) + var(--gutter) - 100cqw)); } }
@keyframes rolmaat-band { from { clip-path: inset(0 calc(100% - var(--huis) / 2) 0 0); } to { clip-path: inset(0 0 0 0); } }
/* The case tips forward while it is pulled and settles back when the tape stops. */
@keyframes rolmaat-rol {
    0% { transform: rotate(0); }
    15% { transform: rotate(-7deg); }
    80% { transform: rotate(-3deg); }
    90% { transform: rotate(2deg); }
    100% { transform: rotate(0); }
}

/* Jigsaw divider: a board that a jigsaw cuts along in a wavy line, its blade pumping up and down. When it is
   scrolled to, the saw follows the curve from left to right (main.js adds .unfold). It replaces the section border. */

.decoupeer {
    --w: 6rem;
    --plank: 2.25rem;
    --duur: 4s;
    --boven: calc(var(--w) * 0.56 - var(--plank) * 0.2 + 0.25rem);
    container-type: inline-size;
    position: relative;
    height: calc(var(--boven) + var(--plank) + 0.75rem);
    overflow-x: clip;
}
.decoupeer + .sectie { border-top: 0; }

.decoupeer-plank {
    position: absolute; left: 0; right: 0; top: var(--boven); height: var(--plank);
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.3)),
        repeating-linear-gradient(177deg, transparent 0 9px, rgba(60, 38, 18, 0.22) 9px 10px, transparent 10px 21px),
        #a47a4f;
    box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.8);
}
.decoupeer-snede { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.decoupeer-snede polyline { fill: none; stroke: #1a120b; stroke-width: 3; vector-effect: non-scaling-stroke; }

/* The blade sits at (72, 70) of the 100 × 80 drawing; that point rides on the cut line. */
.decoupeer-baan {
    position: absolute; left: 0; top: calc(var(--boven) + var(--plank) / 2 - var(--w) * 0.56);
    width: var(--w); height: calc(var(--w) * 0.8);
    transform: translateX(calc(100cqw + var(--w)));
}
.decoupeer-golf { width: 100%; height: 100%; }
.decoupeer-machine { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.decoupeer-huis { fill: var(--koper); }
.decoupeer-greep { fill: none; stroke: #2b2b2b; stroke-width: 7; stroke-linecap: round; }
.decoupeer-neus { fill: #2b2b2b; }
.decoupeer-rooster { stroke: #5c4128; stroke-width: 2.5; stroke-linecap: round; }
.decoupeer-voet { fill: #b9b5ae; stroke: #6f6c67; stroke-width: 1; }
.decoupeer-zaagblad { fill: #d9d5ce; transform-box: fill-box; }

@media (max-width: 760px) {
    .decoupeer { --w: 4.75rem; --plank: 1.9rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .decoupeer--scroll:not(.unfold) .decoupeer-baan { transform: translateX(calc(-1 * var(--w))); }
    .js .decoupeer--scroll:not(.unfold) .decoupeer-snede { clip-path: inset(0 100% 0 0); }
    .decoupeer.unfold .decoupeer-baan { animation: decoupeer-baan var(--duur) linear both; }
    .decoupeer.unfold .decoupeer-golf { animation: decoupeer-golf var(--duur) linear both; }
    .decoupeer.unfold .decoupeer-snede { animation: decoupeer-snede var(--duur) linear both; }
    .decoupeer.unfold .decoupeer-zaagblad { animation: decoupeer-pomp 0.08s linear 50 alternate both; }
}

/* The blade is 72% of the way along the saw; it reaches the left edge of the board at 10% and the right edge at 90%. */
@keyframes decoupeer-baan {
    0% { transform: translateX(calc(-1 * var(--w))); }
    10% { transform: translateX(calc(var(--w) * -0.72)); }
    90% { transform: translateX(calc(100cqw - var(--w) * 0.72)); }
    100% { transform: translateX(calc(100cqw + var(--w))); }
}
@keyframes decoupeer-snede {
    0%, 10% { clip-path: inset(0 100% 0 0); }
    90%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes decoupeer-golf {
    0%, 10% { transform: translateY(0); }
    11.67% { transform: translateY(calc(var(--plank) * 0.1500)); }
    13.33% { transform: translateY(calc(var(--plank) * 0.2598)); }
    15.00% { transform: translateY(calc(var(--plank) * 0.3000)); }
    16.67% { transform: translateY(calc(var(--plank) * 0.2598)); }
    18.33% { transform: translateY(calc(var(--plank) * 0.1500)); }
    20.00% { transform: translateY(calc(var(--plank) * 0.0000)); }
    21.67% { transform: translateY(calc(var(--plank) * -0.1500)); }
    23.33% { transform: translateY(calc(var(--plank) * -0.2598)); }
    25.00% { transform: translateY(calc(var(--plank) * -0.3000)); }
    26.67% { transform: translateY(calc(var(--plank) * -0.2598)); }
    28.33% { transform: translateY(calc(var(--plank) * -0.1500)); }
    30.00% { transform: translateY(calc(var(--plank) * -0.0000)); }
    31.67% { transform: translateY(calc(var(--plank) * 0.1500)); }
    33.33% { transform: translateY(calc(var(--plank) * 0.2598)); }
    35.00% { transform: translateY(calc(var(--plank) * 0.3000)); }
    36.67% { transform: translateY(calc(var(--plank) * 0.2598)); }
    38.33% { transform: translateY(calc(var(--plank) * 0.1500)); }
    40.00% { transform: translateY(calc(var(--plank) * 0.0000)); }
    41.67% { transform: translateY(calc(var(--plank) * -0.1500)); }
    43.33% { transform: translateY(calc(var(--plank) * -0.2598)); }
    45.00% { transform: translateY(calc(var(--plank) * -0.3000)); }
    46.67% { transform: translateY(calc(var(--plank) * -0.2598)); }
    48.33% { transform: translateY(calc(var(--plank) * -0.1500)); }
    50.00% { transform: translateY(calc(var(--plank) * -0.0000)); }
    51.67% { transform: translateY(calc(var(--plank) * 0.1500)); }
    53.33% { transform: translateY(calc(var(--plank) * 0.2598)); }
    55.00% { transform: translateY(calc(var(--plank) * 0.3000)); }
    56.67% { transform: translateY(calc(var(--plank) * 0.2598)); }
    58.33% { transform: translateY(calc(var(--plank) * 0.1500)); }
    60.00% { transform: translateY(calc(var(--plank) * 0.0000)); }
    61.67% { transform: translateY(calc(var(--plank) * -0.1500)); }
    63.33% { transform: translateY(calc(var(--plank) * -0.2598)); }
    65.00% { transform: translateY(calc(var(--plank) * -0.3000)); }
    66.67% { transform: translateY(calc(var(--plank) * -0.2598)); }
    68.33% { transform: translateY(calc(var(--plank) * -0.1500)); }
    70.00% { transform: translateY(calc(var(--plank) * -0.0000)); }
    71.67% { transform: translateY(calc(var(--plank) * 0.1500)); }
    73.33% { transform: translateY(calc(var(--plank) * 0.2598)); }
    75.00% { transform: translateY(calc(var(--plank) * 0.3000)); }
    76.67% { transform: translateY(calc(var(--plank) * 0.2598)); }
    78.33% { transform: translateY(calc(var(--plank) * 0.1500)); }
    80.00% { transform: translateY(calc(var(--plank) * 0.0000)); }
    81.67% { transform: translateY(calc(var(--plank) * -0.1500)); }
    83.33% { transform: translateY(calc(var(--plank) * -0.2598)); }
    85.00% { transform: translateY(calc(var(--plank) * -0.3000)); }
    86.67% { transform: translateY(calc(var(--plank) * -0.2598)); }
    88.33% { transform: translateY(calc(var(--plank) * -0.1500)); }
    90.00% { transform: translateY(calc(var(--plank) * -0.0000)); }
    100% { transform: translateY(0); }
}
@keyframes decoupeer-pomp { to { transform: translateY(-5px); } }

/* Drill divider: a plywood strip shown in cross-section. When it is scrolled to, a cordless drill comes in from
   the left and bores a row of holes, each dropping in, spitting out shavings and lifting out again (main.js adds .unfold). */

.boor {
    --boor-b: 6rem;
    --boor-h: calc(var(--boor-b) * 1.5);
    --plank: 1.5rem;
    --lucht: 0.75rem;
    --zak: calc(var(--lucht) + 0.6 * var(--plank));
    --duur: 5s;
    container-type: inline-size;
    position: relative;
    height: calc(var(--boor-h) + var(--lucht) + var(--plank) + 1.5rem);
    overflow-x: clip;
}
.boor + .sectie { border-top: 0; }

/* Birch plywood: light face with the darker glue lines of its plies. */
.boor-plank {
    position: absolute; left: 0; right: 0; top: calc(var(--boor-h) + var(--lucht)); height: var(--plank);
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.25)),
        repeating-linear-gradient(to bottom, #d9c39b 0 calc(var(--plank) / 5 - 1px), #a88b5f calc(var(--plank) / 5 - 1px) calc(var(--plank) / 5));
    box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.8);
}

/* Each bore: a dark slot from the top edge, 60% deep, grown while the bit is in. */
.boor-gat {
    position: absolute; left: var(--x); top: 0;
    width: calc(0.25rem + 2px); height: 60%; margin-left: calc(-0.125rem - 1px);
    background: #1a120b; border-radius: 0 0 2px 2px;
}
.boor-gat i {
    position: absolute; left: 50%; top: 0; width: 4px; height: 4px; border-radius: 1px;
    background: #e8d6b3; opacity: 0;
}

.boor-arm {
    position: absolute; left: 0; top: 0;
    width: var(--boor-b); height: var(--boor-h);
    transform: translate(calc(100cqw + var(--boor-b)), 0px);
}
.boor-machine { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.boor-motor { fill: var(--koper); }
.boor-rooster { stroke: #5c4128; stroke-width: 2.5; stroke-linecap: round; }
.boor-greep { fill: #2b2b2b; }
.boor-trekker { fill: #0c0c0c; }
.boor-accu { fill: #1f1f1f; stroke: #3a3a3a; stroke-width: 1.5; }
.boor-accu-streep { fill: var(--koper); }
.boor-klauw { fill: #8d8a84; }
.boor-ribbel { stroke: #55524d; stroke-width: 2; }

/* The twist bit: diagonal flutes that run while it spins. */
.boor-bit {
    position: absolute; left: 28%; top: 69.3%;
    width: 4%; min-width: 3px; height: 30.7%;
    border-radius: 0 0 50% 50% / 0 0 3px 3px;
    background: repeating-linear-gradient(150deg, #e4e0d8 0 3px, #77736d 3px 5px);
    background-size: 100% 10px;
}

@media (max-width: 760px) {
    .boor { --boor-b: 4.5rem; --plank: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .boor--scroll:not(.unfold) .boor-arm { transform: translate(calc(-1 * var(--boor-b)), 0px); }
    .js .boor--scroll:not(.unfold) .boor-gat { transform: scaleY(0); }
    .boor.unfold .boor-arm { animation: boor-pad var(--duur) ease-in-out both; }
    .boor.unfold .boor-bit { animation: boor-draai 0.25s linear 20 both; }
    .boor.unfold .boor-gat {
        transform-origin: 50% 0;
        animation: boor-gat calc(0.083 * var(--duur)) ease-in both;
        animation-delay: calc((var(--t) + 0.15) * var(--duur));
    }
    .boor.unfold .boor-gat i { animation: boor-spaan 0.5s ease-out calc((var(--t) + 0.15) * var(--duur)) 1 both; }
    .boor.unfold .boor-gat i:nth-child(2) { --kant: -1; animation-delay: calc((var(--t) + 0.167) * var(--duur)); }
    .boor.unfold .boor-gat i:nth-child(3) { --kant: 0.6; animation-delay: calc((var(--t) + 0.192) * var(--duur)); }
}

@keyframes boor-pad {
    0.0% { transform: translate(calc(-1 * var(--boor-b)), 0px); }
    14.0% { transform: translate(calc(20cqw - 0.3 * var(--boor-b)), 0px); }
    19.0% { transform: translate(calc(20cqw - 0.3 * var(--boor-b)), var(--zak)); }
    23.2% { transform: translate(calc(20cqw - 0.3 * var(--boor-b)), calc(var(--zak) + 0.12rem)); }
    27.3% { transform: translate(calc(20cqw - 0.3 * var(--boor-b)), var(--zak)); }
    32.3% { transform: translate(calc(20cqw - 0.3 * var(--boor-b)), 0px); }
    44.0% { transform: translate(calc(50cqw - 0.3 * var(--boor-b)), 0px); }
    49.0% { transform: translate(calc(50cqw - 0.3 * var(--boor-b)), var(--zak)); }
    53.2% { transform: translate(calc(50cqw - 0.3 * var(--boor-b)), calc(var(--zak) + 0.12rem)); }
    57.3% { transform: translate(calc(50cqw - 0.3 * var(--boor-b)), var(--zak)); }
    62.3% { transform: translate(calc(50cqw - 0.3 * var(--boor-b)), 0px); }
    74.0% { transform: translate(calc(80cqw - 0.3 * var(--boor-b)), 0px); }
    79.0% { transform: translate(calc(80cqw - 0.3 * var(--boor-b)), var(--zak)); }
    83.2% { transform: translate(calc(80cqw - 0.3 * var(--boor-b)), calc(var(--zak) + 0.12rem)); }
    87.3% { transform: translate(calc(80cqw - 0.3 * var(--boor-b)), var(--zak)); }
    92.3% { transform: translate(calc(80cqw - 0.3 * var(--boor-b)), 0px); }
    100.0% { transform: translate(calc(100cqw + var(--boor-b)), 0px); }
}
@keyframes boor-draai { to { background-position: 0 10px; } }
@keyframes boor-gat { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes boor-spaan {
    0% { opacity: 1; transform: translate(-50%, 0) rotate(0); }
    100% { opacity: 0; transform: translate(calc(var(--kant, 1) * 1.4rem), -1.1rem) rotate(160deg); }
}

/* Screw divider: a decking board with five screws standing proud. When it is scrolled to, a screwdriver goes from
   screw to screw and drives each one flush; the shanks disappear behind the board (main.js adds .unfold). */

.schroef-rij {
    --h: 6rem;
    --b: 1.6rem;
    --l: 1.1rem;
    --plank: 1.5rem;
    --kop: 0.25rem;
    --bovenkant: calc(var(--h) + var(--l) + var(--kop) + 0.6rem);
    --duur: 5s;
    container-type: inline-size;
    position: relative;
    height: calc(var(--bovenkant) + var(--plank) + 1rem);
    overflow-x: clip;
}
.schroef-rij + .sectie { border-top: 0; }

.schroef-plank {
    position: absolute; left: 0; right: 0; top: var(--bovenkant); height: var(--plank); z-index: 1;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.3)),
        repeating-linear-gradient(178deg, transparent 0 5px, rgba(40, 24, 10, 0.3) 5px 6px, transparent 6px 13px),
        #7a5536;
    box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.8);
}

/* A screw: the head sits on the board when driven; the threaded shank hangs below it, behind the board. */
.schroef {
    position: absolute; left: var(--x); top: calc(var(--bovenkant) - var(--kop));
    width: 0.9rem; height: var(--kop); margin-left: -0.45rem;
    background: linear-gradient(to bottom, #e4e0d8, #8d8a84);
    border-radius: 0.2rem 0.2rem 0 0;
}
.schroef i {
    position: absolute; left: 50%; top: 100%;
    width: 0.3rem; height: var(--l); margin-left: -0.15rem;
    background: repeating-linear-gradient(160deg, #b9b5ae 0 2px, #6f6c67 2px 4px);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

/* At rest the screwdriver waits past the right edge, so without the animation only the driven screws show. */
.schroef-hand {
    position: absolute; left: 0; top: calc(var(--bovenkant) - var(--kop) - var(--h));
    width: var(--b); height: var(--h);
    transform: translate(calc(100cqw + var(--b)), calc(-1 * (var(--l) + 0.6rem)));
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}
.schroef-greep {
    position: absolute; left: 0; right: 0; top: 0; height: 48%;
    border-radius: 0.6rem 0.6rem 0.35rem 0.35rem;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%, rgba(0, 0, 0, 0.35)),
        repeating-linear-gradient(to right, var(--koper) 0 5px, #6f4d2b 5px 7px);
}
.schroef-schacht {
    position: absolute; left: 50%; top: 48%; bottom: 0;
    width: 0.24rem; margin-left: -0.12rem;
    background: linear-gradient(to right, #8d8a84, #e4e0d8 45%, #8d8a84);
    clip-path: polygon(0 0, 100% 0, 100% 94%, 70% 100%, 30% 100%, 0 94%);
}

@media (max-width: 760px) {
    .schroef-rij { --h: 4.75rem; --plank: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .schroef--scroll:not(.unfold) .schroef-hand { transform: translate(calc(-1 * var(--b)), calc(-1 * (var(--l) + 0.6rem))); }
    .js .schroef--scroll:not(.unfold) .schroef { transform: translateY(calc(-1 * var(--l))); }
    .schroef-rij.unfold .schroef-hand { animation: schroef-pad var(--duur) ease-in-out both; }
    .schroef-rij.unfold .schroef-greep { animation: schroef-draai 0.2s linear 25 both; }
    .schroef-rij.unfold .schroef {
        animation: schroef-in calc(0.133 * var(--duur)) linear both;
        animation-delay: calc((var(--t) + 0.117) * var(--duur));
    }
}

@keyframes schroef-pad {
    0.0% { transform: translate(calc(-1 * var(--b)), calc(-1 * (var(--l) + 0.6rem))); }
    12.3% { transform: translate(calc(20cqw - var(--b) / 2), calc(-1 * (var(--l) + 0.6rem))); }
    15.7% { transform: translate(calc(20cqw - var(--b) / 2), calc(-1 * var(--l))); }
    29.0% { transform: translate(calc(20cqw - var(--b) / 2), 0px); }
    32.3% { transform: translate(calc(20cqw - var(--b) / 2), calc(-1 * (var(--l) + 0.6rem))); }
    42.3% { transform: translate(calc(50cqw - var(--b) / 2), calc(-1 * (var(--l) + 0.6rem))); }
    45.7% { transform: translate(calc(50cqw - var(--b) / 2), calc(-1 * var(--l))); }
    59.0% { transform: translate(calc(50cqw - var(--b) / 2), 0px); }
    62.3% { transform: translate(calc(50cqw - var(--b) / 2), calc(-1 * (var(--l) + 0.6rem))); }
    72.3% { transform: translate(calc(80cqw - var(--b) / 2), calc(-1 * (var(--l) + 0.6rem))); }
    75.7% { transform: translate(calc(80cqw - var(--b) / 2), calc(-1 * var(--l))); }
    89.0% { transform: translate(calc(80cqw - var(--b) / 2), 0px); }
    92.3% { transform: translate(calc(80cqw - var(--b) / 2), calc(-1 * (var(--l) + 0.6rem))); }
    100.0% { transform: translate(calc(100cqw + var(--b)), calc(-1 * (var(--l) + 0.6rem))); }
}
/* Ribs sliding across the handle read as the handle turning. */
@keyframes schroef-draai { to { background-position: 0 0, 7px 0; } }
@keyframes schroef-in { from { transform: translateY(calc(-1 * var(--l))); } to { transform: none; } }

/* Plaster divider: a band of rough, freshly applied plaster. When it is scrolled to, a trowel sweeps across it in
   short strokes and leaves a smooth finish behind (main.js adds .unfold). */

.stuc {
    --band: 3.25rem;
    --w: 6.5rem;
    --duur: 3.2s;
    container-type: inline-size;
    position: relative;
    height: calc(var(--band) + 3.5rem);
    overflow-x: clip;
}
.stuc + .sectie { border-top: 0; }

/* Rough coat: blotches and ridges left by the float. */
.stuc-muur {
    position: absolute; left: 0; right: 0; top: 2.25rem; height: var(--band);
    background:
        radial-gradient(ellipse 22px 9px at 20% 30%, rgba(255, 255, 255, 0.35), transparent 70%),
        radial-gradient(ellipse 30px 12px at 70% 65%, rgba(0, 0, 0, 0.12), transparent 70%),
        radial-gradient(ellipse 14px 7px at 45% 80%, rgba(255, 255, 255, 0.3), transparent 70%),
        radial-gradient(ellipse 26px 10px at 85% 20%, rgba(0, 0, 0, 0.1), transparent 70%),
        radial-gradient(circle 3px at 60% 40%, rgba(0, 0, 0, 0.18), transparent),
        #b9b2a7;
    background-size: 97px 100%, 131px 100%, 73px 100%, 157px 100%, 41px 100%, auto;
    box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.8);
}

/* Finished coat: flat, with a soft sheen. */
.stuc-glad {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, #e6e1d8, #d6d0c5 60%, #cbc4b8);
}

.stuc-baan {
    position: absolute; left: 0; top: calc(2.25rem - 0.6rem);
    width: var(--w); height: calc(var(--w) * 0.7);
    transform: translateX(calc(100cqw + var(--w)));
}
.stuc-hand { width: 100%; height: 100%; transform-origin: 50% 70%; }
/* Turned a quarter turn clockwise: the blade stands upright with the handle on the right. */
.stuc-spaan { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(90deg); filter: drop-shadow(-6px 0 8px rgba(0, 0, 0, 0.55)); }
.stuc-greep { fill: var(--koper); }
.stuc-steel { fill: #3a3a3a; }
.stuc-blad { fill: #c9c5be; stroke: #8d8a84; stroke-width: 1.5; }

@media (max-width: 760px) {
    .stuc { --band: 2.75rem; --w: 5rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .stuc--scroll:not(.unfold) .stuc-baan { transform: translateX(calc(-1 * var(--w))); }
    .js .stuc--scroll:not(.unfold) .stuc-glad { clip-path: inset(0 100% 0 0); }
    .stuc.unfold .stuc-baan { animation: stuc-baan var(--duur) ease-in-out both; }
    .stuc.unfold .stuc-glad { animation: stuc-glad var(--duur) ease-in-out both; }
    .stuc.unfold .stuc-hand { animation: stuc-veeg calc(var(--duur) / 8) ease-in-out 8 alternate both; }
}

@keyframes stuc-baan { from { transform: translateX(calc(-1 * var(--w))); } to { transform: translateX(100cqw); } }
/* The smooth finish follows the middle of the blade. */
@keyframes stuc-glad {
    from { clip-path: inset(0 calc(100% + var(--w) / 2) 0 0); }
    to { clip-path: inset(0 calc(var(--w) / -2) 0 0); }
}
/* Short up-and-down strokes, the blade tilted into each one. */
@keyframes stuc-veeg {
    from { transform: translateY(-0.35rem) rotate(-4deg); }
    to { transform: translateY(0.35rem) rotate(3deg); }
}

/* Caulking divider: the joint between a window frame and its sill. When it is scrolled to, a caulking gun runs
   along it and lays a bead of white sealant behind the nozzle (main.js adds .unfold). */

.kit {
    --w: 11rem;
    --naad: calc(var(--w) * 0.56);
    --duur: 3.4s;
    container-type: inline-size;
    position: relative;
    height: calc(var(--naad) + 2.5rem);
    overflow-x: clip;
}
.kit + .sectie { border-top: 0; }

.kit-kozijn {
    position: absolute; left: 0; right: 0; top: calc(var(--naad) - 2rem); height: 2rem;
    background: linear-gradient(to bottom, #4a4a4a, #2f2f2f 30%, #262626 85%, #1a1a1a);
}
.kit-dorpel {
    position: absolute; left: 0; right: 0; top: var(--naad); height: 1rem;
    background: linear-gradient(to bottom, #8f897f, #b9b2a7 25%, #a39c90);
    box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.8);
}
.kit-rups {
    position: absolute; left: 0; right: 0; top: calc(var(--naad) - 0.28rem); height: 0.56rem;
    border-radius: 0.28rem;
    background: linear-gradient(to bottom, #ffffff, #ece9e2 45%, #c9c5bd);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* The nozzle tip sits at (150, 70) of the 160 × 120 drawing, which is mirrored: 1/16 of the width from the left. */
.kit-baan {
    position: absolute; left: 0; top: calc(var(--naad) - var(--w) * 0.4375);
    width: var(--w); height: calc(var(--w) * 0.75);
    transform: translateX(calc(100cqw + var(--w)));
}
.kit-pistool { display: block; width: 100%; height: 100%; overflow: visible; transform: scaleX(-1); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.kit-stang { stroke: #b9b5ae; stroke-width: 3; }
.kit-ring { fill: none; stroke: #b9b5ae; stroke-width: 3; }
.kit-greep { fill: var(--koper); }
.kit-trekker { fill: #1f1f1f; }
.kit-koker { fill: #ece9e2; }
.kit-etiket { fill: var(--koper-vlak); }
.kit-frame { fill: #3a3a3a; }
.kit-tuit { fill: #ddd9d1; stroke: #9a958d; stroke-width: 1; }

@media (max-width: 760px) {
    .kit { --w: 8rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .kit--scroll:not(.unfold) .kit-baan { transform: translateX(calc(-1 * var(--w))); }
    .js .kit--scroll:not(.unfold) .kit-rups { clip-path: inset(0 100% 0 0); }
    .kit.unfold .kit-baan { animation: kit-baan var(--duur) ease-in-out both; }
    .kit.unfold .kit-rups { animation: kit-rups var(--duur) ease-in-out both; }
}

@keyframes kit-baan { from { transform: translateX(calc(-1 * var(--w))); } to { transform: translateX(100cqw); } }
/* The bead ends exactly at the nozzle tip, 1/16 of the way along the gun. */
@keyframes kit-rups {
    from { clip-path: inset(0 calc(100% + var(--w) * 15 / 16) 0 0 round 0.28rem); }
    to { clip-path: inset(0 calc(var(--w) / -16) 0 0 round 0.28rem); }
}

/* Line-drawing finish for all tools, in the style of the house drawing: pencil-grey outlines on the page colour,
   hatching for the materials, no shadows. Only the work itself (cut, holes, bead, the 10 cm marks) is copper. */

.rolmaat, .decoupeer, .boor, .schroef-rij, .stuc, .kit {
    --lijn-t: var(--potlood);
    --arcering: rgba(160, 156, 150, 0.35);
}

/* Shared: outlined boards and strips */
.decoupeer-plank, .schroef-plank, .kit-dorpel {
    background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--arcering) 6px 7px), var(--papier);
    border-top: 1px solid var(--lijn-t); border-bottom: 1px solid var(--lijn-t);
    box-shadow: none;
}

/* Every machine drawing: outline only, filled with the page colour so it covers what is behind it */
.decoupeer-machine, .boor-machine, .kit-pistool, .stuc-spaan { filter: none; }
.decoupeer-machine *, .boor-machine *, .kit-pistool *, .stuc-spaan * {
    fill: var(--papier); stroke: var(--lijn-t); stroke-width: 1.3px; vector-effect: non-scaling-stroke;
}
.decoupeer-greep, .decoupeer-rooster, .boor-rooster, .boor-ribbel, .kit-stang, .kit-ring { fill: none; }
.boor-arm, .schroef-hand { filter: none; }

/* Tape measure */
.rolmaat-band {
    background-color: var(--papier);
    background-image:
        repeating-linear-gradient(to right, var(--lijn-t) 0 1px, transparent 1px var(--cm)),
        repeating-linear-gradient(to right, transparent 0 calc(var(--cm) / 2), var(--lijn-t) calc(var(--cm) / 2) calc(var(--cm) / 2 + 1px), transparent calc(var(--cm) / 2 + 1px) var(--cm));
    background-size: 100% 30%, 100% 18%;
    background-repeat: no-repeat;
    border: 1px solid var(--lijn-t); border-left: 0;
    box-shadow: none;
}
.rolmaat-cijfers { color: var(--potlood); }
.rolmaat-cijfers .dm { color: var(--koper); }
.rolmaat-haak { background: var(--papier); border: 1px solid var(--lijn-t); }
.rolmaat-kap { background: var(--papier); box-shadow: inset 0 0 0 1.3px var(--lijn-t); }
.rolmaat-kap::before { background: none; box-shadow: inset 0 0 0 1px var(--lijn-t); }
.rolmaat-kap::after { background: var(--papier); box-shadow: 0 0 0 1px var(--lijn-t); }
.rolmaat-knop { background: var(--papier); box-shadow: inset 0 0 0 1px var(--lijn-t); }

/* Jigsaw */
.decoupeer-snede polyline { stroke: var(--koper); stroke-width: 1.6; }
.decoupeer-zaagblad { fill: var(--lijn-t); }

/* Drill */
.boor-plank {
    background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--plank) / 4 - 1px), var(--arcering) calc(var(--plank) / 4 - 1px) calc(var(--plank) / 4)), var(--papier);
    border-top: 1px solid var(--lijn-t); border-bottom: 1px solid var(--lijn-t);
    box-shadow: none;
}
.boor-gat { background: var(--koper); width: 2px; margin-left: -1px; }
.boor-gat i { background: var(--potlood); width: 3px; height: 3px; }
.boor-bit { background: repeating-linear-gradient(150deg, var(--lijn-t) 0 1px, var(--papier) 1px 4px); background-size: 100% 10px; box-shadow: inset 0 0 0 1px var(--lijn-t); }

/* Screws */
.schroef { background: var(--papier); box-shadow: inset 0 0 0 1px var(--lijn-t); }
.schroef i { background: repeating-linear-gradient(160deg, var(--lijn-t) 0 1px, var(--papier) 1px 4px); }
.schroef-greep {
    background: repeating-linear-gradient(to right, var(--papier) 0 5px, var(--lijn-t) 5px 6px), var(--papier);
    box-shadow: inset 0 0 0 1px var(--lijn-t);
}
.schroef-schacht { background: var(--lijn-t); width: 2px; margin-left: -1px; }

/* Plaster: the rough coat is stippled, the finished coat is clean */
.stuc-muur {
    background: radial-gradient(circle 1px, var(--lijn-t) 99%, transparent) 0 0 / 9px 7px, var(--papier);
    border-top: 1px solid var(--lijn-t); border-bottom: 1px solid var(--lijn-t);
    box-shadow: none;
}
.stuc-glad { background: var(--papier); box-shadow: inset 0 2px 0 -1px var(--koper), inset 0 -2px 0 -1px var(--koper); }

/* Caulking: the frame is a hatched section, the bead is copper */
.kit-kozijn {
    background: repeating-linear-gradient(45deg, transparent 0 5px, var(--arcering) 5px 6px), var(--papier);
    border-top: 1px solid var(--lijn-t);
}
.kit-rups { background: var(--koper); height: 0.4rem; margin-top: 0.08rem; box-shadow: none; }

/* Bottom bar variant: the tool animations sit in one bar fixed to the bottom of the screen, and main.js shows
   the one that belongs to the section in view (.is-actief), replaying it each time it comes back. */

.gereedschap {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: 7.5rem;
    pointer-events: none;
    background: linear-gradient(to top, var(--papier) 55%, transparent);
}
body:has(.gereedschap) { padding-bottom: 7.5rem; }

.gereedschap > * { position: absolute; left: 0; right: 0; bottom: 0.5rem; margin: 0; display: none; }
.gereedschap > .is-actief { display: block; animation: gereedschap-in 0.3s ease-out; }

.gereedschap .rolmaat { --cm: 1rem; }
.gereedschap .decoupeer { --w: 5rem; --plank: 2rem; }
.gereedschap .boor { --boor-b: 3.75rem; --plank: 1.25rem; }
.gereedschap .schroef-rij { --h: 3.75rem; --plank: 1.25rem; }
.gereedschap .stuc { --band: 2.75rem; --w: 5.5rem; }
.gereedschap .kit { --w: 8rem; }

@media (max-width: 760px) {
    .gereedschap { height: 6rem; }
    body:has(.gereedschap) { padding-bottom: 6rem; }
    .gereedschap .rolmaat { --cm: 0.85rem; }
    .gereedschap .decoupeer { --w: 4rem; --plank: 1.6rem; }
    .gereedschap .boor { --boor-b: 3rem; --plank: 1rem; }
    .gereedschap .schroef-rij { --h: 3rem; --plank: 1rem; }
    .gereedschap .stuc { --band: 2.25rem; --w: 4.5rem; }
    .gereedschap .kit { --w: 6.5rem; }
}

@keyframes gereedschap-in { from { opacity: 0; } }

/* In the bar the travel follows the scroll one to one, so no easing on it. */
.gereedschap .rolmaat-huis, .gereedschap .rolmaat-band,
.gereedschap .stuc-baan, .gereedschap .stuc-glad,
.gereedschap .kit-baan, .gereedschap .kit-rups { animation-timing-function: linear !important; }

/* ------------------------------------------------------------------ v6: light mode
   The inline script in <head> sets data-theme on <html> from the visitor's choice (localStorage) or the system setting,
   before the first paint. Dark is v4 as it was. Light is the same drawing on paper: the colours of v4's light header. */

:root[data-theme="light"] {
    color-scheme: light;
    --papier: #efe9df;
    --vel: #f8f4ed;
    --inkt: #1d1a16;
    --inkt-2: #3a342c;
    --koper: #8a6239;
    --koper-licht: #6f4d2b;
    --koper-tint: #e6d9c6;
    --koper-vlak: #e2d3bd;
    --op-koper: #fbf7f0;
    --potlood: #5e5850;
    --lijn: #d9d2c6;
    --lijn-donker: #b8afa1;
    --fout: #b3261e;
    --fout-tint: #f6e1de;
}

/* Black logo on paper, in the header and in the footer */
:root[data-theme="light"] .merk-wit { display: none; }
:root[data-theme="light"] .merk-zwart { display: block; }

/* Line-drawing tools on paper: darker hatching than on the dark sheet */
:root[data-theme="light"] .decoupeer, :root[data-theme="light"] .boor, :root[data-theme="light"] .schroef-rij,
:root[data-theme="light"] .stuc, :root[data-theme="light"] .kit { --arcering: rgba(91, 83, 76, 0.28); }

/* The lightbox is always dark, so it always takes the dark tokens. */
.lichtbak {
    --papier: #0e0e0e;
    --inkt: #ece6dc;
    --potlood: #a09c96;
    --koper: #b1875e;
    color-scheme: dark;
}

/* Theme toggle in the header */
.thema-knop {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    order: 1; width: 2.75rem; height: 2.75rem; margin-left: -1rem; padding: 0;
    border: 1.5px solid var(--lijn-donker); border-radius: 3px;
    background: transparent; color: var(--inkt); cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.thema-knop:hover { border-color: var(--koper); color: var(--koper); }
.thema-knop .icoon { width: 1.25rem; height: 1.25rem; }
.thema-knop .icoon-zon, :root[data-theme="dark"] .thema-knop .icoon-maan { display: none; }
:root[data-theme="dark"] .thema-knop .icoon-zon { display: block; }

/* Desktop: last in the row, after the phone number. Phones: just before the menu button, both on the right. */
@media (max-width: 960px) {
    .thema-knop { margin-left: auto; }
    .menu-knop { order: 2; margin-left: -1.25rem; }
}

/* A short cross-fade while the theme switches (main.js adds the class for 400 ms). */
html.thema-wissel, html.thema-wissel *, html.thema-wissel *::before, html.thema-wissel *::after {
    transition: background-color 0.35s, color 0.35s, border-color 0.35s, fill 0.35s, stroke 0.35s, box-shadow 0.35s !important;
}
@media (prefers-reduced-motion: reduce) {
    html.thema-wissel, html.thema-wissel *, html.thema-wissel *::before, html.thema-wissel *::after { transition: none !important; }
}

/* Homepage heading on one line: sized to the width of the text column (the text is 26 em wide in Anybody at 116%).
   Below 820px that would be too small to read, so there it wraps at the normal size. */
@media (min-width: 820px) {
    .opening-tekst { container-type: inline-size; }
    .opening h1 { max-width: none; white-space: nowrap; font-size: calc(100cqi / 26.6); }
}

/* Demo: v4 | v5 design switch in the header, next to the theme toggle */
.ontwerp-keuze {
    order: 1; display: inline-flex; flex: none; margin-left: -1rem; padding: 3px;
    border: 1.5px solid var(--lijn-donker); border-radius: 3px;
    font-family: var(--kop); font-weight: 650; font-size: 0.9rem; line-height: 1;
}
.ontwerp-keuze a {
    display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.3rem; padding: 0 0.55rem;
    border-radius: 2px; color: var(--inkt); text-decoration: none;
}
.ontwerp-keuze a:hover { color: var(--koper); }
.ontwerp-keuze a[aria-current="true"] { background: var(--inkt); color: var(--papier); }
@media (max-width: 960px) {
    .ontwerp-keuze { margin-left: auto; }
    .ontwerp-keuze ~ .thema-knop { margin-left: -1.25rem; }
}
@media (max-width: 420px) {
    .kop-rij { gap: 1.5rem; }
    .merk img { height: 48px; }
    .menu-knop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
