/* =========================================================================
   DOIA — shared system
   Minimal, image-led, technical-editorial. Monochrome on warm off-white.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=IBM+Plex+Sans:wght@300;400;500&display=swap');

:root {
  /* palette — warm, near-monochrome */
  --paper:      #FBFAF8;
  --paper-2:    #F2F0EC;
  --ink:        #16140F;
  --ink-2:      #5A564E;   /* secondary text */
  --ink-3:      #98938A;   /* tertiary / captions */
  --line:       #DEDAD2;   /* hairlines */
  --line-2:     #C9C4BA;
  --accent:     oklch(0.59 0.10 42);  /* terracotta — klei, Mongoolse oker */
  --accent-2:   oklch(0.72 0.06 220); /* zacht blauw — stalen trap */

  /* type */
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* rhythm */
  --gut: clamp(20px, 4.5vw, 64px);   /* page side margin */
  --rule: 1px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

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

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

/* ---- technical voice: labels, nav, captions ---------------------------- */
.mono {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ink-3);
}

/* ---- layout ------------------------------------------------------------ */
.shell { width: 100%; padding-inline: var(--gut); }

.rule { height: var(--rule); background: var(--line); border: 0; width: 100%; }

/* visually-hidden — accessible/SEO text that isn't shown on screen */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* section header: eyebrow-title left, optional link right */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: clamp(24px, 3vw, 40px); gap: 16px; flex-wrap: wrap;
}

/* underlined mono call-to-action link */
.link-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
  text-decoration: none;
  transition: gap 0.4s var(--ease), opacity 0.4s var(--ease);
}
.link-line:hover { gap: 18px; }

/* generic reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gut);
  mix-blend-mode: difference;       /* wordmark stays legible over imagery */
  color: #fff;
}
.nav a { color: #fff; }

.nav__brand {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.28em;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.nav__menu {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}
.nav__menu a {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  position: relative;
  padding-bottom: 2px;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav__menu a:hover::after { transform: scaleX(1); }
.nav__menu a[aria-current="page"]::after { transform: scaleX(1); }

.nav__menu-toggle { display: none; }

@media (max-width: 720px) {
  .nav { padding-block: 16px; }
  .nav__menu { gap: 16px; }
  .nav__menu a { font-size: 0.62rem; }
}

/* language toggle in nav */
.nav__lang {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.7rem;
  margin-left: clamp(2px, 1vw, 10px);
}
.nav__lang .sep { opacity: 0.4; }
.nav__lang a { opacity: 0.5; transition: opacity 0.3s var(--ease); }
.nav__lang a:hover { opacity: 1; }
.nav__lang .is-active { opacity: 1; }
@media (max-width: 720px) { .nav__lang { font-size: 0.62rem; } }

/* hero slideshow (crossfade of wide images) */
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.015);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__slide img { transition: transform 7s ease-out; }
  .hero__slide.is-active img { transform: scale(1.075); }
}

/* language suggestion bar (suggest-only, never auto-redirects) */
.langbar {
  position: fixed; z-index: 60;
  top: clamp(58px, 8vh, 76px); left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.langbar.is-open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.langbar__inner {
  display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: var(--paper);
  padding: 11px 12px 11px 20px;
  box-shadow: 0 12px 34px rgba(0,0,0,.20);
  max-width: calc(100vw - 32px);
}
.langbar__text { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.64rem; white-space: nowrap; }
.langbar__go {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.64rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--paper);
  padding: 8px 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.langbar__go:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.langbar__x {
  background: transparent; border: 0; color: var(--paper); opacity: 0.6;
  font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 4px 6px;
  transition: opacity 0.3s var(--ease);
}
.langbar__x:hover { opacity: 1; }
@media (max-width: 480px) {
  .langbar__inner { gap: 10px; padding-left: 14px; }
  .langbar__text { white-space: normal; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  margin-top: clamp(80px, 12vw, 180px);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 80px) var(--gut) 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}
.footer__brand {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.28em;
  font-size: 1.1rem;
  text-transform: uppercase;
  grid-column: 1 / -1;
  margin-bottom: clamp(30px, 5vw, 60px);
}
.footer__col h4 {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 8px;
  width: fit-content;
  transition: color 0.4s var(--ease);
}
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  color: var(--ink-3);
}

/* =========================================================================
   SHARED IMAGE TREATMENT
   ========================================================================= */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.frame:hover img { transform: scale(1.035); }

/* big editorial headings */
.h-display {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 8vw, 7rem);
}
.h-lg {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
}
.lead {
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 30ch;
}
.measure { max-width: 56ch; }
.text-muted { color: var(--ink-2); }

/* =========================================================================
   COOKIE CONSENT BANNER
   ========================================================================= */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--paper);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.cookie.is-open { transform: none; }
.cookie__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 44px);
  padding-block: 18px;
  flex-wrap: wrap;
}
.cookie__text {
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 72ch;
}
.cookie__text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 0.35s var(--ease);
}
.cookie__text a:hover { text-decoration-color: var(--accent); }
.cookie__actions { display: flex; gap: 12px; flex: none; }
.cookie__btn {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cookie__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie__btn--ghost { background: transparent; color: var(--ink); }
.cookie__btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 640px) {
  .cookie__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie__actions { width: 100%; flex-wrap: wrap; }
  .cookie__btn { flex: 1 1 auto; }
}

/* =========================================================================
   COOKIE PREFERENCES PANEL (tweede laag)
   ========================================================================= */
.cookie-prefs { position: fixed; inset: 0; z-index: 110; display: none; }
.cookie-prefs.is-open { display: block; }
.cookie-prefs__scrim { position: absolute; inset: 0; background: rgba(22, 20, 15, 0.4); opacity: 0; transition: opacity 0.45s var(--ease); }
.cookie-prefs.is-open .cookie-prefs__scrim { opacity: 1; }
.cookie-prefs__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(480px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.cookie-prefs.is-open .cookie-prefs__panel { transform: none; }
.cookie-prefs__head { position: relative; padding: clamp(30px, 5vw, 46px) clamp(24px, 4vw, 40px) 0; }
.cookie-prefs__close {
  position: absolute; top: clamp(20px, 3vw, 30px); right: clamp(22px, 3vw, 34px);
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.62rem; color: var(--ink-3);
  transition: color 0.35s var(--ease);
}
.cookie-prefs__close:hover { color: var(--accent); }
.cookie-prefs__title { font-family: var(--sans); font-weight: 300; letter-spacing: -0.015em; font-size: clamp(1.4rem, 3vw, 1.75rem); color: var(--ink); }
.cookie-prefs__intro { color: var(--ink-2); font-size: 0.85rem; line-height: 1.55; margin-top: 14px; max-width: 46ch; }
.cookie-prefs__list { padding: clamp(22px, 4vw, 34px) clamp(24px, 4vw, 40px); }
.cc-cat {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 18px;
  padding-block: 22px; border-top: 1px solid var(--line); align-items: center;
}
.cc-cat:last-child { border-bottom: 1px solid var(--line); }
.cc-cat__name { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--ink); }
.cc-cat__desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.82rem; line-height: 1.5; max-width: 46ch; }
.cc-cat__always { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.58rem; color: var(--ink-3); justify-self: end; }
.cc-switch { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; justify-self: end; }
.cc-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cc-switch__track { position: absolute; inset: 0; background: var(--line-2); transition: background 0.3s var(--ease); }
.cc-switch__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--paper); transition: transform 0.3s var(--ease); }
.cc-switch input:checked ~ .cc-switch__track { background: var(--accent); }
.cc-switch input:checked ~ .cc-switch__thumb { transform: translateX(20px); }
.cookie-prefs__foot {
  margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap;
  padding: clamp(20px, 4vw, 30px) clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.cookie-prefs__foot .cookie__btn { flex: 1 1 150px; }
