/* =========================================================
   Acoubel – v2 (minimal, black, photo-led)
   ========================================================= */
:root {
  --black: #000;
  --ink: #0d0d0d;
  --line: rgba(255,255,255,.16);
  --white: #fff;
  --muted: rgba(255,255,255,.62);
  --soft: rgba(255,255,255,.82);
  --accent: #b89a72;          /* subtle warm accent from the old brand brown */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font); font-weight: 300;
  font-size: 15px; line-height: 1.75; letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 300; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.caps { text-transform: uppercase; letter-spacing: .32em; font-size: 11px; font-weight: 500; }
.title { text-transform: uppercase; letter-spacing: .3em; font-size: 15px; font-weight: 500; text-align: center; }
.sub { text-transform: uppercase; letter-spacing: .28em; font-size: 10px; font-weight: 400; color: var(--muted); text-align: center; margin-top: 14px; }
.rule { display: flex; align-items: center; justify-content: center; gap: 18px; }
.rule::before, .rule::after { content: ""; width: 34px; height: 1px; background: var(--line); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); pointer-events: none; transition: background .4s var(--ease); }
.site-header > * { pointer-events: auto; }
.site-header.scrolled { background: linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,0)); }
.wordmark { text-transform: uppercase; letter-spacing: .42em; font-size: 13px; font-weight: 500; transition: opacity .4s; }
body.home .wordmark { opacity: 0; }
body.home .site-header.scrolled .wordmark { opacity: 1; }
.burger { width: 44px; height: 44px; margin-right: -11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .35s var(--ease), opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- full-screen menu (black, white text) ---------- */
.menu { position: fixed; inset: 0; z-index: 55; background: var(--black); display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.menu nav > a, .menu .menu-info > button { text-transform: uppercase; letter-spacing: .42em; font-size: 15px; font-weight: 400;
  padding: 4px 0 4px .42em; color: var(--soft); transition: color .25s; }
.menu nav > a:hover, .menu nav > a[aria-current], .menu .menu-info > button:hover, .menu .menu-info.open > button { color: var(--white); }
.menu nav > a[aria-current] { border-bottom: 1px solid var(--white); }
.menu-info { display: flex; flex-direction: column; align-items: center; }
.menu-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.menu-sub > div { overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.menu-info.open .menu-sub { grid-template-rows: 1fr; }
.menu-sub a { text-transform: uppercase; letter-spacing: .34em; font-size: 11px; color: var(--muted); padding-left: .34em; }
.menu-sub a:first-child { margin-top: 22px; }
.menu-sub a:hover, .menu-sub a[aria-current] { color: var(--white); }
.menu-foot { position: absolute; bottom: 34px; left: 0; right: 0; display: flex; justify-content: center; gap: 34px; }
.menu-foot a { color: var(--muted); }
.menu-foot a:hover { color: var(--white); }

/* ---------- home hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.brand { text-align: center; }
.brand img { width: 64px; height: 64px; margin: 0 auto 28px; border-radius: 50%; opacity: .95; }
.brand h1 { text-transform: uppercase; letter-spacing: .55em; padding-left: .55em; font-size: clamp(26px, 4vw, 44px); font-weight: 300; line-height: 1.1; }
.brand p { margin-top: 16px; text-transform: uppercase; letter-spacing: .5em; padding-left: .5em; font-size: 10px; color: var(--muted); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 22px; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- image-led gallery (home) – measured on the reference site at 1440px:
   1200px content, 3 columns of 320px with 120px between, small photos ~430px high, large 740x494, rows ~100px apart ---------- */
.gallery { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 10%; row-gap: 100px;
  max-width: 1200px; margin: 0 auto; padding-top: 40px; padding-bottom: 140px; align-items: start; }
.tile { position: relative; display: block; }
.tile figure { margin: 0; overflow: hidden; background: #111; }
.tile img { width: 100%; height: auto; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.tile.sm img { aspect-ratio: 3 / 4; }
.tile.lg img { aspect-ratio: 3 / 2; object-position: center 40%; }
.tile:hover img { transform: scale(1.025); }
.tile figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; text-transform: uppercase;
  letter-spacing: .26em; font-size: 10px; color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s; }
.tile figcaption b { font-weight: 500; color: var(--white); }
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }
/* smaller images in black & white, large ones in colour */
.tile.bw img, .grid-card img, .is-bw { filter: grayscale(1) contrast(1.05); }
.tile.bw:hover img, .grid-card:hover img { filter: grayscale(0); }
/* slots (pattern repeats every 10 tiles): small = 1 column, large = 2 columns; offsets give the staggered look */
.s1 { grid-column: 1; }
.s2 { grid-column: 2 / span 2; }
.s3 { grid-column: 1 / span 2; }
.s4 { grid-column: 3; margin-top: 180px; }
.s5 { grid-column: 1; }
.s6 { grid-column: 2; margin-top: 175px; }
.s7 { grid-column: 3; }
.s8 { grid-column: 1 / span 2; }
.s9 { grid-column: 3; margin-top: 260px; }
.s10 { grid-column: 2; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.motto { padding: 120px 0 150px; }

/* ---------- footer ---------- */
.site-footer { padding: 70px var(--gutter) 40px; text-align: center; border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 42px; }
.foot-links a { color: var(--soft); transition: color .25s; }
.foot-links a:hover { color: var(--white); }
.foot-legal { margin-top: 34px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.foot-legal a:hover { color: var(--white); }

/* ---------- inner pages ---------- */
.page { padding-top: 150px; }
.page-head { padding-bottom: 80px; }

/* projects overview */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px 36px; padding-bottom: 150px; }
.grid-card figure { margin: 0; overflow: hidden; background: #111; aspect-ratio: 4 / 5; }
.grid-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.grid-card:hover img { transform: scale(1.03); }
.grid-card h2 { margin-top: 18px; text-transform: uppercase; letter-spacing: .26em; font-size: 11px; font-weight: 500; }
.grid-card p { margin-top: 4px; text-transform: uppercase; letter-spacing: .24em; font-size: 10px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 80px 0 160px; }

/* project detail – like the reference: full-screen cover photo, title, then a 1040px grid (2 columns, 80px apart);
   every third photo runs full width. A click opens the photo full size. */
.project-hero { position: relative; height: 100vh; height: 100svh; background: #111; overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.project-hero .scroll-cue { color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.project-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); pointer-events: none; }
.project-body { padding-top: 110px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1040px; margin: 0 auto; padding-bottom: 110px; }
.photo { display: block; width: 100%; background: #111; overflow: hidden; cursor: zoom-in; }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo.full { grid-column: 1 / -1; }
.photo.full img { aspect-ratio: 3 / 2; object-position: center 40%; }
.photo.land img { aspect-ratio: auto; }
.photo:hover img { transform: scale(1.02); }
.page-head [data-count]:empty { display: none; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: var(--black); display: flex; align-items: center; justify-content: center;
  padding: 70px 80px; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--soft); }
.lightbox button:hover { color: var(--white); }
.lb-close { top: 14px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 34px 0 110px; border-top: 1px solid var(--line); }
.pager a { color: var(--soft); display: inline-flex; align-items: center; gap: 12px; }
.pager a:hover { color: var(--white); }
.pager svg { font-size: 16px; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding-bottom: 120px; }
.about-img img { aspect-ratio: 1 / 1; object-fit: cover; max-height: 80vh; }   /* about as tall as the text beside it */
.about-text h2 { text-transform: uppercase; letter-spacing: .28em; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 46px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { margin-top: 14px; color: var(--soft); font-size: 15px; }
.about-text .lead { font-size: 19px; line-height: 1.6; color: var(--white); margin-top: 0; }
.about-img img { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 120px; }
.facts div { padding: 40px 10px; text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 32px; font-weight: 300; letter-spacing: .06em; }
.facts span { display: block; margin-top: 8px; }
.systems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); margin-bottom: 140px; }
.systems div { padding: 34px 26px 10px 0; }
.systems h3 { text-transform: uppercase; letter-spacing: .24em; font-size: 11px; font-weight: 500; }
.systems p { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* contact */
.contact { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 140px var(--gutter) 80px; }
.contact address { font-style: normal; font-size: 14px; line-height: 2; color: var(--soft); }
.contact address strong { display: block; color: var(--white); font-weight: 500; text-transform: uppercase; letter-spacing: .32em; font-size: 12px; margin-bottom: 26px; padding-left: .32em; }
.contact address a { color: var(--white); border-bottom: 1px solid transparent; transition: border-color .25s; }
.contact address a:hover { border-color: var(--white); }
.contact .gap { display: block; height: 26px; }
.contact .socials { margin-top: 46px; display: flex; justify-content: center; gap: 36px; }
.contact .socials a { color: var(--soft); }
.contact .socials a:hover { color: var(--white); }

/* legal */
.legal { max-width: 760px; margin: 0 auto; padding-bottom: 130px; }
.legal h2 { margin: 44px 0 10px; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 500; }
.legal p, .legal li { color: var(--soft); font-size: 14px; }
.legal ul { padding-left: 20px; }
.legal a { border-bottom: 1px solid var(--line); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.legal th { color: var(--white); font-weight: 500; }

/* ---------- responsive ---------- */
/* ---------- producten ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 90px 80px; max-width: 1040px; margin: 0 auto; padding-bottom: 140px; }
.product figure { margin: 0; overflow: hidden; background: #111; aspect-ratio: 4 / 3; }
.product img { width: 100%; height: 100%; object-fit: cover; }
.product h2 { margin-top: 24px; text-transform: uppercase; letter-spacing: .26em; font-size: 12px; font-weight: 500; }
.product p { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 46ch; }
.colours { max-width: 1040px; margin: 0 auto; }
.colours-intro { max-width: 560px; margin: 22px auto 56px; text-align: center; color: var(--muted); font-size: 14px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 20px; }
.swatch { margin: 0; }
.swatch img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #111; }
.swatch figcaption { margin-top: 10px; text-transform: uppercase; letter-spacing: .2em; font-size: 9.5px; color: var(--soft); }

/* ---------- offerte aanvragen ---------- */
.quote { max-width: 760px; margin: 0 auto; padding-bottom: 140px; }
.quote-intro { text-align: center; color: var(--soft); font-size: 15px; margin-bottom: 60px; }
.quote fieldset { border: 0; padding: 0; margin: 0 0 44px; }
.quote legend { color: var(--muted); margin-bottom: 16px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.chip:hover span { border-color: var(--soft); }
.chip input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.chip input:focus-visible + span { outline: 1px solid var(--white); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.fields label { display: flex; flex-direction: column; gap: 8px; text-transform: uppercase; letter-spacing: .24em; font-size: 10px; color: var(--muted); }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields textarea { font: inherit; font-size: 15px; letter-spacing: normal; text-transform: none; color: var(--white); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 10px; transition: border-color .25s; }
.fields textarea { resize: vertical; min-height: 110px; }
.fields input:focus, .fields textarea:focus { outline: 0; border-color: var(--white); }
.fields input[type=file] { font-size: 12px; color: var(--soft); border-bottom: 0; padding: 4px 0 0; }
.fields input[type=file]::file-selector-button { font: inherit; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; color: var(--white); background: transparent; border: 1px solid var(--line); padding: 9px 14px; margin-right: 14px; cursor: pointer; }
.fields small { letter-spacing: .1em; text-transform: none; font-size: 11px; }
.quote .invalid input:not([type=file]), .quote .invalid textarea { border-color: #e0806b; }
.quote fieldset.invalid .chip span { border-color: #e0806b; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 44px; font-size: 13px; color: var(--soft); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--white); width: 16px; height: 16px; flex: none; }
.consent a { border-bottom: 1px solid var(--line); }
.consent.invalid span { color: #e0806b; }
.form-msg { margin-top: 22px; font-size: 13px; color: #e0806b; min-height: 1em; }
.btn-line { display: inline-block; margin-top: 20px; padding: 17px 34px; background: var(--white); color: var(--black); border: 1px solid var(--white); cursor: pointer; transition: background .25s, color .25s; }
.btn-line:hover { background: transparent; color: var(--white); }
.btn-line[disabled] { opacity: .5; cursor: wait; }
.quote-done { padding: 60px 0 200px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.about-img img[src*="plafond"] { object-position: center 18%; }

@media (max-width: 1024px) {
  .gallery { column-gap: 6%; row-gap: 80px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 56px 26px; }
  .systems { grid-template-columns: repeat(2, 1fr); }
  .products { gap: 70px 40px; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .site-header { padding: 16px 20px; }
  /* reference on a phone: one column, 20px side margins, 30px between photos */
  .gallery { grid-template-columns: 1fr; column-gap: 0; row-gap: 30px; padding-top: 20px; padding-bottom: 90px; }
  .gallery .tile { grid-column: 1; margin-top: 0; }
  .tile figcaption { opacity: 1; transform: none; font-size: 9px; letter-spacing: .2em; }
  .motto { padding: 70px 0 90px; }
  .page { padding-top: 110px; }
  .page-head { padding-bottom: 50px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 36px 14px; padding-bottom: 90px; }
  .grid-card h2 { font-size: 10px; letter-spacing: .18em; }
  .grid-card p { font-size: 9px; letter-spacing: .16em; }
  /* reference on a phone: one column, 30px between photos, photos in their own shape */
  .project-body { padding-top: 70px; }
  .photos { grid-template-columns: 1fr; gap: 30px; padding-bottom: 70px; }
  .photo img, .photo.full img { aspect-ratio: auto; }
  .pager .caps { letter-spacing: .18em; font-size: 10px; white-space: nowrap; }
  .pager svg { font-size: 13px; }
  .pager a { gap: 6px; }
  .lightbox { padding: 64px 0; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .about-img img { aspect-ratio: 4 / 3; }
  .pager { padding-bottom: 80px; }
  .about { grid-template-columns: 1fr; padding-bottom: 80px; }
  .about-text .lead { font-size: 17px; }
  .facts { grid-template-columns: 1fr; margin-bottom: 80px; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .systems { grid-template-columns: 1fr; margin-bottom: 90px; }
  .products { grid-template-columns: 1fr; gap: 56px; padding-bottom: 90px; }
  .swatches { grid-template-columns: repeat(3, 1fr); gap: 24px 12px; }
  .fields { grid-template-columns: 1fr; gap: 28px; }
  .quote { padding-bottom: 90px; }
  .quote-intro { margin-bottom: 44px; }
  .btn-line { width: 100%; text-align: center; }
  .menu nav { gap: 26px; }
  .foot-links { gap: 14px 28px; }
}
@media (hover: none) {
  .tile.bw img { filter: grayscale(1) contrast(1.05); }
  .grid-card img { filter: grayscale(1) contrast(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
