/* werk3d.css · alles geprefixt met w3- */
.w3-host {
  --w3-bg: #F7F7F5;
  --w3-ink: #121212;
  --w3-grijs: #5C5C58;
  --w3-oranje: #D4F05A;
  --w3-font: "W3 Mona", "Mona Sans", system-ui, sans-serif;
  --w3-k: 19.4;
  position: relative;
  min-height: calc(var(--w3-k) * 100vh);
  min-height: calc(var(--w3-k) * 100lvh);
  background: var(--w3-bg);
  color: var(--w3-ink);
}
@media (max-width: 819px) { .w3-host { --w3-k: 16.55; } }
@media (prefers-reduced-motion: reduce) { .w3-host { min-height: 0; } }
.w3-host--lijst { min-height: 0; }

.w3-root { position: relative; height: calc(var(--w3-k) * 100vh); height: calc(var(--w3-k) * 100lvh); }
.w3-sticky {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background: var(--w3-bg);
  contain: layout paint;
}
.w3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #F7F7F5; }
.w3-vids { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; left: 0; top: 0; }
.w3-vids video { width: 1px; height: 1px; }

/* Labels per project (HTML boven de scène) */
.w3-labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.w3-label {
  position: absolute; top: 46%; --w3-ly: -100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  max-width: min(44vw, 560px);
  color: var(--w3-ink); text-decoration: none;
  opacity: 0; pointer-events: none;
  will-change: opacity, transform;
  border-radius: 4px; outline: none;
}
.w3-label.w3-l { left: clamp(20px, 5.5vw, 96px); }
.w3-label.w3-r { right: clamp(20px, 5.5vw, 96px); align-items: flex-end; text-align: right; }
.w3-label.w3-on { pointer-events: auto; }
.w3-label:focus-visible { opacity: 1 !important; transform: translate3d(0, var(--w3-ly, 0px), 0) !important; outline: 2px solid var(--w3-oranje); outline-offset: 8px; }
.w3-name {
  font-family: var(--w3-font); font-stretch: 75%; font-weight: 800;
  font-size: clamp(40px, 6.2vw, 96px); line-height: 0.92; letter-spacing: -0.01em;
  text-wrap: balance;
}
.w3-sector { font-family: var(--w3-font); font-size: 15px; font-weight: 450; color: var(--w3-grijs); order: -1; }
.w3-cta {
  font-family: var(--w3-font); font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  padding-bottom: 3px; border-bottom: 1.5px solid var(--w3-ink);
  transition: border-color .2s, color .2s;
}
.w3-cta::after { content: "\2192"; font-weight: 500; transition: transform .2s; }
.w3-label:hover .w3-cta { color: var(--w3-oranje); border-color: var(--w3-oranje); }
.w3-label:hover .w3-cta::after { transform: translateX(3px); }

div.w3-label { cursor: default; }
.w3-vliegt .w3-labels, .w3-vliegt .w3-reg { opacity: 0; transition: opacity .25s; }

/* Cursor "Bekijk" boven een scherm */
.w3-cursor {
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3;
}
.w3-cursor span {
  position: absolute; left: -42px; top: -42px; width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--w3-ink); color: #fff;
  font-family: var(--w3-font); font-size: 14px; font-weight: 600;
  transform: scale(.3); opacity: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.w3-hover { cursor: none; }
.w3-hover .w3-cursor span { transform: scale(1); opacity: 1; }

/* Register-labels onder de tegels */
.w3-reg { position: absolute; inset: 0; pointer-events: none; }
.w3-reg-a {
  position: absolute; left: 0; top: 0; visibility: hidden; opacity: 0;
  font-family: var(--w3-font); font-size: 14px; font-weight: 600; white-space: nowrap;
  color: var(--w3-ink); text-decoration: none; padding: 4px 6px;
}
.w3-reg-a.w3-on { pointer-events: auto; }
.w3-reg-a:hover { color: var(--w3-oranje); }

@media (max-width: 819px) {
  .w3-label, .w3-label.w3-l, .w3-label.w3-r {
    left: 20px; right: 20px; top: clamp(28px, 9svh, 80px); bottom: auto; --w3-ly: 0px;
    align-items: flex-start; text-align: left; max-width: none; gap: 8px;
  }
  .w3-name { font-size: clamp(36px, 11vw, 52px); }
  .w3-sector, .w3-cta { font-size: 14px; }
  .w3-reg-a { font-size: 11px; line-height: 1.2; padding: 2px 4px; white-space: normal; width: 29vw; text-align: center; }
}

/* Lijst (fallback) */
.w3-list {
  list-style: none; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px);
  max-width: 1320px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2.5vw, 32px);
}
.w3-card-a { display: flex; flex-direction: column; gap: 6px; color: var(--w3-ink); text-decoration: none; border-radius: 4px; }
.w3-card-a:focus-visible { outline: 2px solid var(--w3-oranje); outline-offset: 6px; }
.w3-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #E6E7E0; margin-bottom: 10px; }
.w3-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.w3-card-a:hover .w3-card-img img { transform: scale(1.02); }
.w3-card-name { font-family: var(--w3-font); font-stretch: 75%; font-weight: 800; font-size: 30px; line-height: 1; }
.w3-card-sector { font-family: var(--w3-font); font-size: 14px; color: var(--w3-grijs); }
.w3-list .w3-cta { align-self: flex-start; font-size: 14px; }
.w3-card-a:hover .w3-cta { color: var(--w3-oranje); border-color: var(--w3-oranje); }
@media (prefers-reduced-motion: reduce) { .w3-card-img img { transition: none; } }

/* ---------- Kop "Werk": van schets naar af ---------- */
@property --w3o { syntax: "<percentage>"; inherits: true; initial-value: 104%; }
@property --w3p { syntax: "<percentage>"; inherits: true; initial-value: 104%; }
.w3-kop {
  --w3-ink: #121212; --w3-oranje: #D4F05A; --w3-grijs: #5C5C58;
  --w3-font: "W3 Mona", "Mona Sans", system-ui, sans-serif;
  position: relative; z-index: 3; background: transparent;
  color: var(--w3-ink); overflow: visible;
}
.w3-kop-in {
  position: relative; max-width: 1320px; margin: 0 auto;
  padding: clamp(72px, 14vh, 160px) clamp(16px, 4vw, 48px) clamp(88px, 14vh, 150px);
  transform-origin: 0 100%; will-change: transform, opacity;
}
.w3-kop-h {
  font-family: var(--w3-font); font-weight: 800; font-stretch: 75%;
  font-size: clamp(92px, 13vw, 200px); line-height: .86; letter-spacing: -0.01em; margin: 0 0 28px;
}
.w3-kop-w { position: relative; display: inline-block; color: var(--w3-ink); }
.w3-kop-w::before, .w3-kop-w::after {
  content: attr(data-tekst); position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0;
}
/* omtrek die zich tekent */
.w3-kop-w::before {
  color: transparent; -webkit-text-stroke: 1.4px var(--w3-ink);
  clip-path: inset(-10% calc(100% - var(--w3o)) -10% 0);
}
/* inkt met dunne oranje rand op het vulfront */
.w3-kop-w::after {
  color: transparent;
  background: linear-gradient(90deg, var(--w3-ink) 0, var(--w3-ink) calc(var(--w3p) - 0.028em), var(--w3-oranje) calc(var(--w3p) - 0.028em), var(--w3-oranje) var(--w3p), transparent var(--w3p));
  -webkit-background-clip: text; background-clip: text;
}
.w3-kop-p { font-family: var(--w3-font); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 34em; margin: 0; color: #3A3936; }
.w3-kop-m { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.w3-kop-m > span { display: inline-block; }
.w3-kop-scroll {
  position: absolute; left: clamp(16px, 4vw, 48px); bottom: clamp(20px, 4vh, 40px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--w3-font); font-size: 13px; font-weight: 500; color: var(--w3-grijs);
}
.w3-kop-scroll i { position: relative; display: block; width: 1px; height: 40px; background: rgba(18,18,18,.14); overflow: hidden; }
.w3-kop-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--w3-ink); animation: w3-kop-drup 1.8s cubic-bezier(.6,0,.3,1) 3.2s infinite; transform: translateY(-14px); }
.w3-kop-lijn { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.w3-kop-lijn path { fill: none; stroke: #D4F05A; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .w3-kop-w { animation: w3-kop-basis 2.05s linear both, w3-kop-o .95s .1s cubic-bezier(.5,0,.3,1) both, w3-kop-p 1.1s .85s cubic-bezier(.55,0,.25,1) both, w3-kop-breed 1.3s 2.05s cubic-bezier(.45,0,.25,1) both; }
  .w3-kop-w::before { animation: w3-kop-zicht 2.05s linear both; }
  .w3-kop-w::after { animation: w3-kop-zicht 2.05s linear both; }
  .w3-kop-m > span { animation: w3-kop-op .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1.25s + var(--i, 0) * 45ms); }
  .w3-kop-lijn path { animation: w3-kop-lijn 1.4s 2.05s cubic-bezier(.6,0,.2,1) both; }
  .w3-kop-scroll { animation: w3-kop-in .6s 2.9s ease both; }
}
@keyframes w3-kop-basis { 0%, 99.9% { color: transparent; } 100% { color: var(--w3-ink); } }
@keyframes w3-kop-zicht { 0%, 99.9% { opacity: 1; } 100% { opacity: 0; } }
@keyframes w3-kop-o { from { --w3o: 0%; } to { --w3o: 104%; } }
@keyframes w3-kop-p { from { --w3p: 0%; } to { --w3p: 104%; } }
@keyframes w3-kop-breed { 0% { font-stretch: 75%; } 50% { font-stretch: 90%; } 100% { font-stretch: 75%; } }
@keyframes w3-kop-op { from { transform: translateY(105%); } to { transform: none; } }
@keyframes w3-kop-lijn { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes w3-kop-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes w3-kop-drup { 0% { transform: translateY(-14px); } 60%, 100% { transform: translateY(40px); } }
