/* Iniziamo — gebaseerd op Stijlgids 1.0 (tokens.css) */
@font-face { font-family: Manrope; src: url("assets/fonts/Manrope.ttf"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Caveat; src: url("assets/fonts/Caveat.ttf"); font-weight: 400 700; font-display: swap; }

:root {
  /* Merkkleuren */
  --ink: #08243B;          /* Nachtblauw */
  --orange: #FF5714;       /* Begin-oranje — accenten, nooit kleine tekst */
  --paper: #F8F4EB;        /* Papier */
  --sand: #EFE2CF;         /* Aquarelzand */
  --mountain: #A7C6D5;     /* Bergblauw */
  --lake: #497F93;         /* Meerblauw */
  --text-orange: #B83C0A;  /* Tekstoranje — links en kleine accenttekst */
  --line: #D8D0C3;         /* Lijn */
  --muted: #3f5466;

  --font-body: Manrope, system-ui, sans-serif;
  --font-accent: Caveat, cursive;
  --wordmark: "Kaushan Script", cursive;

  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-6: 48px; --space-8: 64px; --space-12: 96px;
  --radius: 8px;
  --container: 1200px;
  --gutter: 64px;
  --speed: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-orange); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.dot { color: var(--orange); }

/* ---------- Typografie ---------- */
.eyebrow, .tag-line {
  margin: 0 0 var(--space-1); color: var(--text-orange);
  font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
}
.h2 {
  margin: 0 0 var(--space-2); color: var(--ink);
  font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: -.035em;
}
.sub { margin: 0 0 var(--space-6); max-width: 62ch; font-size: 22px; line-height: 1.5; color: var(--muted); }
.sub strong { color: var(--ink); font-weight: 700; }
.section { padding: var(--space-12) 0; }

/* ---------- Knoppen (primair: oranje met nachtblauwe tekst) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px var(--space-3); border-radius: var(--radius);
  background: var(--orange); color: var(--ink); text-decoration: none;
  font: 600 16px/1.2 var(--font-body);
  transition: background var(--speed);
}
.btn:hover { background: #F17845; }
.btn span { transition: transform var(--speed); }
.btn:hover span { transform: translateX(3px); }
.btn--sm { min-height: 44px; font-size: 15px; padding: 10px 20px; }

/* ---------- Getekende lijnen (iconen, hero, werkwijze) ---------- */
.ink path, .ink circle, .ink rect, .ink ellipse { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ink .thin { stroke-width: 1.8; }
.accent, .accent path, .accent circle { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.note { margin: 0; font: 500 32px/1.05 var(--font-accent); color: var(--ink); transform: rotate(-7deg); pointer-events: none; }

/* ---------- Navigatie ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo {
  font-family: var(--wordmark); font-size: 34px; color: var(--ink);
  text-decoration: none; line-height: 1; transform: rotate(-4deg); display: inline-block;
}
.nav__menu { display: flex; align-items: center; gap: var(--space-4); }
.nav__menu a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  transition: background-size var(--speed);
}
.nav__menu a:not(.btn):hover { background-size: 100% 2px; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-4) 0 var(--space-8); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--space-4); }
.hero__text { position: relative; z-index: 2; }
.hero__script {
  margin: 0; color: var(--ink);
  font: 400 clamp(64px, 9.5vw, 128px)/1 var(--wordmark);
  transform: rotate(-6deg); transform-origin: left bottom; margin-left: -.08em;
}
.hero__swoosh { width: min(320px, 70%); margin: -8px 0 0 64px; display: block; }
.hero__swoosh path, .signature path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.hero__title { margin: var(--space-1) 0 var(--space-2); font-size: 64px; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.hero__lead { max-width: 34ch; margin: 0 0 var(--space-4); font-size: 22px; line-height: 1.5; color: var(--muted); }

.hero__art { position: relative; aspect-ratio: 6 / 5; }
.hero__wash, .photo-paint, .photo-sketch, .hero__trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__wash { transform: scale(1.08) translate(-2%, 2%); }
.hero__wash path:first-child { fill: var(--sand); }
.hero__wash path:last-child { fill: var(--mountain); opacity: .55; }
.photo-paint, .photo-sketch { top: 8%; height: 84%; }
.photo-paint {
  overflow: hidden;
  -webkit-mask: url("assets/photo-mask.svg") center / 100% 100% no-repeat;
          mask: url("assets/photo-mask.svg") center / 100% 100% no-repeat;
}
.photo-paint img { width: 118%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 45%; margin-left: -20%; }
.sketch-lines path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.sketch-lines .thin { stroke-width: 1.3; opacity: .5; }
.hero__trail path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.note--hero { position: absolute; right: -1%; top: -2%; }
.note__arrow { position: absolute; right: 13%; top: 12%; width: 44px; }
.note__arrow path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* Lijnen tekenen zichzelf */
.js .draw path { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 2.2s cubic-bezier(.6,.1,.3,1); }
.js .draw .head { stroke-dasharray: 80; stroke-dashoffset: 80; transition-delay: 1.9s; transition-duration: .4s; }
.js .draw.is-in path { stroke-dashoffset: 0; }

/* ---------- Wat ik doe ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.pillar__icon { width: 190px; margin: 0 0 var(--space-1) -18px; }
.pillar__icon svg { width: 100%; height: auto; overflow: visible; }
/* Aquarel-lagen in de tekeningen (zelfde stijl als de projectillustraties) */
.wc-sky    { fill: var(--mountain); opacity: .45; }
.wc-sand   { fill: var(--sand); opacity: .9; }
.wc-blue   { fill: var(--mountain); opacity: .75; }
.wc-navy   { fill: var(--ink); opacity: .8; }
.wc-orange { fill: var(--orange); opacity: .6; }
.wc-yellow { fill: #F6C86A; opacity: .55; }
.wc-paper  { fill: var(--paper); opacity: .9; }
.spl circle { fill: var(--orange); opacity: .75; }
/* Donkere aquarelrand, zoals natte verf die opdroogt */
.wc-sky, .wc-sand, .wc-blue, .wc-orange, .wc-yellow { stroke-width: 1.6; stroke-opacity: .55; }
.wc-sky { stroke: var(--mountain); } .wc-sand { stroke: #e2cfb3; } .wc-blue { stroke: var(--lake); stroke-opacity: .35; }
.wc-orange { stroke: var(--orange); } .wc-yellow { stroke: #e9a93c; }
.swoosh { fill: none; stroke: var(--orange); stroke-width: 3.2; stroke-linecap: round; opacity: .85; }
.hatch path { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; opacity: .45; }
.pillar .ink path, .pillar .ink circle, .pillar .ink rect { stroke-width: 2.6; }
.pillar h3 { margin: 0 0 var(--space-1); font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.pillar p { margin: 0 0 var(--space-2); color: var(--muted); font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.tags li { padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); }

/* ---------- Projecten: open kaarten op papier ---------- */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.project { position: relative; display: flex; flex-direction: column; }
.project__art { aspect-ratio: 1 / 1; display: grid; place-items: center; margin-bottom: var(--space-2); }
.project__art img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.project:hover .project__art img { transform: translateY(-4px) rotate(-1deg); }
.project h3 { margin: 0 0 var(--space-1); font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.project__body > p:not(.tag-line) { margin: 0 0 var(--space-2); color: var(--muted); font-size: 17px; }
details summary {
  list-style: none; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
  color: var(--text-orange); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
}
details summary::-webkit-details-marker { display: none; }
details summary span { display: inline-block; transition: transform var(--speed); }
details summary:hover span { transform: translateX(3px); }
details[open] summary span { transform: rotate(90deg); }
details p { margin: var(--space-1) 0 0; font-size: 16px; color: var(--ink); }

.dayjob {
  display: grid; grid-template-columns: 160px 1fr auto; gap: var(--space-3); align-items: start;
  margin-top: var(--space-8); padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--ink); background: color-mix(in srgb, var(--sand) 60%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.dayjob .tag-line { color: var(--ink); margin-top: 4px; }
.dayjob h3 { margin: 0 0 var(--space-1); font-size: 20px; font-weight: 700; }
.dayjob p:last-child { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
.dayjob__link { align-self: center; display: block; width: 60px; height: 60px; border-radius: 12px; transition: transform var(--speed); }
.dayjob__link:hover { transform: translateY(-2px); }
.dayjob__link svg { width: 100%; height: 100%; display: block; }

/* Rustig binnenkomen */
.js .pillar, .js .project { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .pillar.is-in, .js .project.is-in { opacity: 1; transform: none; }
.pillar:nth-child(2), .project:nth-child(2) { transition-delay: .08s; }
.pillar:nth-child(3), .project:nth-child(3) { transition-delay: .16s; }
.pillar:nth-child(4), .project:nth-child(4) { transition-delay: .24s; }

/* ---------- Hoe ik werk ---------- */
.process { position: relative; }
.process::before {
  content: ""; position: absolute; inset: var(--space-3) 0; z-index: -1;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mountain) 28%, var(--paper)) 18%, color-mix(in srgb, var(--mountain) 28%, var(--paper)) 82%, transparent);
}
.steps { position: relative; }
.steps__route { display: block; width: 100%; height: auto; overflow: visible; margin-bottom: var(--space-2); }
.steps__route .route, .steps__route .head { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.steps__route .head { stroke: var(--orange); }
.steps__route .ticks path { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .45; }
.steps__route .stops circle { fill: var(--orange); stroke: var(--paper); stroke-width: 4; paint-order: stroke; }
.steps__route .stops .stop--ink { fill: var(--ink); }
.js .steps__route .route { stroke-dasharray: 2600; stroke-dashoffset: 2600; transition: stroke-dashoffset 2.6s cubic-bezier(.55,.1,.3,1); }
.js .steps__route .head { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset .35s 2.4s; }
.js .steps__route .stops circle { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .3s, transform .3s; }
.js .steps__route.is-in .route, .js .steps__route.is-in .head { stroke-dashoffset: 0; }
.js .steps__route.is-in .stops circle { opacity: 1; transform: none; }
.js .steps__route.is-in .stops circle:nth-child(1) { transition-delay: .1s; }
.js .steps__route.is-in .stops circle:nth-child(2) { transition-delay: .7s; }
.js .steps__route.is-in .stops circle:nth-child(3) { transition-delay: 1.4s; }
.js .steps__route.is-in .stops circle:nth-child(4) { transition-delay: 2s; }
.steps__head, .steps__dot { display: none; }
.steps__head path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.steps__list li { position: relative; padding-right: var(--space-2); }
.steps__dot {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--orange);
  border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--orange);
}
.steps__dot.dot--ink { background: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.steps__list h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.steps__list p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Over ---------- */
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-8); align-items: center; }
.about__grid p { margin: 0 0 var(--space-2); max-width: 62ch; }
.about__lead { font-size: 22px; line-height: 1.5; }
.quote { position: relative; margin: 0; padding: var(--space-1) 0 var(--space-1) var(--space-6); border-left: 2px solid var(--orange); }
.quote__mark { position: absolute; left: 40px; top: -28px; font: 800 80px/1 var(--font-body); color: var(--orange); }
.quote p { margin: 0 0 var(--space-3) 56px; font-size: 22px; line-height: 1.5; }
.signature { position: relative; display: inline-block; margin-left: var(--space-4); font: 500 40px/1.15 var(--font-accent); color: var(--ink); transform: rotate(-5deg); }
.signature svg { position: absolute; left: 16px; bottom: -10px; width: 200px; }

/* ---------- Contact + panorama ---------- */
.contact { padding-top: var(--space-8); }
.contact__inner { text-align: center; }
.contact__lead { max-width: 52ch; margin: 0 auto var(--space-4); font-size: 20px; line-height: 1.5; color: var(--muted); }
.contact__mail { margin: var(--space-2) 0 0; font-size: 16px; color: var(--muted); }
.panorama { width: 100%; max-width: 1600px; margin: var(--space-4) auto 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d6dee6; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-3); padding-bottom: var(--space-3); }
.logo--light { color: var(--paper); font-size: 30px; }

/* ---------- Responsive (tablet 640, desktop 1100) ---------- */
@media (max-width: 1099px) {
  .wrap { padding: 0 32px; }
  .pillars, .projects { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-4); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 640px; width: 100%; margin: var(--space-6) auto 0; }
  .about__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 860px) {
  .nav__toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 12px; cursor: pointer; }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav__menu {
    position: absolute; top: 80px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-3) 32px var(--space-4); background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav__menu.is-open { display: flex; }
}
@media (max-width: 639px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .h2 { font-size: 30px; }
  .sub, .hero__lead, .about__lead, .quote p { font-size: 20px; }
  .hero__title { font-size: 40px; }
  .pillars, .projects { grid-template-columns: 1fr; }
  .project h3 { font-size: 22px; }
  .project__art { max-width: 320px; }
  .note { font-size: 26px; }
  .note--hero { top: -7%; }
  .note__arrow { width: 32px; top: 5%; }
  .nav__menu { padding: var(--space-3) 20px var(--space-4); }

  .steps__route { display: none; }
  .steps__list { grid-template-columns: 1fr; gap: var(--space-3); padding-left: 36px; border-left: 2px solid var(--orange); margin-left: 8px; }
  .steps__list li { padding: 0; }
  .steps__dot { display: block; left: -46px; top: 4px; }
  .steps__head { display: block; position: absolute; width: 24px; height: 24px; left: -3px; bottom: -22px; transform: rotate(90deg); }

  .dayjob { grid-template-columns: 1fr; gap: 4px; padding: var(--space-3) 20px; }
  .dayjob__link { margin-top: var(--space-2); }
  .quote { padding-left: 20px; }
  .quote__mark { left: 16px; }
  .quote p { margin-left: 44px; }
  .signature { font-size: 32px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .draw path { stroke-dashoffset: 0; }
  .js .steps__route .route, .js .steps__route .head { stroke-dashoffset: 0; }
  .js .steps__route .stops circle { opacity: 1; transform: none; }
  .js .pillar, .js .project { opacity: 1; transform: none; }
}
