/* ==========================================================================
   Vibe Coding — presentatie
   Donker, arcade-meets-terminal. Eén accent per hoofdstuk.
   ========================================================================== */

:root {
  --bg: #07070b;
  --bg-2: #0e0e15;
  --panel: #13131c;
  --line: #24243a;
  --ink: #f3f1ea;
  --ink-2: #b9b6c9;
  --ink-3: #6f6c85;

  --lime: #c8ff3d;
  --pink: #ff3d8b;
  --cyan: #3de0ff;
  --amber: #ffb547;
  --violet: #9b7bff;

  --accent: var(--lime);

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pixel: "Press Start 2P", var(--mono);
  --serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #000; }

/* Grain overlay voor wat textuur */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 90;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05; animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }

/* --------------------------------------------------------------------------
   Slides
   -------------------------------------------------------------------------- */
.slide {
  position: relative;
  min-height: 100vh;
  padding: 12vh var(--gutter) 10vh;
  display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start;
  isolation: isolate;
}
.slide.center { align-items: center; text-align: center; }

.ch-1 { --accent: var(--cyan); }
.ch-2 { --accent: var(--lime); }
.ch-3 { --accent: var(--pink); }
.ch-4 { --accent: var(--amber); }
.ch-5 { --accent: var(--violet); }

.kicker {
  font-family: var(--mono); font-size: .78em; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; gap: .8em; align-items: center; margin-bottom: 1.4rem;
}
.kicker::before { content: ""; width: 2.4em; height: 1px; background: currentColor; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: .98; }
h2 { font-size: clamp(40px, 5.6vw, 104px); max-width: 16ch; }
h2.wide { max-width: 22ch; }
h3 { font-size: clamp(22px, 2vw, 36px); letter-spacing: -.01em; line-height: 1.1; }
.hl { color: var(--accent); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.lede { font-size: 1.25em; color: var(--ink-2); max-width: 46ch; margin-top: 1.6rem; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }

/* --------------------------------------------------------------------------
   Reveal-animaties (aangestuurd door IntersectionObserver)
   -------------------------------------------------------------------------- */
.r { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.r.from-left { transform: translateX(-60px); }
.r.from-right { transform: translateX(60px); }
.r.zoom { transform: scale(.88); }
.r.blur { filter: blur(14px); transform: none; }
.in .r, .r.in { opacity: 1; transform: none; filter: none; }

/* Woord-voor-woord onthulling */
.words .w { display: inline-block; opacity: .12; transition: opacity .5s, color .5s; }
.words .w.on { opacity: 1; }
.words .w.key.on { color: var(--accent); }

/* --------------------------------------------------------------------------
   HUD: hoofdstukbalk, voortgang, timer, hulp
   -------------------------------------------------------------------------- */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; gap: 6px; padding: 14px var(--gutter) 0; pointer-events: none;
  mix-blend-mode: normal;
}
.hud-top .chap {
  flex: var(--min) 1 0; position: relative; height: 22px; pointer-events: auto; cursor: pointer;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  border-top: 2px solid var(--line); padding-top: 6px; transition: color .3s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hud-top .chap .fill { position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--c); transition: width .2s linear; }
.hud-top .chap.active { color: var(--c); }
.hud-top .chap.over { --c: var(--pink) !important; }

.hud-bottom {
  position: fixed; right: var(--gutter); bottom: 18px; z-index: 50;
  display: flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.hud-bottom .timer { padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: rgba(7,7,11,.7); backdrop-filter: blur(6px); cursor: pointer; }
.hud-bottom .timer.running { color: var(--ink); border-color: var(--ink-3); }
.hud-bottom .timer.late { color: var(--pink); border-color: var(--pink); }
.hud-bottom kbd, .help kbd { font-family: var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }

.help {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(0,0,0,.8); backdrop-filter: blur(8px);
}
.help.open { display: grid; }
.help .box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px 40px; font-family: var(--mono); font-size: 14px; line-height: 2; }
.help h4 { font-family: var(--display); font-size: 24px; margin-bottom: 12px; }

/* Sprekersnotities */
.notes { display: none; }
.notes-panel {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 54px; z-index: 60;
  max-width: 900px; padding: 18px 22px; border-radius: 14px;
  background: rgba(19,19,28,.94); border: 1px solid var(--line); backdrop-filter: blur(10px);
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
}
.notes-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.notes-panel b { color: var(--ink); }
.notes-panel .t { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Titel
   -------------------------------------------------------------------------- */
#hero { min-height: 100vh; overflow: hidden; }
#hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
#hero .glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .35; }
#hero .glow.a { background: var(--pink); top: -30vmax; right: -20vmax; animation: drift 18s ease-in-out infinite alternate; }
#hero .glow.b { background: var(--cyan); bottom: -40vmax; left: -25vmax; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }
#hero h1 {
  font-size: clamp(72px, 15vw, 280px); line-height: .82; letter-spacing: -.055em;
}
#hero h1 .line { display: block; overflow: hidden; }
#hero h1 .line span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
#hero h1 .line:nth-child(2) span { animation-delay: .12s; }
#hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; color: var(--lime); }
@keyframes rise { to { transform: none; } }
#hero .sub { margin-top: 3vh; font-size: clamp(18px, 1.7vw, 30px); max-width: 34ch; color: var(--ink-2); opacity: 0; animation: fade 1s .7s forwards; }
#hero .meta { margin-top: 6vh; display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--ink-3); opacity: 0; animation: fade 1s 1s forwards; }
#hero .meta b { color: var(--ink); font-weight: 500; }
#hero .scroll-hint { position: absolute; bottom: 5vh; left: var(--gutter); font-family: var(--mono); font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; align-items: center; opacity: 0; animation: fade 1s 1.6s forwards; }
#hero .scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--ink-3), transparent); animation: hint 1.8s infinite; }
@keyframes hint { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@keyframes fade { to { opacity: 1; } }

.cursor-blink::after { content: "▍"; color: var(--lime); animation: blink 1s steps(1) infinite; margin-left: .05em; }
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Hoofdstuk-openers
   -------------------------------------------------------------------------- */
.opener { min-height: 100vh; overflow: hidden; }
.opener .num {
  position: absolute; right: calc(var(--gutter) - 2vw); bottom: -8vh; z-index: -1;
  font-family: var(--display); font-weight: 800; font-size: 46vw; line-height: .8; letter-spacing: -.08em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(calc(var(--p, 0) * -14vh));
}
.opener h2 { font-size: clamp(56px, 9vw, 170px); max-width: 12ch; }
.opener .time { font-family: var(--mono); color: var(--ink-3); margin-top: 2rem; font-size: .85em; }

/* --------------------------------------------------------------------------
   Quotes
   -------------------------------------------------------------------------- */
.bigquote { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.3vw, 80px); line-height: 1.06; letter-spacing: -.025em; max-width: 22ch; }
.bigquote .open { font-family: var(--serif); color: var(--accent); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: .05em; }
.cite { margin-top: 2.4rem; display: flex; gap: 16px; align-items: center; font-family: var(--mono); font-size: .8em; color: var(--ink-2); }
.cite .av { width: 48px; height: 48px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--accent); }
.cite b { color: var(--ink); font-weight: 600; display: block; font-family: var(--body); font-size: 1.15em; }

.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 4vh; }
.qcard { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px; position: relative; overflow: hidden; }
.qcard::before { content: "“"; position: absolute; right: 18px; top: -22px; font-family: var(--serif); font-size: 160px; color: var(--accent); opacity: .18; }
.qcard p { font-size: 1.1em; line-height: 1.4; }
.qcard .who { margin-top: 18px; font-family: var(--mono); font-size: .72em; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.qcard .who b { color: var(--accent); font-weight: 500; }

/* --------------------------------------------------------------------------
   Spectrum: van autocomplete naar orkestratie
   -------------------------------------------------------------------------- */
.spectrum { margin-top: 6vh; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.spectrum .rail { grid-column: 1 / -1; height: 10px; border-radius: 10px; margin-bottom: 26px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, #3a3a55 0%, var(--cyan) 55%, var(--pink) 100%); }
.spectrum .rail::after { content: ""; position: absolute; inset: 0; background: var(--bg-2); transform-origin: right; transform: scaleX(1); transition: transform 2.4s var(--ease) .3s; }
.in .spectrum .rail::after { transform: scaleX(0); }
.spectrum .step { padding: 0 22px 0 0; }
.spectrum .step .yr { font-family: var(--mono); font-size: .75em; color: var(--accent); }
.spectrum .step h3 { margin: 10px 0 10px; }
.spectrum .step p { color: var(--ink-2); font-size: .92em; }
.spectrum .step .who { margin-top: 14px; font-family: var(--mono); font-size: .7em; color: var(--ink-3); }
.spectrum .step .bar { margin-top: 8px; height: 6px; border-radius: 6px; background: #2a2a40; overflow: hidden; }
.spectrum .step .bar i { display: block; height: 100%; width: var(--ai); background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--d) * 110ms + 400ms); }
.in .spectrum .step .bar i { transform: none; }
.spectrum .tag { display: inline-block; margin-top: 12px; padding: 3px 9px; border-radius: 99px; font-family: var(--mono); font-size: .66em; border: 1px solid var(--pink); color: var(--pink); }

/* --------------------------------------------------------------------------
   Generieke layout-blokken
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.split.wide-r { grid-template-columns: .85fr 1.15fr; }
.split.wide-l { grid-template-columns: 1.2fr .8fr; }

.frame {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.frame.browser { padding-top: 34px; position: relative; }
.frame.browser::before { content: ""; position: absolute; top: 12px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 #febc2e, 32px 0 #28c840; }
.frame.browser .url { position: absolute; top: 7px; left: 70px; right: 14px; height: 20px; border-radius: 6px; background: #1d1d2a; font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding: 2px 10px; overflow: hidden; white-space: nowrap; }

.phone { border-radius: 34px; overflow: hidden; border: 6px solid #1c1c26; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); background: #000; }

.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 14px; margin-top: 4vh; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: linear-gradient(180deg, var(--panel), transparent); }
.stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.4vw, 64px); letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.stat .l { margin-top: 8px; font-size: .8em; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-family: var(--mono); font-size: .7em; color: var(--ink-2); background: var(--bg-2); }
.chip.on { border-color: var(--accent); color: var(--accent); }

.list { list-style: none; margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.list li { padding-left: 1.6em; position: relative; color: var(--ink-2); }
.list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.list li b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Wie ben ik
   -------------------------------------------------------------------------- */
.me-photo { position: relative; }
.me-photo img { border-radius: 24px; filter: grayscale(.25) contrast(1.05); aspect-ratio: 4/5; object-fit: cover; width: 100%; max-height: 72vh; }
.me-photo .sticker { position: absolute; bottom: -18px; right: -18px; background: var(--lime); color: #000; font-family: var(--mono); font-weight: 600; font-size: 13px; padding: 12px 16px; border-radius: 12px; transform: rotate(-4deg); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cv { margin-top: 2.4rem; display: grid; gap: 0; border-left: 1px solid var(--line); }
.cv div { display: grid; grid-template-columns: 6ch 1fr; gap: 18px; padding: 8px 0 8px 22px; position: relative; color: var(--ink-2); }
.cv div::before { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-3); }
.cv div.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent); }
.cv span { font-family: var(--mono); color: var(--ink-3); font-size: .85em; }
.cv b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Chat / prompt (typemachine)
   -------------------------------------------------------------------------- */
.chat { background: #131316; border: 1px solid #262630; border-radius: 22px; padding: 28px; font-size: .95em; }
.chat .me { margin-left: auto; max-width: 88%; background: #26262d; border-radius: 22px; padding: 16px 20px; color: #e6e6ea; min-height: 3.2em; }
.chat .bot { margin-top: 22px; display: grid; grid-template-columns: 30px 1fr; gap: 14px; color: #cfcfd6; opacity: 0; transition: opacity .6s; }
.chat .bot.show { opacity: 1; }
.chat .bot .spark { width: 26px; height: 26px; background: conic-gradient(from 45deg, #4f8cff, #a46bff, #ff6b8b, #ffc04d, #4f8cff); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.typed::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.typed.done::after { content: ""; }

.dummie { border-radius: 18px; transform: rotate(-3deg); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }

/* --------------------------------------------------------------------------
   Team-diagram
   -------------------------------------------------------------------------- */
.team { position: relative; margin-top: 5vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--panel); overflow: hidden; }
.role .ic { font-size: 30px; line-height: 1; }
.role h3 { margin: 14px 0 6px; }
.role .t { font-family: var(--mono); font-size: .7em; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.role p { margin-top: 10px; color: var(--ink-2); font-size: .9em; }
.role.me { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.role .pulse { position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; margin-top: 5vh; }
.versus .arrow { align-self: center; font-family: var(--mono); color: var(--accent); font-size: 2em; }
.versus .col h4 { font-family: var(--mono); font-size: .75em; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 14px; }
.versus .row { display: grid; grid-template-columns: 1.6em 1fr; gap: 10px; padding: 12px 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.versus .row b { font-weight: 600; }
.versus .row small { display: block; color: var(--ink-3); font-size: .78em; }
.versus .col.now .row { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }

/* --------------------------------------------------------------------------
   App-evolutie (sticky, gestuurd door scroll)
   -------------------------------------------------------------------------- */
.evo { position: relative; height: 420vh; padding: 0; display: block; scroll-snap-align: none; }
.evo .stick { position: sticky; top: 0; height: 100vh; padding: 12vh var(--gutter) 8vh; display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: center; overflow: hidden; }
.evo .marker { position: absolute; left: 0; height: 1px; width: 1px; scroll-snap-align: start; }
.evo .steps { position: relative; }
.evo .stage-txt { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(30px); transition: .6s var(--ease); pointer-events: none; }
.evo .stage-txt.on { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.evo .big { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 8vw, 150px); letter-spacing: -.05em; line-height: .9; color: var(--accent); }
.evo .big small { font-size: .32em; color: var(--ink); letter-spacing: -.02em; display: block; margin-top: .3em; font-weight: 600; }
.evo .dots { display: flex; gap: 8px; margin-bottom: 30px; }
.evo .dots i { width: 34px; height: 4px; border-radius: 4px; background: var(--line); transition: background .4s; }
.evo .dots i.on { background: var(--accent); }
.evo .shots { position: relative; height: 76vh; }
.evo .shot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2vw; opacity: 0; transform: translateY(40px) scale(.96); transition: .8s var(--ease); }
.evo .shot.on { opacity: 1; transform: none; }
.evo .shot img { max-height: 76vh; width: auto; border-radius: 18px; box-shadow: 0 40px 100px -30px #000; }
.evo .shot .phone img { border-radius: 0; max-height: 72vh; }
.evo .shot.tri .phone:nth-child(1) { transform: rotate(-5deg) translateY(16px); }
.evo .shot.tri .phone:nth-child(3) { transform: rotate(5deg) translateY(16px); }
.evo .progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 2px; background: var(--line); }
.evo .progress i { display: block; height: 100%; background: var(--accent); width: calc(var(--p, 0) * 100%); }

/* --------------------------------------------------------------------------
   Pipeline
   -------------------------------------------------------------------------- */
.pipe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4vh; }
.pipe .node { padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: .9em; position: relative; }
.pipe .node small { display: block; font-weight: 400; color: var(--ink-3); font-size: .78em; }
.pipe .node.ai { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.pipe .node.me { background: var(--accent); color: #000; border-color: var(--accent); }
.pipe .node.me small { color: #000a; }
.pipe .arr { color: var(--ink-3); font-family: var(--mono); }
.pipe .node.run::after { content: ""; position: absolute; inset: -1px; border-radius: 12px; border: 1px solid var(--accent); animation: run 2.4s infinite; animation-delay: calc(var(--i) * .3s); opacity: 0; }
@keyframes run { 0% { opacity: 0; } 10% { opacity: 1; } 30% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Security
   -------------------------------------------------------------------------- */
.sev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 3vh; }
.sev div { border-radius: 14px; padding: 16px; border: 1px solid var(--line); background: var(--panel); }
.sev .n { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: -.04em; }
.sev .l { font-family: var(--mono); font-size: .68em; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-top: 6px; }
.sev .crit .n { color: #ff4d4d; } .sev .high .n { color: #ff9a3d; } .sev .med .n { color: #ffd84d; } .sev .low .n { color: #59b6ff; }
.callout { margin-top: 3vh; border-left: 3px solid var(--accent); padding: 8px 0 8px 20px; color: var(--ink-2); font-size: .95em; }
.callout b { color: var(--ink); }

/* --------------------------------------------------------------------------
   Games
   -------------------------------------------------------------------------- */
.arcade-title { font-family: var(--pixel); font-size: clamp(22px, 3.6vw, 64px); line-height: 1.25; letter-spacing: 0; color: var(--accent); text-shadow: 4px 4px 0 #000, 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
.game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 5vh; }
.gcard { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--line); cursor: pointer; text-decoration: none; }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.8) brightness(.7); }
.gcard:hover img { transform: scale(1.08); filter: none; }
.gcard .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.gcard .cap b { font-family: var(--pixel); font-size: 11px; display: block; color: #fff; }
.gcard .cap span { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }

.game { padding-top: 10vh; }
.game .head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.game .head .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 40px); color: var(--ink-2); }
.game .body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 3vw; margin-top: 4vh; align-items: start; }
.game .facts { display: grid; gap: 12px; }
.game .facts .stat .n { font-size: clamp(28px, 2.6vw, 48px); }
.game .stats { margin-top: 0; }

/* Scherm: video met slideshow als terugval */
.screen { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16/10; border: 1px solid var(--line); box-shadow: 0 50px 140px -40px rgba(0,0,0,1), 0 0 80px -30px color-mix(in srgb, var(--accent) 50%, transparent); }
.screen video, .screen .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .slides img { opacity: 0; transition: opacity 1.2s; transform: scale(1.06); }
.screen .slides img.on { opacity: 1; animation: kb 7s linear forwards; }
@keyframes kb { from { transform: scale(1.0) translate(0,0); } to { transform: scale(1.1) translate(-2%, -1%); } }
.screen video { opacity: 0; transition: opacity .6s; }
.screen.has-video video { opacity: 1; }
.screen.has-video .slides { display: none; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; opacity: var(--scan, 0); }
.screen.crt { --scan: 1; }
.screen .badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.7); color: var(--ink-2); }
.screen .badge.rec::before { content: "●"; color: #ff3b3b; margin-right: 6px; animation: blink 1.2s steps(1) infinite; }
.screen .live {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; cursor: pointer;
  font-family: var(--pixel); font-size: 10px; padding: 10px 14px; border-radius: 8px; border: 0;
  background: var(--accent); color: #000; box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 50%, #000); transition: transform .15s, box-shadow .15s;
}
.screen .live:hover { transform: translateY(2px); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 50%, #000); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.thumbs img { border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; opacity: .55; cursor: pointer; transition: opacity .3s; border: 1px solid var(--line); }
.thumbs img:hover, .thumbs img.on { opacity: 1; border-color: var(--accent); }

.room { display: inline-flex; gap: 6px; margin-top: 6px; }
.room b { font-family: var(--pixel); font-size: 18px; width: 40px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: #000; color: var(--accent); border: 1px solid var(--line); }
.in .room b { animation: flip .6s var(--ease) both; animation-delay: calc(var(--i) * .15s + .6s); }
@keyframes flip { from { transform: rotateX(90deg); } }

/* Terminal / commitlog */
.term { background: #0a0a0f; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-family: var(--mono); font-size: .74em; line-height: 1.75; color: var(--ink-2); }
.term .ln { opacity: 0; transform: translateX(-10px); transition: .4s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in .term .ln { opacity: 1; transform: none; transition-delay: calc(var(--i) * 140ms + 300ms); }
.term .h { color: var(--accent); }
.term .t { color: var(--ink-3); margin-right: 10px; }

/* Gedeelde motor */
.shared { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 2vh; }
.shared .core { border: 1px dashed var(--accent); border-radius: 14px; padding: 14px 16px; font-family: var(--mono); font-size: .68em; color: var(--ink-2); line-height: 1.8; text-align: center; }
.shared .core b { color: var(--accent); display: block; font-size: 1.1em; margin-bottom: 4px; }
.shared .g { text-align: center; font-family: var(--pixel); font-size: 10px; color: var(--ink); }
.shared .g img { border-radius: 10px; margin-bottom: 8px; aspect-ratio: 16/10; object-fit: cover; }

/* Voor/na-slider */
.ba { position: relative; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); --x: 50%; user-select: none; touch-action: none; cursor: ew-resize; box-shadow: 0 50px 140px -40px #000; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--x)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: #fff; box-shadow: 0 0 20px rgba(255,255,255,.6); }
.ba .handle::after { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #000; font-size: 11px; padding: 8px 10px; border-radius: 99px; white-space: nowrap; font-family: var(--mono); }
.ba .lbl { position: absolute; bottom: 12px; font-family: var(--pixel); font-size: 10px; padding: 6px 8px; background: rgba(0,0,0,.75); border-radius: 6px; }
.ba .lbl.l { left: 12px; } .ba .lbl.r { right: 12px; color: var(--accent); }
.filmstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.filmstrip figure { position: relative; }
.filmstrip img { border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--line); }
.filmstrip figcaption { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 4px; }

/* RPG */
.ch-3 .rpg { --accent: var(--amber); }
.rpg-hero { position: relative; min-height: 100vh; overflow: hidden; }
.rpg-hero .bg { position: absolute; inset: -10% 0; z-index: -2; background-size: cover; background-position: center; transform: translateY(calc(var(--p, 0) * 8vh)) scale(1.08); }
.rpg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,7,11,.96) 0%, rgba(7,7,11,.75) 45%, rgba(7,7,11,.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.rpg-title { font-family: "Cinzel", var(--serif); font-weight: 700; font-size: clamp(48px, 7vw, 130px); letter-spacing: .01em; line-height: .95; color: #f5d8a0; text-shadow: 0 0 40px rgba(255,181,71,.35); }
.avatars { display: flex; margin-top: 2rem; }
.avatars .a { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -12px; background: var(--panel) center/cover; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--amber); position: relative; }
.avatars .a:first-child { margin-left: 0; }
.avatars .a img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 15vh; gap: 10px; margin-top: 4vh; }
.mosaic figure { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption { position: absolute; left: 8px; bottom: 8px; font-family: var(--mono); font-size: 10px; background: rgba(0,0,0,.75); padding: 3px 7px; border-radius: 5px; color: var(--ink-2); }
.mosaic .s2 { grid-column: span 2; } .mosaic .s3 { grid-column: span 3; } .mosaic .s4 { grid-column: span 4; } .mosaic .t2 { grid-row: span 2; }

/* --------------------------------------------------------------------------
   Learnings
   -------------------------------------------------------------------------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 5vh; }
.lcard { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: var(--panel); position: relative; overflow: hidden; min-height: 44vh; display: flex; flex-direction: column; }
.lcard .no { font-family: var(--display); font-weight: 800; font-size: 90px; line-height: .8; color: var(--accent); opacity: .9; letter-spacing: -.05em; }
.lcard h3 { margin: 22px 0 12px; }
.lcard p { color: var(--ink-2); font-size: .92em; }
.lcard .foot { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: .7em; color: var(--accent); }

.bottleneck { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; margin-top: 4vh; align-items: start; }
.funnel { display: grid; gap: 8px; }
.funnel .lvl { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); margin: 0 auto; width: var(--w); transition: width 1.2s var(--ease); }
.funnel .lvl b { font-weight: 600; }
.funnel .lvl span { font-family: var(--mono); font-size: .7em; color: var(--ink-3); }
.funnel .lvl.neck { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 12%, var(--panel)); }
.funnel .lvl.neck span { color: var(--pink); }
.need { display: grid; gap: 12px; }
.need > div:not(.kicker) { display: grid; grid-template-columns: 2.2em 1fr; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.need .i { font-size: 1.4em; }
.need b { display: block; }
.need small { color: var(--ink-2); font-size: .82em; }

/* --------------------------------------------------------------------------
   Toekomst
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin-top: 6vh; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent) 70%, transparent); }
.timeline .pt { position: relative; padding: 34px 18px 0 0; }
.timeline .pt::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .pt.q::before { border-style: dashed; animation: pulse 2s infinite; box-shadow: 0 0 0 0 var(--accent); }
.timeline .pt .y { font-family: var(--mono); color: var(--accent); font-size: .8em; }
.timeline .pt h3 { margin: 8px 0; font-size: clamp(18px, 1.5vw, 28px); }
.timeline .pt p { color: var(--ink-2); font-size: .85em; }

.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 5vh; }
.impact .col { border-top: 2px solid var(--accent); padding-top: 20px; }
.impact .col h3 { margin-bottom: 16px; }
.impact .col ul { list-style: none; display: grid; gap: 12px; }
.impact .col li { color: var(--ink-2); font-size: .92em; padding-left: 1.2em; position: relative; }
.impact .col li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.impact .col li b { color: var(--ink); }
.impact .q { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 1.2em; color: var(--ink); }

.mega { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 9.5vw, 190px); line-height: .88; letter-spacing: -.05em; }
.mega .strike { position: relative; color: var(--ink-3); }
.mega .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .09em; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .9s; }
.in .mega .strike::after { transform: scaleX(1); }

.who-codes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 5vh; }
.who-codes > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; background: var(--panel); }
.who-codes .e { font-size: 34px; }
.who-codes b { display: block; margin-top: 8px; font-size: .85em; }
.who-codes small { display: block; color: var(--ink-3); font-family: var(--mono); font-size: .62em; margin-top: 6px; }

.theses { display: grid; gap: 14px; margin-top: 5vh; counter-reset: t; }
.theses li { list-style: none; counter-increment: t; display: grid; grid-template-columns: 3.2em 1fr; gap: 14px; align-items: baseline; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 40px); letter-spacing: -.02em; line-height: 1.12; padding: 18px 0; border-bottom: 1px solid var(--line); }
.theses li::before { content: "0" counter(t); font-family: var(--mono); font-size: .45em; color: var(--accent); font-weight: 400; }

.end { min-height: 100vh; }
.end .links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 5vh; justify-content: center; }
.end .links a { font-family: var(--mono); font-size: .78em; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink-2); transition: .2s; }
.end .links a:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Live-speel-modaal
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.92); display: none; flex-direction: column; padding: 2vh 2vw; }
.modal.open { display: flex; }
.modal .bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.modal .bar button { background: none; border: 1px solid var(--line); color: var(--ink); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-family: var(--mono); }
.modal iframe { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #000; }

/* Lightbox voor screenshots */
.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.94); display: none; place-items: center; cursor: zoom-out; padding: 4vh 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; }
[data-zoom] { cursor: zoom-in; }

/* --------------------------------------------------------------------------
   Responsief (laptop-scherm in een vergaderzaal is het doel, telefoon moet niet breken)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .split, .split.wide-r, .split.wide-l, .game .body, .bottleneck, .evo .stick, .versus { grid-template-columns: 1fr; }
  .spectrum, .cards3, .impact, .team, .quote-grid { grid-template-columns: 1fr; gap: 24px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; } .timeline::before { display: none; }
  .who-codes { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); } .mosaic figure { grid-column: span 1 !important; grid-row: span 1 !important; }
  .stats, .sev { grid-template-columns: repeat(2, 1fr); }
  .evo .shots { height: 50vh; } .evo .stick { padding-top: 8vh; }
  .hud-top .chap { font-size: 0; }
  .versus .arrow { transform: rotate(90deg); justify-self: center; }
  .filmstrip { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .r { opacity: 1; transform: none; filter: none; }
  #hero h1 .line span { transform: none; }
  #hero .sub, #hero .meta, #hero .scroll-hint { opacity: 1; }
}

.team-shots img { height: 30vh; width: 100%; object-fit: cover; object-position: top; }
.evo .shot .phone { flex: 0 1 auto; }
.evo .shot .phone img { max-height: 68vh; max-width: 26vw; object-fit: contain; }
.team-shots img { height: 24vh; }
.evo .shot { gap: 1.2vw; }
.evo .shot .phone img { max-width: 21vw; max-height: 64vh; }
.phone.fit img { max-height: 64vh; width: auto; }

.ba { aspect-ratio: 16/9; }
.rpg-flow { height: 30vh; width: 100%; object-fit: cover; object-position: center 62%; }
.mosaic { grid-auto-rows: 11.5vh; }
.phone.fit img { max-height: 58vh; }

.game-grid { grid-template-columns: repeat(6, 1fr); }
.ba.small { aspect-ratio: 16/10; margin-bottom: 14px; }
.rpg-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4vw; align-items: center; }
.rpg-split .stats { margin-top: 3vh; }
.rpg-split .chips { margin-top: 14px; }
@media (max-width: 900px) { .rpg-split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Grid-kinderen mogen smaller worden dan hun inhoud (anders rekt een kolom
   de pagina op, vooral op een telefoon)
   -------------------------------------------------------------------------- */
.split > *, .game .body > *, .facts, .rpg-split > *, .bottleneck > *, .versus > *, .stats > *, .cards3 > *, .impact > * { min-width: 0; }
.term .ln { max-width: 100%; }

/* --------------------------------------------------------------------------
   Telefoon: staat bewust onderaan, zodat niets het meer overschrijft
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .slide { padding: 8vh var(--gutter) 6vh; min-height: auto; }
  .slide.opener, #hero, .end { min-height: 100svh; }
  h2, h2.wide { font-size: clamp(32px, 9.5vw, 52px); max-width: none; }
  .lede { font-size: 1.05em; }
  .kicker { font-size: 11px; margin-bottom: 1rem; }

  /* Bediening voor de presentator is op een telefoon niet nodig */
  .hud-bottom, .notes-panel, .help { display: none !important; }
  .hud-top { gap: 3px; padding-top: 8px; }
  .hud-top .chap { min-width: 0; height: 6px; padding: 0; }

  #hero h1 { font-size: 27vw; }
  #hero .meta { gap: 6px 16px; }
  #hero .scroll-hint { display: none; }

  .opener h2 { font-size: 14vw; }
  .opener .num { font-size: 70vw; bottom: -4vh; }
  .bigquote { font-size: 8vw; }
  .quote-grid { grid-template-columns: 1fr; }
  .qcard { padding: 20px; }

  .spectrum { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .spectrum .rail { grid-column: 1 / -1; }

  .cv div { grid-template-columns: 4.5ch 1fr; gap: 10px; padding-left: 16px; }
  .me-photo img { max-height: 50vh; }
  .me-photo .sticker { right: 8px; bottom: -12px; }

  .chat { padding: 16px; }
  .chat .me { max-width: 100%; }
  .team-shots img { height: 22vh; }

  .evo .stick { padding: 9vh var(--gutter) 6vh; gap: 2vh; grid-template-rows: auto 1fr; }
  .evo .big { font-size: 18vw; }
  .evo .shots { height: 46vh; }
  .evo .shot .phone img { max-width: 30vw; max-height: 44vh; }
  .evo .shot .phone { border-width: 3px; border-radius: 16px; }

  .pipe .node { font-size: .82em; padding: 9px 12px; }
  .phone.fit img { max-height: 60vh; }
  .sev { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .sev .n { font-size: 34px; }
  .sev .l { font-size: 9px; letter-spacing: .04em; }

  .arcade-title { font-size: clamp(22px, 8vw, 40px); }
  .opener .arcade-title { font-size: 13vw; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gcard { aspect-ratio: 4/3; }
  .game { padding-top: 8vh; }
  .game .head { gap: 6px; }
  .game .head .tagline { font-size: 20px; }
  .game .body { gap: 20px; margin-top: 2.4vh; }
  .screen .live { font-size: 8px; padding: 8px 10px; right: 10px; bottom: 10px; }
  .screen .badge { font-size: 9px; }
  .term { font-size: 11px; padding: 12px 14px; }
  .shared { gap: 8px; }
  .shared .core { font-size: 10px; padding: 10px; }
  .filmstrip { grid-template-columns: repeat(3, 1fr); }

  .rpg-title { font-size: 15vw; }
  .rpg-hero::before { background: linear-gradient(180deg, rgba(7,7,11,.92), rgba(7,7,11,.82)); }
  .rpg-flow { height: auto; object-fit: contain; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 22vw; }
  .avatars .a { width: 46px; height: 46px; }

  .cards3 { grid-template-columns: 1fr; }
  .lcard { min-height: 0; padding: 22px; }
  .lcard .no { font-size: 60px; }
  .bottleneck { grid-template-columns: 1fr; gap: 28px; }
  .funnel .lvl { padding: 10px 14px; }

  .timeline { grid-template-columns: 1fr; gap: 6px; }
  .timeline .pt { padding: 0 0 12px 30px; }
  .timeline .pt::before { top: 4px; }
  .impact { grid-template-columns: 1fr; gap: 28px; }
  .mega { font-size: 15vw; }
  .who-codes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .who-codes > div { padding: 12px 6px; }
  .who-codes .e { font-size: 26px; }
  .theses li { font-size: 20px; grid-template-columns: 2.4em 1fr; padding: 14px 0; }
  .end h2 { font-size: 22vw !important; }
}

/* Inschuivende elementen (en de gloed achter de titel) mogen de pagina niet verbreden */
html, body { overflow-x: clip; }
.hud-top { overflow: hidden; }
@media (max-width: 700px) {
  .split, .split.wide-r, .split.wide-l, .game .body, .bottleneck, .rpg-split { grid-template-columns: minmax(0, 1fr); }
  .sev { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dummie { max-width: 78% !important; }
}
.facts { grid-template-columns: minmax(0, 1fr); }

/* --------------------------------------------------------------------------
   Quality gates: checks-paneel in GitHub-stijl en een tijdlijn van de pijplijn
   -------------------------------------------------------------------------- */
.checks-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2.6vw; margin-top: 3vh; align-items: start; }
.gh { background: #0d1117; border: 1px solid #30363d; border-radius: 12px; overflow: hidden; font-family: -apple-system, "Segoe UI", "Helvetica Neue", sans-serif; }
.gh-head { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #30363d; background: #161b22; }
.gh-head b { color: #e6edf3; font-size: 15px; display: block; }
.gh-head small { color: #8d96a0; font-size: 12px; }
.chk { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 16px; border-bottom: 1px solid #21262d; }
.chk:last-child { border-bottom: 0; }
.chk b { color: #e6edf3; font-size: 13px; font-weight: 600; display: block; }
.chk small { color: #8d96a0; font-size: 11.5px; }
.chk .dur { color: #8d96a0; font-size: 12px; font-variant-numeric: tabular-nums; }
.gh .ic { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; }
.gh .ic.ok { background: #238636; color: #fff; }
.gh .ic.neu { background: transparent; border: 1.5px solid #8d96a0; color: #8d96a0; }
.gh .ic.big { width: 26px; height: 26px; font-size: 15px; }

.gantt { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; background: var(--panel); }
.g-axis { display: flex; justify-content: space-between; margin-left: 132px; font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-bottom: 8px; }
.g-row { display: grid; grid-template-columns: 124px 1fr; gap: 8px; align-items: center; height: 22px; }
.g-lbl { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; height: 10px; border-radius: 6px; background: #1c1c2a; }
.g-track .bar { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 6px; background: #3fb950; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 120ms + 300ms); }
.g-track .bar.long { background: linear-gradient(90deg, #3fb950, #2ea043); }
.g-track .bar.neu { background: #8d96a0; }
.in .g-track .bar { transform: none; }
.g-merge { position: absolute; top: 30px; bottom: 8px; left: calc(16px + 132px + (100% - 32px - 132px) * var(--m)); width: 0; border-left: 2px dashed var(--pink); }
.g-merge span { position: absolute; bottom: -2px; left: 6px; white-space: nowrap; font-family: var(--mono); font-size: 10.5px; color: var(--pink); background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.checks-slide .chips { margin-top: 14px; }
.callout.honest { border-left-color: var(--pink); margin-top: 14px; font-size: .86em; }

@media (max-width: 700px) {
  .checks-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .chk { padding: 6px 12px; }
  .chk small { display: none; }
  .g-axis { margin-left: 92px; }
  .g-row { grid-template-columns: 84px 1fr; }
  .g-lbl { font-size: 9px; }
  .g-merge { left: calc(16px + 92px + (100% - 32px - 92px) * var(--m)); }
}
/* Compacter: naam en uitleg op één regel */
.checks-slide { padding-top: 9vh; padding-bottom: 6vh; }
.checks-slide .lede { margin-top: 1rem; }
.checks-grid { margin-top: 2.4vh; }
.chk { padding: 5px 14px; }
.chk b { font-size: 12.5px; }
.chk small { font-size: 11px; display: block; margin-top: 1px; line-height: 1.3; }
.gh-head { padding: 9px 14px; }
@media (min-width: 701px) and (max-height: 950px) {
  .checks-slide h2 { font-size: clamp(36px, 4.4vw, 72px); }
  .chk { padding: 4px 14px; }
}
