/* Bouwservice van Huigenbos, site.css
   Huisstijl uit het oude logo en de oude site: antraciet #292929, oranje #F5822A, grijs #6D6E71.
   Richting "De bouwtekening": donker vlak, oranje daklijn uit het logo als terugkerend motief,
   bouwtekening-raster in de paginakoppen, rechte hoeken. Eén thema (donker), zoals de oude site. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #1c1c1d;
  --panel: #262627;
  --panel-2: #303032;
  --line: rgb(255 255 255 / .1);
  --line-strong: rgb(255 255 255 / .2);
  --text: #f3f1ed;
  --muted: #b0ada7;
  --grijs: #8c8d90;
  --oranje: #f5822a;
  --oranje-hover: #ff9443;
  --op-oranje: #1c1c1d;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header: 76px;      /* compacte header na scrollen */
  --header-big: 150px; /* bovenaan: logo op de grootte van de oude site (270 px breed) */
  --hh: var(--header-big);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(72px, 9vw, 128px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
html.is-scrolled { --hh: var(--header); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding-top: var(--header-big);
  font: 400 17px/1.62 var(--wide);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; hyphens: auto; -webkit-hyphens: auto; font-stretch: 112%; font-weight: 760; letter-spacing: -.015em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; }
::selection { background: var(--oranje); color: var(--op-oranje); }
:focus-visible { outline: 2px solid var(--oranje); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oranje); color: var(--op-oranje); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.prose { max-width: 66ch; color: #dcd9d4; }
.prose a, .text-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--oranje); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover, .text-link:hover { color: var(--oranje); }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; }

/* ---------------------------------------------------------------- knoppen */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  font: 620 15px/1 var(--wide); font-stretch: 108%; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--oranje); color: var(--op-oranje); }
.btn-primary:hover { background: var(--oranje-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--oranje); }
.btn-dark { background: var(--op-oranje); color: var(--text); }
.btn-dark:hover { background: #000; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hh);
  background: rgb(28 28 29 / .92);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgb(28 28 29 / .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); } }
.is-scrolled .site-header { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.logo { width: 270px; height: auto; }
.site-header .logo { transition: width .35s var(--ease); }
.is-scrolled .site-header .logo { width: 135px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav > ul > li { position: relative; }
.nav a.nav-link, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  font: 500 15px/1 var(--wide); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color .2s var(--ease);
}
.nav a.nav-link:hover, .nav button.nav-link:hover, .nav .is-active > .nav-link { color: var(--text); }
.nav .is-active > .nav-link { box-shadow: inset 0 -2px 0 var(--oranje); }
.nav .caret { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s var(--ease); }
.sub {
  position: absolute; left: 0; top: 100%; min-width: 230px; margin: 0; padding: 8px; list-style: none;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 48px -12px rgb(0 0 0 / .5);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transform-origin: top left;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub:hover .caret, .has-sub.is-open .caret { transform: rotate(-90deg); }
.sub a { display: block; padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s, background-color .15s; }
.sub a:hover, .sub a[aria-current] { color: var(--text); background: var(--panel-2); }
.nav .btn { margin-left: 12px; min-height: 44px; }
.menu-btn { display: none; }

@media (max-width: 1060px) { :root { --header-big: 112px; } .site-header .logo { width: 200px; } .is-scrolled .site-header .logo { width: 124px; } }
@media (max-width: 1060px) {
  /* backdrop-filter maakt de header het kader van het vaste menupaneel: op mobiel daarom effen */
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
    background: none; border: 1px solid var(--line-strong); color: var(--text); font: 600 15px/1 var(--wide); cursor: pointer;
  }
  .menu-btn .icon { width: 20px; height: 20px; }
  .nav {
    position: fixed; inset: var(--hh) 0 0 0; z-index: 49; display: block; overflow-y: auto;
    padding: 24px var(--gutter) 40px; background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open { overflow: hidden; }
  .nav > ul { display: block; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a.nav-link, .nav button.nav-link { height: auto; padding: 18px 0; font-size: 1.35rem; font-stretch: 110%; font-weight: 650; color: var(--text); width: 100%; justify-content: space-between; }
  .nav .is-active > .nav-link { box-shadow: none; color: var(--oranje); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; padding: 0 0 14px; background: none; border: 0; box-shadow: none; }
  .has-sub.is-open .sub { display: block; }
  .has-sub:hover .caret { transform: rotate(90deg); }
  .has-sub.is-open .caret { transform: rotate(-90deg); }
  .sub a { padding: 10px 0 10px 16px; font-size: 1.05rem; border-left: 2px solid var(--line); }
  .sub a[aria-current] { border-left-color: var(--oranje); background: none; }
  .nav .btn { margin: 28px 0 0; width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- daklijn (uit het logo) */
.daklijn { position: absolute; pointer-events: none; overflow: visible; }
.daklijn path { fill: none; stroke: var(--oranje); stroke-width: var(--dw, 5); vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
@media (prefers-reduced-motion: no-preference) {
  .js .daklijn.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease) .25s forwards; }
  .js .daklijn.draw path + path { animation-delay: .42s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); align-items: stretch;
  min-height: min(calc(100dvh - var(--header-big)), 820px);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 56px) clamp(48px, 6vw, 96px) 0; }
.hero-copy h1 { font-size: clamp(2.2rem, 3.5vw, 3.3rem); max-width: 18ch; }
.hero-copy .lead { margin: 24px 0 36px; max-width: 34ch; color: #cfccc6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; margin-right: calc(-1 * var(--gutter)); }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(28 28 29 / .55), transparent 28%); }
.hero-roof { position: relative; width: clamp(150px, 15vw, 210px); aspect-ratio: 300 / 140; margin-bottom: clamp(20px, 2.4vw, 32px); }
.hero-roof .daklijn { inset: 0; width: 100%; height: 100%; --dw: 5; }
@media (min-width: calc(1320px + 96px)) { .hero-media { margin-right: calc((100vw - 1320px) / -2); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 28px 0 44px; order: 2; }
  .hero-roof { width: 104px; margin-bottom: 18px; }
  .hero-copy .lead { margin: 16px 0 26px; }
  .hero-media { order: 1; aspect-ratio: 16 / 10; margin: 0 calc(-1 * var(--gutter)); }
  .hero-media::after { background: linear-gradient(0deg, rgb(28 28 29 / .9), transparent 40%); }
}

/* ---------------------------------------------------------------- paginakop (subpagina's) */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)),
  repeating-linear-gradient(0deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 32px),
  repeating-linear-gradient(90deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 32px), var(--bg); }
.page-head .wrap { position: relative; z-index: 1; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--grijs); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--oranje); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 20px; }
.page-head .daklijn { right: -6%; bottom: -14%; width: min(52vw, 640px); --dw: 2; opacity: .9; }
@media (max-width: 700px) { .page-head .daklijn { width: 90vw; right: -30%; bottom: -10%; opacity: .5; } }

/* ---------------------------------------------------------------- secties */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-title { margin-bottom: clamp(28px, 4vw, 48px); }
.section-title p { margin-top: 16px; }

/* intro + disciplines */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.intro h2 { margin-bottom: 28px; }
.disciplines { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; column-gap: .5em; font-stretch: 118%; font-weight: 720; font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.18; letter-spacing: -.02em; color: var(--text); }
.disciplines li { display: inline-flex; gap: .5em; }
.disciplines li::after { content: "/"; color: var(--oranje); font-weight: 400; }
.disciplines li:last-child::after { content: none; }
.disciplines li.dim { color: #77767a; }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .disciplines { font-size: 1.5rem; } }
.disciplines li { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

/* voor wie: twee beeldtegels */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(380px, 42vw, 560px); padding: clamp(24px, 3vw, 40px); overflow: hidden; text-decoration: none; isolation: isolate; background: var(--panel); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(20 20 21 / .94) 8%, rgb(20 20 21 / .35) 55%, rgb(20 20 21 / .1)); }
.tile:hover img { transform: scale(1.035); }
.tile h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.tile p { margin: 12px 0 22px; max-width: 42ch; color: #d7d4ce; }
.tile .more { display: inline-flex; align-items: center; gap: 10px; font-weight: 620; color: var(--oranje); }
.tile .more .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.tile:hover .more .icon { transform: translateX(4px); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .tile { min-height: 420px; } }

/* referenties-bento (home) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(200px, 19vw, 270px); gap: clamp(10px, 1.4vw, 16px); }
.cell { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 22px; text-decoration: none; isolation: isolate; background: var(--panel); }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(20 20 21 / .88), transparent 58%); }
.cell:hover img { transform: scale(1.04); }
.cell h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.cell .count { display: block; margin-top: 6px; font-family: var(--mono); font-size: .78rem; color: #cfccc6; }
.cell .arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--oranje); color: var(--op-oranje); transition: transform .25s var(--ease); }
.cell .arrow .icon { width: 18px; height: 18px; }
.cell:hover .arrow { transform: translate(2px, -2px); }
.cell.c1 { grid-column: 1 / 5; grid-row: span 2; }
.cell.c2, .cell.c3 { grid-column: 5 / 7; }
.cell.c4 { grid-column: 1 / 3; }
.cell.c5 { grid-column: 3 / 7; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cell, .cell.c1, .cell.c2, .cell.c3, .cell.c4, .cell.c5 { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .cell.c1 { aspect-ratio: 1; }
}

/* servicebus + materieel (home) */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: var(--panel); }
.feature-media { position: relative; min-height: 460px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(32px, 5vw, 72px); align-self: center; }
.feature-copy h2 { margin-bottom: 22px; font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.feature-copy .prose { margin-bottom: 28px; }
.huur { display: flex; align-items: baseline; gap: 12px; margin: 0 0 30px; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--muted); }
.huur strong { color: var(--text); font-weight: 650; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-media { min-height: 0; aspect-ratio: 4 / 3; } }

/* keuzeveld onderwerp */
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--oranje) 50%), linear-gradient(135deg, var(--oranje) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* groot getal bij het project (home) */
.stat { margin: 0 0 14px; font-stretch: 118%; font-weight: 780; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.03em; color: var(--oranje); }
.stat span { font-variant-numeric: tabular-nums; }

/* bento met foto's (home): de cellen zijn knoppen voor de lightbox */
.cell.shot { padding: 0; cursor: zoom-in; }
.cell.shot::before { content: none; }
.bento-more { margin-top: 24px; }

/* ---------------------------------------------------------------- slotband */
.cta-band { position: relative; overflow: hidden; background: var(--oranje); color: var(--op-oranje); }
.cta-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { margin-top: 16px; max-width: 52ch; font-size: 1.1rem; color: #3a2414; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cta-actions .tel { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.cta-actions .tel .icon { width: 20px; height: 20px; }
.cta-actions .tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-band .daklijn { right: -4%; top: -30%; width: min(60vw, 760px); --dw: 2; }
.cta-band .daklijn path { stroke: rgb(28 28 29 / .22); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .logo { width: 240px; margin-bottom: 18px; }
.site-footer h2 { margin: 0 0 14px; font-size: .78rem; font-family: var(--mono); font-weight: 500; font-stretch: 100%; letter-spacing: .04em; color: var(--grijs); text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--oranje); }
.site-footer address { font-style: normal; line-height: 1.7; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--grijs); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- particulier: werkwijze */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media img.pos-right { object-position: 80% 50%; }
.split-media figcaption { margin-top: 10px; font-size: 14px; color: var(--grijs); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media img { aspect-ratio: 4 / 3; } }
.steps { position: relative; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 32px 64px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--oranje); color: var(--oranje); font: 500 .9rem/1 var(--mono); background: var(--bg); z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 38px; bottom: 0; width: 1px; background: var(--line-strong); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: #d2cfc9; max-width: 52ch; }
.callout { margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 44px); background: var(--panel); border-left: 3px solid var(--oranje); }
.callout h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 14px; }
.callout .prose { margin-bottom: 22px; }

/* bedrijven: werkwijze-blokken */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 48px); }
.point { padding-top: 22px; border-top: 1px solid var(--line-strong); position: relative; }
.point::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 3px; background: var(--oranje); }
.point h3 { margin-bottom: 12px; }
.point p { color: #d2cfc9; }
@media (max-width: 640px) { .points { grid-template-columns: 1fr; } }
.quote-line { margin: clamp(56px, 7vw, 96px) 0 0; font-stretch: 116%; font-weight: 720; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; max-width: 24ch; }
.quote-line em { font-style: normal; color: var(--oranje); }

/* ---------------------------------------------------------------- materieel */
.machine-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; background: var(--panel); }
.machine-lead .m-media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.machine-lead .m-media button img { height: 100%; min-height: 380px; }
.machine-body { padding: clamp(28px, 4vw, 56px); }
.machine-body .type { font-family: var(--mono); font-size: .8rem; color: var(--oranje); margin: 0 0 10px; }
.machine-body h2, .machine-body h3 { margin-bottom: 20px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.specs h4 { margin: 0 0 10px; font: 500 .74rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--grijs); }
.specs ul { margin: 0; padding: 0; list-style: none; }
.specs li { position: relative; padding-left: 18px; color: #dcd9d4; font-size: 15.5px; line-height: 1.5; }
.specs li + li { margin-top: 6px; }
.specs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--oranje); }
.machines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(14px, 2vw, 24px); }
.machine { background: var(--panel); display: flex; flex-direction: column; }
.machine .m-media { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; }
.machine .m-media.single { grid-template-columns: 1fr; }
.machine .m-media button img { aspect-ratio: 4 / 3; }
.machine .m-media:not(.single) button + button img { height: 100%; }
.machine .machine-body { padding: clamp(24px, 3vw, 36px); }
.machine.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .machine-lead, .machine.wide { grid-template-columns: 1fr; } .machines { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- referenties */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); }
.cat { grid-column: span 4; display: flex; flex-direction: column; text-decoration: none; background: var(--panel); transition: background-color .25s var(--ease); }
.cat:nth-child(1), .cat:nth-child(2) { grid-column: span 6; }
.cat:hover { background: var(--panel-2); }
.cat figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-body p { color: var(--muted); font-size: 15.5px; }
.cat-body .more { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .78rem; color: #cfccc6; }
.cat-body .more .icon { width: 18px; height: 18px; color: var(--oranje); transition: transform .25s var(--ease); }
.cat:hover .more .icon { transform: translateX(4px); }
@media (max-width: 960px) { .cat, .cat:nth-child(1), .cat:nth-child(2) { grid-column: span 6; } }
@media (max-width: 600px) { .cat, .cat:nth-child(1), .cat:nth-child(2) { grid-column: 1 / -1; } }

.project { padding-top: clamp(40px, 5vw, 64px); }
.project + .project { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.project-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.project-head .mono { color: var(--grijs); }
.project-note { margin: -12px 0 24px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
/* raster per aantal foto's, zodat elke rij vol is: 3 en 6 in drie kolommen, 4 als 2x2, 5 in vier kolommen */
.gallery.n3, .gallery.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.n2, .gallery.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.n1 { grid-template-columns: 1fr; max-width: 760px; }
.gallery.n1 button:first-child, .gallery.n2 button:first-child, .gallery.n4 button:first-child { grid-column: auto; grid-row: auto; }
.gallery button img { aspect-ratio: 4 / 3; height: 100%; }
@media (max-width: 760px) {
  .gallery, .gallery.n3, .gallery.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery.n6 button:last-child { grid-column: span 2; }
}

.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--panel); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.shot:hover img { transform: scale(1.03); }
.shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--oranje); transition: box-shadow .2s var(--ease); }
.shot:focus-visible { outline: none; }
.shot:focus-visible::after { box-shadow: inset 0 0 0 3px var(--oranje); }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.subnav a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 15px; color: var(--muted); transition: border-color .2s, color .2s; }
.subnav a:hover { border-color: var(--oranje); color: var(--text); }
.subnav a[aria-current] { background: var(--oranje); border-color: var(--oranje); color: var(--op-oranje); font-weight: 600; }
.subnav-wrap { padding: 28px 0 0; }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-card { display: grid; gap: 28px; }
.contact-card address { font-style: normal; font-size: 1.15rem; line-height: 1.6; }
.contact-card address strong { display: block; font-stretch: 110%; font-weight: 700; }
.contact-lines { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.contact-lines a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.1rem; transition: color .15s; }
.contact-lines a:hover { color: var(--oranje); }
.contact-lines .icon { width: 22px; height: 22px; color: var(--oranje); flex: none; }
.contact-lines span.k { display: block; font-family: var(--mono); font-size: .74rem; color: var(--grijs); }
.form { background: var(--panel); padding: clamp(24px, 4vw, 48px); }
.form h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 560; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.4 var(--wide); color: var(--text);
  background: var(--bg); border: 1px solid #55555a; border-radius: 0; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8e8b86; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #77767a; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--oranje); box-shadow: 0 0 0 3px rgb(245 130 42 / .25); }
.field .err { display: none; font-size: 14px; color: #ffb27a; }
.field.invalid input, .field.invalid textarea { border-color: #ff8a3d; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-foot small { color: var(--muted); font-size: 14px; }
.form-status { display: none; margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--oranje); background: var(--bg); }
.form-status.show { display: block; }
.form-status.error { border-left-color: #ff6a3d; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 20px; }
.notfound .code { font-family: var(--mono); color: var(--oranje); }

/* ---------------------------------------------------------------- lightbox */
.lightbox { padding: 0; border: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; background: rgb(14 14 15 / .96); color: var(--text); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.lb-caption { padding: 14px var(--gutter) 20px; text-align: center; color: var(--muted); font-size: 15px; min-height: 52px; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; background: rgb(255 255 255 / .06); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: background-color .15s, border-color .15s; }
.lb-btn:hover { background: rgb(255 255 255 / .12); border-color: var(--oranje); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: -60px; translate: none; } .lb-stage { padding: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lb-stage img { animation: lb-in .24s var(--ease); }
  .lightbox[open] { animation: fade .2s ease-out; }
}
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
@keyframes fade { from { opacity: 0; } }

/* ---------------------------------------------------------------- reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero-copy > * { animation: rise .8s var(--ease) both; }
  .js .hero-copy > :nth-child(3) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .16s; }
  .js .hero-copy > .hero-roof { animation: none; }
  .js .hero-media img { animation: settle 1.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }

@media print {
  .site-header, .cta-band, .lightbox, .daklijn { display: none !important; }
  body { background: #fff; color: #000; }
}
