/* ═══════════════════════════════════════════════════════════════
   VIJF — design system
   Display: Bricolage Grotesque (variabel: wght, wdth, opsz)
   Accent:  Instrument Serif (italic)
   Lezen:   Newsreader
   Labels:  JetBrains Mono
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #f3eee3;
  --paper-2: #e9e2d3;
  --ink: #0e0d0c;
  --muted: #6b655c;
  --line: rgba(14, 13, 12, 0.14);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --read: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* standaardthema (overschreven door data-theme) */
  --bg: var(--paper);
  --fg: var(--ink);
  --soft: var(--paper-2);
  --accent: #ff4b2b;
}

[data-theme="tomaat"]  { --bg: #ff4b2b; --fg: #170905; --soft: #ffe1d8; --accent: #ff4b2b; }
[data-theme="citroen"] { --bg: #f2e205; --fg: #141300; --soft: #fbf6b8; --accent: #c9b800; }
[data-theme="kobalt"]  { --bg: #2335f5; --fg: #f3eee3; --soft: #dfe2ff; --accent: #2335f5; }
[data-theme="munt"]    { --bg: #2be3a0; --fg: #03140e; --soft: #d3f9ea; --accent: #0fae74; }
[data-theme="roze"]    { --bg: #ff8cc8; --fg: #1d0713; --soft: #ffe2f1; --accent: #f0459c; }
[data-theme="violet"]  { --bg: #6c4cf6; --fg: #f3eee3; --soft: #e6e0ff; --accent: #6c4cf6; }
[data-theme="oranje"]  { --bg: #ff8a00; --fg: #1a0d00; --soft: #ffe8c7; --accent: #f07800; }
[data-theme="ijs"]     { --bg: #a9ddf7; --fg: #06141b; --soft: #e1f4fd; --accent: #1d8fc9; }
[data-theme="ink"]     { --bg: #0e0d0c; --fg: #f3eee3; --soft: #1d1b19; --accent: #f2e205; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.45s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 0.7s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4vh) scale(0.98); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--read);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[data-theme] { background: var(--paper); color: var(--ink); }

/* subtiele papierkorrel */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--paper); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; }
.serif { font-family: var(--serif); font-weight: 400; }
em.serif, .serif em { font-style: italic; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ───────────── header ───────────── */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: var(--header-fg, var(--ink));
}
.ready .site-header { transition: color 0.35s; }
.logo { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; font-variation-settings: "wdth" 80; }
.logo sup { font-size: 0.4em; font-weight: 500; margin-left: 2px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 36px); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.clock { justify-self: end; }

.demo-banner { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 85; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 99px; font-size: 10px; width: max-content; max-width: calc(100% - 32px); text-align: center; }

.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 81; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.page-home .progress { display: none; }

/* ───────────── cursor ───────────── */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0) scale(var(--s, 1));
  transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background 0.3s;
  opacity: 0;
}
.has-cursor .cursor { opacity: 1; }
.cursor-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0; transition: opacity 0.3s; }
.cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cursor.is-big .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ───────────── reveal-animaties ───────────── */

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.is-in .wi { transform: none; }

.c { display: inline-block; transform: translateY(110%) rotate(8deg); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 70ms + 0.1s); }
[data-split-chars] { overflow: clip; padding: 0.14em 0 0.22em; margin: -0.14em 0 -0.22em; }
.is-in .c { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

.no-js [data-reveal], .no-js .wi, .no-js .c { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .wi, .c { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mq-track { animation: none !important; }
}

/* ───────────── home: hero ───────────── */

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gutter) 60px;
  overflow: hidden;
}
.hero-date { margin: 0 0 1vw; }
.hero-word {
  margin: 0; line-height: 0.78;
  font-family: var(--display); font-weight: 800;
  /* schaalt mee met de lengte van de naam, zodat die altijd over de volle breedte past */
  font-size: min(calc(92vw / (var(--len, 4) * 0.4)), 56svh);
  letter-spacing: 0.005em; margin-left: -0.04em;
  font-variation-settings: "wdth" 75, "opsz" 96;
  padding-bottom: 0.06em;
}
.hero-word .c { transition-property: transform, font-variation-settings; }
.hero-line { font-size: clamp(28px, 4.4vw, 72px); line-height: 1; margin: 2vw 0 0; max-width: 14em; font-style: italic; }

.orbs { position: absolute; right: var(--gutter); bottom: 64px; display: grid; grid-template-columns: repeat(5, auto); gap: 10px; }
.orb {
  --size: clamp(52px, 5vw, 84px);
  width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--bg); color: var(--fg);
  display: grid; place-items: center; text-align: center; position: relative;
  transform: none;
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--n) * -1.1s);
  transition: transform 0.7s var(--ease), border-radius 0.7s var(--ease);
}
.orb .mono { position: absolute; top: 22%; font-size: 10px; }
.orb-word { font-family: var(--serif); font-style: italic; font-size: clamp(12px, 1.2vw, 18px); line-height: 1; padding: 0 8px; margin-top: 14%; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@keyframes bob { 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ───────────── marquee ───────────── */

.marquee { background: var(--bg); color: var(--fg); overflow: hidden; padding: 22px 0; border-block: 1px solid var(--ink); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-row { display: flex; align-items: center; flex-shrink: 0; }
.mq-item { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 60px); letter-spacing: -0.03em; white-space: nowrap; padding: 0 0.4em; text-transform: lowercase; }
.mq-item b { font-size: 12px; vertical-align: super; color: var(--accent); margin-left: 4px; font-weight: 600; }
.mq-star { font-size: clamp(20px, 2.6vw, 40px); color: var(--accent); }

/* ───────────── home: vandaag ───────────── */

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--gutter); margin: 0 0 4vw; flex-wrap: wrap; }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8vw, 150px); line-height: 0.92; letter-spacing: -0.04em; margin: 0; font-variation-settings: "wdth" 85; }
.section-title em { font-weight: 400; letter-spacing: -0.02em; }
.link { border-bottom: 1px solid; padding-bottom: 2px; }

.today { padding: 12vw 0 6vw; }

.lead {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6vw;
  margin: 0 var(--gutter); padding: clamp(20px, 3vw, 48px);
  min-height: 88svh; border-radius: clamp(16px, 2vw, 32px);
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: border-radius 0.8s var(--ease);
}
.lead-bg {
  position: absolute; z-index: -1; left: -2%; bottom: -14%;
  font-family: var(--serif); font-style: italic; font-size: clamp(160px, 30vw, 560px); line-height: 1;
  white-space: nowrap; opacity: 0.16; pointer-events: none;
}
.lead-top { display: flex; justify-content: space-between; gap: 16px; }
.lead-title {
  font-family: var(--display); font-weight: 700; display: block;
  font-size: clamp(40px, 7.4vw, 140px); line-height: 0.92; letter-spacing: -0.035em;
  max-width: 13em; font-variation-settings: "wdth" 85;
  transition: font-variation-settings 0.9s var(--ease);
}
.lead-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.lead-dek { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.1; max-width: 22em; }
.lead-cta { border: 1px solid; border-radius: 99px; padding: 12px 18px; white-space: nowrap; }

.rows { margin-top: 3vw; border-top: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(70px, 0.12fr) 1fr auto 60px; gap: 2vw; align-items: center;
  padding: clamp(24px, 3vw, 48px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.row-fill { position: absolute; inset: 0; z-index: -1; background: var(--bg); clip-path: inset(100% 0 0 0); transition: clip-path 0.8s var(--ease); }
.row-num { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 120px); line-height: 0.8; letter-spacing: -0.06em; color: currentColor; opacity: 0.18; transition: opacity 0.5s; }
.row-body { display: grid; gap: 8px; }
.row-title { font-family: var(--display); font-weight: 650; font-size: clamp(26px, 3.6vw, 60px); line-height: 0.98; letter-spacing: -0.04em; font-variation-settings: "wdth" 85; transition: transform 0.8s var(--ease), font-variation-settings 0.8s var(--ease); }
.row-dek { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.15; max-width: 34em; opacity: 0.75; }
.row-meta { display: grid; gap: 4px; text-align: right; opacity: 0.8; }
.row-arrow { font-family: var(--display); font-size: 44px; transform: translateX(-20px) rotate(-45deg); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.4s; }

/* ───────────── statement ───────────── */

.statement { padding: 14vw var(--gutter); display: grid; justify-items: start; gap: 4vw; }
.statement-text { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5.6vw, 104px); line-height: 1; letter-spacing: -0.045em; margin: 0; max-width: 15em; font-variation-settings: "wdth" 88; }
.statement-text em { font-weight: 400; letter-spacing: -0.02em; color: var(--accent); }
.statement-text .sw { opacity: 0.12; transition: opacity 0.25s linear; }
.statement-text .sw.on { opacity: 1; }
.pill { display: inline-block; border: 1px solid; border-radius: 99px; padding: 16px 24px; transition: background 0.4s, color 0.4s; }

/* ───────────── archief ───────────── */

.archive-preview, .archive { padding: 4vw 0 10vw; }
.arch-day { display: grid; grid-template-columns: minmax(200px, 0.4fr) 1fr; gap: 2vw; padding: 3vw var(--gutter); border-top: 1px solid var(--line); }
.arch-date { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 8vw, 140px); line-height: 0.8; letter-spacing: -0.06em; display: grid; gap: 10px; }
.arch-date small { font-size: 22px; letter-spacing: 0; font-weight: 400; font-style: italic; }
.arch-day ul { list-style: none; margin: 0; padding: 0; }
.arch-day li a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 550; font-size: clamp(20px, 2.1vw, 34px); letter-spacing: -0.03em; line-height: 1.1; transition: padding 0.6s var(--ease), color 0.3s; }
.arch-title { flex: 1; }
.arch-meta { white-space: nowrap; opacity: 0.6; }
.dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--bg); flex-shrink: 0; transform: translateY(-0.05em); transition: transform 0.5s var(--ease); }

/* ───────────── pagina-hero (archief, over, 404) ───────────── */

.page-hero { padding: 22vh var(--gutter) 6vw; }
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 15vw, 300px); line-height: 0.86; letter-spacing: -0.045em; margin: 16px 0 0 -0.04em; font-variation-settings: "wdth" 78; }
.nf { min-height: 90svh; }

.steps { display: grid; gap: 0; padding: 0 var(--gutter); }
.step { display: grid; grid-template-columns: minmax(80px, 0.2fr) 0.8fr 1fr; gap: 3vw; align-items: start; padding: 4vw clamp(20px, 3vw, 48px); background: var(--bg); color: var(--fg); border-radius: 24px; margin-bottom: 12px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 120px); line-height: 0.8; letter-spacing: -0.06em; }
.step-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.4vw, 76px); letter-spacing: -0.045em; line-height: 0.95; }
.step p { margin: 0; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; }

/* ───────────── artikel ───────────── */

.a-hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; gap: 4vw;
  padding: 84px var(--gutter) 28px;
  background: var(--bg); color: var(--fg);
}
.a-hero-word {
  position: absolute; z-index: -1; right: -4vw; top: 6vh;
  font-family: var(--serif); font-style: italic; line-height: 0.8;
  font-size: clamp(180px, 42vw, 820px); white-space: nowrap;
  color: currentColor; opacity: 0.14;
  pointer-events: none;
}
.a-hero-top, .a-hero-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.a-hero-bottom { border-top: 1px solid currentColor; padding-top: 14px; }
.a-hero-main { align-self: end; }
.a-kicker { margin: 0 0 2vw; }
.a-title { margin: 0; font-family: var(--display); font-weight: 750; font-size: clamp(44px, 8vw, 160px); line-height: 0.92; letter-spacing: -0.035em; max-width: 12.5em; font-variation-settings: "wdth" 80; text-wrap: balance; }
.a-dek { margin: 3vw 0 0; font-size: clamp(24px, 3vw, 48px); line-height: 1.05; max-width: 22em; text-wrap: pretty; }

.a-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); gap: 4vw; padding: 8vw var(--gutter) 6vw; }
.a-side { grid-column: 1; }
.a-side-inner { position: sticky; top: 100px; display: grid; gap: 18px; max-width: 300px; }
.a-side h2 { margin: 0; }
.a-takeaways { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: k; }
.a-takeaways li { counter-increment: k; font-family: var(--serif); font-size: 21px; line-height: 1.15; padding-top: 12px; border-top: 1px solid var(--line); }
.a-takeaways li::before { content: "0" counter(k); display: block; font-family: var(--mono); font-size: 11px; margin-bottom: 4px; color: var(--muted); }
.a-share button { all: unset; cursor: pointer; border: 1px solid; border-radius: 99px; padding: 10px 16px; transition: background 0.3s, color 0.3s; }

.a-body { grid-column: 2; font-size: clamp(19px, 1.35vw, 22px); line-height: 1.62; }
.a-body p { margin: 0 0 1.25em; text-wrap: pretty; }
.a-body a { background: linear-gradient(var(--bg), var(--bg)) 0 100% / 100% 0.32em no-repeat; transition: background-size 0.4s var(--ease); }
.a-body strong { font-weight: 650; }

.a-first { font-size: 1.22em; line-height: 1.5; }
.a-first::first-letter {
  float: left; font-family: var(--display); font-weight: 800;
  font-size: 5.4em; line-height: 0.78; margin: 0.06em 0.1em 0 -0.04em;
  color: var(--accent); letter-spacing: -0.02em;
}

.a-h { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.6vw, 56px); line-height: 0.98; letter-spacing: -0.045em; margin: 2em 0 0.7em; font-variation-settings: "wdth" 85; text-wrap: balance; }
.a-h-num { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }

.a-quote {
  margin: 2.2em calc(50% - 50vw + var(--gutter)); padding: clamp(40px, 7vw, 120px) clamp(20px, 6vw, 120px);
  background: var(--bg); color: var(--fg); border-radius: clamp(20px, 3vw, 48px);
  position: relative; overflow: hidden;
}
.a-quote::before { content: "“"; position: absolute; top: -0.3em; left: 0.05em; font-family: var(--serif); font-size: clamp(200px, 30vw, 480px); line-height: 1; opacity: 0.2; }
.a-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 5.4vw, 96px); line-height: 1; letter-spacing: -0.02em; position: relative; text-wrap: balance; }
.a-quote figcaption { margin-top: 2.4em; position: relative; }

.a-stat { margin: 2em 0; padding: 1em 0; border-block: 1px solid var(--ink); display: grid; gap: 10px; }
.a-stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 12vw, 200px); line-height: 0.85; letter-spacing: -0.06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.a-stat figcaption { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; max-width: 20em; }

.a-list { list-style: none; padding: 0; margin: 1.6em 0; counter-reset: li; }
.a-list li { counter-increment: li; position: relative; padding: 14px 0 14px 64px; border-top: 1px solid var(--line); }
.a-list li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }

.a-timeline { margin: 2.4em 0; }
.a-timeline figcaption { margin-bottom: 18px; }
.a-timeline ol { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--bg); display: grid; gap: 22px; }
.a-timeline li { position: relative; display: grid; gap: 4px; line-height: 1.45; }
.a-timeline li::before { content: ""; position: absolute; left: -37px; top: 0.35em; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px var(--paper); }
.a-tl-when { font-family: var(--display); font-weight: 750; font-size: 1.15em; letter-spacing: -0.02em; line-height: 1.1; }
.a-callout { margin: 2em 0; padding: 28px 30px; background: var(--soft); border-radius: 20px; border-left: 8px solid var(--bg); }
.a-callout h3 { margin: 0 0 10px; }
.a-callout p { margin: 0; }

.a-faq { margin-top: 3em; }
.a-faq details { border-top: 1px solid var(--line); }
.a-faq details:last-child { border-bottom: 1px solid var(--line); }
.a-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; line-height: 1.15; }
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary span { font-size: 32px; line-height: 0.7; transition: transform 0.5s var(--ease); }
.a-faq details[open] summary span { transform: rotate(45deg); }
.a-faq details p { margin: 0 0 22px; }

.a-sources { margin-top: 4em; padding-top: 2em; border-top: 2px solid var(--ink); }
.a-sources ol { padding: 0; list-style: none; margin: 16px 0; display: grid; gap: 2px; }
.a-sources li a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.3; background: none; }
.a-sources li a .mono { color: var(--muted); white-space: nowrap; font-size: 10px; padding-top: 4px; }
.a-byline { color: var(--muted); }
.a-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.a-tags span { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }

.next {
  display: grid; align-content: space-between; gap: 6vw;
  min-height: 80svh; padding: clamp(28px, 5vw, 80px) var(--gutter);
  background: var(--bg); color: var(--fg); position: relative; overflow: hidden;
}
.next-title { font-family: var(--display); font-weight: 750; font-size: clamp(44px, 8vw, 150px); line-height: 0.92; letter-spacing: -0.035em; max-width: 12em; font-variation-settings: "wdth" 80; transition: font-variation-settings 0.9s var(--ease), transform 0.9s var(--ease); }
.next-arrow { position: absolute; right: var(--gutter); top: clamp(20px, 3vw, 60px); font-family: var(--display); font-size: clamp(80px, 14vw, 260px); line-height: 1; transition: transform 0.9s var(--ease); }

/* ───────────── colofon ───────────── */

.legal { padding: 0 var(--gutter) 10vw; display: grid; gap: 0; max-width: 980px; }
.legal-block { padding: 3vw 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, 0.35fr) 1fr; gap: 0 3vw; }
.legal-block p { grid-column: 2; margin: 0 0 1em; font-size: 19px; line-height: 1.6; }
.legal-h { grid-row: span 3; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1; }
.legal a { border-bottom: 1px solid; }
.legal mark { background: #f2e205; padding: 0 4px; }
@media (max-width: 760px) { .legal-block { grid-template-columns: 1fr; } .legal-block p { grid-column: 1; } .legal-h { margin-bottom: 14px; } }

/* ───────────── lees ook ───────────── */

.related { padding: 6vw var(--gutter) 8vw; border-top: 1px solid var(--line); }
.related-title { margin: 0 0 3vw; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 80px); letter-spacing: -0.04em; line-height: 0.95; }
.related-title em { font-weight: 400; color: var(--accent); }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-card { display: grid; align-content: space-between; gap: 40px; min-height: 260px; padding: 26px; border-radius: 22px; background: var(--bg); color: var(--fg); transition: border-radius 0.6s var(--ease); }
.related-card-title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: -0.03em; }
@media (hover: hover) and (pointer: fine) { .related-card:hover { border-radius: 60px; } }
@media (max-width: 760px) { .related-list { grid-template-columns: 1fr; } .related-card { min-height: 0; } }

/* ───────────── footer ───────────── */

.site-footer { background: var(--bg); color: var(--fg); padding: 8vw var(--gutter) 0; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: end; }
.footer-lede { font-size: clamp(30px, 4.4vw, 76px); line-height: 1; margin: 0; max-width: 12em; }
.footer-lede em { color: var(--accent); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-note { opacity: 0.55; max-width: 60em; margin: 5vw 0 0; text-transform: none; font-size: 11px; }
.footer-word { font-family: var(--display); font-weight: 800; font-size: calc(98vw / (var(--len, 4) * 0.4)); line-height: 0.74; letter-spacing: -0.04em; margin: 4vw 0 -0.08em -0.04em; font-variation-settings: "wdth" 75; white-space: nowrap; overflow: hidden; }


/* ───────────── hover-effecten: alleen met muis of trackpad, nooit op touchscreens ───────────── */

@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .hero-word .c:hover { font-variation-settings: "wdth" 100; transition-duration: 0.6s; transition-delay: 0s; }
  .orb:hover { transform: scale(1.15); border-radius: 30%; }
  .lead:hover { border-radius: clamp(40px, 8vw, 140px); }
  .lead:hover .lead-title { font-variation-settings: "wdth" 100; }
  .row:hover .row-fill, .row:focus-visible .row-fill { clip-path: inset(0 0 0 0); }
  .row:hover { color: var(--fg); }
  .row:hover .row-num { opacity: 1; }
  .row:hover .row-title { transform: translateX(1.2vw); font-variation-settings: "wdth" 100; }
  .row:hover .row-arrow { transform: none; opacity: 1; }
  .pill:hover { background: var(--ink); color: var(--paper); }
  .arch-day li a:hover { padding-left: 16px; }
  .arch-day li a:hover .dot { transform: scale(1.6); }
  .a-share button:hover { background: var(--ink); color: var(--paper); }
  .a-body a:hover { background-size: 100% 100%; }
  .a-sources li a:hover { color: var(--accent); }
  .next:hover .next-title { font-variation-settings: "wdth" 100; transform: translateX(1vw); }
  .next:hover .next-arrow { transform: translateX(2vw); }
  .footer-links a:hover { color: var(--accent); }
}

/* ───────────── responsive ───────────── */

@media (hover: none), (pointer: coarse) {
  body::after { display: none; }           /* papierkorrel met blend-mode kost veel rekenkracht */
  .orb { animation: none; }
  .hero-word .c { transition-property: transform; }
  [data-speed] { transform: none !important; }
}

@media (max-width: 1100px) {
  .a-grid { grid-template-columns: minmax(0, 1fr); padding-top: 12vw; }
  .a-side, .a-body { grid-column: 1; }
  .a-side-inner { position: static; max-width: none; }
  .a-grid { max-width: 760px; margin: 0 auto; }
  .a-quote { margin-inline: calc(-1 * var(--gutter) / 2); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header { grid-template-columns: auto 1fr; }
  .nav { justify-self: end; gap: 14px; font-size: 11px; }
  .nav a[href$="#editie"], .nav a[href$="/over/"] { display: none; }
  .clock { display: none; }
  .hero { padding-bottom: 90px; }
  .hero-word { font-size: calc(94vw / (var(--len, 4) * 0.4)); }
  .orbs { position: static; grid-template-columns: repeat(5, auto); justify-content: start; transform: none; margin-top: 32px; gap: 8px; }
  .orb { transform: none; --size: 52px; }
  .orb-word { display: none; }
  .orb .mono { position: static; }
  .lead { min-height: 78svh; }
  .lead-top { flex-direction: column; gap: 4px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row-num { font-size: 44px; }
  .row-meta { text-align: left; grid-auto-flow: column; justify-content: start; gap: 14px; }
  .row-arrow { display: none; }
  .row-fill { clip-path: inset(0 0 0 calc(100% - 6px)); }
  .arch-day { grid-template-columns: 1fr; }
  .arch-meta { display: none; }
  .step { grid-template-columns: 1fr; }
  .a-hero-word { top: auto; bottom: 30vh; }
  .a-first::first-letter { font-size: 4.4em; }
  .a-sources li a { flex-direction: column; gap: 2px; }
}
