/* ==========================================================================
   Damster Houtbouw — stylesheet
   Volgorde: tokens → reset → typografie → layout → secties → componenten
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Kleur — warm zand als drager, gebrand hout als accent */
  --c-bg: #f7f3ec;
  --c-bg-warm: #efe9df;
  --c-bg-footer: #f0eae0;
  --c-bg-field: #fcfaf6;
  --c-bg-ground: #e4daca;

  --c-ink: #1b1813;
  --c-ink-soft: #4a443c;
  --c-ink-muted: #6b6459;
  --c-ink-faint: #8a7f72;

  --c-brand: #603812;
  --c-brand-dark: #4a2b0e;
  --c-brand-mid: #7a4a1b;
  --c-brand-light: #8a5a22;
  --c-gold: #c9a97b;

  --c-dark: #1b1813;
  --c-dark-warm: #2a251f;
  --c-cream: #fbf8f3;
  --c-cream-dim: #e7ddcc;

  --c-line: rgba(96, 56, 18, 0.16);
  --c-line-soft: rgba(96, 56, 18, 0.14);
  --c-line-mid: rgba(96, 56, 18, 0.24);
  --c-line-strong: rgba(96, 56, 18, 0.3);
  --c-line-invert: rgba(251, 248, 243, 0.16);

  /* Typografie */
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --t-eyebrow: 500 11px/1 var(--f-sans);
  --t-body: 400 clamp(15px, 1.2vw, 17px) / 1.68 var(--f-sans);
  --t-small: 400 15px/1.6 var(--f-sans);

  /* Ritme */
  --radius: 2px;
  --shell: 1560px;
  --gutter: clamp(20px, 5vw, 88px);
  --section-y: clamp(60px, 7vw, 120px);
  --section-y-lg: clamp(72px, 9vw, 140px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & basis
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* sticky header compenseren bij anchor-navigatie */
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font: var(--t-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--c-brand-light);
}

button {
  font-family: inherit;
}

input,
textarea,
select,
button {
  font-family: var(--f-sans);
}

h1,
h2,
h3 {
  font-family: var(--f-serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.on-dark :focus-visible,
.configurator :focus-visible {
  outline-color: var(--c-gold);
}

/* Schermlezer-only, blijft focusbaar */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--c-brand);
  color: var(--c-bg);
  padding: 12px 18px;
  border-radius: var(--radius);
  font: 500 14px/1 var(--f-sans);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--c-bg);
}

/* --------------------------------------------------------------------------
   3. Typografie
   -------------------------------------------------------------------------- */

.eyebrow {
  font: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.eyebrow--light {
  color: var(--c-cream-dim);
}

.eyebrow--gold {
  color: var(--c-gold);
}

.display {
  font-family: var(--f-serif);
  font-weight: 200;
  line-height: 1.02;
}

.lede {
  font: 400 clamp(16px, 1.2vw, 18px) / 1.68 var(--f-sans);
  color: var(--c-ink-soft);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: var(--section-y) var(--gutter);
}

.section--lg {
  padding-block: var(--section-y-lg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 64px);
}

.section-head h2 {
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
}

.section-head p {
  font: var(--t-small);
  color: var(--c-ink-faint);
  max-width: 400px;
}

/* Volvlak beeld met overlay — hero, teaser, slot-CTA */
.cover {
  position: relative;
  overflow: hidden;
  background: var(--c-dark-warm);
  isolation: isolate;
}


.cover > picture,
.cover > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover > picture img {
  object-fit: cover;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Tekst en knoppen boven de verloopfilter houden */
.hero__inner,
.teaser__inner,
.closing__inner {
  position: relative;
  z-index: 2;
}

/* Beeld dat een vaste verhouding vult */
.frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--c-bg-warm);
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   5. Knoppen
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 17px 26px;
  font: 500 15px/1 var(--f-sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* display uit .btn zou de UA-regel voor [hidden] overrulen */
.btn[hidden] {
  display: none;
}

.btn__arrow {
  transition: transform 0.18s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--c-brand);
  color: var(--c-bg);
}

.btn--primary:hover {
  background: var(--c-brand-dark);
  color: var(--c-bg);
}

.btn--lg {
  padding: 19px 30px;
  font-size: 16px;
}

.btn--sm {
  padding: 14px 22px;
  font-size: 14px;
}

.btn--outline {
  background: none;
  color: var(--c-brand);
  border-color: var(--c-line-strong);
}

.btn--outline:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-bg);
}

.btn--ghost-light {
  background: rgba(251, 248, 243, 0.1);
  border-color: rgba(251, 248, 243, 0.42);
  color: var(--c-cream);
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  background: rgba(251, 248, 243, 0.2);
  color: var(--c-cream);
}

.link-caps {
  font: 500 13px/1 var(--f-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   6. Header & navigatie
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line-soft);
}

.site-header__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}

.site-header__logo img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  font: 500 14px/1 var(--f-sans);
  letter-spacing: 0.01em;
  margin-left: auto;
}

.site-nav a {
  color: var(--c-ink);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--c-brand);
}

/* De CTA in het menu is er alleen voor de uitgeklapte mobiele navigatie;
   op desktop staat dezelfde knop naast het menu. */
.site-nav .btn {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line-mid);
  border-radius: var(--radius);
  background: none;
  color: var(--c-brand);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  height: min(92vh, 940px);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

.hero::after {
  background: linear-gradient(
    to top,
    rgba(20, 17, 13, 0.86) 0,
    rgba(20, 17, 13, 0.78) 34%,
    rgba(20, 17, 13, 0.34) 62%,
    rgba(20, 17, 13, 0.08) 85%
  );
}

.hero__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(52px, 5vw, 84px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  flex-wrap: wrap;
}

.hero__text {
  max-width: 760px;
  animation: riseIn 0.9s var(--ease) both;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__brand::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--c-cream-dim);
}

.hero h1 {
  font-weight: 200;
  font-size: clamp(38px, 6.2vw, 86px);
  line-height: 1.02;
  color: var(--c-cream);
  margin-bottom: 18px;
}

.hero p {
  font: 400 clamp(15px, 1.35vw, 19px) / 1.6 var(--f-sans);
  color: rgba(251, 248, 243, 0.82);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: riseIn 1.1s var(--ease) both;
}

/* --------------------------------------------------------------------------
   8. Introductie
   -------------------------------------------------------------------------- */

.intro {
  padding: clamp(72px, 9vw, 150px) var(--gutter) clamp(40px, 5vw, 80px);
}

.intro__grid {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  gap: clamp(32px, 6vw, 110px);
  flex-wrap: wrap;
  align-items: flex-start;
}

.intro__copy {
  flex: 1 1 380px;
  max-width: 620px;
}

.intro__copy .eyebrow {
  display: block;
  margin-bottom: 26px;
}

.intro__copy h2 {
  font-weight: 200;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.08;
  margin-bottom: 26px;
}

.intro__copy p {
  max-width: 520px;
  margin-bottom: 18px;
}

.intro__facts {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  border-top: 1px solid var(--c-line);
  padding-top: 26px;
  margin-top: 34px;
}

.intro__facts dt {
  font: 300 30px/1 var(--f-serif);
  color: var(--c-brand);
}

.intro__facts dd {
  margin: 8px 0 0;
  font: 400 13px/1.4 var(--f-sans);
  color: var(--c-ink-faint);
}

.intro__media {
  flex: 1 1 520px;
  margin-top: clamp(0px, 3vw, 60px);
}

.intro__media-main {
  aspect-ratio: 4 / 5;
}

.intro__media-inset {
  width: min(58%, 300px);
  aspect-ratio: 1 / 1;
  margin: -16% 0 0 auto;
  transform: translateX(clamp(0px, 3vw, 42px));
  border: 8px solid var(--c-bg);
}

/* --------------------------------------------------------------------------
   9. Categorieën
   -------------------------------------------------------------------------- */

.cat-row {
  display: grid;
  gap: clamp(16px, 2.2vw, 34px);
  align-items: start;
}

.cat-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cat-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(16px, 2.2vw, 34px);
}

.cat {
  display: block;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.cat:hover {
  color: inherit;
}

.cat .frame {
  aspect-ratio: 16 / 10;
}

.cat-row--3 .cat .frame {
  aspect-ratio: 4 / 3;
}

.cat .frame img {
  transition: transform 0.6s var(--ease);
}

.cat:hover .frame img {
  transform: scale(1.04);
}

.cat__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--c-line);
  margin-top: 16px;
}

.cat__name {
  font: 300 clamp(22px, 2.2vw, 32px) / 1.1 var(--f-serif);
}

.cat-row--3 .cat__name {
  font-size: clamp(20px, 1.9vw, 28px);
}

.cat__cta {
  font: 500 12px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Samenstellen-teaser
   -------------------------------------------------------------------------- */

.teaser {
  margin-block: var(--section-y);
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
}

.teaser::after {
  background: linear-gradient(
    105deg,
    rgba(20, 17, 13, 0.84) 0%,
    rgba(20, 17, 13, 0.58) 52%,
    rgba(20, 17, 13, 0.24) 100%
  );
}

.teaser__inner,
.closing__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(56px, 8vw, 120px) var(--gutter);
}

.teaser__inner > div {
  max-width: 640px;
}

.teaser .eyebrow {
  display: block;
  margin-bottom: 24px;
}

.teaser h2 {
  font-weight: 200;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  color: var(--c-cream);
  margin-bottom: 22px;
}

.teaser p {
  font: 400 clamp(15px, 1.25vw, 18px) / 1.65 var(--f-sans);
  color: rgba(251, 248, 243, 0.8);
  max-width: 520px;
  margin-bottom: 34px;
}

.btn--primary.btn--warm:hover {
  background: var(--c-brand-mid);
}

/* --------------------------------------------------------------------------
   11. Uitgelicht project
   -------------------------------------------------------------------------- */

.project {
  padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(60px, 7vw, 110px);
}

.project__hero {
  aspect-ratio: 21 / 9;
}

.project__body {
  display: flex;
  gap: clamp(28px, 5vw, 90px);
  flex-wrap: wrap;
  margin-top: clamp(28px, 3.5vw, 48px);
}

.project__copy {
  flex: 1 1 320px;
  max-width: 520px;
}

.project__copy h3 {
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.project__copy h3 span {
  color: var(--c-ink-faint);
}

.project__copy p {
  font: 400 16px/1.68 var(--f-sans);
  color: var(--c-ink-soft);
  margin-bottom: 26px;
}

.spec-list {
  flex: 1 1 300px;
  max-width: 420px;
  margin: 0;
}

.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line-soft);
  font: 400 15px/1.4 var(--f-sans);
}

.spec-list dt {
  color: var(--c-ink-faint);
}

.spec-list dd {
  margin: 0;
  text-align: right;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery .frame {
  aspect-ratio: 3 / 2;
}

.gallery .frame img {
  transition: transform 0.6s var(--ease), opacity 0.2s ease;
}

.gallery button:hover .frame img {
  transform: scale(1.04);
}

.project__note {
  margin-top: clamp(36px, 4vw, 64px);
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--c-bg-warm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.project__note strong {
  display: block;
  font: 300 clamp(22px, 2.2vw, 30px) / 1.15 var(--f-serif);
  margin-bottom: 8px;
}

.project__note span {
  font: var(--t-small);
  color: var(--c-ink-muted);
}

/* --------------------------------------------------------------------------
   12. Vakmanschap (donker)
   -------------------------------------------------------------------------- */

.craft {
  background: var(--c-dark);
  color: var(--c-cream);
  padding: var(--section-y-lg) var(--gutter);
}

.craft a {
  color: var(--c-gold);
}

.craft__head {
  display: flex;
  gap: clamp(32px, 6vw, 100px);
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: clamp(36px, 4.5vw, 72px);
}

.craft__head h2 {
  flex: 1 1 460px;
  font-weight: 200;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.06;
  max-width: 760px;
}

.craft__head p {
  flex: 1 1 320px;
  font: 400 16px/1.7 var(--f-sans);
  color: rgba(251, 248, 243, 0.72);
  max-width: 440px;
}

.craft__mosaic {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.6vw, 22px);
}

.craft__mosaic > .frame:first-child {
  flex: 1 1 480px;
  aspect-ratio: 4 / 3;
}

.craft__stack {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 22px);
}

.craft__stack .frame {
  flex: 1 1 auto;
  min-height: 150px;
}

.craft__tall {
  flex: 1 1 300px;
  aspect-ratio: 3 / 4;
  margin-top: clamp(0px, 3vw, 56px);
}

.craft__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(36px, 4vw, 64px);
  border-top: 1px solid var(--c-line-invert);
  padding-top: clamp(24px, 3vw, 44px);
}

.craft__pillars > div {
  flex: 1 1 240px;
  max-width: 340px;
}

.craft__pillars h3 {
  font: 500 12px/1 var(--f-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 12px;
}

.craft__pillars p {
  font: 400 15px/1.65 var(--f-sans);
  color: rgba(251, 248, 243, 0.7);
}

/* --------------------------------------------------------------------------
   13. Werkwijze
   -------------------------------------------------------------------------- */

.steps {
  padding: var(--section-y-lg) var(--gutter);
}

.steps h2 {
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  max-width: 520px;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.steps__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps__list li {
  flex: 1 1 220px;
  border-top: 1px solid var(--c-line-mid);
  padding-top: 20px;
  counter-increment: step;
}

.steps__list li::before {
  content: "0" counter(step);
  display: block;
  font: 500 12px/1 var(--f-sans);
  letter-spacing: 0.16em;
  color: var(--c-brand);
  margin-bottom: 26px;
}

.steps__list h3 {
  font: 300 clamp(20px, 1.8vw, 26px) / 1.15 var(--f-serif);
  margin-bottom: 10px;
}

.steps__list p {
  font: var(--t-small);
  color: var(--c-ink-muted);
}

/* --------------------------------------------------------------------------
   14. Slot-CTA
   -------------------------------------------------------------------------- */

.closing {
  min-height: min(80vh, 760px);
  display: flex;
  align-items: center;
}

.closing::after {
  background: linear-gradient(to right, rgba(20, 17, 13, 0.84) 0%, rgba(20, 17, 13, 0.6) 52%, rgba(20, 17, 13, 0.28) 100%);
}

.closing h2 {
  font-weight: 200;
  font-size: clamp(32px, 4.8vw, 68px);
  line-height: 1.04;
  color: var(--c-cream);
  margin-bottom: 30px;
  max-width: 680px;
}

.closing__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.closing__actions p {
  font: var(--t-small);
  color: rgba(251, 248, 243, 0.78);
}

.closing__actions p a {
  color: var(--c-cream);
  border-bottom: 1px solid rgba(251, 248, 243, 0.5);
}

.closing__actions p a:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--c-bg-footer);
  padding: clamp(48px, 6vw, 88px) var(--gutter) 40px;
}

.site-footer__top {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 80px);
  justify-content: space-between;
}

.site-footer__brand {
  flex: 1 1 280px;
  max-width: 360px;
}

.site-footer__brand img {
  height: 60px;
  width: auto;
  margin-bottom: 22px;
}

.site-footer__brand p {
  font: 400 15px/1.65 var(--f-sans);
  color: var(--c-ink-muted);
}

.site-footer__cols {
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  flex-wrap: wrap;
  font: 400 15px/2 var(--f-sans);
  color: var(--c-ink-muted);
}

.site-footer__cols nav,
.site-footer__cols div {
  display: flex;
  flex-direction: column;
}

.site-footer h2 {
  font: 500 12px/1 var(--f-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
  margin-bottom: 14px;
}

.site-footer button.linkish {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: var(--c-brand);
  cursor: pointer;
}

.site-footer button.linkish:hover {
  color: var(--c-brand-light);
}

.site-footer__bottom {
  max-width: var(--shell);
  margin: clamp(36px, 4vw, 60px) auto 0;
  border-top: 1px solid var(--c-line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 13px/1.5 var(--f-sans);
  color: var(--c-ink-faint);
}

/* --------------------------------------------------------------------------
   16. Configurator
   -------------------------------------------------------------------------- */

.configurator {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease both;
}

.configurator[hidden] {
  display: none;
}

.configurator__bar {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-bg);
}

.configurator__bar > div {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.configurator__bar img {
  height: 40px;
  width: auto;
}

.step-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.step-nav button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  padding: 8px 12px;
  font: 500 12px/1 var(--f-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.step-nav button:hover {
  color: var(--c-brand);
}

.step-nav button[aria-current="step"] {
  color: var(--c-brand);
  border-bottom-color: var(--c-brand);
}

.configurator__close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--c-line-mid);
  border-radius: var(--radius);
  background: none;
  color: var(--c-brand);
  cursor: pointer;
  font: 400 18px/1 var(--f-sans);
  transition: background 0.18s ease, color 0.18s ease;
}

.configurator__close:hover {
  background: var(--c-brand);
  color: var(--c-bg);
}

.configurator__body {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.configurator__grid {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 44px) clamp(16px, 3vw, 40px) 120px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 52px);
  align-items: flex-start;
}

.configurator__preview {
  flex: 1 1 440px;
  position: sticky;
  top: 0;
}

.preview-stage {
  background: var(--c-bg-warm);
  padding: clamp(16px, 2vw, 32px);
  position: relative;
  overflow: hidden;
}

.preview-stage svg {
  width: 100%;
  height: auto;
}

.preview-stage__title {
  position: absolute;
  left: clamp(16px, 2vw, 32px);
  top: clamp(16px, 2vw, 32px);
  font: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.preview-stage__note {
  position: absolute;
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(16px, 2vw, 32px);
  font: 400 12px/1 var(--f-sans);
  color: var(--c-ink-faint);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.chips li {
  font: 400 12px/1 var(--f-sans);
  color: var(--c-ink-muted);
  background: var(--c-bg-warm);
  padding: 9px 12px;
  border-radius: var(--radius);
}

.configurator__panel {
  flex: 1 1 400px;
  max-width: 620px;
}

.configurator__panel > .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.configurator__panel h2 {
  font-weight: 200;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.configurator__panel > p {
  font: 400 16px/1.6 var(--f-sans);
  color: var(--c-ink-muted);
  max-width: 480px;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.model-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.model-card {
  flex: 1 1 250px;
  text-align: left;
  cursor: pointer;
  padding: 16px 16px 18px;
  background: var(--c-bg-field);
  border: 1px solid rgba(96, 56, 18, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.model-card:hover {
  border-color: var(--c-brand);
}

.model-card[aria-pressed="true"] {
  background: #ede4d3;
  border-color: var(--c-brand);
}

.model-card svg {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.model-card__type {
  display: block;
  font: 500 15px/1.2 var(--f-sans);
  color: var(--c-ink);
}

.model-card__size {
  display: block;
  font: 300 22px/1.2 var(--f-serif);
  color: var(--c-brand);
  margin: 4px 0 8px;
}

.model-card__desc {
  display: block;
  font: 400 13px/1.5 var(--f-sans);
  color: var(--c-ink-muted);
}

.opt-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.opt-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.opt-group__head legend {
  font: 500 13px/1 var(--f-sans);
  letter-spacing: 0.06em;
  color: var(--c-ink);
  padding: 0;
}

.opt-group__head span {
  font: 400 12px/1 var(--f-sans);
  color: var(--c-ink-faint);
}

.opt-group fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.opt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius);
  font: 500 14px/1 var(--f-sans);
  background: var(--c-bg-field);
  color: var(--c-ink);
  border: 1px solid var(--c-line-mid);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.opt:hover {
  border-color: var(--c-brand);
}

.opt--swatch {
  padding: 11px 16px;
}

.opt[aria-pressed="true"] {
  background: var(--c-brand);
  color: var(--c-bg);
  border-color: var(--c-brand);
}

.opt[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.opt[disabled]:hover {
  border-color: var(--c-line-mid);
}

.opt__swatch {
  width: 16px;
  height: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 24, 19, 0.2);
  flex: 0 0 auto;
}

.summary {
  border-top: 1px solid rgba(96, 56, 18, 0.2);
  margin: 0 0 28px;
}

.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--c-line-soft);
  font: 400 15px/1.45 var(--f-sans);
}

.summary dt {
  color: var(--c-ink-faint);
}

.summary dd {
  margin: 0;
  text-align: right;
}

.request-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--wide {
  flex-basis: 100%;
}

.field label {
  font: 500 12px/1 var(--f-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.field input,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-bg-field);
  font: 400 15px/1.5 var(--f-sans);
  color: var(--c-ink);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #9a3412;
}

.field__error {
  font: 400 12px/1.4 var(--f-sans);
  color: #9a3412;
  min-height: 1em;
}

/* Blokelementen binnen het flex-formulier op volle breedte */
.request-form > button[type="submit"],
.request-form > .form-status,
.request-form > .fineprint {
  flex: 1 1 100%;
}

.request-form > button[type="submit"] {
  justify-content: center;
  margin-top: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  background: #ede4d3;
  border-left: 2px solid var(--c-brand);
  font: 400 15px/1.5 var(--f-sans);
  color: var(--c-ink-soft);
}

.form-status[hidden] {
  display: none;
}

.form-status--error {
  background: #f4e3dc;
  border-left-color: #9a3412;
}

.fineprint {
  font: 400 13px/1.6 var(--f-sans);
  color: var(--c-ink-faint);
  margin-top: 16px;
}

.configurator__footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-field);
}

.configurator__footer > div {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.configurator__footer p {
  font: 500 13px/1.3 var(--f-sans);
  color: var(--c-ink-muted);
}

.configurator__footer div.actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.configurator__footer .btn {
  padding: 15px 22px;
  font-size: 14px;
}

.configurator__footer .btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   17. Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 17, 13, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  animation: fadeIn 0.2s ease both;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(251, 248, 243, 0.4);
  border-radius: var(--radius);
  background: none;
  color: var(--c-cream);
  font: 400 20px/1 var(--f-sans);
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(251, 248, 243, 0.14);
}

/* --------------------------------------------------------------------------
   18. Animatie
   -------------------------------------------------------------------------- */

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Alleen verbergen als JavaScript de blokken ook weer zichtbaar kan maken. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .configurator__preview {
    position: static;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 80px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    gap: 16px;
  }

  .site-header .btn--header {
    display: none;
  }

  .site-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding-bottom: 12px;
    border-top: 1px solid var(--c-line-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .btn {
    padding: 16px 2px;
    border-bottom: 1px solid var(--c-line-soft);
    font-size: 16px;
  }

  .site-nav .btn {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    border-bottom: 0;
  }

  .step-nav {
    width: 100%;
    margin-left: 0;
    order: 3;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .step-nav::-webkit-scrollbar {
    display: none;
  }

  .step-nav button {
    white-space: nowrap;
  }

  .configurator__close {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .cat-row--2,
  .cat-row--3 {
    grid-template-columns: 1fr;
  }

  .intro__media-inset {
    width: min(64%, 260px);
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project__hero {
    aspect-ratio: 4 / 3;
  }

  .hero {
    height: auto;
    min-height: min(88vh, 720px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .configurator,
  .lightbox,
  .teaser,
  .closing {
    display: none !important;
  }
}
