/* Lambrecht Schilderwerken — demo
   Direction: "The name as a monument" (taste-skill seed 292014672)
   Palette: cobalt on sand · Type: Anton / Work Sans (self-hosted) */

@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/worksans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #e6dbc7;
  --surface: #ddd0b9;
  --surface-2: #d3c4aa;
  --field: #f1e9db;
  --ink: #062b8a;
  --ink-hover: #0a39b0;
  --muted: #2d4c99;   /* ≥ 4.5:1 on both sand and surface */
  --accent: #062b8a;
  --accent-ink: #e6dbc7;
  --danger: #a3201a;
  --coat-1: #cbbfa8;   /* grondlaag */
  --coat-2: #8ea2d4;   /* tussenlaag */
  --coat-3: #062b8a;   /* aflak */

  --display: "Anton", "Arial Narrow", sans-serif;
  --text: "Work Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 14vw, 220px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* strong ease-out (Emil Kowalski) */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* on-screen movement */
  --t-fast: 160ms;
  --t-mid: 320ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--ink) var(--surface);
  color-scheme: light;
  scroll-padding-top: 88px;            /* anchors and focused fields land below the fixed header */
  touch-action: manipulation;          /* no double-tap zoom delay */
  -webkit-tap-highlight-color: transparent; /* every control has its own :active state instead */
}
@media (pointer: fine) { html { overscroll-behavior: none; } }
p, li, dd, figcaption { text-wrap: pretty; overflow-wrap: break-word; }
[data-curtain], [data-window] { overflow: clip; } /* images start at 118% scale inside their frame */
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--bg); }
input, textarea { caret-color: var(--ink); }

.skip {
  position: absolute; left: var(--margin); top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.h-section {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--step-head);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h-small {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 1;
  text-wrap: balance;
}
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.small { font-size: var(--step-small); }

.wrap { padding-inline: var(--margin); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 56px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-mid) var(--ease-out); }
.btn:hover { background: var(--ink-hover); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(4px); }
  .swatch:hover .swatch__chip { transform: translateY(-6px); }
  .project:hover img { transform: scale(1.03); }
  .services__list button:hover { transform: translateX(6px); }
}
.btn:active { transform: scale(0.97); }
.btn--sand { background: var(--bg); color: var(--ink); }
.btn--sand:hover { background: #f1e8d8; }
.btn--tone { background: var(--surface-2); color: var(--ink); }
.btn--tone:hover { background: #c9b897; }

.link { position: relative; font-weight: 600; text-decoration: none; padding-bottom: 3px; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0.25); transform-origin: 0 50%;
  transition: transform var(--t-mid) var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(var(--margin), env(safe-area-inset-right)) 16px max(var(--margin), env(safe-area-inset-left));
  color: var(--ink);
  transition: transform var(--t-mid) var(--ease-out), background-color var(--t-mid) ease, color var(--t-mid) ease;
}.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid { background: var(--bg); }
.site-header.on-ink { color: var(--bg); }
.site-header.on-ink.is-solid { background: var(--ink); }
.wordmark {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.375rem; letter-spacing: 0.01em; text-decoration: none; line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a:not(.btn) { font-size: 0.9375rem; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.site-header.on-ink .nav .btn { background: var(--bg); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
    background: none; border: 0; font-weight: 600; font-size: 1rem; cursor: pointer;
  }
  .site-header.menu-open { background: var(--bg); }
  .site-header.menu-open.on-ink { background: var(--ink); }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    position: fixed; inset: 64px 0 auto 0; padding: 28px var(--margin) 36px;
    background: inherit;
  }
  .site-header.menu-open .nav { background: var(--bg); }
  .site-header.menu-open.on-ink .nav { background: var(--ink); }
  .site-header.menu-open .nav a:not(.btn) { font-family: var(--display); text-transform: uppercase; font-size: 2.5rem; line-height: 1; padding: 6px 0; }
  .site-header.menu-open .nav { max-height: calc(100svh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .site-header.menu-open .nav .btn { width: 100%; justify-content: center; min-height: 56px; }
  html.menu-locked { overflow: hidden; }
  .wordmark { min-height: 44px; display: inline-flex; align-items: center; }
  /* phone rhythm: tighter section gaps, body text never under 17px, statements a size down */
  :root { --section: 88px; }
  .lead { font-size: 1.25rem; }
  .about { padding-block: 88px; }
  .about__text p { font-size: 1.375rem; line-height: 1.28; }
  .faq__head, .h-section { text-wrap: balance; }
  .fan__panel { padding-top: 32px; padding-bottom: 48px; gap: 28px; }
  .fan__swatches { gap: 8px; }
  .swatch__name { font-size: 0.8125rem; }
  .coats__desc { font-size: 1.125rem; padding-inline: 8px; }
  .contact { padding-bottom: calc(32px + 76px); } /* keep the corners clear of the quote bar */
}

/* mobile quote bar */
.quote-bar { display: none; }
@media (max-width: 760px) {
  .quote-bar {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    transition: transform var(--t-mid) var(--ease-out), opacity var(--t-mid) ease;
  }
  .quote-bar .btn { flex: 1; justify-content: center; }
  .quote-bar.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: clip;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 var(--margin);
  background: var(--bg);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { /* flat neutral scrim: keeps the cobalt type at full contrast on the moving wall */
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(230,219,199,.28);
}
.video-toggle {
  position: absolute; z-index: 3; left: var(--margin); bottom: calc(3vh + 8px);
  min-height: 44px; padding: 0 14px; border: 0; cursor: pointer;
  background: rgba(230,219,199,.85); color: var(--ink); font-size: var(--step-small); font-weight: 600;
  transition: background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.video-toggle:hover { background: var(--bg); }
.video-toggle:active { transform: scale(0.97); }
@media (max-width: 760px) { .video-toggle { bottom: calc(3vh + 19.5vw * 0.9 + 12px); } } /* sits just above SCHILDERS */
.hero h1 {
  position: relative; z-index: 1; margin: 0;
  grid-row: 1 / 4; grid-column: 1;
  display: grid; grid-template-rows: auto 1fr auto;
  pointer-events: none;
}
.hero__line {
  position: relative; z-index: 1; display: block;
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: min(21.5vw, 30svh); line-height: 0.82; letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero__line--1 { grid-row: 1; padding-top: 76px; }
.hero__line--2 { grid-row: 3; justify-self: end; padding-bottom: 3vh; }
.mask { display: block; overflow: clip; padding-top: 0.02em; padding-bottom: 0.03em; }
.mask > span { display: block; }
/* signature: first-screen headline lines rise from their baselines. CSS, not JS: it runs during load,
   off the main thread, so the title paints on the first frames (LCP) */
.js .hero [data-line], .js .page-hero [data-line] { animation: rise 900ms var(--ease-out) 80ms both; }
.js .hero__line--2 [data-line], .js .page-hero .mask + .mask [data-line] { animation-delay: 190ms; }
@keyframes rise { from { transform: translateY(108%); } }
/* the supporting copy follows the name, 70ms apart */
.js .hero__mid > *, .js .page-hero > :not(h1) { animation: follow 700ms var(--ease-out) 450ms both; }
.js .hero__mid > :nth-child(2), .js .page-hero > :nth-child(3) { animation-delay: 520ms; }
.js .hero__mid > :nth-child(3), .js .page-hero > :nth-child(4) { animation-delay: 590ms; }
@keyframes follow { from { transform: translateY(18px); opacity: 0.01; } }

/* Lenis (inlined to save a render-blocking request) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.hero__mid {
  position: relative; z-index: 2; grid-row: 2; grid-column: 1; align-self: center;
  margin-left: 30vw; max-width: 46ch;
}
.hero__mid p { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.45; font-weight: 500; }
.hero__mid .btn { margin-top: 24px; }
.hero__mid .note { margin-top: 12px; font-size: var(--step-small); font-weight: 600; }
@media (max-width: 760px) {
  .hero__line { font-size: 19.5vw; }
  .hero__line--1 { padding-top: 84px; }
  .hero__mid { margin-left: 0; }
  .hero__scrim { background: rgba(230,219,199,.35); }
}

/* ---------- intro ---------- */
.intro { padding-top: var(--section); }
.intro .grid { align-items: end; row-gap: 0; }
.intro__head { grid-column: 1 / -1; font-size: clamp(3rem, 1.2rem + 7.4vw, 8.75rem); }
.intro__statement {
  grid-column: 1 / span 7; margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.125rem);
  line-height: 1.3; max-width: 30ch; font-weight: 500;
}
/* unfilled words stay at 3.6:1 (large text ≥ 24px needs 3:1) */
.js .intro__statement .w { opacity: 0.62; }
.intro__caps { grid-column: 9 / span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.intro__caps p { font-size: var(--step-small); line-height: 1.45; }
.intro__caps strong { display: block; font-weight: 600; }
.intro__media { margin-top: 48px; overflow: clip; }
.intro__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 760px) {
  .intro .grid { display: block; }
  .intro__caps { margin-top: 28px; }
  .intro__media img { aspect-ratio: 4 / 5; }
}

/* ---------- marquee ---------- */
.marquee {
  margin-top: var(--section);
  background: var(--surface);
  overflow: clip; white-space: nowrap;
  padding-block: clamp(18px, 2.4vw, 32px);
}
.marquee__track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 6rem); line-height: 1; padding-right: 0.45em;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.motion .marquee__track { animation: none; } /* GSAP drives it and ties its speed to the scroll */
.motion .faq details p { will-change: auto; }

/* ---------- work scatter ---------- */
.work { padding-top: var(--section); }
.work__list { margin-top: clamp(48px, 6vw, 96px); align-items: start; }
.work__item { grid-column: 1 / span 6; }
.work__item--b { grid-column: 9 / span 4; }
.work__item--c { grid-column: 3 / span 7; }
.work__gap { margin-top: clamp(96px, 24vh, 260px); }
@media (min-width: 1024px) { .work__pull { margin-top: 160px; } }
.work__item figure { overflow: clip; }
.work__item img { width: 100%; object-fit: cover; }
.work__item--a img { aspect-ratio: 3 / 2; }
.work__item--b img { aspect-ratio: 4 / 5; }
.work__item--c img { aspect-ratio: 16 / 9; }
.work__name { font-size: var(--step-small); font-weight: 600; margin-bottom: 10px; color: var(--muted); }
.work__desc { margin-top: 12px; max-width: 44ch; font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); }
.work__remark {
  grid-column: 2 / span 5; align-self: center;
  font-size: 1.25rem; line-height: 1.35; max-width: 26ch; font-weight: 500;
}
.work__more { grid-column: 1 / -1; margin-top: clamp(64px, 8vw, 120px); }
@media (max-width: 760px) {
  .work__list { display: block; }
  .work__item, .work__item--b, .work__item--c { width: 100%; }
  .work__item--b { width: 68%; margin-left: auto; }
  .work__item--c { width: 82%; }
  .work__gap { margin-top: 72px; }
  .work__remark { margin-top: 72px; }
}

/* ---------- services index ---------- */
.services { padding-block: var(--section); }
.services__head { grid-column: 1 / span 6; margin-bottom: 96px; }
.services__col:nth-of-type(1) { grid-column: 1 / span 3; }
.services__col:nth-of-type(2) { grid-column: 4 / span 3; }
.services__col:nth-of-type(3) { grid-column: 7 / span 3; }
.services__group { font-weight: 600; margin-bottom: 1em; font-size: 1.0625rem; }
.services__list button {
  all: unset; display: block; width: 100%; padding: 6px 0; cursor: default;
  font-size: 1.0625rem; line-height: 1.3; color: var(--muted);
  transition: color var(--t-fast) ease, transform var(--t-mid) var(--ease-out);
}
.services__list button:hover, .services__list button:focus-visible, .services__list button[aria-pressed="true"] { color: var(--ink); }
.services__list button:focus-visible, .services__list button[aria-pressed="true"] { transform: translateX(6px); }
.services__list button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.services__desc { grid-column: 10 / span 3; grid-row: 2; align-self: start; }
.services__desc .h-small { margin-bottom: 12px; }
.services__desc p { font-size: 1.0625rem; }
.services__sum { display: none; }
.services__cta { grid-column: 1 / -1; margin-top: 72px; }
@media (max-width: 900px) {
  .services__col:nth-of-type(n) { grid-column: 1 / -1; margin-top: 40px; }
  .services__desc { display: none; }
  .services__sum { display: block; margin-top: 12px; font-size: 1rem; color: var(--muted); }
  .services__list button { font-size: 1.125rem; line-height: 1.4; color: var(--ink); }
  .services__head { margin-bottom: 8px; }
}

/* ---------- three coats (signature scene) ---------- */
.coats { position: relative; background: var(--surface); }
.coats__stage { position: relative; height: 100svh; overflow: clip; }
.coats__wall { position: absolute; inset: 0; }
.coats__wall img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(1.1) contrast(.9); }
.coat { position: absolute; inset: 0; }
.coat--1 { background: var(--coat-1); }
.coat--2 { background: var(--coat-2); }
.coat--3 { background: var(--coat-3); }
.coat__edge { /* the wet edge the roller leaves */
  position: absolute; top: 0; bottom: 0; right: 0; width: 14px; transform: translateX(100%);
  background: inherit; filter: brightness(.9);
}
.coats__labels {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; padding: 0 var(--margin);
}
.coats__label { grid-area: 1 / 1; text-align: center; }
.coats__name {
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(4.5rem, 1.5rem + 13vw, 15rem); line-height: 0.85;
}
.coats__desc {
  margin: 20px auto 0; max-width: 30ch;
  font-size: var(--step-lead); line-height: 1.3; font-weight: 500;
}
.coats__label--3 { color: var(--bg); }
.coats__head { position: absolute; z-index: 3; left: var(--margin); top: clamp(88px, 12vh, 132px); }
.coats__progress {
  position: absolute; z-index: 3; left: var(--margin); right: var(--margin); bottom: 28px;
  height: 4px; background: rgba(6,43,138,.18);
}
.coats__head, .coats__progress { transition: color var(--t-mid) ease, background-color var(--t-mid) ease; }
.coats__stage[data-ink-header] .coats__head { color: var(--bg); }
.coats__stage[data-ink-header] .coats__progress { background: rgba(230,219,199,.25); }
.coats__stage[data-ink-header] .coats__progress i { background: var(--bg); }
.coats__progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
/* without script or with reduced motion: the finished state, three labels stacked as a list */
.coats--static .coats__stage { height: auto; padding: 160px var(--margin) 96px; background: var(--coat-3); color: var(--bg); }
.coats--static .coats__wall, .coats--static .coat, .coats--static .coats__progress { display: none; }
.coats--static .coats__labels { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); place-items: start; padding: 0; }
.coats--static .coats__label { grid-area: auto; text-align: left; color: var(--bg); }
.coats--static .coats__name { font-size: clamp(3rem, 1rem + 5.4vw, 6.5rem); }
.coats--static .coats__desc { margin-left: 0; }
@media (max-width: 760px) { .coats--static .coats__labels { grid-template-columns: 1fr; gap: 40px; } }
.coats--static .coats__head { position: static; margin-bottom: 64px; color: var(--bg); }

/* ---------- process diagonal ---------- */
.process { padding-block: var(--section); }
.process .grid { align-items: start; }
.process__head { grid-column: 7 / span 6; grid-row: 1; }
.process__img { overflow: clip; }
.process__img img, .process__img video { width: 100%; height: 100%; object-fit: cover; }
.process__text { font-size: 1.0625rem; max-width: 36ch; }
.process__text strong { font-weight: 600; }
.s1.process__img { grid-column: 1 / span 4; grid-row: 1 / span 2; aspect-ratio: 3 / 4; }
.s1.process__text { grid-column: 5 / span 3; grid-row: 2; margin-top: 24px; }
.s2.process__img { grid-column: 6 / span 3; grid-row: 3; aspect-ratio: 1; margin-top: 140px; }
.s2.process__text { grid-column: 9 / span 3; grid-row: 3; margin-top: 140px; }
.s3.process__img { grid-column: 8 / span 5; grid-row: 4; aspect-ratio: 16 / 10; margin-top: 120px; }
.s3.process__text { grid-column: 3 / span 4; grid-row: 4; margin-top: 120px; justify-self: end; }
.process__head .lead { margin-top: 20px; }
@media (max-width: 760px) {
  .process .grid { display: block; }
  .process__head { margin-bottom: 8px; }
  .process__img { margin-top: 56px !important; }
  .s2.process__img { width: 62%; margin-left: auto; }
  .s3.process__img { width: 78%; }
  .process__text { margin-top: 16px !important; }
  .s2.process__text { margin-left: 38%; }
}

/* ---------- colour fan (live thing) ---------- */
.fan { background: var(--surface); }
.fan__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.fan__plate { position: relative; display: grid; place-items: center; padding: 40px; }
.fan__room { width: 100%; max-width: 640px; aspect-ratio: 1; position: relative; }
.fan__room svg { width: 100%; height: 100%; }
.fan__wall { fill: var(--wall, #cbbfa8); transition: fill 700ms var(--ease-in-out); }
.fan__photo { position: absolute; right: 7%; bottom: 7%; width: 34%; aspect-ratio: 1; object-fit: cover; }
.fan__panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(40px, 6vw, 88px) var(--margin) clamp(40px, 6vw, 88px) clamp(24px, 4vw, 64px);
}
.fan__tabs { display: flex; gap: 28px; }
.fan__tabs button {
  all: unset; cursor: pointer; font-size: 1.125rem; font-weight: 600; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center; position: relative;
}
.fan__tabs button[aria-selected="true"] { color: var(--ink); }
.fan__tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-mid) var(--ease-out);
}
.fan__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.fan__tabs button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.fan__title { margin-bottom: 20px; }
.fan__copy p { max-width: 36ch; }
.fan__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 32px; }
.fan__swatches[hidden] { display: none; }
.swatch { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.swatch__chip {
  display: block; aspect-ratio: 3 / 4; background: var(--c);
  transition: transform var(--t-mid) var(--ease-out);
}
.swatch__name { font-size: 0.875rem; font-weight: 600; line-height: 1.2; }
.swatch:active .swatch__chip { transform: translateY(-4px) scale(0.97); }
.swatch[aria-pressed="true"] .swatch__chip { transform: translateY(-10px); outline: 3px solid var(--ink); outline-offset: 3px; }
.swatch:focus-visible .swatch__chip { outline: 3px solid var(--ink); outline-offset: 3px; }
.fan__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fan__actions .btn { min-height: 72px; justify-content: space-between; }
.fan__current { margin-top: 18px; font-size: var(--step-small); font-weight: 600; min-height: 1.5em; }
@media (max-width: 900px) {
  .fan__inner { grid-template-columns: 1fr; }
  .fan__plate { padding: 16px; }
  .fan__actions { grid-template-columns: 1fr; }
  .fan__actions .btn { min-height: 60px; }
}

/* ---------- about ---------- */
.about { padding-block: 140px; }
.about__facts { grid-column: 1 / span 2; font-size: 0.875rem; display: flex; flex-direction: column; gap: 14px; }
.about__facts dt { font-weight: 600; }
.about__text { grid-column: 3 / span 10; }
.about__text p { font-size: clamp(1.375rem, 1rem + 1.1vw, 2.125rem); line-height: 1.2; max-width: 44ch; color: var(--muted); }
.about__text p + p { margin-top: 1.2em; }
.about__text strong { color: var(--ink); font-weight: 600; }
.about__portrait { float: left; width: 3.6em; height: 3.6em; margin: 0.1em 0.5em 0 0; object-fit: cover; }
@media (max-width: 760px) {
  .about .grid { display: flex; flex-direction: column-reverse; gap: 40px; }
  .about__facts { flex-direction: row; flex-wrap: wrap; gap: 18px; font-size: 0.8125rem; }
  .about__portrait { width: 4.8em; height: 4.8em; }
}

/* ---------- faq ---------- */
.faq { padding-bottom: var(--section); }
.faq__head { font-size: clamp(2.75rem, 1.4rem + 5vw, 6.5rem); max-width: 14ch; }
.faq__list { margin-top: 80px; margin-left: calc((100% + var(--gap)) / 12 * 4); }
.faq details { padding: 18px 24px; margin-inline: calc(-1 * min(24px, var(--margin))); transition: background-color var(--t-mid) ease; }
.faq details + details { margin-top: 18px; }
.faq details[open] { background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px;
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; transition: transform var(--t-mid) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin-top: 14px; max-width: 52ch; font-size: 1.0625rem; }
@media (max-width: 760px) {
  .faq__list { margin-left: 0; margin-top: 40px; }
  .faq details { margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
}

/* ---------- contact (inverse) ---------- */
.contact {
  position: relative;
  min-height: 100svh; background: var(--ink); color: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: clamp(96px, 10vw, 140px) var(--margin) 32px;
}
.contact__lead { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem); max-width: 30ch; font-weight: 500; }
.contact__mail {
  grid-row: 3; align-self: end; margin-bottom: 8vh;
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(2.5rem, 8.5vw, 12rem); line-height: 0.9;
  text-decoration: none; display: block; white-space: nowrap;
  transition: color var(--t-mid) ease;
}
.contact__mail:hover { color: #fff; }
.contact__mail .at { display: block; }
.contact__foot { grid-row: 4; display: flex; justify-content: space-between; gap: 24px; font-size: 0.9375rem; flex-wrap: wrap; }
.contact__foot a { text-decoration: none; }
.contact__foot a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .contact { min-height: 86svh; }
  .contact__mail { white-space: normal; overflow-wrap: anywhere; font-size: 10vw; }
  .contact__mail .at { display: block; }
  .contact__foot { flex-direction: column; gap: 12px; }
}

/* ---------- footer (the curtain move lives in motion.js) ---------- */
main { position: relative; z-index: 1; background: var(--bg); }
.site-footer {
  position: relative; overflow: clip;
  min-height: 100svh; background: var(--ink); color: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto auto; grid-template-columns: minmax(0, 1fr);
  padding: 40px var(--margin) 20px;
}
.footer__cols { row-gap: 32px; }
.footer__cols a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer__cols > div { grid-column: span 3; font-size: 0.9375rem; line-height: 1.7; }
.footer__cols p:first-child { font-weight: 600; }
.footer__cols a { text-decoration: none; display: inline-block; padding: 6px 0; min-height: 32px; } /* thumb-sized, ≥ 24px apart */
.footer__cols ul { margin: 0; padding: 0; list-style: none; }
.footer__cols a:hover { text-decoration: underline; }
.footer__word {
  grid-row: 3; color: var(--bg);
  font-family: var(--display); text-transform: uppercase; line-height: 0.8;
  font-size: 21.2vw; letter-spacing: -0.01em; white-space: nowrap; margin: 40px 0 0;
}
.footer__legal { grid-row: 4; margin-top: 20px; font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { text-decoration: underline; }
@media (max-width: 760px) {
  .footer__cols > div { grid-column: span 6; }
  .site-footer { padding-bottom: 92px; }
}

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(120px, 16vw, 200px) var(--margin) clamp(48px, 6vw, 96px); }
.page-hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.86; font-size: clamp(3rem, 0.5rem + 12.5vw, 13rem); }
@media (max-width: 760px) { .page-hero h1 { font-size: 16vw; } } /* "REALISATIES" (11 letters) fits 375px with margins */
.page-hero .lead { margin-top: 28px; }
.page-hero .btn { margin-top: 28px; }

.svc { padding-block: clamp(72px, 9vw, 140px); }
.svc:nth-of-type(even) { background: var(--surface); }
.svc .grid { align-items: center; }
.svc__media { grid-column: 1 / span 6; grid-row: 1; overflow: clip; }
.svc__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc__body { grid-column: 8 / span 5; grid-row: 1; }
.svc:nth-of-type(even) .svc__media { grid-column: 7 / span 6; }
.svc:nth-of-type(even) .svc__body { grid-column: 1 / span 5; }
.svc__body .h-section { font-size: clamp(2.25rem, 1rem + 3.2vw, 4rem); }
.svc__body .lead { margin-top: 16px; }
.svc__body ul { margin-top: 28px; padding: 0; list-style: none; }
.svc__body li { padding: 9px 0 9px 30px; position: relative; }
.svc__body li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 16px; height: 3px; background: var(--ink); }
.svc__body .btn { margin-top: 32px; }
@media (max-width: 760px) {
  .svc .grid { display: block; }
  .svc__body { margin-top: 28px; }
}

.closer { padding-block: var(--section); }
.closer .grid { align-items: center; }
.closer__text { grid-column: 1 / span 6; }
.closer figure { grid-column: 8 / span 5; overflow: clip; }
.closer figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .closer .grid { display: block; } .closer figure { margin-top: 40px; } }
.closer p { margin-top: 20px; max-width: 46ch; }
.closer .btn { margin-top: 28px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filters button {
  all: unset; cursor: pointer; padding: 12px 18px; font-weight: 600; background: var(--surface);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.filters button:hover { background: var(--surface-2); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.projects { padding-bottom: var(--section); row-gap: clamp(56px, 7vw, 110px); }
.project { grid-column: span 6; }
.project--wide { grid-column: 3 / span 8; }
.project[hidden] { display: none; }
.project figure { overflow: clip; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 900ms var(--ease-out); }
.project__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.project h2 { margin-top: 8px; }
.project p { margin-top: 8px; max-width: 46ch; }
@media (max-width: 760px) {
  .project, .project--wide { grid-column: 1 / -1; }
}

.archive { padding-bottom: var(--section); }
.archive .grid { align-items: end; }
.archive figure { grid-column: 1 / span 7; }
.archive img { width: 100%; }
.archive figcaption { margin-top: 10px; font-size: var(--step-small); }
.archive__text { grid-column: 9 / span 4; }
.archive__text p { margin-top: 16px; }
@media (max-width: 760px) { .archive .grid { display: block; } .archive__text { margin-top: 24px; } }

/* ---------- quote form ---------- */
.quote { padding: 0 var(--margin) var(--section); }
.quote .grid { align-items: start; }
.quote__form { grid-column: 1 / span 7; }
.quote__aside { grid-column: 9 / span 4; position: sticky; top: 100px; }
.quote__aside ol { margin-top: 18px; padding-left: 1.2em; }
.quote__aside li { padding: 8px 0; }
.quote__aside figure { margin-top: 32px; }
.quote__aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.progress { margin-bottom: 36px; }
.progress__label { font-weight: 600; }
.progress__bar { height: 4px; background: var(--surface-2); margin-top: 12px; }
.progress__bar i { display: block; height: 100%; background: var(--ink); width: 25%; transition: width 500ms var(--ease-out); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step[hidden] { display: none; }
.step legend { padding: 0; margin-bottom: 8px; }
.field { margin-top: 28px; }
.field > label, .field__label { display: block; font-weight: 600; margin-bottom: 10px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  background: var(--field); border: 2px solid transparent; border-bottom-color: var(--ink); border-radius: 0;
  font-size: 1.0625rem;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #f7f1e6; }
.field input::placeholder, .field textarea::placeholder { color: #4f6399; }
.help { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.error { margin-top: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--danger); }
.error:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; cursor: pointer;
  background: var(--field); font-weight: 600;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.choice span:hover { background: var(--surface-2); }
.choice input:checked + span { background: var(--ink); color: var(--bg); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice span:active { transform: scale(0.97); }
.drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 10px;
  padding: 36px 20px; background: var(--field); border: 2px dashed var(--muted); cursor: pointer;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.drop.is-over { background: #f7f1e6; border-color: var(--ink); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; }
.thumbs li { position: relative; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs button {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); display: grid; place-items: center;
}
.thumbs button svg { width: 16px; height: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; }
.consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.step__nav { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.btn[disabled] { opacity: .65; cursor: progress; }
.done { padding: 40px 0; }
.done[hidden] { display: none; }
.done p { margin-top: 18px; max-width: 44ch; }
.done .btn { margin-top: 28px; }
@media (max-width: 900px) {
  .quote .grid { display: block; }
  .quote__aside { position: static; margin-top: 64px; }
}

/* ---------- prose ---------- */
.prose { padding: 0 var(--margin) var(--section); }
.prose > div { max-width: 68ch; }
.prose h2 { margin-top: 48px; }
.prose p { margin-top: 12px; }

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