/* Michiel Wouters, architect. Alle stijlen.
   Bewust sober: effen achtergrond, grote beelden, één accentkleur (blauw) in de navigatie. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #eeebe4;
  --paper-2: #e2ded5;
  --ink: #151515;
  --ink-2: #5d5a54;
  --line: rgba(21, 21, 21, .14);
  --gutter: clamp(12px, 1.6vw, 24px);
  --bar-h: 56px;
  --sans: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* footer altijd tot onderaan, ook op korte pagina's (contact) */
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--hi); color: var(--ink); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* <picture> mag de layout niet beïnvloeden: de img gedraagt zich alsof de picture er niet is */
picture { display: contents; }
/* Skip-link: onzichtbaar tot je met Tab begint */
.skip {
  position: fixed; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 14px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--gutter); }
main:focus { outline: none; }
.mono { font-size: 13px; line-height: 1.45; }

/* ---------- Naam linksboven ---------- */
/* Naam blijft vast linksboven en keert om (difference) boven foto's, zoals voorheen */
.brand {
  position: fixed; top: calc(var(--gutter) * .9); left: calc(var(--gutter) * 1.6); z-index: 50;
  color: #fff; mix-blend-mode: difference;
  text-decoration: none; font-weight: 640; line-height: .86; letter-spacing: -.035em;
  font-size: clamp(34px, 6.2vw, 104px);
  /* perst samen bij naar beneden scrollen, zet weer uit bij omhoog (site.js) */
  font-stretch: var(--stretch, 112%);
  transition: font-stretch .5s cubic-bezier(.2, .7, .1, 1);
  white-space: nowrap;
}
.brand span { display: block; }
.brand:hover { font-stretch: 62% !important; }

/* ---------- Navigatie onderaan: gelijke vakken, kleurvlak achter de tekst ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; padding: var(--gutter);
  pointer-events: none;
}
.bar > div { flex: 1; text-align: center; }
.bar a {
  pointer-events: auto; text-decoration: none; display: inline-block;
  font-size: 15px; font-weight: 700; letter-spacing: .03em; line-height: 1;
}
.bar a span {
  display: inline-block; background: var(--nav-bg); color: var(--nav-fg); padding: 9px 16px 8px;
  box-shadow: 0 0 0 1px rgba(21, 21, 21, .14), 0 2px 10px rgba(21, 21, 21, .18);
  transition: background-color .2s, color .2s;
}
.bar a:hover span, .bar a[aria-current='page'] span { background: var(--ink); color: #fff; }

/* ---------- Homepage: grote beelden, twee per rij ---------- */
.plan {
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gutter) * 2.4) var(--gutter);
  padding: var(--gutter) var(--gutter) calc(var(--bar-h) + var(--gutter) * 3);
}
.tile { display: block; text-decoration: none; color: inherit; }
.tile-wide { grid-column: 1 / -1; }
.tile-media { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.tile-wide .tile-media { aspect-ratio: 16 / 9; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.tile:hover .tile-media img { opacity: .88; }
.tile:hover .tile-cap h2 { color: var(--text); }
.tile-empty { display: grid; place-items: center; padding: 24px; text-align: center; background: var(--nav-bg); box-shadow: inset 0 0 0 1px rgba(21, 21, 21, .1); }
.tile-empty span { font-size: clamp(22px, 2.4vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; color: var(--nav-fg); max-width: 14ch; }
.tile-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; align-items: baseline; }
.tile-cap h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.tile-cap span { color: var(--ink-2); font-size: 14px; text-align: right; }

/* ---------- Footer: één smalle regel; contactgegevens staan enkel op Contact ---------- */
.foot {
  position: relative; z-index: 2;
  background: var(--foot-bg); color: var(--foot-fg);
  padding: 22px var(--gutter) calc(var(--bar-h) + 40px);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--foot-big); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px;
  font-size: 13px; color: var(--foot-fg);
}
.foot-bottom a { color: var(--foot-fg); display: inline-block; padding: 6px 0; } /* groter tikdoel, zelfde look */
.foot-bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.foot :focus-visible { outline-color: var(--foot-fg); }
.lang-switch { display: inline-flex; gap: 10px; }
.lang-switch a[aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Projectpagina ---------- */
.p-hero { position: relative; height: 100svh; overflow: hidden; background: var(--paper-2); }
.p-hero img, .p-hero video { width: 100%; height: 100%; object-fit: cover; }
.p-hero.contain img, .p-hero.contain video { object-fit: contain; background: #fff; }
.p-head { padding: clamp(28px, 4vw, 56px) var(--gutter) 0; }
.p-title { margin: 0; font-weight: 640; letter-spacing: -.035em; line-height: .95; font-size: clamp(36px, 5.6vw, 96px); }
.p-sub { margin: 12px 0 0; color: var(--text); font-size: 16px; }
.p-body {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: clamp(28px, 4vw, 64px) var(--gutter) clamp(48px, 7vw, 110px);
}
.p-aside { grid-column: 1 / 4; color: var(--ink-2); display: grid; gap: 16px; align-content: start; }
.p-aside p { margin: 0; }
/* Vast infoblok per project: jaar, type, begeleiding, schaal, rol */
.p-facts { margin: 0; border-top: 2px solid var(--text); }
.p-facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.p-facts dt { color: var(--text); font-weight: 600; }
.p-facts dd { margin: 0; color: var(--ink); }
.btn-line { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--deco); padding-bottom: 2px; width: max-content; }
.btn-line:hover { color: var(--text); }
.p-text { grid-column: 5 / 12; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; }
.p-text p { margin: 0 0 1.1em; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding: 0 var(--gutter) calc(var(--bar-h) + var(--gutter) * 3); }
.fig { margin: 0; }
.fig .frame { background: #fff; }
.fig .frame img, .fig .frame video { width: 100%; height: auto; }
.fig.full, .fig.wide-l, .fig.wide-r, .fig.mid { grid-column: 1 / -1; }
.fig.half-l, .fig.port-l { grid-column: 1 / 7; }
.fig.half-r, .fig.port-r { grid-column: 7 / 13; }
.fig.port-c { grid-column: 4 / 10; }

/* ---------- About & contact ---------- */
.page { padding: clamp(150px, 20vw, 260px) var(--gutter) 10vh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: clamp(44px, 6vw, 96px); }
.statement { grid-column: 1 / 13; margin: 0; font-size: clamp(28px, 4.2vw, 70px); line-height: 1.02; letter-spacing: -.035em; font-weight: 520; text-wrap: balance; }
.statement .ln { display: inline; }
.portrait { grid-column: 1 / 4; margin: 0; }
.portrait .frame { aspect-ratio: 534 / 703; max-width: 300px; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.portrait figcaption { margin-top: 8px; color: var(--ink-2); }
.about-text { grid-column: 5 / 12; font-size: clamp(17px, 1.25vw, 20px); }
.about-text p { margin: 0 0 1em; }
.about-text .now { font-size: .9em; padding: 10px 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); margin-bottom: 1.4em; }
.now span, .making span { color: var(--text); font-weight: 600; margin-right: 10px; }
.making { grid-column: 1 / 13; margin: -18px 0 0; font-size: 17px; }
.section-h { grid-column: 1 / 13; color: var(--ink); margin: 0; font-weight: 400; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.section-h i { display: none; }
.caps { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.cap h3::before { content: ""; display: block; width: 14px; height: 14px; background: var(--deco); margin-bottom: 14px; }
.cap h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cap p { margin: 0; color: var(--ink-2); }
.tools { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gutter); }
.tool { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.meter { display: flex; gap: 4px; }
.meter i { width: 14px; height: 6px; border: 1px solid var(--text); }
.meter i.on { background: var(--text); }
.cv { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: 16px 36px; }
/* Vlinder op About: zweeft rechts mee en draait/fladdert met het scrollen (site.js) */
.page { position: relative; z-index: 1; }
.fly {
  position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none;
  width: clamp(160px, 22vw, 340px);
  filter: drop-shadow(0 14px 18px rgba(21, 21, 21, .18));
  transform: translate(68vw, 26vh); will-change: transform;
}
.fly img { width: 100%; transform-origin: 50% 50%; }

/* Cookie-instellingen */
.cookie-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { color: var(--ink-2); font-weight: 500; }
.cookie-choice { background: #fff; padding: 22px; margin: 32px 0; border-left: 4px solid var(--text); }
.cookie-status { margin: 0 0 16px; }
.cookie-status strong { color: var(--text); }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-solid, .btn-ghost { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 10px 18px; border: 2px solid var(--text); }
.btn-solid { background: var(--text); color: #fff; }
.btn-ghost { background: none; color: var(--text); }
.btn-solid:hover, .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.contact-big { grid-column: 1 / 13; margin: 0; font-size: clamp(28px, 5.4vw, 96px); line-height: 1; letter-spacing: -.04em; font-weight: 600; word-break: break-word; }
.contact-big a { text-decoration: none; }
.contact-big a:hover { color: var(--text); }
.contact-rows { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.contact-rows div { border-top: 2px solid var(--text); padding-top: 10px; display: grid; gap: 6px; align-content: start; }
.contact-rows span { color: var(--text); }
.contact-rows a, .contact-rows p { font-size: clamp(17px, 1.4vw, 22px); margin: 0; text-decoration: none; }
.contact-rows a:hover { text-decoration: underline; text-underline-offset: 4px; }

.prose { grid-column: 1 / 9; font-size: 17px; }
.prose h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; margin: 0 0 28px; font-weight: 620; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }

/* Cookiebanner */
.consent {
  position: fixed; left: var(--gutter); bottom: calc(var(--bar-h) + 14px); z-index: 90; max-width: 380px;
  background: var(--ink); color: var(--paper); padding: 16px 18px; display: grid; gap: 12px; font-size: 14px;
}
.consent p { margin: 0; }
.consent a { color: inherit; }
.consent div { display: flex; gap: 10px; }
.consent button { font: inherit; font-size: 13px; cursor: pointer; border: 1px solid var(--paper); background: none; color: inherit; padding: 6px 12px; }
.consent button[data-c='yes'] { background: var(--paper); color: var(--ink); }

/* Rustige paginaovergang */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ---------- Tablet & mobiel ---------- */
@media (max-width: 900px) {
  .p-aside { grid-column: 1 / 13; margin-bottom: 32px; }
  .p-text { grid-column: 1 / 13; }
  .caps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .portrait { grid-column: 1 / 7; }
  .about-text { grid-column: 1 / 13; }
  .contact-rows { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .prose { grid-column: 1 / 13; }
}
@media (max-width: 700px) {
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; }
  .foot-bottom nav { justify-content: center; }
  .plan { grid-template-columns: 1fr; }
  .tile-wide .tile-media { aspect-ratio: 4 / 5; }
  .fig.half-l, .fig.half-r, .fig.port-l, .fig.port-r, .fig.port-c { grid-column: 1 / -1; }
  .p-hero { height: 78svh; }
}
@media (max-width: 600px) {
  :root { --bar-h: 50px; }
  .bar a { font-size: 13px; }
  .bar a span { padding: 8px 12px 7px; }
  .fly { width: 150px; opacity: .55; }
  .caps, .tools, .contact-rows { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
