/* ==========================================================
   Oost Lievense: zwart, wit, papier, en alles een beetje vloeibaar
   ========================================================== */
:root {
  --papier: #efece6;
  --inkt: #0d0d0d;
  /* Afgeleide tinten: volgen vanzelf de kleuren die je in het admin-panel kiest. */
  --papier-2: color-mix(in srgb, var(--papier) 94%, var(--inkt));
  --inkt-zacht: color-mix(in srgb, var(--inkt) 65%, var(--papier));
  --lijn: color-mix(in srgb, var(--inkt) 14%, transparent);
  --papier-zacht: color-mix(in srgb, var(--papier) 72%, var(--inkt));
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --kop: var(--sans);
  --rond: 22px;
  --gat: clamp(10px, 1.4vw, 18px);
  --zij: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* papierkorrel */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: korrel 1s steps(4) infinite;
}
@keyframes korrel {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--inkt-zacht);
}

/* ---------- cursor-blob ---------- */
.cursor {
  position: fixed; left: 0; top: 0; width: 26px; height: 26px;
  margin: -13px 0 0 -13px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  pointer-events: none; z-index: 200;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .2s;
  will-change: transform;
}
.cursor.groot { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- top ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--zij);
  transition: transform .5s var(--ease), background .3s;
}
.top.zichtbaar { background: color-mix(in srgb, var(--papier) 82%, transparent); backdrop-filter: blur(10px); }
.top-logo { width: 120px; opacity: 0; transform: translateY(-8px); transition: .5s var(--ease); }
/* Klein logo in de tekstkleur: het plaatje dient als masker */
.top-logo { background: var(--inkt); -webkit-mask: url("/img/logo.png") center / contain no-repeat; mask: url("/img/logo.png") center / contain no-repeat; }
.top-logo img { display: block; width: 100%; height: auto; visibility: hidden; }
.top.zichtbaar .top-logo { opacity: 1; transform: none; }
.top-nav { display: flex; gap: 6px; }
.top-nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--lijn);
  background: color-mix(in srgb, var(--papier) 70%, transparent);
  transition: background .25s, color .25s;
}
.top-nav a:hover { background: var(--inkt); color: var(--papier); }
@media (max-width: 640px) {
  .top { padding: 10px var(--zij); }
  .top-logo { width: 84px; }
  .top-nav a { font-size: 14px; padding: 6px 11px; }
  .muziek-info h3 { font-size: 15px; }
  .muziek-info p { display: none; }
  .speel { width: 38px; height: 38px; right: 10px; bottom: 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; align-content: center;
  padding: 90px var(--zij) 100px; overflow: hidden;
}
.hero-logo { margin: 0; width: min(94vw, 1300px); position: relative; z-index: 2; mix-blend-mode: multiply; will-change: transform; }
/* wit valt weg tegen de achtergrond, zwart blijft */
.hero-golf, .golf-canvas { display: block; width: 100%; height: auto; pointer-events: none; clip-path: inset(2px); }
.hero-tag {
  position: relative; z-index: 2;
  font-family: var(--kop); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(18px, 2vw, 26px); margin: 18px 0 0; text-align: center;
}
.hero-scroll { position: absolute; bottom: 32px; left: 50%; translate: -50% 0; z-index: 2; width: 28px; padding: 8px 0; animation: dobber 2.6s ease-in-out infinite; }
.hero-scroll svg { display: block; width: 100%; fill: none; stroke: var(--inkt); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
@keyframes dobber { 50% { transform: translateY(8px); } }

.blobs { position: absolute; inset: 0; z-index: 1; opacity: .8; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
/* zachte vlekken via verlopen in plaats van blur: dat scheelt veel rekenwerk */
.blobs i {
  position: absolute; display: block; border-radius: 50%; will-change: transform;
  animation: drijf 22s ease-in-out infinite alternate;
}
.blobs i:nth-child(1) { width: 60vw; height: 60vw; left: -16vw; top: -14vw; background: radial-gradient(closest-side, color-mix(in srgb, var(--papier) 90%, var(--inkt)), transparent); }
.blobs i:nth-child(2) { width: 52vw; height: 52vw; right: -14vw; top: 12vh; background: radial-gradient(closest-side, color-mix(in srgb, var(--papier) 87%, var(--inkt)), transparent); animation-duration: 27s; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 44vw; height: 44vw; left: 26vw; bottom: -18vw; background: radial-gradient(closest-side, color-mix(in srgb, var(--papier) 92%, var(--inkt)), transparent); animation-duration: 19s; animation-delay: -3s; }
@keyframes drijf {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vh) scale(1.12); }
  100% { transform: translate(-4vw, -3vh) scale(.92); }
}


/* ---------- filters ---------- */
.werk { padding: 40px var(--zij) 80px; scroll-margin-top: 90px; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  border: 1.5px solid var(--inkt); background: transparent;
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 500;
  transition: background .25s, color .25s;
}
.chip:hover { background: var(--inkt); color: var(--papier); }
.chip.actief { background: var(--inkt); color: var(--papier); }

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 19vw, 300px);
  grid-auto-flow: dense;
  gap: var(--gat);
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 28vw; } }
@media (max-width: 640px)  { .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; } }

.tegel {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--rond);
  background: var(--papier-2);
  opacity: 0; transform: translateY(40px) rotate(var(--kanteling, 0deg));
  transition: opacity .8s var(--ease), transform .8s var(--ease), background .3s, color .3s, box-shadow .3s;
  isolation: isolate;
}
.tegel.in { opacity: 1; transform: rotate(var(--kanteling, 0deg)); }
.tegel:focus-visible { outline: 3px solid var(--inkt); outline-offset: 3px; }
.tegel.breed { grid-column: span 2; }
.tegel.hoog { grid-row: span 2; }
.tegel.groot { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) { .tegel.groot, .tegel.breed { grid-column: span 2; } }

.tegel-beeld { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.tegel:hover .tegel-beeld { transform: scale(1.06); }
.tegel[data-type="foto"] .tegel-beeld, .tegel[data-type="project"] .tegel-beeld { filter: grayscale(.25) contrast(1.04); }
.tegel:hover .tegel-beeld { filter: none; }

.tegel-onder {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px 18px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.tegel:hover .tegel-onder, .tegel:focus-visible .tegel-onder { transform: none; }
@media (hover: none) { .tegel-onder { transform: none; } }
.tegel-onder h3 { margin: 0; font-weight: 500; font-size: 18px; line-height: 1.2; }
.tegel-onder p { margin: 2px 0 0; font-size: 14px; opacity: .85; }

.soort {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  background: var(--papier); color: var(--inkt);
}
.vast { position: absolute; top: 12px; right: 12px; z-index: 3; font-size: 18px; color: var(--papier); mix-blend-mode: difference; }
.aantal { position: absolute; bottom: 12px; right: 12px; z-index: 3; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(13,13,13,.6); color: #fff; }

/* werk: als een cv-kaartje */
.tegel[data-type="werk"] {
  background: var(--papier); border: 1.5px solid var(--inkt);
  display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px;
}
.tegel[data-type="werk"] .soort { position: static; align-self: flex-start; background: var(--inkt); color: var(--papier); }
.werk-periode { font-family: var(--kop); font-weight: 500; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.werk-functie { font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.2; margin: 0; }
.werk-bedrijf { margin: 2px 0 0; color: var(--inkt-zacht); }
.tegel[data-type="werk"]:hover { background: var(--inkt); color: var(--papier); }
.tegel[data-type="werk"]:hover .werk-bedrijf { color: var(--papier-zacht); }
.tegel[data-type="werk"]:hover .soort { background: var(--papier); color: var(--inkt); }

/* hover: kleuren omkeren in plaats van de vorm te veranderen */
.tegel[data-type="tekst"]:hover { background: var(--papier); color: var(--inkt); box-shadow: inset 0 0 0 1.5px var(--inkt); }
.tegel[data-type="tekst"]:hover .tekst-klein { color: var(--inkt-zacht); }
.tegel[data-type="tekst"]:hover .soort { background: var(--inkt); color: var(--papier); }
.tegel[data-type="project"].zonder-beeld:hover { background: var(--inkt); color: var(--papier); }
.tegel[data-type="project"].zonder-beeld:hover .tegel-onder { color: var(--papier); }
.tegel[data-type="muziek"]:hover { background: var(--papier); color: var(--inkt); box-shadow: inset 0 0 0 1.5px var(--inkt); }
.tegel[data-type="muziek"]:hover .muziek-info p { color: var(--inkt-zacht); }
.tegel[data-type="muziek"]:hover .soort { background: var(--inkt); color: var(--papier); }
.tegel[data-type="muziek"]:hover .golfje path { stroke: var(--inkt); }

/* tekst */
.tegel[data-type="tekst"] {
  background: var(--inkt); color: var(--papier);
  padding: 22px 24px; display: flex; flex-direction: column; justify-content: flex-end;
}
.tegel[data-type="tekst"] .soort { background: var(--papier); }
.tekst-kop { font-family: var(--kop); font-weight: 500; font-size: clamp(26px, 2.8vw, 44px); line-height: 1.05; letter-spacing: -.04em; margin: 0; }
.tekst-klein { margin: 10px 0 0; color: var(--papier-zacht); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* project zonder beeld */
.tegel[data-type="project"].zonder-beeld {
  background: var(--papier-2); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
}
.project-nr { position: absolute; top: 8px; right: 16px; font-family: var(--kop); font-weight: 500; letter-spacing: -.06em; font-size: clamp(60px, 9vw, 140px); line-height: 1; opacity: .1; }
.tegel.zonder-beeld .tegel-onder { position: static; transform: none; background: none; color: var(--inkt); padding: 0; }
.tegel.zonder-beeld .tegel-onder h3 { font-size: clamp(22px, 2.2vw, 32px); }

/* muziek: een draaiende plaat */
.tegel[data-type="muziek"] {
  background: var(--inkt); color: var(--papier);
  display: grid; place-items: center;
}
.plaat {
  width: min(72%, 72cqh, 300px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.06) 31.5% 32%, transparent 32.5% 40%, rgba(255,255,255,.05) 40.5% 41%, transparent 41.5% 50%, rgba(255,255,255,.05) 50.5% 51%, transparent 51.5%),
    #161616;
  box-shadow: 0 0 0 2px #262626, 0 18px 40px rgba(0,0,0,.6);
  display: grid; place-items: center;
  animation: draai 7s linear infinite paused;
  transition: transform .6s var(--ease);
}
.tegel[data-type="muziek"] { container-type: size; }
.tegel[data-type="muziek"]:hover .plaat, .tegel.speelt .plaat { animation-play-state: running; }
.plaat-label { width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--papier); display: grid; place-items: center; position: relative; }
.plaat-label img { width: 100%; height: 100%; object-fit: cover; }
.plaat-label::after { content: ""; position: absolute; width: 10%; aspect-ratio: 1; border-radius: 50%; background: var(--inkt); }
.plaat-label .mini-logo { width: 80%; height: auto; object-fit: contain; }
.tegel[data-type="muziek"] .soort { background: var(--papier); }
.muziek-info { position: absolute; left: 18px; right: 70px; bottom: 16px; }
.muziek-info h3 { margin: 0; font-weight: 500; font-size: 17px; line-height: 1.2; }
.muziek-info p { margin: 0; font-size: 14px; color: var(--papier-zacht); }
.speel {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--papier); display: grid; place-items: center;
  transition: background .25s, box-shadow .25s;
}
.speel svg { transition: fill .25s; }
.speel:hover, .tegel[data-type="muziek"]:hover .speel { background: var(--inkt); }
.speel:hover svg, .tegel[data-type="muziek"]:hover .speel svg { fill: var(--papier); }
.tegel[data-type="muziek"] .speel:hover { background: var(--papier); box-shadow: inset 0 0 0 1.5px var(--inkt); }
.tegel[data-type="muziek"] .speel:hover svg { fill: var(--inkt); }
.speel svg { width: 18px; height: 18px; fill: var(--inkt); }
.golfje { position: absolute; left: 0; right: 0; top: 46%; height: 40px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.tegel.speelt .golfje { opacity: .9; }
.golfje path { fill: none; stroke: var(--papier); stroke-width: 1.5; }

/* ---------- over ---------- */
.over {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px 60px;
  padding: 90px var(--zij); border-top: 1.5px solid var(--inkt);
  scroll-margin-top: 90px;
}
.over-kop h2 { font-family: var(--kop); font-weight: 500; font-size: clamp(44px, 6vw, 96px); line-height: .95; margin: 10px 0 0; letter-spacing: -.05em; }
.over-tekst { font-size: clamp(18px, 1.6vw, 22px); white-space: pre-line; align-self: end; }
.cv { grid-column: 1 / -1; }
.cv-lijst { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--lijn); }
.cv-lijst li {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 20px; align-items: baseline;
  padding: 18px 4px; border-bottom: 1px solid var(--lijn); cursor: pointer;
  transition: padding .4s var(--ease), background .3s;
}
.cv-lijst li:hover { padding-left: 18px; background: var(--papier-2); }
.cv-periode { font-family: var(--kop); font-weight: 500; font-size: 17px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--inkt-zacht); }
.cv-functie { font-weight: 500; font-size: 19px; }
.cv-bedrijf { color: var(--inkt-zacht); }
.cv-pijl { font-size: 20px; transition: transform .4s var(--ease); }
.cv-lijst li:hover .cv-pijl { transform: translateX(6px) rotate(-45deg); }
@media (max-width: 760px) {
  .over { grid-template-columns: 1fr; }
  .cv-lijst li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .cv-periode { grid-column: 1 / -1; font-size: 18px; }
}

/* ---------- voet ---------- */
.voet { background: var(--inkt); color: var(--papier); padding: 70px var(--zij) 28px; overflow: hidden; }
.voet-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.voet-links a {
  text-decoration: none; font-size: clamp(20px, 2.6vw, 34px); font-weight: 500;
  border: 1.5px solid var(--papier); border-radius: 999px; padding: 8px 22px;
  transition: background .3s, color .3s;
}
.voet-links a:hover { background: var(--papier); color: var(--inkt); }
/* zwart valt weg tegen de donkere achtergrond, wit blijft */
.voet-logo { width: 100%; mix-blend-mode: screen; opacity: .95; }
.voet-golf, .voet-logo .golf-canvas { display: block; width: 100%; height: auto; pointer-events: none; clip-path: inset(2px); }
.voet-klein { margin: 24px 0 0; font-size: 13px; color: color-mix(in srgb, var(--papier) 58%, var(--inkt)); }

/* ---------- detail ---------- */
.detail { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 3vh 3vw; }
.detail[hidden] { display: none; }
.detail-achter { position: absolute; inset: 0; background: rgba(13,13,13,.55); backdrop-filter: blur(6px); animation: infaden .4s; }
.detail-paneel {
  position: relative; width: min(1180px, 100%); max-height: 94vh; overflow: auto;
  background: var(--papier); border-radius: 28px;
  display: grid; grid-template-columns: 1.35fr 1fr;
  animation: opkomen .6s var(--ease);
}
.detail-paneel.zonder-media { grid-template-columns: 1fr; max-width: 760px; }
.detail-paneel.zonder-media .detail-media { display: none; }
@keyframes infaden { from { opacity: 0; } }
@keyframes opkomen { from { opacity: 0; transform: translateY(40px) scale(.97); border-radius: 50%; } }
.detail-media { background: var(--inkt); display: flex; flex-direction: column; gap: 4px; }
.detail-media img, .detail-media video { width: 100%; height: auto; max-height: 94vh; object-fit: contain; background: var(--inkt); }
.detail-media audio { width: calc(100% - 32px); margin: 16px; }
.detail-info { padding: 40px 36px; }
.detail-info h2 { font-family: var(--kop); font-weight: 500; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -.04em; margin: 10px 0 6px; }
.detail-sub { color: var(--inkt-zacht); margin: 0 0 20px; }
.detail-tekst { white-space: pre-line; }
.detail-embed iframe { width: 100%; border: 0; border-radius: 14px; margin-top: 20px; }
.detail-sluit {
  position: sticky; top: 14px; float: right; margin: 14px 14px -60px auto; z-index: 3;
  grid-column: 1 / -1; justify-self: end;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--inkt); display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.detail-sluit:hover { transform: rotate(90deg); }
.detail-sluit svg { width: 18px; stroke: var(--papier); stroke-width: 2.4; stroke-linecap: round; }
.knop {
  display: inline-block; margin-top: 24px; text-decoration: none; font-weight: 500;
  background: var(--inkt); color: var(--papier); padding: 12px 22px; border-radius: 999px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.detail-link[hidden] { display: none; }
.knop:hover { background: var(--papier); color: var(--inkt); box-shadow: inset 0 0 0 1.5px var(--inkt); }
@media (max-width: 820px) {
  .detail { padding: 0; }
  .detail-paneel { grid-template-columns: 1fr; max-height: 100svh; height: 100svh; border-radius: 0; }
  .detail-info { padding: 28px 20px 60px; }
}

.leeg { font-family: var(--kop); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tegel { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@keyframes draai { to { transform: rotate(360deg); } }

/* Eigen kleuren: het logo wordt dan in een canvas in de tekstkleur getekend */
.gekleurd { position: relative; }
.gekleurd.hero-logo, .gekleurd.voet-logo { mix-blend-mode: normal; opacity: 1; }
.gekleurd video { opacity: 0; }
.gekleurd .golf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
