/* =========================================================
   Lars Paping — Portfolio
   ========================================================= */

:root {
  --paper: #e4e3df;
  --paper-ink: #0d0d0d;
  --bg: #0a0a0a;
  --panel: #111111;
  --line: #242424;
  --line-soft: #1b1b1b;
  --text: #f1f0ec;
  --lead: #c9c8c3;
  --text-2: #bdbcb7;
  --muted: #8c8b87;
  --dim: #3a3a39;
  --field-line: #5f5e5b;
  --viz-2: #1e1e1e;
  --viz-mid: #6a6a67;
  --viz-hi: #d8d7d2;
  --accent: #f2542d;
  --accent-hover: #ff6c47;
  --accent-ink: #a8320f;

  --pad: clamp(16px, 2.4vw, 36px);
  --radius: clamp(20px, 2.2vw, 30px);
  --maxw: 1360px;

  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);

  interpolate-size: allow-keywords;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* fijne korrel over alles, zoals een fotoprint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection { background: var(--accent); color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible { outline-color: var(--accent-ink); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #0a0a0a; padding: 10px 16px; border-radius: 999px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  --ph: min(90svh, 1000px);                 /* hoogte portret */
  --pw: calc(var(--ph) * 0.6343);           /* breedte portret (888 / 1400) */
  position: relative;
  height: 100svh;
  min-height: 620px;
  max-height: 1200px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 48% 55%, #efeeea 0%, transparent 70%),
    var(--paper);
  color: var(--paper-ink);
  isolation: isolate;
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr auto;
  align-items: center;
  padding: 22px var(--pad);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.topbar a { position: relative; width: max-content; }
.topbar a:not(.topbar__brand)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.topbar a:hover::after { transform: scaleX(1); transform-origin: left; }

/* beeldmerk: de L neemt de tekstkleur, het passtuk is oranje */
.beeldmerk { display: block; flex: none; width: auto; height: 1em; }
.beeldmerk__l { fill: currentColor; }
.beeldmerk__p { fill: var(--accent); }
.topbar__brand { display: flex; align-items: center; gap: 11px; }
.topbar__brand .beeldmerk { height: 26px; }
.nowrap { white-space: nowrap; }

.hero__name {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: var(--name-top, 41%);
  z-index: 1;
  margin: 0;
  font-weight: 500;
  font-size: 15.4vw;                        /* JS past dit exact aan de breedte aan */
  line-height: .8;
  letter-spacing: -0.065em;
  white-space: nowrap;
  font-kerning: normal;
}
.hero__line { display: inline-block; padding-right: .06em; }
.hero__word { display: inline-block; }

.portrait {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: calc(50% - var(--pw) * 0.53);
  height: var(--ph);
  width: var(--pw);
  will-change: transform;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  transition: filter 1.2s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.portrait:hover img { filter: grayscale(.15) contrast(1.02); }

/* De omlijnde naam alleen zichtbaar binnen de vorm van het portret */
.portrait__mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url("../assets/lars-portrait.webp") center bottom / 100% 100% no-repeat;
          mask: url("../assets/lars-portrait.webp") center bottom / 100% 100% no-repeat;
}
.hero__name--ghost {
  right: auto;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(13, 13, 13, .62);
  z-index: 3;
}

.hero__social {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: calc(9% + 34px);
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 14px;
}
.hero__social a { display: block; width: 22px; height: 22px; transition: transform .35s var(--ease), color .35s; }
.hero__social a:hover { transform: translateY(-2px); color: var(--accent); }
.hero__social svg { width: 100%; height: 100%; }

.hero__meta {
  position: absolute; z-index: 4;
  left: var(--pad); bottom: 9%;
  margin: 0;
  font-family: var(--mono); font-size: 12px; color: #55544f;
}

.hero__role {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  bottom: 5.5%;
  margin: 0;
  display: grid;
  font-size: min(3.05vw, 3.7svh, 3.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-align: left;
}

/* Intro-animatie (alleen met JS) */
.js .hero__name:not(.hero__name--ghost) .hero__word,
.js .hero__name--ghost .hero__word {
  opacity: 0;
  transform: translateY(35%);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.js .hero__word:nth-child(2) { transition-delay: .12s; }
/* de omlijning verschijnt pas als het portret stilstaat */
.js .hero__name--ghost .hero__word { transform: none; transition: opacity 1s var(--ease) 1.15s; }
.js .portrait { opacity: 0; translate: 0 40px; transition: opacity 1.2s var(--ease) .15s, translate 1.4s var(--ease) .15s; }
.js .topbar, .js .hero__role, .js .hero__social, .js .hero__meta { opacity: 0; transition: opacity 1s var(--ease) .5s; }
.is-loaded .hero__word { opacity: 1 !important; transform: none !important; }
.is-loaded .portrait { opacity: 1; translate: 0 0; }
.is-loaded .topbar, .is-loaded .hero__role, .is-loaded .hero__social, .is-loaded .hero__meta { opacity: 1; }

/* =========================================================
   ZWEVENDE NAV
   ========================================================= */
.navpill {
  position: fixed;
  z-index: 90;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: rgba(18, 18, 18, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-size: 14px;
  font-weight: 500;
  transform: translate(-50%, -150%);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.navpill.is-visible { transform: translate(-50%, 0); opacity: 1; }
.navpill a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); white-space: nowrap; transition: color .25s, background .25s; }
.navpill a:hover { color: var(--text); background: var(--viz-2); }
.navpill__logo {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0 !important;
  background: var(--accent); color: #0a0a0a !important;
}
.navpill .navpill__logo:hover { background: #ff6c47; }
.navpill__logo .beeldmerk { height: 18px; }
.navpill__logo .beeldmerk__p { fill: var(--text); }
.navpill .navpill__cta { background: var(--text); color: #0a0a0a; }
.navpill .navpill__cta:hover { background: #f6f5f1; color: #0a0a0a; }

/* =========================================================
   ALGEMEEN: SECTIES & FRAMES
   ========================================================= */
main { position: relative; }

.section { padding: 10px var(--pad); }

.frame {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(22px, 4.5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #131313 0%, var(--panel) 40%);
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset;
}

.label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(28px, 5vw, 64px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}
.label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section__title {
  margin: 0 0 clamp(24px, 4vw, 48px);
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.045em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.pill:hover { background: var(--text); color: #0a0a0a; border-color: var(--text); }
.pill--ghost { border-color: transparent; color: var(--muted); }
.pill--ghost:hover { background: transparent; color: var(--text); border-color: #3a3a3a; }

/* Reveal bij scrollen */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   STATEMENT
   ========================================================= */
.statement {
  position: relative;
  padding: clamp(60px, 9vw, 140px) var(--pad) clamp(40px, 6vw, 90px);
  overflow: hidden;
}
.ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 22vw;
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: .8;
  white-space: nowrap;
  color: #141414;
  pointer-events: none;
  user-select: none;
}
.statement__frame {
  max-width: 1080px;
  min-height: clamp(320px, 42vw, 560px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(255,255,255,.07) 0%, transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(242,84,45,.08) 0%, transparent 70%),
    var(--panel);
}
.statement__text {
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.statement__foot {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

/* =========================================================
   INTRO
   ========================================================= */
.intro__text {
  margin: 0;
  font-size: clamp(1.75rem, 4.3vw, 4.1rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-indent: 22%;
  text-wrap: balance;
}
.intro__text .w { color: var(--dim); transition: color .5s var(--ease); }
.intro__text .w.on { color: var(--text); }
.intro__text em .w.on { color: var(--accent); }
.no-js .intro__text .w, .intro__text:not([data-split]) { color: var(--text); }

/* Wie ik ben: foto + feiten */
.about {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: stretch;
  margin-top: clamp(40px, 6vw, 88px);
}
.about__photo { margin: 0; }
.about__crop {
  overflow: hidden;
  border-radius: calc(var(--radius) * .75);
  background: #0c0c0c;
  box-shadow: 0 0 0 1px var(--line);
}
.about__crop img {
  width: 100%;
  height: auto;
  filter: saturate(.94);
  transition: transform 1.8s var(--ease), filter 1s var(--ease);
}
.js .about__photo:not(.in) img { transform: scale(1.07); }
.about__photo:hover img { filter: saturate(1.06); }
.about__photo figcaption { margin-top: 14px; color: var(--muted); }

.about__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 48px);
  max-width: 620px;
  width: 100%;
  margin-left: auto;
}
.about__text p { margin: 0 0 1em; max-width: 46ch; color: #c9c8c3; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.42; letter-spacing: -0.01em; }
.about__text p:last-child { margin-bottom: 0; }
.about__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Feiten: kop boven, tekst eronder */
.facts { margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(104px, .34fr) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); text-wrap: pretty; }
.about .facts > div { grid-template-columns: 1fr; gap: 8px; padding: clamp(20px, 2vw, 30px) 0; font-size: clamp(1.15rem, .9rem + .75vw, 1.5rem); line-height: 1.3; letter-spacing: -0.015em; }
.about .facts dt { color: var(--accent); font-size: 15px; font-weight: 500; }

.stats {
  list-style: none;
  margin: clamp(48px, 8vw, 110px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
}
.stats li { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.stats strong {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stats span:not([data-count]) { color: var(--muted); font-size: 14px; max-width: 22ch; }

/* =========================================================
   WAT IK KAN
   ========================================================= */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); }
.pillar {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 0 clamp(18px, 2.6vw, 40px);
  border-left: 1px solid var(--line);
}
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar h3 { margin: 0 0 16px; font-size: clamp(1.8rem, 2.9vw, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em; transition: color .4s var(--ease); }
.pillar:hover h3 { color: var(--accent); }
.pillar > p { margin: 0 0 28px; color: #c9c8c3; font-size: 15.5px; text-wrap: pretty; }
.pillar__list { list-style: none; margin: 0 0 28px; padding: 0; }
.pillar__list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.pillar__list li:last-child { border-bottom: 1px solid var(--line); }
.pillar__proof {
  display: block;
  align-self: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  transition: color .3s;
}
.pillar__proof .mono { display: block; margin-bottom: 6px; color: var(--accent); }
.pillar__proof:hover { color: var(--text); }

/* =========================================================
   EXPERTISE
   ========================================================= */
.skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(16px, 4vw, 64px);
  align-items: start;
  padding: clamp(28px, 4vw, 56px) 0;
}
.skill + .skill { border-top: 1px solid var(--line-soft); }
.skill__num {
  font-size: clamp(6rem, 17vw, 16rem);
  font-weight: 200;
  line-height: .78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.2px #d8d7d2;
  font-feature-settings: "zero" 1, "tnum" 1;
  position: sticky;
  top: 96px;
  transition: color .6s var(--ease), -webkit-text-stroke-color .6s var(--ease);
}
.skill:hover .skill__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.skill__body h2 {
  margin: 4px 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
  letter-spacing: -0.04em;
}
.skill__body > p { margin: 0 0 28px; max-width: 46ch; color: var(--muted); font-size: 15px; }

.list { list-style: none; margin: 0; padding: 0; counter-reset: li; }
.list li {
  counter-increment: li;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li::after { content: "0" counter(li); font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  margin: clamp(50px, 8vw, 110px) 0;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding: clamp(14px, 2vw, 26px) 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  width: max-content;
  animation: marquee 46s linear infinite;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}
.marquee__track span:nth-of-type(even) { color: var(--bg); -webkit-text-stroke: 2px var(--viz-hi); paint-order: stroke fill; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   PROJECTEN
   ========================================================= */
.projects__note { margin: -12px 0 clamp(20px, 3vw, 36px); max-width: 52ch; color: var(--muted); font-size: 15px; }

.projects { border-bottom: 1px solid var(--line-soft); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 72px);
  align-items: start;
  padding: clamp(28px, 4.5vw, 64px) 0;
  border-top: 1px solid var(--line-soft);
}
.project:nth-child(even) .project__viz { order: 2; }

.project__viz {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * .75);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255,255,255,.045) 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(242,84,45,.07) 0%, transparent 70%),
    #0c0c0c;
  overflow: hidden;
  position: sticky;
  top: 96px;
  transition: border-color .5s var(--ease);
}
.project:hover .project__viz { border-color: #3a3a3a; }
.project__viz svg { display: block; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.project:hover .project__viz svg { transform: scale(1.025); }

.project__meta { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.tag {
  display: inline-block;
  padding: 4px 9px 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--field-line); }

.project h3 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 4.1vw, 3.8rem);
  text-wrap: balance;
  font-weight: 500;
  line-height: .92;
  letter-spacing: -0.05em;
}
.project__lead { margin: 0 0 26px; max-width: 46ch; color: #c9c8c3; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.45; }
.project .list li { font-weight: 400; color: var(--lead); }

.project__ai {
  display: flex;
  gap: 14px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(242, 84, 45, .07);
  box-shadow: inset 0 0 0 1px rgba(242, 84, 45, .22);
  color: var(--text);
  font-size: 14.5px;
}
.project__ai .mono {
  flex: none;
  align-self: start;
  padding: 3px 7px 2px;
  border-radius: 6px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .04em;
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; }
.chips li {
  padding: 6px 11px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 400 11.5px/1.2 var(--mono);
}


/* Illustraties */
.viz .b { fill: #141414; stroke: #262626; }
.viz .l { fill: #2a2a2a; }
.viz .l2 { fill: #1e1e1e; }
.viz .s { fill: none; stroke: #2a2a2a; }
.viz .a { fill: var(--accent); }
.viz .as { fill: none; stroke: var(--accent); }
.viz .dn { fill: var(--viz-mid); }
.viz .hi { fill: none; stroke: #d8d7d2; }
.viz .mid { fill: none; stroke: #6a6a67; }
.viz .fig { stroke: var(--text-2); }
.viz .candles line { stroke: var(--field-line); stroke-width: 1.2; }
.viz .candles .up { fill: var(--accent); }
.viz .candles .dn-c { fill: #0c0c0c; stroke: #6a6a67; }
.viz .ma { stroke: #d8d7d2; opacity: .55; }

.viz .bob { animation: bob 2.6s ease-in-out infinite; }
.viz .float { animation: bob 5s ease-in-out infinite; }
.viz .float--late { animation-delay: -2.4s; }
.viz .pulse { animation: pulse 2.4s ease-in-out infinite; }
.viz .pulse-ring { transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* =========================================================
   TABELLEN
   ========================================================= */
.split { display: grid; gap: 14px; max-width: var(--maxw); margin: 0 auto; }
.split .frame { margin: 0; width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
  text-align: left;
  font: 400 11px/1 var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 12px 14px 0;
}
.table td { padding: 18px 12px 18px 0; border-top: 1px solid var(--line); vertical-align: top; }
.table td:first-child { font-weight: 500; width: 42%; }
.table td:nth-child(2) { color: #bdbcb7; }
.table td.mono { color: var(--muted); white-space: nowrap; }
.table .num { text-align: right; padding-right: 0; width: 3rem; }
.table tbody tr { transition: background .3s; }
.table tbody tr:hover td:first-child { color: var(--accent); }
.table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.table--tools td:first-child { width: 30%; }
.table__foot { margin: 18px 0 0; color: var(--muted); }
.table__foot a { color: var(--text); border-bottom: 1px solid #3a3a3a; transition: color .3s, border-color .3s; }
.table__foot a:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   MARKETING
   ========================================================= */
.case__viz {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * .75);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255,255,255,.045) 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(242,84,45,.09) 0%, transparent 70%),
    #0c0c0c;
  aspect-ratio: 16 / 9;
}
.case--feature .case__viz { aspect-ratio: 8 / 3; }
.case__viz svg { display: block; width: 100%; height: 100%; }
.case h2 { margin: 16px 0 14px; font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 500; line-height: .95; letter-spacing: -0.05em; }
.case--feature h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.case .tag { margin-top: 26px; }
.case__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 0 clamp(24px, 4.5vw, 72px); align-items: start; }
.case__kort { margin-top: 26px; }
.case__kort .project__lead { margin: 0; text-wrap: pretty; }
.viz .hi-f { fill: #d8d7d2; }
.viz .mid-f { fill: #6a6a67; }
.viz .wheel { transform-box: fill-box; transform-origin: center; animation: wheel 9s cubic-bezier(.16, .8, .2, 1) infinite; }
@keyframes wheel { 0% { transform: rotate(0); } 60%, 100% { transform: rotate(720deg); } }

/* =========================================================
   ADVIESGESPREK
   ========================================================= */
.advies { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.advies .section__title { margin-bottom: 22px; text-wrap: balance; }
.advies__lead { margin: 0; max-width: 42ch; color: #c9c8c3; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.42; text-wrap: pretty; }
.advies__stappen { list-style: none; margin: clamp(26px, 3.4vw, 44px) 0 clamp(28px, 3.4vw, 44px); padding: 0; counter-reset: stap; }
.advies__stappen li { display: grid; grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr); gap: 4px 20px; padding: 15px 0; border-top: 1px solid var(--line); counter-increment: stap; }
.advies__stappen li:last-child { border-bottom: 1px solid var(--line); }
.advies__stappen h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.advies__stappen h3::before { content: counter(stap) ". "; color: var(--accent); }
.advies__stappen p { margin: 0; color: #bdbcb7; font-size: 15px; text-wrap: pretty; }
.advies__belofte { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; margin: 0 0 clamp(24px, 2.8vw, 36px); }
.advies__belofte img { width: 76px; height: 76px; border-radius: 50%; background: #e4e3df; object-fit: cover; object-position: 50% 0; }
.advies__belofte p { margin: 0; max-width: 50ch; color: #bdbcb7; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.advies__belofte strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; text-wrap: balance; }
.advies__actie .pill { padding: 15px 28px; font-size: 16px; }

/* Het vel papier vult zich mee met het formulier */
.vel { min-width: 0; }
.vel__blad {
  position: relative; display: flex; flex-direction: column; min-height: 500px;
  padding: clamp(22px, 2.6vw, 38px); border-radius: 3px; rotate: 1.4deg;
  background: linear-gradient(rgba(13,13,13,.022), transparent 30%), #f0efeb; color: var(--paper-ink);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), -10px 12px 0 -4px #c9c7c1;
}
.vel__kop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0; padding-bottom: 16px; border-bottom: 2px solid var(--paper-ink); }
.vel__kop span:first-child { font-size: 1.8rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.vel__kop span:last-child { min-width: 0; color: #55544f; font-size: 15px; overflow-wrap: anywhere; }
.vel dl { margin: 0; }
.vel dl > div { padding: 14px 0; border-bottom: 1px solid #c9c7c1; }
.vel dt { font-size: 15px; font-weight: 500; }
.vel dd { max-height: 8.9em; margin: 4px 0 0; overflow: hidden; font: 400 15px/1.48 var(--mono); letter-spacing: -.02em; white-space: pre-wrap; overflow-wrap: anywhere; }
.vel dd.is-leeg { color: #6b6962; }
.vel__later { margin: auto 0 0; padding-top: 20px; color: #55544f; font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.vel__stempel {
  position: absolute; right: 8%; top: 45%; margin: 0; padding: 8px 18px; border: 4px solid #c63c17; border-radius: 6px;
  color: #c63c17; font-size: 2.1rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; rotate: -11deg; mix-blend-mode: multiply;
  animation: stempel .45s var(--ease) both;
}
.vel__stempel[hidden] { display: none; }
@keyframes stempel { from { opacity: 0; scale: 1.9; } }

/* Venster om in te plannen (bouwt voort op .cform) */
.aform { width: min(680px, calc(100vw - 24px)); }
.aform [hidden] { display: none !important; }
.aform__stap { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--muted); font-size: 14px; }
.aform__stap b { color: var(--text); font-weight: 500; }
.aform__deel { display: grid; gap: 22px; min-width: 0; }
.aform .field { min-width: 0; }
.aform .field textarea { min-height: 84px; }
.aform .field textarea::placeholder { color: var(--muted); opacity: 1; }
.aform .field label span { color: var(--muted); font-weight: 400; }
.aform__hulp { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.aform__twee { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
.aform .chip span { min-height: 44px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.aform__keuze { margin: 0; color: var(--muted); font-size: 15px; }
.aform__keuze b, .aform .cform__done b { color: var(--text); font-weight: 500; }

/* =========================================================
   CONTACT & FOOTER
   ========================================================= */
.contact { padding-top: 10px; }
.contact__frame {
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(242,84,45,.13) 0%, transparent 65%),
    #111;
}
.contact__title {
  margin: 0 0 22px;
  font-size: clamp(3rem, 10vw, 9.6rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -0.06em;
}
.contact__lead { margin: 0 0 clamp(36px, 6vw, 72px); color: var(--muted); max-width: 46ch; }
.asks { list-style: none; margin: 0 0 clamp(36px, 5vw, 64px); padding: 0; max-width: 820px; }
.asks a {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #2c2624;
  transition: color .3s;
}
.asks li:last-child a { border-bottom: 1px solid #2c2624; }
.asks strong { font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; }
.asks span { color: var(--muted); font-size: 15px; }
.asks i { font-style: normal; color: var(--accent); transition: transform .45s var(--ease); }
.asks a:hover { color: var(--accent); }
.asks a:hover i { transform: translateX(6px); }

.contact__mail {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  max-width: 100%;
  font-size: clamp(1.35rem, 4.6vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 6px;
  overflow-wrap: anywhere;
  transition: color .3s, background-size .6s var(--ease);
}
.contact__mail span { color: var(--accent); transition: transform .45s var(--ease); display: inline-block; }
.contact__mail:hover { color: var(--accent); }
.contact__mail:hover span { transform: translate(4px, -4px); }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: clamp(32px, 5vw, 56px);
}
.contact__loc { margin-left: auto; color: var(--muted); }

/* ---------- Contactformulier ---------- */
.pill--accent { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
button.pill { font-family: inherit; line-height: inherit; cursor: pointer; }
button.pill:not(.pill--accent) { background: transparent; color: inherit; }
button.pill:hover { background: var(--text); color: #0a0a0a; border-color: var(--text); }
.pill.pill--accent:hover, button.pill.pill--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0a0a0a; }
button.pill[aria-disabled="true"] { opacity: .55; cursor: progress; }
.pill[hidden] { display: none; }

html:has(.cform[open]) { overflow: hidden; scrollbar-gutter: stable; }

.cform {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(18px, 4vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
  border: 1px solid #2c2624;
  border-radius: var(--radius);
  color: var(--text);
  background: radial-gradient(70% 60% at 100% 100%, rgba(242,84,45,.13) 0%, transparent 65%), #111;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), overlay .3s allow-discrete, display .3s allow-discrete;
}
.cform[open] { opacity: 1; transform: none; }
@starting-style { .cform[open] { opacity: 0; transform: translateY(18px); } }
.cform::backdrop { background: rgba(0,0,0,.72); }

.cform__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.cform__title { margin: 0; font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 500; line-height: .95; letter-spacing: -0.05em; }
.cform__title em { font-style: normal; color: var(--accent); }
.cform__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin: -6px -8px 0 0;
  padding: 0;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.cform__close:hover { background: var(--text); color: #0a0a0a; }

.cform form { display: grid; gap: 22px; }
.cform form[hidden], .cform__done[hidden] { display: none; }
.cform fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.cform legend, .field label { display: block; padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.cform__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: block;
  padding: 10px 16px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip input[aria-invalid="true"] + span { border-color: #ff8a6b; }

.field__kop { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.field__kop .mono { color: var(--muted); }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #5f5e5b;
  border-radius: 14px;
  background: #0c0c0c;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .25s;
}
.field textarea { min-height: 130px; line-height: 1.5; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; border-radius: 14px; }
.field [aria-invalid="true"] { border-color: #ff8a6b; }
.cform__fout { margin: 8px 0 0; color: #ff8a6b; font-size: 14px; }
.cform__extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__bot { min-height: 65px; }
.cform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cform__actions .pill { padding: 14px 26px; }
.cform__status { flex: 1 1 200px; margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.cform__status.is-fout { color: #ff8a6b; }
.cform__privacy { color: var(--muted); font-size: 14px; }
.cform__privacy summary { width: fit-content; cursor: pointer; }
.cform__privacy summary:hover { color: var(--text); }
.cform__privacy p { margin: 10px 0 0; text-wrap: pretty; }
.cform__done { display: grid; justify-items: start; gap: 18px; outline: none; }
.cform__done p { margin: 0; color: #c9c8c3; }
.cform__done .cform__thanks { color: var(--text); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; overflow-wrap: anywhere; }

.footer { padding: clamp(50px, 7vw, 90px) 0 0; overflow: hidden; }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 18px;
  color: var(--muted);
}
.footer__bar a:hover { color: var(--text); }
.footer__name {
  padding: 0 var(--pad);
  font-size: 15.4vw;
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: .74;
  white-space: nowrap;
  color: var(--line-soft);
  padding-bottom: .02em;
  user-select: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* minder brede schermen (tablet, klein venster): portret iets kleiner zodat de functietitel er niet overheen valt */
@media (min-width: 701px) and (max-aspect-ratio: 4/3) {
  .hero { --ph: min(80svh, 1000px); }
  .hero__role { font-size: 2.2vw; bottom: 4.5%; }
}
/* heel breed en laag (laptop met browserbalken): onder de staart van de g blijven */
@media (min-width: 701px) and (min-aspect-ratio: 2/1) {
  .hero__role { font-size: 3svh; bottom: 4%; }
}

@media (max-width: 960px) {
  .topbar { grid-template-columns: 1fr auto auto auto; gap: 18px; }
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__viz { order: 0; }
  .project__viz { max-width: 640px; position: static; }
  .about { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; }
  .pillars { display: block; }
  .pillar, .pillar:first-child, .pillar:last-child { display: block; padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .case__cols { grid-template-columns: 1fr; }
  .advies { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .hero { --ph: min(60svh, 560px); min-height: 640px; }
  .portrait { left: calc(50% - var(--pw) * .5); }
  .topbar { grid-template-columns: 1fr auto auto; gap: 18px; font-size: 14px; padding-top: 18px; }
  .topbar__sub, .topbar a:nth-child(2) { display: none; }
  .hero__name { --name-top: 17%; line-height: .84; white-space: normal; }
  .hero__name .hero__word { display: block; }
  .hero__role { top: 62px; bottom: auto; left: var(--pad); right: auto; display: flex; flex-wrap: wrap; gap: 0 .35em; font-size: min(15px, 3.8vw); line-height: 1.25; white-space: nowrap; letter-spacing: -0.01em; color: #55544f; }
  .hero__role span:nth-child(2)::before { content: "·"; margin-right: .35em; }
  .hero__role span:last-child { flex-basis: 100%; }
  .hero__social, .hero__meta { display: none; }

  .stats { grid-template-columns: 1fr; gap: 22px; }
  .stats span:not([data-count]) { max-width: none; }
  .statement__text { font-size: 2.15rem; }
  .intro__text { text-indent: 0; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .case--feature .case__viz { aspect-ratio: 6 / 5; }
  .asks a { grid-template-columns: 1fr auto; gap: 2px 16px; }
  .asks span { grid-column: 1; grid-row: 2; }
  .skill { grid-template-columns: 1fr; }
  .skill__num { font-size: 6.5rem; position: static; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: auto !important; }
  .table tr { position: relative; padding: 16px 0; border-top: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .table td, .table tbody tr:last-child td { border: 0; padding: 2px 2.6rem 2px 0; }
  .table tbody tr td.num { position: absolute; right: 0; top: 18px; padding: 0; }
  .contact__loc { margin-left: 0; width: 100%; }
  .navpill { font-size: 13px; max-width: calc(100vw - 24px); }
  .navpill a { padding: 8px min(10px, 2.4vw); }
  .navpill__logo { flex: none; }
  .navpill a[href="#over"], .navpill a[href="#kan"], .navpill a[href="#marketing"] { display: none; }
  .aform__twee { grid-template-columns: 1fr; }
  .aform .cform__title { font-size: min(2.1rem, 9vw); }
  .advies__stappen li { grid-template-columns: 1fr; }
  .advies__belofte { align-items: start; gap: 16px; }
  .advies__belofte img { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .portrait, .js .hero__word { opacity: 1 !important; transform: none !important; translate: none !important; }
  .intro__text .w { color: var(--text); }
  .intro__text em .w { color: var(--accent); }
}
