/* ==========================================================================
   Cornelis Zonwering — main.css
   Design DNA: layered-depth skeleton, scroll-driven narrative, warm editorial
   met cinematische donkere ankers. Signature: het rolluik dat je zelf bedient.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
/* Clash Display (display) + Satoshi (body), Fontshare. Beide gratis licentie. */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Kleur */
  --ink:        #14161a;
  --ink-2:      #1d2127;
  --ink-3:      #2b3038;
  --gold:       #b8862b;
  --gold-2:     #d7a94f;
  --gold-3:     #f0d79a;
  --ivory:      #f7f4ee;
  --ivory-2:    #efeae0;
  --paper:      #ffffff;
  --muted:      #6d6862;
  --line:       rgba(20, 22, 26, .12);
  --line-dark:  rgba(255, 255, 255, .14);

  /* Type */
  --font-display: 'Clash Display', 'Satoshi', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body:    'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--2: clamp(0.688rem, 0.66rem + 0.14vw, 0.75rem);
  --step--1: clamp(0.813rem, 0.78rem + 0.16vw, 0.875rem);
  --step-0:  clamp(1rem,     0.96rem + 0.2vw,  1.075rem);
  --step-1:  clamp(1.15rem,  1.09rem + 0.3vw,  1.313rem);
  --step-2:  clamp(1.4rem,   1.28rem + 0.6vw,  1.85rem);
  --step-3:  clamp(1.75rem,  1.53rem + 1.1vw,  2.5rem);
  --step-4:  clamp(2.15rem,  1.8rem + 1.75vw,  3.4rem);
  --step-5:  clamp(2.7rem,   2.1rem + 3vw,     4.75rem);
  --step-6:  clamp(3.2rem,   2.3rem + 4.5vw,   6.5rem);

  /* Ruimte: 8px systeem */
  --s-1: 8px;   --s-2: 16px;  --s-3: 24px;  --s-4: 32px;
  --s-5: 40px;  --s-6: 48px;  --s-7: 64px;  --s-8: 80px;
  --s-9: 96px;  --s-10: 128px;

  --section-y: clamp(72px, 9vw, 136px);
  --gutter:    clamp(20px, 4.5vw, 56px);
  --maxw:      1280px;
  --maxw-text: 68ch;

  /* Radius */
  --r-xs: 6px;  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px; --r-full: 999px;

  /* Elevatie */
  --sh-1: 0 1px 2px rgba(20,22,26,.06), 0 4px 14px rgba(20,22,26,.05);
  --sh-2: 0 2px 6px rgba(20,22,26,.07), 0 16px 40px rgba(20,22,26,.09);
  --sh-3: 0 4px 12px rgba(20,22,26,.10), 0 32px 72px rgba(20,22,26,.16);

  /* Motion */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --t-fast: .22s; --t: .42s; --t-slow: .8s;

  /* Z-schaal */
  --z-base: 10; --z-sticky: 20; --z-nav: 30; --z-float: 40; --z-modal: 50;

  /* Header hoogte */
  --nav-h: 72px;
  --bar-h: 40px;
}

@media (min-width: 900px) { :root { --nav-h: 86px; } }

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, video, svg, picture { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-2); color: var(--ink); }

/* --- Typografie ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.18; letter-spacing: -0.015em; }
h4 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.display {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  flex: 0 0 26px;
  border-radius: 2px;
}

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

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 940px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--dark .lead { color: rgba(247,244,238,.7); }
.section--dark .eyebrow { color: var(--gold-2); }
.section--paper { background: var(--paper); }
.section--tint { background: var(--ivory-2); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section__head--center {
  text-align: center;
  align-items: center;
  margin-inline: auto;
}
.section__head--center .eyebrow::before { display: none; }
.section__head--center .lead { margin-inline: auto; }

.stack   { display: flex; flex-direction: column; gap: var(--s-3); }
.stack-2 { display: flex; flex-direction: column; gap: var(--s-2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

.grid { display: grid; gap: var(--s-3); align-items: stretch; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left  { grid-template-columns: 1.15fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.15fr; }
}

.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ivory-2);
  box-shadow: var(--sh-2);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }

/* --- Skip link ------------------------------------------------------------ */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-modal);
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* --- Reveal (scroll) ------------------------------------------------------ */
.fu {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.fu.vis { opacity: 1; transform: translate3d(0, 0, 0); will-change: auto; }
.fu-d1 { transition-delay: .08s; }
.fu-d2 { transition-delay: .16s; }
.fu-d3 { transition-delay: .24s; }
.fu-d4 { transition-delay: .32s; }

.no-js .fu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .fu { opacity: 1 !important; transform: none !important; }
}

/* --- Utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
