@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/red-hat-display-latin.woff2') format('woff2');
}

/* ---------- Tokens (zie design.md) ---------- */

:root {
  --df-red: #D9283B;
  --df-grey: #55565A;
  --df-ink: #1C1C20;
  --df-paper: #FCFBF9;
  --df-white: #FFFFFF;
  --df-text-2: #64646B;
  --df-text-3: #8A8990;
  --df-line: #DAD7D1;
  --df-wave: #ECE9E4;
  --df-wave-red: #F3D4D7;
  --df-net: #D6D3CD;
  --df-net-light: #E6E3DE;
  --df-node: #B3B1B6;
  --df-node-light: #C9C7CB;

  --df-gutter: clamp(24px, 5.6vw, 72px);
  --df-ease-up: cubic-bezier(.2, .7, .2, 1);
  --df-ease-draw: cubic-bezier(.4, 0, .2, 1);
  --df-ease-pop: cubic-bezier(.3, 1.4, .5, 1);
  --df-ease-wave: cubic-bezier(.2, .6, .4, 1);

  --nav-h: 68px;
  --section-y: clamp(72px, 11vw, 144px);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

html, body { margin: 0; background: var(--df-paper); }

body {
  color: var(--df-ink);
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
strong { font-weight: 500; }
p { margin: 0; }
code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .86em;
  background: var(--df-white);
  border: 1px solid var(--df-line);
  padding: 1px 6px;
}

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--df-red);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 999px;
  background: var(--df-ink); color: #fff; text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--df-gutter);
}

/* ---------- Basiscomponenten (uit het ontwerp) ---------- */

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--df-text-3);
}
.label::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--df-red);
}
.label.is-strong { color: var(--df-text-2); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--df-ink);
  border-radius: 999px;
  background: var(--df-ink);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, gap .3s;
}
.button:hover, .button.is-hover { background: var(--df-red); border-color: var(--df-red); gap: 14px; }

.button.is-secondary {
  background: var(--df-white);
  border-color: var(--df-line);
  color: var(--df-ink);
}
.button.is-secondary:hover, .button.is-secondary.is-hover {
  background: var(--df-white);
  border-color: var(--df-red);
  color: var(--df-red);
}
.button.is-focus { outline: 2px solid var(--df-red); outline-offset: 3px; }
.button.is-disabled, .button:disabled { opacity: .4; pointer-events: none; }
.button.is-small { padding: 9px 16px; font-size: 13px; gap: 8px; }
.button .caret { font-size: .7em; transition: transform .3s; }

.link {
  font-size: 14px;
  color: var(--df-text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--df-line);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.link:hover, .link.is-hover { color: var(--df-red); border-color: var(--df-red); }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

/* Kop-stijl: Light met nadruk in Medium */
.display {
  margin: 0;
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 20ch;
}
.h3 {
  margin: 0;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.body {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--df-text-2);
  text-wrap: pretty;
}

/* ---------- Navigatie ---------- */

.topnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topnav.is-scrolled {
  background: rgba(252, 251, 249, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--df-line);
}
.topnav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { flex: none; display: block; opacity: 0; transition: opacity .3s; }
.nav-logo img { width: 112px; height: auto; }
.topnav.is-scrolled .nav-logo, .topnav.menu-open .nav-logo { opacity: 1; }

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--df-text-2);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--df-ink); }
.nav-links a.active { color: var(--df-ink); background: var(--df-white); box-shadow: inset 0 0 0 1px var(--df-line); }

.nav-tools { display: flex; align-items: center; gap: 8px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 130;
  min-width: 260px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--df-white);
  border: 1px solid var(--df-line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s var(--df-ease-up), transform .18s var(--df-ease-up), visibility .18s;
}
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown.is-open .caret { transform: rotate(180deg); }
.dropdown-menu a, .dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: var(--df-ink);
  cursor: pointer;
  transition: background .18s;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--df-paper); }
.dropdown-menu .dm-title { display: block; font-size: 14px; font-weight: 500; }
.dropdown-menu .dm-desc { display: block; font-size: 12.5px; color: var(--df-text-2); }
.dropdown-menu button.active .dm-title { color: var(--df-red); }
.hero .dropdown-menu { left: 0; right: auto; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--df-line);
  border-radius: 999px;
  background: var(--df-white);
  color: var(--df-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.lang-btn:hover { border-color: var(--df-red); color: var(--df-red); }
.lang .dropdown-menu { min-width: 160px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--df-line);
  border-radius: 50%;
  background: var(--df-white);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--df-ink);
  transition: transform .3s, background .3s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-tools { margin-left: auto; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 16px var(--df-gutter) 40px;
    background: var(--df-paper);
    border-top: 1px solid var(--df-line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-open { background: var(--df-paper) !important; }
  .nav-links a { padding: 14px 0; border-radius: 0; font-size: 20px; font-weight: 300; border-bottom: 1px solid var(--df-line); }
  .nav-links a.active { background: none; box-shadow: none; color: var(--df-red); }
}

/* ---------- Netwerk (uit het ontwerp) ---------- */

.network {
  position: absolute;
  right: max(-18vw, -260px);
  top: calc(-8vw - 60px);
  width: max(78vw, 560px);
  aspect-ratio: 1;
  pointer-events: none;
}
.wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260%;
  aspect-ratio: 1;
  border: 1px solid var(--df-wave);
  border-radius: 50%;
  opacity: 0;
  animation: dfWave 10s var(--d) var(--df-ease-wave) infinite;
}
.wave:nth-child(1) { --d: 2s; }
.wave:nth-child(2) { --d: 5.33s; }
.wave:nth-child(3) { --d: 8.66s; border-color: var(--df-wave-red); }

.net {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: dfDrift 14s ease-in-out infinite;
}
.net g { transition: opacity .45s var(--df-ease-up); }
.net line {
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: dfDraw 1s var(--d) var(--df-ease-draw) both;
}
.net circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: dfPop .6s var(--d) var(--df-ease-pop) both;
}
.net circle.pulse {
  animation:
    dfPop .6s var(--d) var(--df-ease-pop) both,
    dfPulse var(--p) var(--pd) ease-in-out infinite;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 3.6vw, 40px) var(--df-gutter);
  animation: dfFade 1s both;
}
.hero-head .logo { width: clamp(120px, 13vw, 160px); height: auto; }
.hero-main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(16px, 2.2vw, 24px);
  padding: 0 var(--df-gutter) clamp(28px, 5vw, 72px);
  max-width: 720px;
}
.hero-main > * { animation: dfUp 1s var(--d) var(--df-ease-up) both; }
.hero-main .label { animation-duration: .9s; --d: .4s; }
.hero-main .display { max-width: 13ch; --d: .55s; }
.hero-main .body { max-width: 38ch; --d: .7s; }
.hero-main .cta-group { margin-top: 6px; --d: .85s; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: clamp(12px, 2vw, 28px);
  font-size: 13px;
  color: var(--df-text-3);
  --d: 1s;
}

/* ---------- Secties ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--df-line);
}
.section.is-white { background: var(--df-white); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .label { grid-column: 1 / -1; }
.section-head .body { max-width: 52ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: clamp(40px, 5vw, 64px) 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--df-line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--df-ink);
}
.subhead:first-child { margin-top: 0; }
.subhead small { font-weight: 400; font-size: 13px; color: var(--df-text-2); letter-spacing: 0; }

.grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cols-4, .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cols-3, .cols-4, .cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .grid:has(> .swatch) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch-fill, .swatch.is-large .swatch-fill { height: 72px; }
  .swatch-body { padding: 12px; }
}

.card {
  background: var(--df-white);
  border: 1px solid var(--df-line);
  padding: clamp(20px, 2.4vw, 28px);
}
.section.is-white .card { background: var(--df-paper); }

.callout {
  display: flex;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 18px 22px;
  border-left: 2px solid var(--df-red);
  background: var(--df-white);
  font-size: 15px;
  line-height: 1.65;
  color: var(--df-text-2);
}
.section.is-white .callout { background: var(--df-paper); }
.callout strong { color: var(--df-ink); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--df-line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--df-text-2);
  white-space: nowrap;
  vertical-align: middle;
}
.tag.is-design { border-color: var(--df-ink); color: var(--df-ink); }
.tag.is-open { border-color: var(--df-red); color: var(--df-red); }

/* ---------- 01 Merk ---------- */

.principles { counter-reset: p; }
.principle { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.principle .num { font-size: 13px; color: var(--df-text-3); }
.principle p { font-size: 15px; line-height: 1.65; color: var(--df-text-2); }
.principle .mini { height: 56px; margin-bottom: 6px; }

/* ---------- 02 Voice ---------- */

.quotes { display: grid; gap: clamp(8px, 1.4vw, 16px); margin-bottom: clamp(40px, 6vw, 72px); }
.quote {
  margin: 0;
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--df-text-3);
}
.quote strong { color: var(--df-ink); }
.quote.tagline { margin-bottom: clamp(16px, 3vw, 32px); }
.dodont h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 500; }
.dodont h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--df-ink); }
.dodont.is-dont h3::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--df-red); }
.dodont ul { margin: 0; padding: 0; list-style: none; }
.dodont li { padding: 12px 0; border-top: 1px solid var(--df-line); font-size: 15px; line-height: 1.6; color: var(--df-text-2); }
.dodont li em { font-style: normal; color: var(--df-ink); }

/* ---------- 03 Logo ---------- */

.logo-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 14%;
  border: 1px solid var(--df-line);
  background: var(--df-white);
}
.logo-tile.on-paper { background: var(--df-paper); }
.logo-tile.on-ink { background: var(--df-ink); border-color: var(--df-ink); }
.logo-tile img { width: 100%; max-width: 300px; height: auto; }
.logo-tile.is-mark img { width: 34%; }
.tile-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.tile-caption { font-size: 14px; color: var(--df-text-2); }
.tile-caption strong { color: var(--df-ink); }
.tile-actions { display: flex; gap: 6px; }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--df-line);
  border-radius: 999px;
  background: var(--df-white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--df-ink);
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.chip:hover { border-color: var(--df-red); color: var(--df-red); }

.clearspace {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
  background: var(--df-white);
  border: 1px solid var(--df-line);
}
.clearspace-box {
  position: relative;
  padding: 26px;
  outline: 1px dashed var(--df-red);
  background:
    linear-gradient(var(--df-wave-red), var(--df-wave-red)) top / 100% 26px no-repeat,
    linear-gradient(var(--df-wave-red), var(--df-wave-red)) bottom / 100% 26px no-repeat,
    linear-gradient(var(--df-wave-red), var(--df-wave-red)) left / 26px 100% no-repeat,
    linear-gradient(var(--df-wave-red), var(--df-wave-red)) right / 26px 100% no-repeat;
}
.clearspace-box img { width: min(300px, 56vw); height: auto; outline: 1px solid var(--df-line); }
.clearspace-x {
  position: absolute; top: 0; left: calc(100% + 8px);
  height: 26px; display: flex; align-items: center;
  font-size: 12px; color: var(--df-red); white-space: nowrap;
}
.rules { margin: 0; padding: 0; list-style: none; }
.rules li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--df-line); font-size: 15px; line-height: 1.6; color: var(--df-text-2); }
.rules li::before { content: '✓'; color: var(--df-ink); font-weight: 500; }
.rules.is-dont li::before { content: '×'; color: var(--df-red); font-size: 18px; line-height: 1.4; }
.rules strong { color: var(--df-ink); }

.misuse { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--df-white); border: 1px solid var(--df-line); position: relative; }
.misuse img { width: 62%; }
.misuse::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .75px), var(--df-red) calc(50% - .75px), var(--df-red) calc(50% + .75px), transparent calc(50% + .75px)); opacity: .9; }
.misuse.stretch img { transform: scaleX(1.45); }
.misuse.rotate img { transform: rotate(-14deg); }
.misuse.recolor img { filter: hue-rotate(160deg) saturate(2); }
.misuse.shadow img { filter: drop-shadow(6px 8px 6px rgba(0,0,0,.35)); }
.misuse.busy { background: repeating-linear-gradient(45deg, var(--df-red) 0 8px, var(--df-ink) 8px 16px); }
.misuse.retype span { font-family: Georgia, serif; font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; color: var(--df-grey); }
.misuse-cap { margin-top: 10px; font-size: 13.5px; color: var(--df-text-2); }

/* ---------- 04 Kleur ---------- */

.swatch {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--df-line);
  background: var(--df-white);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color .25s;
}
.swatch:hover { border-color: var(--df-ink); }
.swatch-fill {
  position: relative;
  height: 112px;
  border-bottom: 1px solid var(--df-line);
}
.swatch.is-large .swatch-fill { height: 168px; }
.copy-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 28, 32, .82);
  color: #fff;
  font-size: 11.5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.swatch:hover .copy-hint, .swatch:focus-visible .copy-hint { opacity: 1; transform: none; }
.swatch-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.sw-name { font-size: 15px; font-weight: 500; }
.sw-hex { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; color: var(--df-text-2); }
.sw-token { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; color: var(--df-text-3); }
.sw-role { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--df-text-2); }

.ratio-bar { display: flex; height: 72px; border: 1px solid var(--df-line); }
.ratio-bar span { display: flex; align-items: flex-end; padding: 8px 10px; font-size: 12px; }
.ratio-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 13px; color: var(--df-text-2); }

.contrast { display: grid; gap: 0; border: 1px solid var(--df-line); background: var(--df-white); }
.contrast-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--df-line);
  font-size: 14px;
}
.contrast-row:first-child { border-top: 0; }
.contrast-sample { display: grid; place-items: center; height: 40px; font-size: 18px; font-weight: 500; border: 1px solid var(--df-line); }
.contrast-row .use { color: var(--df-text-2); font-size: 13px; }
.contrast-row .ratio { font-variant-numeric: tabular-nums; font-weight: 500; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.badge.aaa { background: var(--df-ink); color: #fff; }
.badge.aa { background: var(--df-white); color: var(--df-ink); box-shadow: inset 0 0 0 1px var(--df-ink); }
.badge.limited { color: var(--df-red); box-shadow: inset 0 0 0 1px var(--df-red); }
.badge.deco { color: var(--df-text-2); box-shadow: inset 0 0 0 1px var(--df-line); }
@media (max-width: 640px) {
  .contrast-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .contrast-row .badge { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- 05 Typografie ---------- */

.specimen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); }
@media (max-width: 860px) { .specimen { grid-template-columns: 1fr; } }
.specimen-main { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 340px; }
.specimen-aa { font-size: clamp(120px, 16vw, 220px); line-height: .8; font-weight: 300; letter-spacing: -.05em; }
.specimen-aa strong { font-weight: 500; }
.specimen-chars { font-size: clamp(18px, 2vw, 24px); font-weight: 300; line-height: 1.5; letter-spacing: .02em; color: var(--df-text-2); word-break: break-all; }
.weights { display: grid; gap: 0; }
.weight { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--df-line); }
.weight:first-child { border-top: 0; padding-top: 0; }
.weight .w-sample { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
.weight .w-meta { font-size: 13px; color: var(--df-text-2); white-space: nowrap; }

.type-scale { border-top: 1px solid var(--df-line); }
.ts-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px 40px;
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--df-line);
}
.ts-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--df-text-2); }
.ts-meta b { font-weight: 500; font-size: 14px; color: var(--df-ink); }
.ts-meta .tag { align-self: flex-start; margin-top: 4px; }
.ts-sample { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .ts-row { grid-template-columns: 1fr; } }

.wordmark-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.wordmark-card img { width: clamp(140px, 18vw, 220px); }
@media (max-width: 640px) { .wordmark-card { grid-template-columns: 1fr; } }

/* ---------- 06 Ruimte & vorm ---------- */

.layout-demo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--df-paper);
  border: 1px solid var(--df-line);
  container-type: inline-size;
}
.layout-demo .ld-net { position: absolute; right: -18cqi; top: calc(-8cqi - 4cqi); width: 78cqi; opacity: .9; }
.layout-demo .ld-gutter { position: absolute; top: 0; bottom: 0; width: 5.6cqi; background: repeating-linear-gradient(-45deg, var(--df-wave-red) 0 1px, transparent 1px 6px); }
.layout-demo .ld-gutter.l { left: 0; }
.layout-demo .ld-gutter.r { right: 0; }
.layout-demo .ld-logo { position: absolute; left: 5.6cqi; top: 3.6cqi; width: 13cqi; }
.layout-demo .ld-main { position: absolute; left: 5.6cqi; bottom: 5cqi; width: 46cqi; display: flex; flex-direction: column; gap: 1.6cqi; }
.layout-demo .ld-main i { display: block; height: 1.2cqi; background: var(--df-line); }
.layout-demo .ld-main i.h { height: 3.4cqi; background: var(--df-ink); width: 80%; }
.layout-demo .ld-main i.h2 { height: 3.4cqi; background: var(--df-ink); width: 55%; }
.layout-demo .ld-main i.dot { width: 1cqi; height: 1cqi; border-radius: 50%; background: var(--df-red); }
.layout-demo .ld-main i.btn { width: 15cqi; height: 3.6cqi; border-radius: 999px; background: var(--df-ink); margin-top: .6cqi; }
.layout-demo .ld-note { position: absolute; font-size: max(10px, 1.5cqi); color: var(--df-red); }

.measure-list { margin: 0; padding: 0; list-style: none; }
.measure-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--df-line); font-size: 14px; }
.measure-list li:first-child { border-top: 0; padding-top: 0; }
.measure-list span { color: var(--df-text-2); }
.measure-list code { white-space: nowrap; }

.space-scale { display: grid; gap: 8px; }
.space-row { display: grid; grid-template-columns: 48px 160px minmax(0, 1fr); align-items: center; gap: 16px; font-size: 13px; }
.space-row .bar { height: 14px; background: var(--df-ink); }
.space-row.is-design .bar { background: var(--df-red); }
.space-row .val { font-variant-numeric: tabular-nums; font-weight: 500; }
.space-row .use { color: var(--df-text-2); }
@media (max-width: 640px) { .space-row { grid-template-columns: 48px minmax(0, 1fr); } .space-row .use { display: none; } }

.shape-demo { display: grid; place-items: center; height: 120px; margin-bottom: 14px; background: var(--df-paper); border: 1px solid var(--df-line); }
.section.is-white .shape-demo { background: var(--df-paper); }
.shape-demo .pill { padding: 13px 22px; border-radius: 999px; background: var(--df-ink); color: #fff; font-size: 14px; font-weight: 500; }
.shape-demo .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--df-red); }
.shape-demo .block { width: 92px; height: 60px; background: var(--df-white); border: 1px solid var(--df-line); }
.shape-demo .hair { width: 70%; height: 1px; background: var(--df-line); box-shadow: 0 -14px 0 var(--df-line), 0 14px 0 var(--df-line); }
.shape-demo .noshadow { width: 92px; height: 60px; background: var(--df-white); box-shadow: 0 12px 24px rgba(0,0,0,.18); position: relative; }
.shape-demo .noshadow::after { content: ''; position: absolute; inset: -8px; background: linear-gradient(to top right, transparent calc(50% - .75px), var(--df-red) calc(50% - .75px), var(--df-red) calc(50% + .75px), transparent calc(50% + .75px)); }
.shape-name { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 500; }
.shape-name code { font-weight: 400; }
.shape-use { margin-top: 4px; font-size: 13.5px; color: var(--df-text-2); }

/* ---------- 07 Netwerk ---------- */

.net-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 900px) { .net-layout { grid-template-columns: 1fr; } }

.stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--df-paper);
  border: 1px solid var(--df-line);
}
.section.is-white .stage { background: var(--df-paper); }
.stage .network { inset: 8%; width: auto; right: 8%; top: 8%; }
.stage .wave { width: 190%; }
.stage-tools { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.stage-tools > * { pointer-events: auto; }
.stage-caption { font-size: 12.5px; color: var(--df-text-2); background: rgba(252,251,249,.9); padding: 4px 8px; }

.stage[data-focus] .net g { opacity: .1; }
.stage[data-focus="kern"] .net .p-kern,
.stage[data-focus="prim"] .net .p-prim,
.stage[data-focus="prim"] .net .p-kern,
.stage[data-focus="tak"] .net .p-tak,
.stage[data-focus="sat"] .net .p-sat { opacity: 1; }
.stage[data-focus="golf"] .net g { opacity: .1; }
.stage[data-focus]:not([data-focus="golf"]) .wave { visibility: hidden; }
.stage[data-focus="golf"] .wave { border-width: 2px; }

html.js .stage .net:not(.play) line,
html.js .stage .net:not(.play) circle { animation-play-state: paused; }

.parts { border-top: 1px solid var(--df-line); }
.part { border-bottom: 1px solid var(--df-line); }
.part-btn {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--df-ink);
  cursor: pointer;
}
.part-btn .ico { width: 28px; height: 28px; }
.part-btn .nm { font-size: 17px; font-weight: 500; }
.part-btn .nm small { display: block; font-size: 13px; font-weight: 400; color: var(--df-text-2); }
.part-btn .pm { position: relative; width: 14px; height: 14px; }
.part-btn .pm::before, .part-btn .pm::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--df-ease-up); }
.part-btn .pm::after { transform: rotate(90deg); }
.part-btn[aria-expanded="true"] .pm::after { transform: rotate(0); }
.part-btn:hover .nm { color: var(--df-red); }
.part-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--df-ease-up); }
.part-panel > div { overflow: hidden; }
.part.is-open .part-panel { grid-template-rows: 1fr; }
.part-panel p { padding: 0 0 8px 40px; font-size: 15px; line-height: 1.65; color: var(--df-text-2); }
.part-panel ul { margin: 0; padding: 0 0 20px 40px; list-style: none; }
.part-panel li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px dashed var(--df-line); font-size: 13.5px; }
.part-panel li span { color: var(--df-text-2); }

/* ---------- 08 Beweging ---------- */

.ease-card { display: flex; flex-direction: column; gap: 10px; }
.ease-curve { width: 100%; height: auto; aspect-ratio: 1.4; background: var(--df-paper); border: 1px solid var(--df-line); overflow: visible; }
.section.is-white .ease-curve { background: var(--df-paper); }
.ease-curve .grid-l { stroke: var(--df-line); stroke-width: 1; }
.ease-curve .curve { fill: none; stroke: var(--df-ink); stroke-width: 2; }
.ease-track { position: relative; height: 22px; border-bottom: 1px solid var(--df-line); }
.ease-track i { position: absolute; left: 0; bottom: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--df-red); transition: left 1s var(--e); }
.ease-card:hover .ease-track i, .ease-card:focus-within .ease-track i, .ease-card.is-playing .ease-track i { left: calc(100% - 11px); }
.ease-name { font-size: 15px; font-weight: 500; }
.ease-use { font-size: 13.5px; color: var(--df-text-2); }

.timeline { border-top: 1px solid var(--df-line); }
.tl-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--df-line); font-size: 13.5px; }
.tl-row .tl-name b { display: block; font-weight: 500; }
.tl-row .tl-name span { color: var(--df-text-2); font-size: 12.5px; }
.tl-track { position: relative; height: 22px; background: repeating-linear-gradient(to right, var(--df-line) 0 1px, transparent 1px calc(100% / 5)); }
.tl-bar { position: absolute; top: 4px; height: 14px; left: calc(var(--s) / 5 * 100%); width: calc(var(--l) / 5 * 100%); background: var(--df-ink); border-radius: 999px; transform-origin: left; }
.tl-bar.red { background: var(--df-red); }
.tl-bar.soft { background: var(--df-node); }
.timeline.is-playing .tl-bar { animation: tlGrow calc(var(--l) * 1s) calc(var(--s) * 1s) var(--df-ease-up) both; }
.tl-axis { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding-top: 8px; font-size: 12px; color: var(--df-text-3); }
.tl-axis div { display: flex; justify-content: space-between; }
@media (max-width: 640px) { .tl-row, .tl-axis { grid-template-columns: 110px minmax(0, 1fr); } }
@keyframes tlGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.loop-demo { display: grid; place-items: center; height: 120px; margin-bottom: 14px; background: var(--df-paper); border: 1px solid var(--df-line); overflow: hidden; position: relative; }
.loop-demo .ld-drift { width: 44px; height: 44px; border-radius: 50%; background: var(--df-red); animation: dfDrift 14s ease-in-out infinite; animation-duration: 3s; }
.loop-demo .ld-pulse { display: flex; gap: 14px; }
.loop-demo .ld-pulse i { width: 10px; height: 10px; border-radius: 50%; background: var(--df-node); animation: dfPulse 3s ease-in-out infinite; }
.loop-demo .ld-pulse i:nth-child(2) { animation-duration: 4.4s; animation-delay: .6s; }
.loop-demo .ld-pulse i:nth-child(3) { animation-duration: 5.8s; animation-delay: 1.2s; background: var(--df-red); }
.loop-demo .ld-pulse i:nth-child(4) { animation-duration: 7s; animation-delay: .3s; }
.loop-demo .wave { width: 240px; animation-duration: 4s; }
.loop-demo .wave:nth-child(1) { --d: 0s; }
.loop-demo .wave:nth-child(2) { --d: 1.33s; }
.loop-demo .wave:nth-child(3) { --d: 2.66s; }

/* ---------- 09 Componenten ---------- */

.comp { display: flex; flex-direction: column; gap: 16px; }
.comp-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; min-height: 120px; padding: 24px; background: var(--df-paper); border: 1px solid var(--df-line); }
.section.is-white .comp-stage { background: var(--df-paper); }
.comp-stage.is-states { gap: 16px 18px; align-items: flex-start; }
.comp-stage.is-states figure { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.comp-stage.is-states figcaption { font-size: 12px; color: var(--df-text-2); }
.comp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.comp-head .h3 { font-size: 17px; }
.comp-spec { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--df-text-2); }
.comp-spec li { padding: 6px 0; border-top: 1px dashed var(--df-line); }
.comp-spec code { font-size: 12px; }

/* ---------- 10 Toepassingen ---------- */

.app-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.mock {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--df-paper);
  border: 1px solid var(--df-line);
  container-type: inline-size;
  transition: border-color .3s;
}
.app-card:hover .mock { border-color: var(--df-ink); }
.mock .m-net { position: absolute; right: -18cqi; top: calc(-8cqi - 5cqi); width: 78cqi; }
.mock .m-logo { position: absolute; left: 5.6cqi; top: 3.6cqi; width: 13cqi; }
.mock .m-domain { position: absolute; right: 5.6cqi; top: 4.2cqi; font-size: 1.4cqi; color: var(--df-text-3); }
.mock .m-main { position: absolute; left: 5.6cqi; bottom: 5cqi; max-width: 52cqi; display: flex; flex-direction: column; gap: 1.8cqi; }
.mock .m-label { display: flex; align-items: center; gap: .9cqi; font-size: 1.3cqi; color: var(--df-text-3); }
.mock .m-label::before { content: ''; width: .6cqi; height: .6cqi; border-radius: 50%; background: var(--df-red); }
.mock .m-h1 { font-weight: 300; font-size: 5.3cqi; line-height: 1.04; letter-spacing: -.03em; max-width: 12.5ch; }
.mock .m-h1 strong { font-weight: 500; }
.mock .m-p { font-size: 1.5cqi; line-height: 1.7; color: var(--df-text-2); max-width: 38ch; }
.mock .m-cta { display: flex; align-items: center; gap: 2cqi; }
.mock .m-btn { padding: 1.2cqi 2cqi; border-radius: 999px; background: var(--df-ink); color: #fff; font-size: 1.3cqi; font-weight: 500; }
.mock .m-btn.is-secondary { background: #fff; color: var(--df-ink); box-shadow: inset 0 0 0 1px var(--df-line); }
.mock .m-mail { font-size: 1.3cqi; color: var(--df-text-2); border-bottom: 1px solid var(--df-line); }
.app-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.app-meta .h3 { font-size: 17px; }
.app-meta span { font-size: 13px; color: var(--df-text-2); }
.app-desc { font-size: 14.5px; color: var(--df-text-2); line-height: 1.6; }

.files { border-top: 1px solid var(--df-line); }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--df-line); }
.file-row b { font-weight: 500; font-size: 15px; }
.file-row span { display: block; font-size: 13.5px; color: var(--df-text-2); }

.open-list { margin: 0; padding: 0; list-style: none; counter-reset: o; }
.open-list li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--df-line); font-size: 15px; line-height: 1.6; color: var(--df-text-2); counter-increment: o; }
.open-list li::before { content: counter(o, decimal-leading-zero); font-size: 13px; color: var(--df-red); padding-top: 2px; }
.open-list strong { color: var(--df-ink); }

/* ---------- Footer ---------- */

.footer-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 14vw, 200px) clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--df-line);
}
.footer-cta .network { top: calc(-6vw - 40px); right: max(-16vw, -220px); width: max(58vw, 520px); }
@media (max-width: 760px) { .footer-cta .network { display: none; } }
.footer-cta .wrap { position: relative; display: flex; flex-direction: column; gap: clamp(16px, 2.2vw, 24px); }
.footer-cta .display { max-width: 12ch; }
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(64px, 10vw, 140px);
  padding-top: 20px;
  border-top: 1px solid var(--df-line);
  background: var(--df-paper);
  font-size: 13px;
  color: var(--df-text-3);
}
.footer-bottom img { width: 112px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 400;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--df-ink);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .3s var(--df-ease-up), transform .3s var(--df-ease-up);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll-reveal ---------- */

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--df-ease-up), transform .9s var(--df-ease-up); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */

@keyframes dfDraw  { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dfPop   { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dfPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dfWave {
  0%   { transform: translate(-50%, -50%) scale(.08); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@keyframes dfUp    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dfFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes dfDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, 6px); } }

/* ---------- Reduced motion: alles direct in eindstaat ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .wave { display: none; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print / PDF ---------- */

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .topnav, .skip, .toast, .dropdown, .tile-actions, .stage-tools, .no-print, .wave { display: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  body { zoom: .8; }
  .hero { min-height: 0; height: 320mm; }
  .hero .cta-group { display: none; }
  .section { break-before: page; padding-block: 0 24px; border-top: 0; }
  .section.is-white { background: #fff; }
  .card, .swatch, .comp-stage, .contrast-row, .ts-row, .part, .logo-tile, .principle { break-inside: avoid; }
  .part-panel { grid-template-rows: 1fr !important; }
  .stage[data-focus] .net g { opacity: 1 !important; }
  .footer-cta { break-before: page; }
  a[href^="http"]::after { content: ''; }
}
