/* ==========================================================================
   CodeMonster – stylesheet
   Mobile-first. Breakpoints: 600px, 900px, 1100px.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Brand colors */
  --ink: #1F1E1D;
  --ink-2: #34332f;
  --sky: #E4F4FE;
  --sky-2: #CFE7F8;
  --white: #FFFFFF;
  --snow: #F3FAFF;
  --blue: #337AB8;
  --blue-deep: #0059A6;
  --blue-soft: #80ABD1;
  --yellow: #FAD400;
  --pink: #EA4B94;
  --green: #3CCF4E;
  --red: #C62828;

  --text: var(--ink);
  --muted: #45505A;

  /* Type */
  --font-display: "hooneorinigyosil", "Pixelify Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.6rem + 4.6vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  --fs-lead: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Shape */
  --line: 2px solid var(--ink);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  /* Layout */
  --max: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-y: clamp(4rem, 2.8rem + 6vw, 7.5rem);
  --header-h: 68px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
}

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  background: var(--sky);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: url('../assets/custom-cursor-24.svg') 2 1, auto; }
}

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

input, select, textarea, button { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

:where(ul[class], ol[class]) { list-style: none; padding: 0; }

h1, h2, h3 { line-height: 1.1; font-weight: 400; overflow-wrap: break-word; }

p { max-width: 65ch; }

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

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

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--yellow);
  border: var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.center { text-align: center; }

/* 3. Typography
   ========================================================================== */
.display, .h2, .h3 { font-family: var(--font-display); letter-spacing: 0.01em; }

.display {
  font-size: var(--fs-display);
  line-height: 0.98;
}

.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
}
.eyebrow--light { color: var(--yellow); }

.marker {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.marker::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.32em -0.12em 0.02em;
  background: var(--yellow);
  border-radius: 6px;
  transform: rotate(-2deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.note {
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--muted);
}
.note a { color: var(--blue-deep); font-weight: 700; text-underline-offset: 3px; }

/* 4. Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.btn--primary { background: var(--yellow); color: var(--ink); }

/* Monster teeth, a nod to the original speech-bubble buttons */
.btn--primary::before,
.btn--primary::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.btn--primary::before { top: -11px; left: 24px; }
.btn--primary::after { bottom: -11px; right: 24px; transform: rotate(180deg); }

.btn--ghost { background: var(--white); color: var(--ink); }
.btn--ghost:hover { background: var(--snow); }

.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 1rem; }
.btn--sm::before, .btn--sm::after { display: none; }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--white);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.2s;
}
.icon-btn svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--yellow); }
.icon-btn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }

/* 5. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 2px solid transparent;
  transition: transform 0.3s var(--ease), border-color 0.2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(228, 244, 254, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand { display: block; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

@media (min-width: 900px) {
  .brand img { height: 56px; }
}

.nav-list a {
  font-family: var(--font-display);
  text-decoration: none;
}

/* Mobile menu */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.nav-toggle__bars,
.nav-toggle__bars span,
.nav-toggle__bars::before,
.nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle__bars { position: relative; background: transparent; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; transition: transform 0.25s var(--ease); }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899.98px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem var(--gutter) 3rem;
    background: var(--sky);
    border-top: var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s;
  }
  .site-header.is-open::before { background: var(--sky); }
  .nav-list { display: grid; gap: 0.25rem; }
  .nav-list a {
    display: block;
    padding: 0.6rem 0;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    border-bottom: 2px dashed rgba(31, 30, 29, 0.2);
  }
  .nav-list a[aria-current="page"] { color: var(--blue-deep); }
  .site-nav .btn { align-self: flex-start; }

  /* Without JS the menu is simply shown inline below the logo */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .site-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; border: 0; background: none; flex-direction: row; flex-wrap: wrap; align-items: center; }
  html:not(.js) .nav-list { display: flex; flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .nav-list a { font-size: 1.1rem; border: 0; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 2rem; }
  .nav-list { display: flex; gap: 1.75rem; }
  .nav-list a {
    position: relative;
    padding: 0.4rem 0;
    font-size: 1.125rem;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="page"]::after { background: var(--blue); }
}

body.nav-open { overflow: hidden; }

/* 6. Sections
   ========================================================================== */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--white { background: var(--white); }
.section--yellow { background: var(--yellow); }
.section--yellow .eyebrow { color: var(--ink); }
.section--pink { background: var(--pink); }
.section--pink .eyebrow { color: var(--ink); }
.section--ink {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(243, 250, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  color: var(--snow);
}

/* Monster teeth along the bottom edge */
.section--teeth { margin-bottom: 18px; }
.section--teeth::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -18px;
  height: 18px;
  background: conic-gradient(from -45deg at bottom, var(--ink) 90deg, transparent 0) 50% / 36px 100%;
}

.section-head {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-head .h2 { max-width: 20ch; }
.section-head__intro { margin-top: 1.25rem; font-size: var(--fs-lead); color: var(--muted); }
.section-head--center { text-align: center; }
.section-head--center .h2, .section-head--center p { margin-inline: auto; }
.section-head--center .h2 { max-width: 24ch; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Two-column text/media */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.split__text p + p { margin-top: 1rem; }
.split__text .h2 { margin-bottom: 1.5rem; }
.split__text .btn-row { margin-top: 2rem; }

.split__media img {
  width: 100%;
  border: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.split__media--plain img { border: 0; border-radius: 0; box-shadow: none; }
.split__media--plain { width: 100%; max-width: 460px; margin-inline: auto; }
@media (min-width: 900px) { .split__media--plain { max-width: none; } }
.split__media--tilt img { transform: rotate(2deg); }

@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--reverse .split__media { order: -1; }
}

/* 7. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3.5rem, 2rem + 6vw, 7rem);
  background-color: var(--sky);
  background-image: radial-gradient(rgba(31, 30, 29, 0.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  overflow: clip;
}

.hero__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 4rem);
  align-items: center;
}

.hero__text .display { margin-bottom: 1.5rem; }
.hero__text .lead { margin-bottom: 2rem; max-width: 34ch; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-weight: 500;
  color: var(--muted);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__facts li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--pink);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}
.hero__facts li:nth-child(2)::before { background: var(--yellow); }
.hero__facts li:nth-child(3)::before { background: var(--blue); }

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 1rem 0 3.5rem;
}

.hero__star {
  position: absolute;
  z-index: 0;
  width: 115%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  opacity: 0.95;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__star { animation: spin 90s linear infinite; }
}

.shape { position: absolute; z-index: 2; border: var(--line); }
.shape--triangle {
  top: -6px;
  right: 8%;
  width: 54px;
  height: 48px;
  border: 0;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  rotate: 18deg;
}
.shape--square {
  bottom: 0.5rem;
  left: 4%;
  width: 44px;
  height: 44px;
  background: var(--pink);
  border-radius: 6px;
  rotate: -12deg;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 2px solid rgba(243, 250, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(243, 250, 255, 0.75);
}
.window-bar--light { border-bottom: var(--line); color: var(--ink); background: var(--sky); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--green); }

.editor {
  position: relative;
  z-index: 1;
  width: 86%;
  background: var(--ink);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--blue-deep);
  overflow: hidden;
  rotate: -2deg;
}

.editor__code {
  margin: 0;
  padding: 1rem 1rem 1.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 0.5rem + 0.75vw, 0.85rem);
  line-height: 1.75;
  color: var(--snow);
  white-space: pre;
  overflow: hidden;
}
.editor__code .ln { display: inline-block; width: 2.2em; padding-right: 0.9em; text-align: right; color: rgba(243, 250, 255, 0.3); user-select: none; }
.editor__code .k { color: var(--pink); }
.editor__code .f { color: var(--yellow); }
.editor__code .s { color: #7EE08A; }
.editor__code .n { color: #8EC5F2; }
.editor__code .c { color: rgba(243, 250, 255, 0.62); font-style: italic; }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--yellow);
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.1s steps(1) infinite; }
}

.preview {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 54%;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  rotate: 3deg;
}
.preview .monster { width: 100%; padding: 0.75rem 0.75rem 0.25rem; }
.preview .pupil { transition: transform 0.08s linear; }
.preview__hint {
  padding: 0 0.75rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  color: var(--muted);
}
@media (hover: none) { .preview__hint { display: none; } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; }
  .hero__visual { padding-bottom: 4.5rem; }
}

/* 8. Ticker
   ========================================================================== */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  border-block: var(--line);
  padding-block: 0.9rem;
}
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; flex-shrink: 0; min-width: 100vw; }
.ticker__list li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  white-space: nowrap;
}
.ticker__list li::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-inline: 1.5rem;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.ticker__list li:nth-child(3n + 1)::after { background: var(--pink); }
.ticker__list li:nth-child(3n + 2)::after { background: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 60s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { width: auto; justify-content: center; }
  .ticker__list { flex-wrap: wrap; justify-content: center; row-gap: 0.4rem; min-width: 0; }
  .ticker__list + .ticker__list,
  .ticker__list li:nth-child(n + 9) { display: none; }
}

/* 9. Cards
   ========================================================================== */
.card-base,
.audience-card,
.workshop-card,
.pillar,
.step,
.topic,
.form-card,
.download {
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Audience (doelgroep) cards */
.audience-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}

.audience-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.audience-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.audience-card:hover .link-arrow::after { transform: translateX(4px); }

.audience-card__top {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 150px;
  padding: 1.25rem 1.5rem;
  background: var(--accent, var(--yellow));
  border-bottom: var(--line);
  overflow: hidden;
}
.audience-card__age {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 2.2vw, 4.25rem);
  line-height: 0.9;
}
.audience-card__age small { display: block; margin-top: 0.5rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.audience-card__shape { position: absolute; right: -18px; top: -14px; width: 130px; height: 130px; border: var(--line); background: var(--white); }
.audience-card__shape--triangle { border: 0; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); rotate: 14deg; width: 110px; height: 100px; right: -6px; top: 18px; }
.audience-card__shape--square { border-radius: 14px; rotate: 18deg; background: var(--yellow); }
.audience-card__shape--circle { border-radius: 50%; background: var(--yellow); }

.audience-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
  padding: 1.5rem;
}
.audience-card__sub { font-family: var(--font-mono); font-size: 0.85rem; color: var(--blue-deep); font-weight: 700; }
.audience-card__body .link-arrow { margin-top: auto; padding-top: 0.75rem; }

/* Tablet: cards side by side would get too narrow, so lay them out horizontally */
@media (min-width: 600px) and (max-width: 899.98px) {
  .audience-card { flex-direction: row; }
  .audience-card__top { flex: 0 0 36%; border-bottom: 0; border-right: var(--line); }
}

/* Pillars: codeer / denk / bouw */
.pillars {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar { padding: 1.75rem; }
.pillar__icon {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 64px;
  padding-inline: 0.75rem;
  margin-bottom: 1.25rem;
  background: var(--accent, var(--yellow));
  border: var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.pillar .h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--muted); }

/* Workshop cards */
.workshop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.workshop-card:hover,
.workshop-card:focus-within { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.workshop-card:hover .link-arrow::after { transform: translateX(4px); }

.workshop-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: var(--line);
}
.workshop-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.25rem 1.4rem 1.5rem;
}
.workshop-card__body p { color: var(--muted); font-size: var(--fs-small); }
.workshop-card__body .link-arrow { margin-top: auto; padding-top: 0.25rem; }
.workshop-card .h3 a { text-decoration: none; }

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::after { outline: 3px solid var(--blue-deep); outline-offset: -6px; border-radius: var(--radius); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem 0.2rem 0.55rem;
  background: var(--sky);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* 10. Carousel (scroll-snap)
   ========================================================================== */
.carousel { position: relative; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 340px);
  gap: 1.5rem;
  padding: 0.5rem max(var(--gutter), calc((100vw - var(--max)) / 2)) 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { scroll-snap-align: start; }
.carousel__track:focus-visible { outline-offset: -3px; }

@media (min-width: 900px) {
  .carousel__track { grid-auto-columns: calc((min(100vw, var(--max)) - 2 * var(--gutter) - 3rem) / 3); }
}
@media (min-width: 1300px) {
  .carousel__track { grid-auto-columns: calc((var(--max) - 3rem) / 3); }
}

.carousel-nav { display: flex; gap: 0.75rem; }
html:not(.js) .carousel-nav { display: none; }

#workshops .center { margin-top: 1.5rem; }

/* 11. Video
   ========================================================================== */
.section--ink .h2 { color: var(--snow); }

.video-frame {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  border: 2px solid var(--snow);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--pink);
  overflow: hidden;
  background: var(--pink);
}
.video-frame video { width: 100%; aspect-ratio: 1192 / 593; object-fit: cover; background: var(--pink); }

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  background: transparent;
  border: 0;
}
.video-play svg {
  width: clamp(72px, 12vw, 112px);
  height: clamp(72px, 12vw, 112px);
  padding: clamp(18px, 3vw, 28px);
  padding-left: clamp(21px, 3.4vw, 32px);
  fill: var(--ink);
  background: var(--yellow);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
}
.video-play:hover svg { transform: scale(1.08) rotate(-4deg); }
.video-play:focus-visible { outline: none; }
.video-play:focus-visible svg { outline: 4px solid var(--snow); outline-offset: 4px; }
.video-frame.is-playing .video-play { display: none; }

/* 12. Steps
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  background: var(--yellow);
  border: var(--line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.step:nth-child(2) .step__num { background: var(--pink); }
.step:nth-child(3) .step__num { background: var(--blue-soft); }
.step:nth-child(4) .step__num { background: var(--green); }
.step .h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: var(--fs-small); }

@media (max-width: 599.98px) {
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.1rem;
    align-items: start;
    padding: 1.25rem;
  }
  .step__num { grid-row: span 2; margin-bottom: 0; }
}
@media (max-width: 899.98px) {
  .pillar {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.1rem;
    align-items: start;
    padding: 1.25rem;
  }
  .pillar__icon { grid-row: span 2; margin-bottom: 0; min-width: 56px; height: 56px; font-size: 1.25rem; }
}

@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  /* Dashed, multicolored path behind the steps (like the monster's trail) */
  .steps::before {
    content: "";
    position: absolute;
    top: 54px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 40px, var(--blue) 40px 62px, transparent 62px 80px, var(--yellow) 80px 102px, transparent 102px 120px, var(--pink) 120px 142px, transparent 142px 160px);
    z-index: 0;
  }
  .step { z-index: 1; }
}

/* 13. Team
   ========================================================================== */
.team {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}
.team__text .h2 { margin-bottom: 1.25rem; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
}
.member { text-align: center; }
.member img {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 0.85rem;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  background: var(--blue-deep);
  transition: transform 0.25s var(--ease);
}
.member:nth-child(odd) img { rotate: -3deg; }
.member:nth-child(even) img { rotate: 3deg; }
.member:hover img { transform: scale(1.04) rotate(-2deg); }
.member__name { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.member__role { display: block; font-size: var(--fs-small); color: var(--ink-2); }

@media (min-width: 600px) {
  .team__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .team { grid-template-columns: 1fr 1.2fr; }
}

/* 14. Contact / form
   ========================================================================== */
.contact__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact__intro {
  position: relative;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  padding-bottom: 0;
  background: var(--blue-deep);
  color: var(--snow);
  border: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact__intro .h2 { margin-bottom: 1rem; max-width: 14ch; }
.contact__intro p { color: rgba(243, 250, 255, 0.9); }
.checklist { display: grid; gap: 0.6rem; margin-top: 1.5rem; font-weight: 500; }
.checklist li { display: flex; align-items: center; gap: 0.7rem; }
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1E1D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.contact__art {
  width: min(62%, 230px);
  margin: 2rem 0 -8px auto;
}
@media (max-width: 899.98px) {
  .contact__intro { padding-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
  .contact__art { display: none; }
}

.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.booking-form { display: grid; gap: 1.1rem; }
.booking-form .h3 { margin-bottom: -0.25rem; }
.form-hint { font-size: var(--fs-small); color: var(--muted); }

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  background: var(--snow);
  border: var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem; /* 16px prevents iOS zoom */
  transition: box-shadow 0.15s, background-color 0.15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1E1D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--white);
  box-shadow: 4px 4px 0 var(--yellow), 0 0 0 1px var(--ink);
}
.field input::placeholder,
.field textarea::placeholder { color: #6B7680; }
.field [aria-invalid="true"] { border-color: var(--red); background-color: #FFF5F5; }
.field__error {
  display: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
}
.field__error:not(:empty) { display: block; }

.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.booking-form .btn { margin-top: 0.5rem; }

.form-success { text-align: center; padding: 1.5rem 0.5rem; }
.form-success:focus { outline: none; }
.form-success .h3 { margin: 1rem 0 0.75rem; }
.form-success p { margin-inline: auto; color: var(--muted); }
.form-success .btn { margin-top: 1.5rem; }
.form-success__icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: var(--green);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.form-success__icon svg { width: 34px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* 15. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 18px;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1.5rem;
  background: var(--ink);
  color: var(--snow);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -18px;
  height: 18px;
  background: conic-gradient(from 135deg at top, var(--ink) 90deg, transparent 0) 50% / 36px 100%;
}

.footer__grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  padding-bottom: 2.5rem;
}
@media (max-width: 699.98px) {
  .footer__brand { grid-column: 1 / -1; }
}
.footer__brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: rgba(243, 250, 255, 0.75); }
.footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
}
.footer__col ul { list-style: none; padding: 0; }
.footer__col ul:not(.social) { display: grid; gap: 0.5rem; }
.footer__col a { text-decoration: none; color: rgba(243, 250, 255, 0.85); }
.footer__col a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

.social { display: flex; gap: 0.75rem; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--snow);
  transition: color 0.15s, transform 0.15s var(--ease);
}
.social a:hover { color: var(--yellow); transform: translateY(-2px); }
.social svg { width: 34px; height: 34px; fill: currentColor; }
.footer__handle { margin-top: 0.75rem; font-family: var(--font-display); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 250, 255, 0.18);
  font-size: var(--fs-small);
  color: rgba(243, 250, 255, 0.7);
}
.to-top { color: inherit; text-underline-offset: 3px; }
.to-top:hover { color: var(--yellow); }

/* 16. Page hero (sub pages)
   ========================================================================== */
.page-hero {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem);
  background-color: var(--sky);
  background-image: radial-gradient(rgba(31, 30, 29, 0.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  overflow: clip;
}
.page-hero .display { margin-bottom: 1.25rem; }
.page-hero .lead { margin-bottom: 1rem; }
.page-hero p + p { margin-top: 1rem; }
.page-hero + .section { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); }
@media (max-width: 599.98px) {
  .photo-stack--hide-sm { display: none; }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--muted); }
.breadcrumb a { color: var(--blue-deep); font-weight: 700; text-underline-offset: 3px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}
.facts li {
  padding: 0.35rem 0.9rem;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}
.facts li:nth-child(1) { background: var(--yellow); }
.facts li:nth-child(2) { background: var(--pink); }
.facts li:nth-child(3) { background: var(--blue-soft); }

.photo-stack { position: relative; padding: 0 1.5rem 2.5rem 0; max-width: 560px; margin-inline: auto; }
.photo-stack img {
  width: 100%;
  border: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  rotate: 2deg;
}
.photo-stack .sticker {
  position: absolute;
  left: -0.5rem;
  bottom: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--yellow);
  border: var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  rotate: -5deg;
}

/* 17. Workshops page
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.filter-bar__label { font-weight: 700; margin-right: 0.25rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s;
}
.chip small { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.chip:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--snow); }
.chip[aria-pressed="true"] small { color: var(--yellow); }
.filter-status { margin-bottom: 2rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

.workshop-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.empty-state {
  padding: 2rem;
  text-align: center;
  background: var(--white);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
}

.soon {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  background: var(--blue-deep);
  color: var(--snow);
  border: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.soon .h2 { margin-bottom: 1rem; }
.soon p { color: rgba(243, 250, 255, 0.9); }
.soon .btn { margin-top: 1.5rem; }
.soon__list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.soon__list li {
  padding: 0.5rem 1rem;
  background: rgba(243, 250, 255, 0.08);
  border: 2px dashed rgba(243, 250, 255, 0.55);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}
@media (min-width: 900px) {
  .soon { grid-template-columns: 1fr 1fr; }
}

/* 18. Kunst met Code page
   ========================================================================== */
.topic-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 600px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
.topic { padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.topic__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 0.5rem;
  background: var(--sky);
  border: var(--line);
  border-radius: var(--radius-sm);
}
.topic p { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 599.98px) {
  .topic { grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.4rem; padding: 1.25rem; }
  .topic__icon { grid-row: span 2; width: 60px; height: 60px; margin-bottom: 0; }
}

.section--pink .step { box-shadow: var(--shadow); }

.gallery {
  display: grid;
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  grid-template-columns: repeat(2, 1fr);
  max-width: 1040px;
  margin-inline: auto;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery li {
  padding: 0.6rem 0.6rem 0.4rem;
  background: var(--white);
  border: var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), rotate 0.25s var(--ease);
}
.gallery li:nth-child(4n + 1) { rotate: -2.5deg; }
.gallery li:nth-child(4n + 2) { rotate: 1.5deg; }
.gallery li:nth-child(4n + 3) { rotate: -1deg; }
.gallery li:nth-child(4n + 4) { rotate: 2.5deg; }
.gallery li:hover { rotate: 0deg; transform: scale(1.04); z-index: 1; position: relative; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 3px; }
.gallery__caption { margin-top: 2.5rem; text-align: center; font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); margin-inline: auto; }

.downloads {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.download {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.download:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.download__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 60px;
  background: var(--pink);
  border: var(--line);
  border-radius: 6px 16px 6px 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.download:nth-child(2) .download__icon { background: var(--yellow); }
.download:nth-child(3) .download__icon { background: var(--blue-soft); }
.download__text { display: grid; gap: 0.1rem; }
.download__title { font-weight: 700; }
.download__meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.download__arrow { margin-left: auto; flex-shrink: 0; width: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* 19. Reveal on scroll
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* 20. Keyframes
   ========================================================================== */
@keyframes spin { to { rotate: 360deg; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 21. Print
   ========================================================================== */
@media print {
  .site-header, .ticker, .video-frame, .site-footer::before { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
