/* Themen Floors — warm, calm and classic. Photography first, a soft serif
   for headings, warm stone greys with sage and olive green, plenty of space. */

:root {
  --ink: #34362C;
  --text: #4B4D42;
  --muted: #77796C;
  --white: #FFFFFF;
  --paper: #F4F4F2;
  --cream: #E3E1D4;
  --cream-2: #D8D6C8;
  --line: #CECCC1;
  --oak: #757968;
  --oak-light: #AEB19F;
  --walnut: #44473C;
  --walnut-2: #55584B;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.25, .7, .25, 1);
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); overflow-x: clip; }
/* homepage: dark page background so Safari tints its status bar to match the hero photo */
html:has(body.home), body.home { background: #383A30; }
:where(body.home main > :not(.home-hero)) { background-color: var(--paper); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.7; background: var(--paper); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
::selection { background: var(--oak-light); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { left: 8px; }
.preview-banner { background: var(--walnut); color: var(--oak-light); text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; position: relative; z-index: 70; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.1; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
h3 { font-size: 23px; line-height: 1.3; }
h1 em, h2 em { font-style: normal; }
.label { display: block; margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oak); }
.label::before { content: ""; display: block; width: 52px; height: 1px; background: var(--oak); margin-bottom: 14px; opacity: .8; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; color: var(--text); max-width: 54ch; }
.muted { color: var(--muted); }

.prose { max-width: 64ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose h2 { font-size: clamp(28px, 2.8vw, 38px); margin: 1.4em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose li { padding-left: 24px; position: relative; margin-top: .45em; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--oak-light); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--walnut-2); border-color: var(--walnut-2); }
.btn--oak { background: var(--oak); border-color: var(--oak); color: var(--white); }
.btn--oak:hover { background: var(--walnut); border-color: var(--walnut); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--light { border-color: rgba(255, 255, 255, .8); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.link-arrow { font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--oak-light); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--oak); border-color: var(--oak); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--white); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, box-shadow .35s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(52, 54, 44, .05); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: block; }
.brand img { height: 46px; width: auto; transition: opacity .35s; }
.brand__light { position: absolute; left: 0; top: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 6px; align-items: center; }
.nav__item { position: relative; }
.nav__item > a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); padding: 10px 12px; display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.nav__item > a:hover, .nav__item > a[aria-current] { color: var(--oak); }
.has-sub > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav__sub { position: absolute; top: calc(100% + 4px); left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; box-shadow: 0 16px 40px rgba(52, 54, 44, .08); }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 20px; text-decoration: none; font-size: 15px; color: var(--text); }
.nav__sub a:hover { background: var(--cream); color: var(--ink); }
.nav__cta { padding: 13px 22px; }
.menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; padding: 8px 0; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .3s; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* homepage: header floats over the photo until you scroll */
.home .site-header { position: fixed; left: 0; right: 0; top: auto; background: transparent; }
.home .site-header:not(.is-scrolled) .nav__item > a, .home .site-header:not(.is-scrolled) .menu-toggle { color: var(--white); }
.home .site-header:not(.is-scrolled) .nav__item > a:hover { color: var(--oak-light); }
.home .site-header:not(.is-scrolled) .brand__dark { opacity: 0; }
.home .site-header:not(.is-scrolled) .brand__light { opacity: 1; }
.home .site-header:not(.is-scrolled) .nav__cta { background: var(--white); border-color: var(--white); color: var(--ink); }
.home .site-header.is-scrolled { background: var(--white); position: fixed; top: 0; }
.home.menu-open .site-header { background: var(--white); }
.home.menu-open .site-header .menu-toggle { color: var(--ink); }
.home.menu-open .site-header .brand__dark { opacity: 1; }
.home.menu-open .site-header .brand__light { opacity: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); padding-top: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--oak); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 6.5vw, 96px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--white { background: var(--paper); }
.section--tint { background: var(--cream); }
.section--dark { background: var(--walnut); color: #E9E8DF; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .label { color: var(--oak-light); }
.section--dark .label::before { background: var(--oak-light); }
.section--dark .lead, .section--dark .muted { color: #C6C7B9; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section__head .lead { margin-top: 18px; }
.center { text-align: center; }
.center .label::before { margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- home: hero ---------- */
.home-hero { position: relative; min-height: max(620px, 100svh); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.home-hero__bg { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.home-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroFade 1.2s var(--ease) both; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 29, 23, .62) 0%, rgba(28, 29, 23, .35) 45%, rgba(28, 29, 23, 0) 75%), linear-gradient(180deg, rgba(28, 29, 23, .45) 0%, rgba(28, 29, 23, 0) 28%, rgba(28, 29, 23, 0) 60%, rgba(28, 29, 23, .55) 100%); }
.home-hero__content { position: relative; z-index: 2; padding-bottom: clamp(56px, 9vh, 110px); padding-top: 160px; }
.home-hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--sans); line-height: 1.4; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.home-hero__kicker::before { content: ""; width: 28px; height: 1px; background: var(--oak-light); }
.home-hero .lead { color: var(--white); margin-top: 0; max-width: 18em; font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1.15; }
.home-hero .btn--light { background: rgba(28, 29, 23, .45); border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.home-hero .btn--light:hover { background: var(--white); border-color: var(--white); }
/* Laat u inspireren: the same photo cards as the hero, in a row */
.inspire { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.inspire__card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; aspect-ratio: 3 / 4.2; padding: 16px; border-radius: 6px; overflow: hidden; background: var(--walnut); color: var(--white); text-decoration: none; }
.inspire__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.inspire__card:hover img { transform: scale(1.05); }
.inspire__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 29, 23, 0) 45%, rgba(28, 29, 23, .78) 100%); }
.inspire__card > span { position: relative; z-index: 1; }
.inspire__meta { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.inspire__title { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.inspire__more { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 960px) {
  .inspire { grid-auto-columns: minmax(220px, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .inspire::-webkit-scrollbar { display: none; }
  .inspire__card { scroll-snap-align: start; }
}
.show-sm { display: none; }
.home-hero__link { color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); padding: 6px 0 3px; }
.home-hero__usp { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 34px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.home-hero__usp li { display: flex; align-items: center; gap: 10px; }
.home-hero__usp li::before { content: ""; width: 16px; height: 1px; background: var(--oak-light); }
/* hero slides: every few seconds the next card on the right opens up into the full background */
.hero-slide { position: absolute; inset: 0; opacity: 0; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide.is-growing { opacity: 1; z-index: 2; will-change: clip-path, opacity; }
.hero-slide img { backface-visibility: hidden; }
.hero-slide:not(:first-child) img { animation: none; }
.hero-deck { display: none; }
.hero-card[hidden] { display: none; }
@media (min-width: 1100px) {
  [data-hero-slides] .home-hero__content > * { max-width: min(620px, 46vw); }
  /* the short text sits on the calm floor, its buttons level with the bottom of the cards */
  [data-hero-slides].home-hero { align-items: flex-end; }
  [data-hero-slides] .home-hero__content { padding-top: var(--header-h); padding-bottom: calc(clamp(56px, 9vh, 110px) + 70px); }
  [data-hero-slides] .home-hero__usp { max-width: 46vw; }
  .hero-deck { display: block; position: absolute; z-index: 3; left: 55%; right: 0; bottom: clamp(56px, 9vh, 110px); }
  .hero-deck__cards { display: flex; gap: 16px; overflow: hidden; padding: 0 0 24px; margin-bottom: -24px; }
  .hero-card { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; width: clamp(150px, 12vw, 196px); aspect-ratio: 3 / 4.2; padding: 14px; border: 0; border-radius: 6px; overflow: hidden; background: var(--walnut); color: var(--white); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .7); transition: opacity .35s; }
  .hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
  .hero-card:hover img { transform: scale(1.06); }
  .hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 29, 23, 0) 40%, rgba(28, 29, 23, .78) 100%); }
  .hero-card > span { position: relative; z-index: 1; }
  .hero-card__meta { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
  .hero-card__title { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
  .hero-card.is-leaving { opacity: 0; }
  .hero-deck__nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-right: var(--gutter); }
  .hero-deck__arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; transition: background .25s, color .25s; }
  .hero-deck__arrow:hover { background: var(--white); color: var(--walnut); }
  .hero-deck__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .hero-deck__bar { position: relative; flex: 1; height: 1px; margin: 0 10px; background: rgba(255, 255, 255, .3); }
  .hero-deck__bar i { position: absolute; left: 0; top: -.5px; width: 100%; height: 2px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }
  .hero-deck__name a { color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); white-space: nowrap; }
  .hero-deck__num { min-width: 2ch; margin-left: 10px; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--white); }
}

/* ---------- inner page hero ---------- */
.page-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.page-hero .lead { margin-top: 24px; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero--text .wrap { max-width: 900px; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.page-hero--text h1 { max-width: 18ch; }

/* ---------- cards, grids, splits ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card__img { overflow: hidden; background: var(--cream-2); }
.card__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.1s var(--ease); }
.card--wide .card__img img { aspect-ratio: 4 / 3; }
.card:hover .card__img img { transform: scale(1.04); }
.card h3 { margin-top: 20px; }
.card p { color: var(--text); font-size: 16px; margin-top: 8px; }
.card .link-arrow { margin-top: 16px; align-self: flex-start; font-size: 15px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4 / 3; }
.kai-photo img { object-position: 50% 18%; }
.kai-round { justify-self: center; width: min(100%, 480px); padding: 12px; border: 1px solid var(--oak-light); border-radius: 50%; }
.kai-round img { display: block; aspect-ratio: 1 / 1; border-radius: 50%; object-position: center; }
.split h2 { margin-bottom: 22px; }
.split .lead + .lead { margin-top: 14px; }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.principle { border-top: 1px solid var(--line); padding: 26px 0; }
.principle h3 { font-size: 21px; }
.principle p { color: var(--text); font-size: 16px; margin-top: 6px; }
.quote { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.3; color: var(--ink); max-width: 22ch; font-style: italic; }
.quote .q { color: var(--oak); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--oak); border-radius: 50%; font-family: var(--serif); font-size: 19px; color: var(--oak); margin-bottom: 18px; }
.step h3 { font-size: 20px; }
.step p { font-size: 15.5px; margin-top: 8px; }
.steps--photo .step::before { content: none; }
.steps--photo .step img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 20px; }
.steps--photo .step h3::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 6px; font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--oak); }

/* ---------- projects ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.mosaic__item { position: relative; display: block; overflow: hidden; text-decoration: none; }
.mosaic__item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.1s var(--ease); }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item--wide img { position: absolute; inset: 0; aspect-ratio: auto; }
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 18px; color: var(--white); background: linear-gradient(transparent, rgba(28, 29, 23, .65)); font-family: var(--serif); font-size: 20px; }
.mosaic__cap span { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--oak-light); margin-top: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { background: transparent; border: 1px solid var(--line); padding: 10px 18px; font: 600 15px var(--sans); cursor: pointer; color: var(--text); transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--oak); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; }
.gallery figure[hidden] { display: none; }
.gallery .g-img { overflow: hidden; background: var(--cream-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.gallery figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); }
.gallery-status { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

/* ---------- portfolio with tags ---------- */
.pf-filters { margin-bottom: 44px; }
.pf-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pf-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px 16px; background: var(--white); border: 1px solid var(--line); cursor: pointer; font: 600 15px var(--sans); color: var(--ink); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.pf-tile:hover { border-color: var(--oak-light); transform: translateY(-2px); }
.pf-tile[aria-pressed="true"] { border-color: var(--oak); box-shadow: inset 0 0 0 1px var(--oak); background: #F8F8F5; }
.pf-icon { width: 46px; height: 46px; border-radius: 3px; transition: transform .4s var(--ease); }
.pf-tile:hover .pf-icon, .pf-tile[aria-pressed="true"] .pf-icon { transform: rotate(-4deg) scale(1.06); }
.pf-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 26px; border-bottom: 1px solid var(--line); }
.pf-tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.pf-tab { position: relative; background: none; border: 0; padding: 12px 0 14px; font: 600 15px var(--sans); color: var(--muted); cursor: pointer; transition: color .2s; }
.pf-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pf-tab:hover { color: var(--ink); }
.pf-tab[aria-pressed="true"] { color: var(--ink); }
.pf-tab[aria-pressed="true"]::after { transform: scaleX(1); }
.pf-bar .gallery-status { margin: 0; padding: 12px 0; font-size: 14px; color: var(--muted); }
.pf-reset { background: none; border: 0; padding: 0; font: 600 15px var(--sans); color: var(--oak); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-empty { text-align: center; padding: 48px 0; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 26px; }
.project[hidden] { display: none; }
.project__img { display: block; width: 100%; padding: 0; border: 0; background: var(--cream-2); cursor: zoom-in; overflow: hidden; }
.project__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.project:hover .project__img img { transform: scale(1.04); }
.project h3 { margin-top: 18px; font-size: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags li { background: var(--cream); padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.project__more { margin-top: 16px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: 600 15px var(--sans); padding: 0 0 3px; }
.lightbox { border: 0; padding: 0; width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--white); color: var(--text); margin: auto; overflow: auto; }
.lightbox::backdrop { background: rgba(30, 31, 25, .75); }
.lightbox[open] { display: grid; grid-template-columns: 1.5fr 1fr; animation: lbIn .4s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lightbox__img { background: var(--cream-2); min-height: 100%; }
.lightbox__img img { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: cover; display: block; }
.lightbox__img { position: relative; }
.lightbox__nav { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px; background: rgba(30, 31, 25, .6); color: var(--white); font-size: 14px; border-radius: 999px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--white); font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox__nav button:hover { background: rgba(255, 255, 255, .18); }
.project__img { position: relative; }
.project__count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; background: rgba(30, 31, 25, .65); color: var(--white); font-size: 12px; font-weight: 600; }
.lightbox__body { padding: clamp(24px, 3vw, 40px); align-self: center; }
.lightbox__body h2 { font-size: clamp(26px, 2.4vw, 34px); }
.lightbox__text { margin-top: 16px; }
.lightbox__close { position: absolute; right: 12px; top: 10px; z-index: 2; width: 42px; height: 42px; border: 0; background: var(--white); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox form { position: absolute; right: 0; top: 0; }
.lightbox { position: fixed; }

/* ---------- blog ---------- */
.post-meta { font-size: 14px; color: var(--muted); margin-top: 18px; }
.post-card .post-meta { margin-top: 18px; }
.post-card h3 { margin-top: 6px; }
.post-hero h1 { font-size: clamp(34px, 4.2vw, 56px); }
.post-hero .tags { margin-top: 16px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.post-body { max-width: 68ch; }
.post-body .lead { color: var(--ink); margin-bottom: 1.2em; }
.post-body h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 1.6em 0 .5em; }
.post-body a { color: var(--ink); text-decoration-color: var(--oak); text-underline-offset: 3px; }
.post-body strong { color: var(--ink); }
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.post-box { background: var(--cream); padding: 26px; }
.post-box h3 { font-size: 21px; }
.post-box p { font-size: 15px; margin-top: 8px; }
.post-box .buttons { margin-top: 18px; flex-direction: column; }
.post-box .btn { width: 100%; }
.post-links { display: grid; gap: 10px; margin-top: 12px; }
.post-links .link-arrow { font-size: 15px; }

/* ---------- before / after ---------- */
.before-after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ba__media { position: relative; overflow: hidden; }
.ba__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ba__line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.ba__line path { fill: none; stroke: var(--oak-light); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(174, 177, 159, .6)); transition: stroke-dashoffset 1.6s cubic-bezier(.6, .1, .2, 1) .5s; }
.ba.is-in .ba__line path { stroke-dashoffset: 0; }
.tag { position: absolute; z-index: 3; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.tag--before { background: rgba(52, 54, 44, .85); color: var(--white); transition-delay: .7s; }
.tag--after { background: var(--oak-light); color: var(--ink); transition-delay: 1.8s; }
.ba.is-in .tag { opacity: 1; transform: none; }
.ba figcaption { margin-top: 14px; font-size: 15px; }
.ba figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--white); }
.ba figcaption span { display: block; color: #C6C7B9; }
html:not(.js) .ba .tag, html:not(.js) .ba__line path { opacity: 1; transform: none; stroke-dashoffset: 0; }

/* ---------- 3D floor ---------- */
.floor3d { position: relative; overflow: hidden; touch-action: pan-y; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: center; }
.floor3d__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; position: relative; z-index: 2; pointer-events: none; width: 100%; }
.floor3d__grid a, .floor3d__grid button { pointer-events: auto; }
.floor3d__stage { position: absolute; inset: 0; z-index: 1; }
.floor3d__canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.floor3d__canvas.is-ready { opacity: 1; }
.floor3d__fallback { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; height: 100%; object-fit: cover; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); }
.floor3d.has-3d .floor3d__fallback { display: none; }
.floor3d__legend { position: absolute; left: 66%; bottom: 17%; transform: translateX(-50%); display: flex; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--white); pointer-events: none; opacity: 0; transition: opacity .8s; }
.floor3d.has-3d .floor3d__legend { opacity: .9; }
.floor3d__legend span { padding: 7px 14px; background: rgba(42, 44, 36, .7); white-space: nowrap; }
.floor3d__legend span + span { color: var(--oak-light); border-left: 1px solid var(--oak-light); }
.pattern-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pattern-tab { background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: #E9E8DF; padding: 10px 18px; font: 600 15px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pattern-tab:hover { border-color: var(--oak-light); }
.pattern-tab[aria-pressed="true"] { background: var(--oak-light); border-color: var(--oak-light); color: var(--ink); }
.pattern-info { margin-top: 28px; min-height: 120px; }
.pattern-info h3 { font-size: 26px; }
.pattern-info p { color: #C6C7B9; margin-top: 6px; max-width: 42ch; }
.pattern-info .link-arrow { color: var(--oak-light); border-color: rgba(174, 177, 159, .5); }
.floor3d__hint { font-size: 14px; color: #A8988A; margin-top: 18px; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; position: relative; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 28px/1 var(--sans); color: var(--oak); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 26px; max-width: 66ch; }
.faq .answer p + p { margin-top: .8em; }

/* ---------- CTA band with photo ---------- */
.cta { position: relative; color: var(--white); padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; text-align: center; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(30, 31, 25, .62); }
.cta .wrap { position: relative; z-index: 2; }
.cta .label { color: var(--oak-light); }
.cta .label::before { background: var(--oak-light); margin-left: auto; margin-right: auto; }
.cta h2 { color: var(--white); font-size: clamp(34px, 4.4vw, 58px); }
.cta p { color: rgba(255, 255, 255, .88); margin: 18px auto 0; max-width: 50ch; }
.cta .buttons { justify-content: center; }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { background: var(--white); border: 1px solid var(--line); padding: 30px; text-decoration: none; display: block; transition: border-color .2s, transform .3s var(--ease); }
.contact-card:hover { border-color: var(--oak); transform: translateY(-3px); }
.contact-card span { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--oak); }
.contact-card b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2vw, 28px); color: var(--ink); margin-top: 8px; word-break: break-word; }
.contact-card p { font-size: 15px; margin-top: 6px; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.info-list dt, .info-list dd { padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 600; color: var(--ink); }

/* ---------- quote form: one question per screen ---------- */
.quiz-wrap { max-width: 760px; margin: 0 auto; }
.quiz-hero { padding: 20px 0 36px; }
.quiz-hero h1 { font-size: clamp(32px, 3.6vw, 46px); }
.quiz-hero .lead { margin-top: 14px; font-size: 17px; }
.quiz-hero .label { margin-bottom: 14px; }
.quiz-hero .label::before { margin-bottom: 12px; }
.quiz { background: var(--cream); padding: clamp(26px, 5vw, 56px); }
.quiz__top { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.quiz__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quiz__bar { flex: 1; height: 3px; background: var(--cream-2); position: relative; }
.quiz__bar i { position: absolute; inset: 0; background: var(--oak); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }
.quiz fieldset { border: 0; min-width: 0; }
.quiz legend, .quiz .q-title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; color: var(--ink); margin-bottom: 10px; padding: 0; }
.quiz .q-help { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.js .quiz fieldset[data-step]:not(.is-current) { display: none; }
.js .quiz fieldset.is-current { animation: qIn .5s var(--ease); }
.js .quiz fieldset.is-back { animation: qBack .5s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes qBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
html:not(.js) .quiz fieldset + fieldset { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.options { display: grid; gap: 12px; }
.options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 17px; color: var(--ink); transition: border-color .2s, background .2s, transform .2s; }
.option:hover { border-color: var(--oak); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option__dot { flex: none; width: 22px; height: 22px; border: 1.5px solid #B9AE9F; border-radius: 50%; position: relative; transition: border-color .2s; }
.option__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--oak); transform: scale(0); transition: transform .25s var(--ease); }
.option input:checked ~ .option__dot { border-color: var(--oak); }
.option input:checked ~ .option__dot::after { transform: scale(1); }
.option:has(input:checked) { border-color: var(--oak); background: #F8F8F5; }
.option input:focus-visible ~ .option__dot { outline: 2px solid var(--oak); outline-offset: 3px; }
.options--img { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option--img { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.option__img { display: block; overflow: hidden; background: var(--cream-2); }
.option__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.option--img:hover .option__img img { transform: scale(1.05); }
.option__row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.option--img:has(input:checked) { box-shadow: 0 0 0 1px var(--oak); }
.option small { display: block; font-size: 14px; color: var(--muted); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > .field-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 17px var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 15px 16px; width: 100%; transition: border-color .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--oak); }
.field [aria-invalid="true"] { border-color: #B0473C; }
.uploads { display: grid; gap: 10px; }
.uploads input { background: var(--white); border: 1px dashed #C9BCA9; padding: 14px; font-size: 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--oak); flex: none; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.quiz__back { background: none; border: 0; font: 600 16px var(--sans); color: var(--ink); cursor: pointer; padding: 10px 0; }
.quiz__back:hover { color: var(--oak); }
.quiz__back[hidden], .quiz .btn[hidden] { display: none; }
.quiz__error { color: #B0473C; font-size: 15px; margin-top: 16px; min-height: 1px; }
.quiz-aside { display: flex; justify-content: center; gap: 12px 32px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; color: var(--muted); }
.quiz-aside a { color: var(--ink); font-weight: 600; }
.hidden { display: none !important; }

/* ---------- footer ---------- */
.site-footer { background: var(--walnut); color: #C6C7B9; padding: clamp(60px, 7vw, 92px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer__brand img { height: 50px; width: auto; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; }
.site-footer__title { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--white); margin-bottom: 14px; }
.site-footer li + li { margin-top: 7px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .btn { margin-top: 22px; }
.site-footer__follow { margin: 30px 0 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer .socials li + li { margin-top: 0; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; color: var(--paper); transition: background .25s, border-color .25s, color .25s; }
.socials a:hover { background: var(--paper); border-color: var(--paper); color: var(--walnut); }
.socials svg { width: 20px; height: 20px; }
.site-footer__links { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; }
.site-footer__credit { font-size: 12px; opacity: .45; transition: opacity .2s; }
.site-footer__credit { display: inline-flex; align-items: center; gap: 5px; }
.site-footer__credit:hover { opacity: 1; }
.aloo { width: 21px; height: 15px; flex: none; transform-origin: 50% 80%; }
.site-footer__credit:hover .aloo { animation: alooWiggle .7s ease-in-out; }
@keyframes alooWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

.actionbar { display: none; }

/* ---------- page transition: a herringbone floor is laid over the screen ---------- */
/* first visit: a small herringbone is laid plank by plank, then the screen lifts away */
.loader { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: var(--cream); clip-path: inset(0); transition: clip-path .85s cubic-bezier(.7, 0, .2, 1); }
.no-loader .loader { display: none; }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { display: grid; justify-items: center; gap: 22px; transition: opacity .35s, transform .6s var(--ease); }
.loader.is-done .loader__inner { opacity: 0; transform: translateY(-24px); }
.loader__planks { width: 96px; height: 96px; overflow: visible; }
.loader__planks rect[style] { stroke: var(--cream); stroke-width: .7; opacity: 0; transform-box: fill-box; transform-origin: center; animation: plankIn .45s var(--ease) var(--d) both; }
.loader__name { font-family: var(--serif); font-size: 20px; letter-spacing: .02em; color: var(--walnut); opacity: 0; animation: loaderName .6s .55s var(--ease) both; }
@keyframes plankIn { from { opacity: 0; transform: translateY(-8px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes loaderName { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pt { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; display: none; }
.pt.is-on { display: block; }
.pt-in .pt { display: block; background: var(--pt-bg, #A97F51); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
.fade-img { overflow: hidden; }
.fade-img img { transform: scale(1.05); transition: transform 1.4s var(--ease); }
.fade-img.is-in img { transform: none; }
html:not(.js) .fade-img img { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* ---------- werkwijze: a work drawing that builds up while you scroll through the steps ---------- */
/* the section stays pinned under the header while scrolling steps through the five stages */
.js .werkwijze { padding: 0; }
.js .ww-pin { height: calc(100vh + 5 * 50vh); }
.js .ww-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.ww-stage > .wrap { width: 100%; }
.js .werkwijze .section__head { margin-bottom: clamp(20px, 3.5vh, 40px); }
.js .werkwijze .section__head .lead { margin-top: 10px; }
.ww { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ww-fig { margin: 0; padding: clamp(18px, 2.4vw, 32px); background: var(--paper); border: 1px solid var(--line); }
/* never taller than the screen, so the whole drawing stays in view on a laptop */
.ww-svg { display: block; width: 100%; height: auto; max-height: calc(100vh - var(--header-h) - 340px); overflow: visible; font-family: var(--sans); }
.ww-svg text { font-size: 9px; letter-spacing: .06em; fill: var(--muted); }
.ww-walls { fill: none; stroke: var(--walnut); stroke-width: 6; stroke-linejoin: miter; }
.ww-door { fill: none; stroke: var(--walnut); stroke-width: 1; stroke-dasharray: 3 3; }
.ww-draw { fill: none; stroke: var(--oak); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.ww-measure text { opacity: 0; transition: opacity .5s .5s; fill: var(--oak); font-size: 10px; }
.ww-screed { fill: #D9D1C4; transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
/* proefstukken: three small oak planks with grain, laid on the floor */
.ww-sample { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.ww-sample:nth-child(2) { transition-delay: .12s; }
.ww-sample:nth-child(3) { transition-delay: .24s; }
.ww-sample rect { stroke: rgba(52, 54, 44, .35); stroke-width: .6; filter: drop-shadow(0 1.5px 1px rgba(52, 54, 44, .25)); }
.ww-sample use { fill: none; stroke: rgba(50, 30, 15, .3); stroke-width: .7; }
.ww-svg .ww-sample text { text-anchor: middle; font-weight: 600; fill: var(--walnut); }
.ww-check { stroke: var(--oak); stroke-width: 2; stroke-linecap: round; transition-delay: .5s; }
.ww-planks { transition: filter 1.2s; }
.ww-plank { stroke: #EFE7DA; stroke-width: .6; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); }
.ww-sheen { transform: translateX(0); }
.ww-cap { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oak); }
@keyframes ww-in { from { opacity: 0; transform: translateY(8px); } }
.ww-fig.s1 .ww-measure .ww-draw, .ww-fig.s2 .ww-check { stroke-dashoffset: 0; }
.ww-fig.s1 .ww-measure text { opacity: 1; }
.ww-fig.s2 .ww-sample { opacity: 1; transform: none; }
.ww-fig.s3 .ww-screed { transform: none; }
.ww-fig.s4 .ww-plank { opacity: 1; transform: none; transition-delay: var(--d); }
.ww-fig.s5 .ww-planks { filter: brightness(.82) saturate(1.25); }
.ww-fig.s5 .ww-sheen { transform: translateX(600px); transition: transform 1.6s .2s var(--ease); }
.steps--ww { display: block; counter-reset: step; }
.steps--ww .step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: clamp(12px, 2vh, 18px) 0; border-top: 1px solid var(--line); opacity: .4; transition: opacity .4s; cursor: pointer; }
.steps--ww .step:last-child { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.steps--ww .step.is-active { opacity: 1; }
.steps--ww .step::before { content: attr(data-n); grid-row: 1 / span 2; width: auto; height: auto; margin: 0; border: 0; border-radius: 0; display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--oak); }
.steps--ww .step h3 { font-size: 24px; }
.steps--ww .step h3 { font-size: 22px; }
/* only the active step shows its text */
.steps--ww .step p { font-size: 16px; max-width: 40ch; max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), margin .5s var(--ease), opacity .3s; }
.steps--ww .step.is-active p { max-height: 120px; margin-top: 6px; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .werkwijze { padding: clamp(56px, 6.5vw, 96px) 0; }
  .js .ww-pin { height: auto; }
  .js .ww-stage { position: static; height: auto; }
  .steps--ww .step { opacity: 1; }
  .steps--ww .step p { max-height: none; margin-top: 6px; opacity: 1; }
}

@media (max-width: 1080px) {
  .nav__list { gap: 0; }
  .nav__item > a { padding: 10px 8px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .menu-toggle { display: inline-flex; }
  /* the menu rolls down from under the header like a blind (fully opaque the whole way),
     then its items slide in one after another */
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 120px; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease), visibility 0s .45s; }
  body:not(.menu-open) .nav, body:not(.menu-open) .nav * { pointer-events: none; }
  html:has(body.menu-open) { overflow: hidden; }
  .menu-open .nav { visibility: visible; clip-path: inset(0); transition: clip-path .5s var(--ease); }
  .nav__item, .nav .nav__cta { opacity: 0; transform: translateY(-12px); transition: opacity .2s, transform .2s; }
  .menu-open .nav__item, .menu-open .nav .nav__cta { opacity: 1; transform: none; transition: opacity .4s .15s, transform .5s .15s var(--ease); }
  .menu-open .nav__item:nth-child(2) { transition-delay: .2s; }
  .menu-open .nav__item:nth-child(3) { transition-delay: .25s; }
  .menu-open .nav__item:nth-child(4) { transition-delay: .3s; }
  .menu-open .nav__item:nth-child(5) { transition-delay: .35s; }
  .menu-open .nav__item:nth-child(6) { transition-delay: .4s; }
  .menu-open .nav .nav__cta { transition-delay: .45s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__item > a, .home .site-header:not(.is-scrolled) .nav__item > a { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ink); padding: 14px 0; display: flex; }
  .has-sub > a::after { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: inherit; transform: none; border: 0; box-shadow: none; background: none; padding: 0 0 14px; min-width: 0; }
  .nav__sub a { padding: 6px 0; color: var(--muted); }
  .nav__sub a:hover { background: none; }
  .nav__cta, .home .site-header:not(.is-scrolled) .nav__cta { margin-top: 26px; align-self: flex-start; flex: none; background: var(--ink); border-color: var(--ink); color: var(--white); }
  .page-hero__grid, .split, .grid-2, .before-after { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
  .kai-photo img { aspect-ratio: 1 / 1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic__item--wide { grid-column: 1 / -1; }
  .mosaic__item--wide img { position: static; aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__img img { max-height: 55vh; }
  .pf-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-tabs { gap: 2px 20px; }
  .floor3d { min-height: 0; display: flex; flex-direction: column; }
  .floor3d__grid { grid-template-columns: minmax(0, 1fr); order: 1; pointer-events: auto; }
  .floor3d__stage { position: relative; inset: auto; order: 2; height: clamp(300px, 88vw, 440px); }
  .floor3d__fallback { position: relative; order: 2; width: 100%; height: clamp(300px, 88vw, 440px); margin-top: 16px; opacity: .8; mask-image: none; -webkit-mask-image: none; }
  .floor3d__legend { left: 50%; bottom: 8%; font-size: 12px; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { position: static; }
  .actionbar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 6px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
  .actionbar a + a { border-left: 1px solid var(--line); }
  .actionbar svg { width: 18px; height: 18px; }
  .actionbar__main { background: var(--ink); color: var(--white) !important; }
  .actionbar { transition: transform .35s var(--ease); }
  .home .actionbar { transform: translateY(110%); }
  .home.bar-on .actionbar { transform: none; }
  body { padding-bottom: 56px; }
  /* quote form: no fixed bar, so a tap on the last answer can never hit Bellen/WhatsApp */
  .no-bar .actionbar { display: none; }
  body.no-bar { padding-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .steps, .projects { grid-template-columns: minmax(0, 1fr); }
  /* legwijzen: two compact cards per row instead of four long ones */
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .grid-4 .card h3 { font-size: 19px; margin-top: 12px; }
  .grid-4 .card p { font-size: 14px; line-height: 1.5; }
  .grid-4 .card .link-arrow { font-size: 14px; margin-top: 10px; }
  .info-list dd a { display: inline-block; padding: 6px 0; }
  .project__more { padding: 8px 0 6px; }
  .pf-types { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
  .pf-types::-webkit-scrollbar { display: none; }
  .pf-tile { flex: 0 0 116px; scroll-snap-align: start; padding: 16px 8px 12px; font-size: 14px; }
  .pf-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .pf-tab { white-space: nowrap; }
  .grid-4.grid-4--keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields, .options--2 { grid-template-columns: minmax(0, 1fr); }
  .option__row { padding: 12px 12px; gap: 10px; font-size: 15px; }
  .buttons .btn { flex: 1 1 auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .info-list dt { border-bottom: 0; padding-bottom: 0; }
  .home-hero__usp { display: none; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline; }
  /* Text at the top, under the header (like vloerenhuis.nl), with the floor visible below it.
     iOS Safari 26 draws the page down to the bottom of the screen, about 100px past 100svh, behind
     its floating toolbar, so the photo runs 140px past 100svh. svh never changes while the bars
     slide in and out, so nothing jumps. */
  .home-hero { --bleed: 140px; align-items: flex-start; min-height: calc(100vh + var(--bleed)); min-height: calc(100svh + var(--bleed)); }
  .home-hero__content { padding-top: 128px; padding-bottom: var(--bleed); }
  .home-hero::after { background: linear-gradient(180deg, rgba(28, 29, 23, .72) 0%, rgba(28, 29, 23, .55) 38%, rgba(28, 29, 23, .1) 62%, rgba(28, 29, 23, 0) 80%, rgba(28, 29, 23, .25) 100%); }
  .home-hero__kicker { font-size: 12px; margin-bottom: 14px; }
  .home-hero .lead { font-size: 28px; line-height: 1.18; max-width: 14em; }
  .home-hero__buttons { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }
  .home-hero__buttons .btn, .home-hero__link { width: 240px; box-sizing: border-box; justify-content: center; }
  .home-hero__buttons .btn { padding: 15px 26px; }
  .home-hero__buttons .btn.show-sm { display: inline-flex; font-size: 16px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
  .home-hero__link { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .55); background: rgba(28, 29, 23, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 14px 26px; font-size: 15px; }
  /* Werkwijze: the drawing stays at the top while the steps scroll underneath */
  .werkwijze .section__head.center { text-align: left; }
  .werkwijze .section__head.center .lead { margin-left: 0; }
  .werkwijze .center .label::before { margin-left: 0; }
  .steps--photo { gap: 0; border-top: 1px solid var(--line); }
  .steps--photo .step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .steps--photo .step img { aspect-ratio: 1; margin: 0; }
  .steps--photo .step h3 { font-size: 19px; line-height: 1.3; }
  .steps--photo .step p { font-size: 15px; line-height: 1.55; margin-top: 4px; }
  .ww { display: block; }
  .js .ww-pin { height: calc(100vh + 5 * 45vh); }
  .js .ww-stage { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); }
  .js .werkwijze .section__head .lead { display: none; }
  .ww-fig { padding: 14px 14px 10px; }
  .ww-svg { max-height: none; }
  .ww-cap { margin-top: 6px; font-size: 11px; }
  /* on a phone only the active step is shown below the drawing */
  .steps--ww { min-height: 132px; }
  .steps--ww .step { display: none; grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0 0; border: 0; }
  .steps--ww .step.is-active { display: grid; animation: ww-in .4s var(--ease); }
  .steps--ww .step:last-child { border: 0; }
  .steps--ww .step::before { font-size: 18px; }
  .steps--ww .step h3 { font-size: 20px; }
  .steps--ww .step p { font-size: 15px; }
  .option { padding: 17px 18px; }
  .option.option--img { padding: 0; }
  .options--img { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal, .fade-img img { opacity: 1; transform: none; }
}
