/* ==========================================================
   MV Architects — Michelle Vanmeerhaeghe
   Stijl geïnspireerd op Inarto, in een modernere uitvoering
   ========================================================== */

:root {
  --gold: #9b8350;
  --gold-dark: #7f6a3e;
  --gold-soft: #e9e2d3;
  --ink: #1d1d1b;
  --anthracite: #2a2a2a;
  --text: #4a4a48;
  --muted: #8a8a86;
  --line: #e4e2dc;
  --paper: #f7f7f3;
  --white: #ffffff;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 12vw, 160px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(44px, 7.5vw, 112px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.8vw, 26px); }

h1 .light, h2 .light { font-weight: 300; }
h1 em, h2 em { font-style: normal; color: var(--gold); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--anthracite); color: #c9c9c4; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--text); max-width: 60ch; }
.section--dark .lead { color: #bdbdb7; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: var(--white); }
.btn--light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--light::after { background: var(--white); }
.btn--light:hover { color: var(--ink); border-color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { color: var(--gold); background-size: 40% 1px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  transition: height .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .header__inner { height: 76px; }
.header.is-hidden { transform: translateY(-100%); }

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.logo b { font-weight: 300; color: var(--gold); }
.logo small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 44px; }
.nav__list { display: flex; gap: 36px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--gold); }
.nav .btn { padding: 14px 22px; }

/* Header on dark hero */
.header--on-dark:not(.is-scrolled) .logo,
.header--on-dark:not(.is-scrolled) .nav__link { color: var(--white); }
.header--on-dark:not(.is-scrolled) .burger span { background: var(--white); }

.burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px; height: 44px;
  border: 0;
  background: none;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease), background .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span { background: var(--ink) !important; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    padding: 0 var(--gutter);
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .logo { color: var(--ink) !important; position: relative; z-index: 120; }
  .nav__list { flex-direction: column; gap: 10px; }
  .nav__link { font-size: clamp(32px, 9vw, 48px); font-weight: 300; letter-spacing: -0.02em; text-transform: none; color: var(--ink) !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--anthracite);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 2.4s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,18,.55) 0%, rgba(20,20,18,0) 30%),
    linear-gradient(0deg, rgba(20,20,18,.85) 0%, rgba(20,20,18,.2) 60%);
}
.hero__content {
  position: relative;
  width: 100%;
  padding-bottom: clamp(56px, 9vw, 120px);
  padding-top: 160px;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 48px;
}
.hero__row p { max-width: 46ch; color: rgba(255,255,255,.8); font-size: 17px; margin: 0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--gold-soft); }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__scroll::after { content: ""; width: 1px; height: 64px; background: rgba(255,255,255,.5); animation: scrollLine 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0%{transform:scaleY(0)} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@media (max-width: 960px) { .hero__scroll { display: none; } }

/* Page hero (sub pages) */
.page-hero {
  padding: clamp(160px, 22vw, 240px) 0 clamp(56px, 8vw, 100px);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(48px, 8vw, 120px); }
.page-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.page-hero .lead { margin-left: auto; }
.page-hero__bg {
  position: absolute;
  right: -2vw; bottom: -3vw;
  font-size: 28vw;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -0.06em;
  color: rgba(155,131,80,.07);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; gap: 28px; } .page-hero .lead { margin-left: 0; } }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
.split__head { grid-column: 1 / span 6; }
.split__body { grid-column: 8 / span 5; padding-top: 12px; }
@media (max-width: 860px) { .split__head, .split__body { grid-column: 1 / -1; } }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.stat { padding: 36px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(44px, 5vw, 72px); font-weight: 200; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.stat__num sup { font-size: .4em; color: var(--gold); font-weight: 600; margin-left: 4px; }
.stat__label { margin-top: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Services ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { max-width: 16ch; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 44px 36px 40px;
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease);
}
.service__img {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.service__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.service__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,20,18,.9), rgba(20,20,18,.35)); }
.service:hover .service__img { opacity: 1; }
.service:hover .service__img img { transform: scale(1); }
.service:hover, .service:hover h3 { color: var(--white); }
.service:hover p { color: rgba(255,255,255,.8); }
.service__num { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .1em; }
.service h3 { margin-top: auto; margin-bottom: 18px; transition: color .5s var(--ease); }
.service p { color: var(--text); font-size: 15px; transition: color .5s var(--ease); }
.service__more {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } .service { min-height: 340px; } }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.project { position: relative; display: block; cursor: pointer; }
.project__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); border-radius: var(--radius); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__media::after {
  content: "Bekijk project";
  position: absolute;
  left: 50%; top: 50%;
  width: 120px; height: 120px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center;
  padding: 18px;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .5s var(--ease);
}
.project:hover .project__media::after { transform: translate(-50%, -50%) scale(1); }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.project__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.project__cat { font-size: 13px; color: var(--muted); }
.project__loc { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* Asymmetric home layout */
.projects-grid--featured .project:nth-child(1) { grid-column: 1 / span 7; }
.projects-grid--featured .project:nth-child(1) .project__media { aspect-ratio: 4 / 3.4; }
.projects-grid--featured .project:nth-child(2) { grid-column: 9 / span 4; margin-top: 18%; }
.projects-grid--featured .project:nth-child(3) { grid-column: 2 / span 4; margin-top: -6%; }
.projects-grid--featured .project:nth-child(4) { grid-column: 7 / span 6; margin-top: 10%; }
.projects-grid--featured .project:nth-child(4) .project__media { aspect-ratio: 4 / 3; }

/* Portfolio page layout */
.projects-grid--all .project { grid-column: span 4; }
.projects-grid--all .project:nth-child(6n+1),
.projects-grid--all .project:nth-child(6n+5) { grid-column: span 8; }
.projects-grid--all .project:nth-child(6n+1) .project__media,
.projects-grid--all .project:nth-child(6n+5) .project__media { aspect-ratio: 16 / 10.4; }
.project.is-hidden { display: none; }

@media (max-width: 860px) {
  .projects-grid--featured .project,
  .projects-grid--all .project { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .projects-grid--featured .project .project__media,
  .projects-grid--all .project .project__media { aspect-ratio: 4 / 3 !important; }
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.chip {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip .count { color: var(--gold); margin-left: 6px; }

/* Project modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: flex-end;
  visibility: hidden;
}
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,20,18,.6); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(980px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .7s var(--ease);
}
.modal.is-open .modal__panel { transform: translateX(0); }
.modal__close {
  position: sticky; top: 20px; float: right; margin: 20px 20px 0 0; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--ink); font-size: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  transition: transform .4s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); }
.modal__hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.modal__body { padding: clamp(32px, 5vw, 64px); }
.modal__body h2 { font-size: clamp(32px, 4vw, 52px); text-transform: uppercase; margin: 8px 0 32px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; margin-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
body.no-scroll { overflow: hidden; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 40px 32px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.section:not(.section--dark) .step { border-top-color: var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 56px; font-weight: 200; letter-spacing: -0.04em; line-height: 1;
  color: var(--gold);
  margin-bottom: 28px;
}
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.step h3 { font-size: 19px; margin-bottom: 14px; }
.step p { font-size: 15px; }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; row-gap: 56px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__media::before { content: ""; position: absolute; inset: 32px -32px -32px 32px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.about__sign { margin-top: 40px; display: flex; align-items: center; gap: 20px; }
.about__sign strong { display: block; color: var(--ink); font-size: 17px; }
.about__sign span { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__media::before { inset: 20px -12px -20px 20px; } }

/* ---------- Testimonials ---------- */
.quotes { position: relative; max-width: 980px; }
.quote { display: none; }
.quote.is-active { display: block; animation: fadeUp .8s var(--ease); }
.quote blockquote {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--white);
}
.quote blockquote::before { content: "“"; display: block; font-size: 120px; line-height: .6; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.quote cite { display: block; margin-top: 36px; font-style: normal; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.quotes__nav { display: flex; gap: 10px; margin-top: 56px; }
.quotes__dot { width: 40px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.2); transition: background .3s, width .4s var(--ease); }
.quotes__dot.is-active { background: var(--gold); width: 72px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0;
  background: var(--gold);
  color: var(--white);
  overflow: hidden;
}
.cta::before {
  content: "mv";
  position: absolute;
  right: -2vw; top: 50%;
  transform: translateY(-50%);
  font-size: 40vw; font-weight: 200; line-height: 1; letter-spacing: -0.08em;
  color: rgba(255,255,255,.08);
  pointer-events: none;
}
.cta h2 { color: var(--white); max-width: 15ch; }
.cta__row { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta p { color: rgba(255,255,255,.88); max-width: 44ch; margin-top: 24px; }
.cta .btn { background: var(--ink); border-color: var(--ink); }
.cta .btn::after { background: var(--white); }
.cta .btn:hover { color: var(--ink); border-color: var(--white); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a6a6a0; padding: clamp(72px, 9vw, 120px) 0 36px; font-size: 15px; }
.footer .logo { color: var(--white); font-size: 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer h4 { color: var(--white); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--gold); }
.footer__tagline { max-width: 34ch; margin-top: 24px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 80px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #75756f; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transition: border-color .3s, background .3s; }
.socials a:hover { border-color: var(--gold); background: var(--gold); color: var(--white); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Service detail (diensten) ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.service-row + .service-row { margin-top: clamp(96px, 12vw, 170px); }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media { position: relative; overflow: hidden; border-radius: var(--radius); }
.service-row__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.service-row__num { font-size: clamp(64px, 8vw, 120px); font-weight: 200; letter-spacing: -0.05em; color: var(--gold); line-height: 1; margin-bottom: 20px; }
.service-row h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 28px; }
.checklist { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 15px; }
.checklist li::before { content: ""; flex: none; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg) translateY(-2px); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } .service-row:nth-child(even) .service-row__media { order: 0; } .service-row__media img { aspect-ratio: 4 / 3; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 300; font-size: 22px; color: var(--gold); transition: transform .4s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--paper); }
.faq details p { padding: 0 64px 28px 0; max-width: 72ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact-info { position: sticky; top: 120px; }
@media (max-width: 960px) { .contact-info { position: static; } }
.contact-info__block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-info__block:first-of-type { border-top: 1px solid var(--line); }
.contact-info__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.contact-info__value { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.contact-info__value a:hover { color: var(--gold); }

.form { background: var(--paper); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); }
.form h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.form__intro { margin-bottom: 40px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

.field { position: relative; }
.field label, .field legend { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 10px; padding: 0; }
.field label .opt { color: var(--muted); font-weight: 500; letter-spacing: .05em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #cfccc3;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .3s;
  appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239b8350' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 28px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: #b5453a; }
.field__error { display: none; margin-top: 6px; font-size: 13px; color: #b5453a; }
.field.has-error .field__error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.options { display: flex; flex-wrap: wrap; gap: 10px; }
.field .option { display: inline-block; margin: 0; font-size: inherit; letter-spacing: normal; text-transform: none; font-weight: inherit; position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid #cfccc3;
  border-radius: 100px;
  background: var(--white);
  font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.option span:hover { border-color: var(--ink); }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

.form__submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; }

.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success__icon { width: 80px; height: 80px; margin: 0 auto 28px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--white); font-size: 34px; }
.form.is-sent .form-success { display: block; animation: fadeUp .8s var(--ease); }
.form.is-sent form, .form.is-sent .form__head { display: none; }

.map { margin-top: clamp(80px, 10vw, 140px); border-radius: var(--radius); overflow: hidden; filter: grayscale(1) contrast(1.05); height: 440px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Clip the image, not the observed element: a fully clipped target never reports an intersection. */
.reveal-img img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease), transform 2s var(--ease); }
.reveal-img.is-in img { clip-path: inset(0 0 0 0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split-words.is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-img img, .split-words .w > span { opacity: 1; transform: none; clip-path: none; }
}

/* Utilities */
.mt-48 { margin-top: 48px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Craft: projectdetail, pagina's, formulierfout ---------- */
.project-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.project-hero__title { font-size: clamp(48px, 8vw, 120px); text-transform: uppercase; margin-bottom: 48px; }
.project-hero .facts { margin-bottom: 0; }
.project-cover { margin-top: -1px; overflow: hidden; border-radius: var(--radius); }
.project-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.projects-grid--pair .project { grid-column: span 6; }
@media (max-width: 860px) { .projects-grid--pair .project { grid-column: 1 / -1; } }
.prose { max-width: 72ch; }
.prose h3 { margin: 48px 0 16px; }
.form__general-error { margin: 0 0 24px; padding: 14px 18px; border-left: 3px solid #b5453a; background: rgba(181, 69, 58, .08); color: #8f3128; font-size: 14px; }
.page-hero__bg:empty { display: none; }
