/* ==========================================================================
   Prikbord: een kurken prikbord als achtergrond, inhoud als vastgeprikte items
   ========================================================================== */

:root {
  /* Kleuren */
  --cork: #b8875a;
  --wood: #5a3a1f;
  --paper: #fffdf6;
  --note-yellow: #fff1a1;
  --note-pink: #ffd3dc;
  --note-blue: #cfe6ff;
  --note-green: #d7f2c8;
  --ink: #1f1c18;
  --ink-soft: #4b453d;
  --line: #d3e1ee;
  --margin-line: #eea3a3;
  --focus: #0b3d91;

  /* Huisstijl */
  --brand-red: #b7473a;    /* 183, 71, 58 */
  --brand-orange: #d65a1f; /* 214, 90, 31 */
  --brand-blue: #536c78;   /* 83, 108, 120 */
  --brand-blue-dark: #435863;
  /* Accentkleur (punaises, touw, viltstift, markering). Andere optie: var(--brand-orange) */
  --accent: var(--brand-red);

  /* Typografie */
  --font-head: "Fredoka", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive; /* alleen handgeschreven details */

  /* Diepte */
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 8px 14px -4px rgba(0, 0, 0, 0.38);
  --shadow-lift: 0 2px 3px rgba(0, 0, 0, 0.14), 0 22px 30px -8px rgba(0, 0, 0, 0.45);

  /* Ritme */
  --gap: clamp(1.75rem, 4vw, 3rem);
  --frame: 16px;
  --tilt: 1; /* schaal voor alle rotaties, kleiner op mobiel */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cork);
  /* Kurkstructuur: donkere en lichte korrels + licht/schaduw over het hele bord */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.27 0 0 0 0 0.15 0 0 0 0 0.06 2.4 0 0 0 -1.05'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.94 0 0 0 0 0.8 0 0 0 0 0.6 0 2.2 0 0 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 25% 15%, rgba(255, 236, 200, 0.18), transparent 60%),
    radial-gradient(ellipse at 85% 95%, rgba(60, 30, 10, 0.22), transparent 55%);
  background-size: 260px 260px, 100% 100%, 100% 100%;
  position: relative;
  overflow-x: clip;
}

/* Houten lijst rond het prikbord */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1002;
  pointer-events: none;
  border: var(--frame) solid var(--wood);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.3),
    inset 0 8px 18px rgba(0, 0, 0, 0.45),
    inset 0 -4px 12px rgba(0, 0, 0, 0.25);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: calc(var(--frame) + 1rem);
  top: -100px;
  z-index: 1005;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: calc(var(--frame) + 0.75rem);
}

/* ---------- Opbouw ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.75rem, 5vw, 3.5rem);
}

main > * + *,
main > article > * + * {
  margin-top: clamp(3rem, 7vw, 5rem);
}

main > .back + * {
  margin-top: 2rem;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
}

/* ---------- Header & navigatie ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.logo {
  --r: -2deg;
  display: inline-block;
  padding: 0.35rem 1.25rem 0.4rem;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  --pin-size: 12px;
  position: relative;
  display: block;
  padding: 0.65rem 1.1rem 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.nav a[aria-current="page"] {
  background: var(--note-yellow);
}

.nav a[aria-current="page"] span {
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 40%, transparent) 60%);
}

/* ---------- Punaises & plakband ---------- */

.pinned {
  position: relative;
}

.pinned::before,
.nav a::before {
  content: "";
  position: absolute;
  top: calc(var(--pin-size, 22px) / -2.2);
  left: calc(50% + var(--pin-x, 0px));
  z-index: 2;
  width: var(--pin-size, 22px);
  height: var(--pin-size, 22px);
  margin-left: calc(var(--pin-size, 22px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85) 0 12%, var(--pin, var(--accent)) 38%, color-mix(in srgb, var(--pin, var(--accent)) 55%, #000) 100%);
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.4);
}

.pin-blue { --pin: var(--brand-blue); }
.pin-green { --pin: #2e9b57; }
.pin-yellow { --pin: #e8b21c; }
.pin-black { --pin: #333; }

.taped {
  position: relative;
}

.taped::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 2;
  width: 112px;
  height: 30px;
  margin-left: -56px;
  background: rgba(250, 244, 222, 0.62);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transform: rotate(-3deg);
  /* gekartelde uiteinden zoals afgescheurd plakband */
  clip-path: polygon(0 8%, 4% 0, 96% 4%, 100% 0, 98% 50%, 100% 100%, 95% 94%, 3% 100%, 0 92%, 2% 50%);
}

/* ---------- Items op het bord ---------- */

/* Alles wat op het bord hangt: schuin (--r), versleepbaar (--dx/--dy) */
.note,
.sticky,
.polaroid,
.index-card,
.biz-card,
.label,
.logo,
.nav a {
  position: relative;
  translate: var(--dx, 0px) var(--dy, 0px);
  transform: rotate(calc(var(--r, 0deg) * var(--tilt)));
}

/* Vastgeprikt of bovenaan gekleefd: zwaait rond de bovenrand */
.pinned,
.sticky,
.nav a {
  transform-origin: 50% 0;
}

.note,
.sticky,
.polaroid,
.index-card,
.biz-card {
  box-shadow: var(--shadow);
}

.note {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--paper);
  border-radius: 2px;
}

.note--yellow { background: var(--note-yellow); }
.note--pink { background: var(--note-pink); }
.note--blue { background: var(--note-blue); }
.note--green { background: var(--note-green); }

/* Gelinieerd papier: tekst valt op de lijnen (1.75rem ritme) */
.note--lined {
  --lh: 1.75rem;
  padding: var(--lh) clamp(1.25rem, 3vw, 2rem) var(--lh) 3.5rem;
  line-height: var(--lh);
  background:
    linear-gradient(90deg, transparent 2.4rem, var(--margin-line) 2.4rem, var(--margin-line) calc(2.4rem + 2px), transparent 0),
    repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), var(--line) calc(var(--lh) - 1px) var(--lh)),
    var(--paper);
  background-position: 0 0, 0 calc(var(--lh) - 0.35rem), 0 0;
}

.note--lined h1,
.note--lined h2 {
  margin: 0 0 var(--lh);
  line-height: calc(var(--lh) * 2);
}

.note--lined p {
  margin: 0 0 var(--lh);
}

.note--lined .hand {
  line-height: var(--lh);
}

.note--lined > :last-child {
  margin-bottom: 0;
}

.sticky {
  padding: 1.25rem 1.25rem 1.5rem;
  background-color: var(--note-yellow);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.04));
  /* licht omkrullende onderrand */
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 14px 14px -10px rgba(0, 0, 0, 0.45);
}

.sticky h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  line-height: 1.15;
}

.sticky p {
  margin: 0;
  font-size: 0.95rem;
}

.polaroid {
  margin: 0;
  padding: 0.8rem 0.8rem 0;
  background: #fff;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e6e1d8;
}

.polaroid--portrait img {
  aspect-ratio: 4 / 5;
  object-position: 50% 30%;
}

/* Polaroid met een langer handgeschreven briefje eronder */
.polaroid--note figcaption {
  padding: 0.7rem 0.6rem 1rem;
  font-size: 1.4rem;
  line-height: 1.2;
}

.polaroid figcaption {
  padding: 0.55rem 0.25rem 0.9rem;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-soft);
}

.index-card {
  padding: 1.25rem 1.4rem 1.4rem;
  background:
    linear-gradient(transparent 2.9rem, var(--margin-line) 2.9rem, var(--margin-line) calc(2.9rem + 2px), transparent 0),
    #fff;
}

.index-card .year {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.index-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.index-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Licht optillen bij hover, alleen voor items waar je op kan klikken */
@media (hover: hover) and (pointer: fine) {
  .lift {
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
  }

  .lift:hover,
  .lift:focus-within {
    z-index: 3;
    translate: var(--dx, 0px) calc(var(--dy, 0px) - 5px);
    transform: rotate(0deg);
    box-shadow: var(--shadow-lift);
  }
}

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

/* Hoofdtitels: Fredoka Bold. Subtitels: Fredoka SemiBold. */
h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.1;
}

h1,
h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.lead {
  max-width: 52ch;
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.lead p {
  margin: 0 0 0.9rem;
}

.lead p:last-child {
  margin-bottom: 0;
}

.lead strong {
  color: var(--ink);
}

.hand {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.25;
}

/* Sectietitel: handgeschreven strook papier met plakband */
.label {
  --r: -1.5deg;
  display: inline-block;
  margin: 0 0 var(--gap);
  padding: 0.35rem 1.4rem 0.2rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1.5rem;
}

/* ---------- Knoppen & labels ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  font: 700 1rem/1 var(--font-body);
  color: #fff;
  text-decoration: none;
  background: var(--brand-blue);
  border: 2px solid var(--brand-blue);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
}

.btn:active {
  transform: scale(0.97);
}

.btn--ghost {
  color: var(--brand-blue-dark);
  background: transparent;
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
}

.btn--paper {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  box-shadow: var(--shadow);
}

.btn--paper:hover {
  background: #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--brand-blue) 18%, #fff);
  border-radius: 999px;
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

.hero .polaroid {
  max-width: 380px;
  justify-self: center;
}

.now {
  max-width: 440px;
}

.now ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.now li + li {
  margin-top: 0.3rem;
}

.quote {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.quote .cite-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--ink-soft);
}

/* ---------- Projecten ---------- */

.project {
  display: flex;
  flex-direction: column;
}

.project__body {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 0.25rem 1.2rem;
}

.project h3 {
  margin: 0;
  font-size: 1.35rem;
}

.project h3 a {
  text-decoration: none;
}

/* hele kaart klikbaar */
.project h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.project .more {
  font-size: 0.9rem;
  font-weight: 700;
}

.intro-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

/* ---------- Projectdetail ---------- */

.back {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.project-hero__info {
  display: grid;
  gap: var(--gap);
}

.facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
  color: var(--ink-soft);
}

.project-story {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- Case-pagina's (dressed-to-impress.html, limo.html, ander-spoor.html) ---------- */

/* Lange projecttitels iets kleiner dan een gewone h1 */
.project-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

/* Tekstbriefje naast beeld; --flip zet het beeld links */
.case-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

.case-section--flip > :first-child {
  order: 2;
}

/* Alleen tekst: één briefje, gecentreerd */
.case-text {
  max-width: 760px;
  margin-inline: auto;
}

.case-section :is(.note, .sticky) p,
.case-text p {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.case-section :is(.note, .sticky) > :last-child,
.case-text > :last-child {
  margin-bottom: 0;
}

.case-section .sticky h2 {
  margin-bottom: 0.9rem;
}

.case-section :is(.note, .sticky) ul,
.case-text ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.case-section .note li + li,
.case-text li + li {
  margin-top: 0.35rem;
}

/* Ondertitel onder een sectietitel */
.kicker {
  margin: -0.35rem 0 1rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-blue-dark);
}

.case-media {
  display: grid;
  gap: var(--gap);
  justify-items: center;
}

.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

/* Kunstwerk niet bijsnijden: foto op zijn eigen verhouding */
.polaroid--natural img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

.polaroid--natural {
  width: 100%;
}

.polaroid--small {
  max-width: 340px;
}

/* Video in een polaroid: laadt pas bij het afspelen, toont tot dan een stilstaand beeld */
.polaroid video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.polaroid--video-portrait {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.draggable video {
  cursor: auto;
}

/* Kleurstalen op een kaartje */
.palette {
  width: 100%;
  max-width: 460px;
  padding: 1.25rem 1.4rem 1.4rem;
  background: #fff;
}

.palette h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.palette ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 1rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.palette li {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.25;
}

.palette .chip {
  display: block;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.palette code {
  font-family: inherit;
  color: var(--ink-soft);
}

/* Lettertypes tonen in hun eigen letter */
.type-specimen {
  width: 100%;
  max-width: 460px;
  padding: 1.25rem 1.4rem 1.4rem;
  background: #fff;
}

.type-specimen h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.type-specimen dl {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.type-specimen dt {
  font-size: 2rem;
  line-height: 1.1;
}

.type-specimen dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.gallery {
  align-items: start;
}

@media (max-width: 860px) {
  .case-section {
    grid-template-columns: 1fr;
  }

  .case-section--flip > :first-child {
    order: 0;
  }
}

/* ---------- Over mij ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--gap);
  align-items: start;
}

.skills {
  align-items: stretch;
}

.skills .sticky {
  padding: 1.5rem 1.6rem 1.75rem;
}

.skills .sticky p {
  font-size: 1rem;
}

.skills .sticky p + p {
  margin-top: 0.7rem;
}

/* Afsluiter met knop naar contact */
.cta {
  max-width: 680px;
  margin-inline: auto;
  text-align: left;
}

.cta p {
  margin: 0 0 0.9rem;
}

.cta .btn {
  margin-top: 0.75rem;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.contact aside {
  display: grid;
  gap: var(--gap);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 2px solid #b9b1a4;
  border-radius: 4px;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #8f877a;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  outline-offset: 1px;
}

.form-status {
  min-height: 1.6em;
  margin: 1rem 0 0;
  font-weight: 700;
}

.biz-card {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: #fff;
  border-left: 8px solid var(--accent);
}

.biz-card h2 {
  margin-bottom: 0.25rem;
}

.biz-card dl {
  margin: 1rem 0 0;
}

.biz-card dt {
  font-weight: 700;
}

.biz-card dd {
  margin: 0 0 0.6rem;
  overflow-wrap: anywhere;
}

.biz-card dd:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.site-footer .note {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Prikbord-magie (js/board.js). Alles onder .anim valt weg bij reduced motion.
   ========================================================================== */

/* ---------- Binnenkomst: items vallen op het bord ---------- */

.anim :is(.note, .sticky, .polaroid, .index-card, .biz-card, .label, .logo, .nav a):not(.landed) {
  opacity: 0;
}

@keyframes pin-pop {
  0% { opacity: 0; transform: translateY(-16px) scale(1.9); }
  60% { opacity: 1; transform: translateY(0) scale(0.82); }
  100% { opacity: 1; transform: none; }
}

@keyframes tape-on {
  from { opacity: 0; transform: rotate(-3deg) scaleX(0.15); }
  to { opacity: 1; transform: rotate(-3deg) scaleX(1); }
}

.anim .landed.pinned::before,
.anim .nav a.landed::before {
  animation: pin-pop 0.42s cubic-bezier(0.3, 1.4, 0.5, 1) calc(var(--land-delay, 0ms) + 400ms) both;
}

.anim .landed.taped::after {
  transform-origin: 0 50%;
  animation: tape-on 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--land-delay, 0ms) + 420ms) both;
}

/* ---------- Polaroids ontwikkelen ---------- */

.anim .polaroid img {
  filter: sepia(0.9) brightness(0.16) contrast(0.7) blur(2px);
  transition: filter 2.8s cubic-bezier(0.3, 0, 0.2, 1);
}

.anim .polaroid.developed img {
  filter: none;
}

/* ---------- Viltstift rond je naam ---------- */

.scribble {
  position: relative;
  white-space: nowrap;
}

.scribble svg {
  position: absolute;
  left: -7%;
  top: -12%;
  z-index: -1;
  width: 114%;
  height: 130%;
  overflow: visible;
  pointer-events: none;
}

.scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
}

.anim .scribble path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.anim .landed .scribble path {
  animation: draw 1.1s cubic-bezier(0.6, 0, 0.3, 1) calc(var(--land-delay, 0ms) + 700ms) forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Slepen ---------- */

.draggable {
  cursor: grab;
}

.draggable :is(a, button, input, textarea, select, label) {
  cursor: auto;
}

.draggable :is(a, button) {
  cursor: pointer;
}

.dragging {
  scale: 1.05;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.14), 0 34px 40px -10px rgba(0, 0, 0, 0.5);
  transition: scale 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.is-dragging,
.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

.returning {
  transition: translate 0.7s var(--ease-out);
}

/* ---------- Rood touw ---------- */

.yarn {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}

.yarn.is-ready {
  opacity: 1;
}

.yarn .is-waiting {
  visibility: hidden;
}

/* Items staan onder elkaar: dit stuk touw (en zijn losse punaisekop) niet tonen */
.yarn .is-off {
  display: none;
}

.yarn .strand {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  filter: drop-shadow(1px 5px 2px rgba(0, 0, 0, 0.35));
}

.yarn .twist {
  fill: none;
  stroke: rgba(255, 170, 160, 0.6);
  stroke-width: 1.1;
  stroke-dasharray: 2 4;
  transition: opacity 0.4s ease;
}

.yarn .head {
  filter: drop-shadow(2px 4px 2px rgba(0, 0, 0, 0.4));
}

.pin-anchor {
  position: absolute;
  top: 1px;
  left: calc(50% + var(--pin-x, 0px));
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ---------- Lamp die je muis volgt ---------- */

.lamp {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  background: radial-gradient(820px circle at var(--mx, 62%) var(--my, 22%), rgba(255, 224, 160, 0.15), rgba(255, 224, 160, 0) 50%, rgba(30, 14, 0, 0.1) 100%);
}

/* ---------- Tip & opruimen ---------- */

.board-tools {
  position: fixed;
  right: calc(var(--frame) + 18px);
  bottom: calc(var(--frame) + 18px);
  z-index: 1003;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

.hint {
  position: relative;
  width: 250px;
  padding: 1rem 2.4rem 1.15rem 1.15rem;
  background: var(--note-pink);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.04));
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 16px 18px -10px rgba(0, 0, 0, 0.5);
  rotate: 2deg;
  transform-origin: 50% 0;
}

.hint h3 {
  margin: 0;
  font-size: 1.25rem;
}

.hint p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hint__close {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.hint__close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.btn--small {
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
}

/* ---------- Papiersnippers ---------- */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 1004;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.confetti i.pin-bit {
  border-radius: 50%;
}

/* ---------- Contact: bedankt ---------- */

.thanks:focus {
  outline: none;
}

.thanks .hand {
  margin: 0 0 1.5rem;
}

/* ---------- Koffievlek ---------- */

.sticky.coffee {
  background-image:
    radial-gradient(circle at 80% 76%, transparent 0 24px, rgba(110, 60, 20, 0.3) 25px, rgba(110, 60, 20, 0.12) 28px, transparent 30px),
    radial-gradient(circle at 74% 70%, rgba(110, 60, 20, 0.07) 0 27px, transparent 28px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.04));
}

/* ---------- Responsief ---------- */

@media (max-width: 860px) {
  .hero,
  .about,
  .contact,
  .intro-row,
  .project-hero,
  .project-story {
    grid-template-columns: 1fr;
  }

  .hero .polaroid,
  .about .polaroid {
    max-width: 320px;
    justify-self: center;
  }
}

@media (max-width: 600px) {
  :root {
    --frame: 9px;
    --tilt: 0.5;
  }

  .site-header {
    justify-content: center;
  }

  .nav ul {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  body { background: #fff; }
  body::before { display: none; }
  .note, .sticky, .polaroid, .index-card, .biz-card { transform: none; translate: none; box-shadow: none; border: 1px solid #ccc; }
  .yarn, .lamp, .board-tools, .confetti { display: none; }
}
