:root {
  --bg: #0A0A0A;
  --bg-2: #141414;
  --line: #242424;
  --text: #F2F2F0;
  --muted: #8E8E8A;
  --dim: #5E5E5B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); }
body {
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.wrap { width: min(1240px, 100% - 48px); margin: 0 auto; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 10, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bar.scrolled { border-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav a { padding: 12px 0; transition: color .2s; }
.nav a:hover, .link-in:hover { color: var(--text); }
.link-in { padding: 12px 0; font-size: 14px; color: var(--muted); transition: color .2s; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; font: 500 15px "Inter Tight", sans-serif; cursor: pointer; transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .25s, color .25s, box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn.sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn.white { background: var(--text); color: var(--bg); }
.btn.white:hover { background: #fff; box-shadow: 0 10px 28px rgba(242, 242, 240, .16); transform: translateY(-3px); }
.btn.line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #3a3a3a; }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--text), 0 10px 28px rgba(255, 255, 255, .06); transform: translateY(-3px); }
.btn-arrow { display: inline-block; margin-left: 14px; font-size: 20px; line-height: 0; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn[data-tip]::after { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 3; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: #171717; color: var(--muted); content: attr(data-tip); font-size: 12px; font-weight: 400; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.btn[data-tip]:hover::after, .btn[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.btn:focus-visible, .stage:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- type ---------- */
.h1 { margin: 0; font-weight: 500; font-size: clamp(42px, 5.6vw, 78px); line-height: .98; letter-spacing: -.045em; }
.h1 em { font-size: 1.06em; }
.h2 { margin: 0; font-weight: 500; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.035em; }
.h2.big { font-size: clamp(44px, 6vw, 84px); }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.lede { margin: 24px 0 0; max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.lede.small { font-size: 15px; max-width: 320px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(38px, 7vh, 88px); }
.hero::before { position: absolute; top: 0; right: 0; left: 0; height: 520px; background: radial-gradient(circle at 68% 28%, rgba(255,255,255,.055), transparent 32%), linear-gradient(110deg, transparent 25%, rgba(255,255,255,.018) 50%, transparent 76%); content: ""; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.hero-title, .hero-side { position: relative; z-index: 1; }
.hero-side p { margin: 0 0 26px; max-width: 380px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.row { position: relative; height: calc(100vw * 410 / 1440); min-height: 340px; margin-top: clamp(28px, 4vh, 52px); }
.hint { margin-top: 10px; margin-bottom: 0; color: var(--dim); font-size: 13px; text-align: center; }

/* ---------- curved job row ---------- */
.stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
.grabbing, .grabbing * { cursor: grabbing !important; }
.card { position: absolute; inset: 0; visibility: hidden; background: #111; }
.art { position: absolute; left: 0; top: 0; width: 200px; height: 380px; transform-origin: 0 0; background: #1a1a1a center / cover no-repeat; }
.art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.92) 100%); }
.info { position: absolute; left: 0; top: 0; width: 180px; height: 296px; transform-origin: 0 0; color: #fff; }
.info .top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.job-vb { color: var(--text); font-weight: 500; }
.spots { padding: 3px 7px; border-radius: 99px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 500; }
.info .body { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.info .co { margin: 0 0 4px; color: rgba(255, 255, 255, .7); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info h3 { margin: 0; font-weight: 500; font-size: 15.5px; line-height: 1.1; letter-spacing: -.02em; }
.info .meta { margin: 6px 0 0; color: rgba(255, 255, 255, .7); font-size: 11px; }
.info .foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .16); }
.info .cert { color: rgba(255, 255, 255, .7); font-size: 10.5px; }
.info .rate { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.info .rate small { color: rgba(255, 255, 255, .65); font-size: 10.5px; font-weight: 400; }

/* ---------- sections ---------- */
.sec { padding: clamp(96px, 11vw, 160px) 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; max-width: 460px; margin: 52px 0 0; }
.stats dt { font-weight: 400; font-size: 40px; letter-spacing: -.035em; }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.rkp-mark, .rkp-mark img { display: block; width: 100%; height: auto; }
.h2 .soft { color: #6E6E6A; }
.ticker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; margin-top: clamp(72px, 8vw, 120px); padding: 26px 0; border-block: 1px solid var(--line); color: var(--dim); font-size: 15px; font-weight: 500; letter-spacing: .01em; }

.workflow-head { margin-bottom: 64px; }
.workflow-head .eyebrow { margin-bottom: 22px; }
.workflow { overflow: hidden; }
.workflow-numbers, .workflow-row { display: grid; grid-template-columns: 110px repeat(6, minmax(0, 1fr)); }
.workflow-numbers { align-items: end; min-height: 28px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.workflow-numbers span:not(:first-child) { padding: 0 0 9px 22px; }
.workflow-rows { position: relative; }
.workflow-row { min-height: 148px; background: linear-gradient(var(--line), var(--line)) left bottom / calc(100% - 8px) 1px no-repeat; }
.workflow-label { align-self: center; color: var(--muted); font-size: 13px; }
.workflow-card { position: relative; isolation: isolate; overflow: hidden; align-self: start; min-height: 118px; margin: 14px 8px 14px 0; padding: 14px 14px 16px; border: 1px solid #252525; border-radius: 9px; background: #131313; color: var(--text); cursor: default; box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition: background-color .55s cubic-bezier(.22, 1, .36, 1), border-color .55s cubic-bezier(.22, 1, .36, 1), color .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.16, 1, .3, 1), box-shadow .55s cubic-bezier(.16, 1, .3, 1); }
.workflow-card::before { position: absolute; z-index: 0; inset: -35% -20%; background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .9), transparent 58%); content: ""; opacity: 0; pointer-events: none; transform: translateY(18px) scale(.9); transition: opacity .55s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.workflow-card.is-active { border-color: var(--text); background: var(--text); color: var(--bg); transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.workflow-card.is-active::before { opacity: .22; transform: translateY(0) scale(1); }
.workflow-card > * { position: relative; z-index: 1; }
.workflow-index { display: block; color: var(--dim); font: italic 12px "Instrument Serif", Georgia, serif; }
.workflow-card.is-active .workflow-index { color: #777772; }
.workflow-card h3 { margin: 10px 0 5px; font-weight: 500; font-size: 15px; line-height: 1.1; letter-spacing: -.02em; }
.workflow-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; transition: color .55s cubic-bezier(.22, 1, .36, 1); }
.workflow-card.is-active p { color: #5e5e5a; }
.step-06 { position: absolute; z-index: 1; top: 50%; right: 8px; width: calc((100% - 110px) / 6 - 8px); min-height: 148px; margin: 0; transform: translateY(-50%); }
.workflow-card.step-06.is-active { transform: translateY(calc(-50% - 6px)); }
.workflow-row-zzp { min-height: 146px; }
.workflow-row-zzp .workflow-card { margin-top: 14px; }

.band {
  position: relative;
  isolation: isolate;
  margin-top: clamp(96px, 11vw, 160px);
  min-height: 680px;
  display: flex;
  overflow: hidden;
}
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(10,10,10,.35) 30%, rgba(10,10,10,.5) 55%, rgba(10,10,10,.97) 88%, var(--bg) 100%); }
.band-in { display: flex; flex-direction: column; padding: 60px 0 64px; }
.band .h2 { max-width: 760px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: auto; padding-top: 200px; }
.feats i { display: block; width: 22px; height: 1px; margin-bottom: 18px; background: var(--text); }
.feats b { font-weight: 500; font-size: 16px; }
.feats p { margin: 8px 0 0; color: #b3b3ae; font-size: 14px; line-height: 1.55; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.split-roles { overflow: visible; background: var(--bg); }
.role-panel { position: relative; min-height: 520px; display: flex; align-items: end; padding: 38px; background-color: var(--bg); background-position: center; background-size: cover; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); }
.role-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.08) 8%, rgba(10,10,10,.34) 38%, rgba(10,10,10,.82) 70%, var(--bg) 100%); }
.role-panel::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: -28px; left: 0; height: 112px; background: linear-gradient(180deg, transparent, var(--bg) 72%); pointer-events: none; }
.role-company { background-image: image-set(url(../img/site/rkp-01-k.webp) 1x, url(../img/site/rkp-01-g.webp) 2x); }
.role-worker { border-radius: 18px 18px 0 0; background-image: image-set(url(../img/site/rkp-13-k.webp) 1x, url(../img/site/rkp-13-g.webp) 2x); }
.role-company { border-radius: 18px 18px 0 0; }
.role-copy { position: relative; z-index: 1; max-width: 430px; transform: translateY(-82px); text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.role-copy .who { margin: 0 0 12px; color: #c9c9c4; }
.role-copy h3 { margin: 0 0 12px; font-weight: 500; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.04em; }
.role-copy h3 em { display: inline-block; color: #d7d7d2; font-family: "Inter Tight", system-ui, sans-serif; font-size: .72em; font-style: normal; font-weight: 400; letter-spacing: -.035em; }
.role-lede { margin: 0 0 24px; max-width: 390px; color: #c9c9c4; font-size: 15px; line-height: 1.55; }
.role-copy .btn span { margin-left: 8px; font-size: 18px; line-height: 0; }
.split-roles .role-panel { transition: flex-basis .35s ease, filter .35s ease, transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease; }
.split-roles:hover .role-panel { filter: brightness(.58); }
.split-roles .role-panel:hover { z-index: 2; filter: brightness(1.12); transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,.24); }
.who { margin: 26px 0 8px; color: var(--muted); font-size: 13px; }
.duo h3 { margin: 0; font-weight: 500; font-size: 26px; letter-spacing: -.025em; }
.duo ul, .list { margin: 20px 0 28px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.duo li, .list li { padding: 11px 0; border-top: 1px solid var(--line); }
.list { margin-top: 32px; max-width: 460px; }

.invoice { position: relative; isolation: isolate; overflow: hidden; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); transition: color .7s cubic-bezier(.22, 1, .36, 1); }
.invoice::before { position: absolute; z-index: 0; right: -50%; bottom: -110%; left: -50%; height: 220%; border-radius: 50% 50% 0 0 / 9% 9% 0 0; background: var(--text); content: ""; opacity: 1; pointer-events: none; transform: translateY(100%); transition: transform 1.8s cubic-bezier(.16, 1, .3, 1); transition-duration: 1.8s; }
.invoice::after { position: absolute; z-index: 0; right: 5%; bottom: -24px; left: 5%; height: 105px; border-radius: 50%; background: radial-gradient(ellipse, rgba(242, 242, 240, .36), transparent 68%); content: ""; opacity: .3; pointer-events: none; filter: blur(12px); transition: opacity 1.4s cubic-bezier(.16, 1, .3, 1); }
.invoice:hover, .invoice:focus-within { color: var(--bg); }
.invoice:hover::before, .invoice:focus-within::before { transform: translateY(0); }
.invoice:hover::before, .invoice:focus-within::before { transition-duration: 1.4s; }
.invoice:hover::after, .invoice:focus-within::after { opacity: 1; }
.invoice > * { position: relative; z-index: 1; }
.inv-top { display: flex; justify-content: space-between; align-items: start; }
.inv-top b { display: block; font-weight: 500; font-size: 20px; transition: color .6s cubic-bezier(.22, 1, .36, 1); }
.inv-top span, .inv-meta dt, .inv-line { color: var(--muted); transition: color .6s cubic-bezier(.22, 1, .36, 1); }
.inv-top span { font-size: 13px; }
.inv-st { padding: 4px 10px; border: 1px solid #3a3a3a; border-radius: 99px; color: var(--text) !important; font-size: 12px !important; transition: border-color .6s cubic-bezier(.22, 1, .36, 1), color .6s cubic-bezier(.22, 1, .36, 1); }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; padding: 22px 0; border-block: 1px solid var(--line); transition: border-color .6s cubic-bezier(.22, 1, .36, 1); }
.inv-meta dt { font-size: 12px; }
.inv-meta dd { margin: 4px 0 0; font-size: 14.5px; transition: color .6s cubic-bezier(.22, 1, .36, 1); }
.inv-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; transition: color .46s cubic-bezier(.22, 1, .36, 1), border-color .6s cubic-bezier(.22, 1, .36, 1); }
.inv-line.tot { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); font-size: 22px; letter-spacing: -.02em; transition-duration: .42s, .6s; }
.invoice:hover .inv-top span, .invoice:hover .inv-meta dt, .invoice:hover .inv-line, .invoice:focus-within .inv-top span, .invoice:focus-within .inv-meta dt, .invoice:focus-within .inv-line { color: #5e5e5a; }
.invoice:hover .inv-top b, .invoice:focus-within .inv-top b { transition-delay: .22s; }
.invoice:hover .inv-meta dd, .invoice:focus-within .inv-meta dd { transition-delay: .22s; }
.invoice:hover .inv-st, .invoice:focus-within .inv-st { border-color: #3a3a3a; color: var(--bg) !important; }
.invoice:hover .inv-st, .invoice:focus-within .inv-st { transition-delay: .22s, .22s; }
.invoice:hover .inv-meta, .invoice:focus-within .inv-meta, .invoice:hover .inv-line.tot, .invoice:focus-within .inv-line.tot { border-color: #d0d0cb; transition-delay: .22s; }
.invoice:hover .inv-line.tot, .invoice:focus-within .inv-line.tot { color: var(--bg); }

.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(96px, 11vw, 160px);
}
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 68%, var(--bg) 100%), linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.7) 50%, rgba(10,10,10,.25) 100%); }
/* wisselende foto's achter .band en .final (src/fotowissel.ts): vervagen in elkaar met een langzame zoom */
.wissel { position: absolute; inset: 0; z-index: -2; background: #111; }
.wissel-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.5s ease; will-change: opacity, transform; }
.wissel-foto.aan { opacity: 1; animation: wissel-zoom 9s linear forwards; }
@keyframes wissel-zoom { from { transform: scale(1.02); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .wissel-foto.aan { animation: none; } }
.final-in { padding: clamp(110px, 13vw, 180px) 0; }
.final .btns { margin-top: 36px; }

.footer { border-top: 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 40px 0; }
.foot nav { display: flex; gap: 26px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 0 auto; color: var(--dim); font-size: 13px; }

/* ---------- dialog ---------- */
.job { width: min(540px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); overflow: auto; }
.job::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.job[open] { animation: job-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes job-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.job.closing { animation: job-out .28s ease-in forwards; }
.job.closing::backdrop { animation: job-backdrop-out .28s ease forwards; }
@keyframes job-out {
  to { opacity: 0; transform: translateY(10px) scale(.98); }
}
@keyframes job-backdrop-out { to { opacity: 0; } }
.job-ph { height: 220px; background: #1a1a1a center / cover; }
.job-x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.job-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.job-body { padding: 26px 28px 28px; }
.job-co { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.job h2 { margin: 0; font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.job-desc { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.job-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 24px 0 0; padding: 20px 0; border-block: 1px solid var(--line); }
.job-facts dt { color: var(--dim); font-size: 12px; }
.job-facts dd { margin: 3px 0 0; font-size: 15px; }
.job-note { margin: 18px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.job-hint { margin: 14px 0 0; color: var(--dim); font-size: 12.5px; }

/* ---------- motion ---------- */
.motion [data-in] { animation: rise 1s cubic-bezier(.16, 1, .3, 1) backwards; }
.motion .hero-side[data-in] { animation-delay: .12s; }
.motion .hero-title[data-in] { animation-delay: .04s; }
.motion .row[data-in] { animation-delay: .25s; animation-duration: 1.3s; }
.motion .hint[data-in] { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }
.motion [data-reveal] { opacity: 0; transition: opacity .9s ease; }
.motion [data-reveal].in { opacity: 1; }
.motion .workflow-card[data-reveal] { clip-path: inset(18% 0 0); transition: opacity .9s ease, clip-path .9s cubic-bezier(.22, 1, .36, 1); }
.motion .workflow-card[data-reveal].in { clip-path: inset(0); }
.motion .workflow-card[data-reveal] { transition: opacity .9s ease, clip-path .9s cubic-bezier(.22, 1, .36, 1), background-color .55s cubic-bezier(.22, 1, .36, 1), border-color .55s cubic-bezier(.22, 1, .36, 1), color .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.16, 1, .3, 1), box-shadow .55s cubic-bezier(.16, 1, .3, 1); }
.motion .workflow-card.step-02[data-reveal] { transition-delay: .08s; }
.motion .workflow-card.step-03[data-reveal] { transition-delay: .16s; }
.motion .workflow-card.step-04[data-reveal] { transition-delay: .08s; }
.motion .workflow-card.step-05[data-reveal] { transition-delay: .16s; }
.motion .workflow-card.step-06[data-reveal] { transition-delay: .24s; }
.motion .invoice[data-reveal] { transition: opacity .9s ease, color .7s cubic-bezier(.22, 1, .36, 1); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .link-in { margin-left: auto; }
  .hero-grid, .split, .duo { grid-template-columns: 1fr; }
  .workflow-head { margin-bottom: 48px; }
  .workflow-numbers, .workflow-row { grid-template-columns: 76px repeat(6, minmax(0, 1fr)); }
  .workflow-numbers span:not(:first-child) { padding-left: 12px; }
  .workflow-card { margin-right: 5px; padding: 12px 10px 13px; }
  .workflow-card h3 { font-size: 13px; }
  .workflow-card p { font-size: 11px; }
  .workflow-card.step-06 { right: 5px; width: calc((100% - 76px) / 6 - 5px); }
  .workflow-row { background-size: calc(100% - 5px) 1px; }
  .role-panel { min-height: 460px; padding: 28px; }
  .feats { grid-template-columns: 1fr; gap: 28px; padding-top: 120px; }
  .head { flex-direction: column; align-items: start; }
}
@media (max-width: 820px) {
  .row { height: min(380px, 92vw); min-height: 0; }
}
@media (max-width: 560px) {
  .bar-in { gap: 16px; }
  .link-in { display: none; }
  .bar .btn { margin-left: auto; }
  .hero { padding-top: 30px; }
  .hero-side p { font-size: 15px; }
  .btn[data-tip]::after { display: none; }
  .workflow { overflow: visible; }
  .workflow-numbers { display: none; }
  .workflow-row { display: grid; grid-template-columns: 72px 1fr 1fr; min-height: 0; }
  .workflow-row .workflow-label { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .workflow-row .workflow-card { margin: 12px 6px 12px 0; }
  .workflow-row .workflow-card.step-01 { grid-column: 2; grid-row: 1; }
  .workflow-row .workflow-card.step-04 { grid-column: 2; grid-row: 2; }
  .workflow-row .workflow-card.step-05 { grid-column: 3; grid-row: 2; }
  .workflow-row .workflow-card.step-06 { position: static; grid-column: 3; grid-row: 1; width: auto; margin: 32px 6px -20px 0; transform: none; }
  .workflow-row .workflow-card.step-06.is-active { transform: translateY(-6px); }
  .workflow-row-zzp .workflow-card.step-02 { grid-column: 2; grid-row: 1; }
  .workflow-row-zzp .workflow-card.step-03 { grid-column: 3; grid-row: 1; }
  .workflow-row-zzp > div:not(.workflow-label), .workflow-row > div:not(.workflow-label) { display: none; }
  .split-roles { grid-template-columns: 1fr; }
  .role-panel { min-height: 390px; padding: 24px; }
  .role-worker { border-top: 0; }
  .stats dt { font-size: 32px; }
  .inv-meta { grid-template-columns: 1fr; }
  .foot p { margin-left: 0; }
}
.btn[hidden] { display: none; }

/* ---------- browser-UI in de huisstijl ---------- */
html { color-scheme: dark; scrollbar-color: #3a3a38 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2e2e2c; border: 3px solid var(--bg); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a47; }
::-webkit-scrollbar-corner { background: transparent; }
::selection { background: #F2F2F0; color: #0A0A0A; }
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset;
  caret-color: var(--text);
  transition: background-color 9999s;
}
input, textarea, select, [contenteditable="true"] { user-select: text; }
input::-ms-reveal, input::-ms-clear { display: none; }
img, svg { -webkit-user-drag: none; }

/* ================= INLOGPANEEL ================= */
.auth {
  position: fixed; inset: 12px 12px 12px auto;
  width: min(420px, calc(100% - 24px)); height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: #0E0E0E; color: var(--text); overflow: auto;
}
.auth::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.auth[open] { animation: panel-in .45s cubic-bezier(.16, 1, .3, 1); }
.auth[open]::backdrop { animation: fade-in .35s ease; }
.auth.closing { animation: panel-out .26s cubic-bezier(.4, 0, 1, 1) forwards; }
.auth.closing::backdrop { animation: fade-out .26s ease forwards; }
@keyframes panel-in { from { transform: translateX(calc(100% + 24px)); } }
@keyframes panel-out { to { transform: translateX(calc(100% + 24px)); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.auth-in { display: flex; flex-direction: column; min-height: 100%; padding: 26px 32px 32px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-x { width: 40px; height: 40px; display: grid; place-items: center; margin-right: -8px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.auth-x:hover { background: #1c1c1c; color: var(--text); }
.auth-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.auth-body { margin: auto 0; padding: 40px 0 8px; }
.auth h2 { margin: 0; font-weight: 500; font-size: 26px; letter-spacing: -.025em; }
.auth-lead { margin: 6px 0 24px; color: var(--muted); font-size: 14px; }
.auth .notice { margin: -8px 0 20px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.auth .notice[hidden], .forgot[hidden] { display: none; }

/* views */
.view[hidden], .q[hidden], .switch[hidden], .submit[hidden] { display: none !important; }
.view { display: flex; flex-direction: column; flex: 1; }

/* ---------- aanmelden: één vraag per scherm ---------- */
.wizard { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.wiz-head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; }
.wiz-back { width: 34px; height: 34px; display: grid; place-items: center; margin-left: -8px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.wiz-back:hover { background: #1c1c1c; color: var(--text); }
.wiz-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #333; transition: width .35s cubic-bezier(.16, 1, .3, 1), background .3s; }
.dots i.done { background: #777; }
.dots i.on { width: 20px; background: var(--text); }
.wiz-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.q { margin: auto 0; padding: 32px 0 0; border: 0; min-width: 0; }
.q-title { padding: 0; margin-bottom: 26px; font-weight: 500; font-size: 30px; line-height: 1.08; letter-spacing: -.03em; }
.q-title label { cursor: default; }
.q.enter { animation: q-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes q-in { from { opacity: 0; transform: translateY(14px); } }
.auth .q input.big-in { height: 54px; padding: 0 2px; border: 0; border-bottom: 1px solid #333; border-radius: 0; background: transparent; font-size: 21px; letter-spacing: -.01em; }
.auth .q input.big-in:focus { border-color: var(--text); }
.auth .q input.big-in::placeholder { color: #444; }
.auth .q .invalid input.big-in, .auth .q.invalid input.big-in { border-color: #7a3b33; }
.q .has-eye .eye { top: 9px; }
.q-hint { margin: 10px 0 0; color: var(--dim); font-size: 12.5px; }
.invalid .q-hint { display: none; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles label { position: relative; cursor: pointer; }
.tiles input { position: absolute; opacity: 0; pointer-events: none; }
.tiles span {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5; padding: 14px; border-radius: 12px; overflow: hidden;
  background: #1a1a1a center / cover;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), filter .3s;
}
.tiles span::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85)); }
.tiles b, .tiles small { position: relative; }
.tiles b { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.tiles small { margin-top: 3px; color: #c9c9c4; font-size: 12px; line-height: 1.35; }
.tiles label:hover span { transform: scale(1.015); }
.tiles label:active span { transform: scale(.98); }
.tiles:has(input:checked) input:not(:checked) + span { filter: grayscale(1) brightness(.6); }
.tiles input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }

.wiz-foot { margin-top: auto; padding-top: 28px; }
.wiz-foot .submit { margin: 0; }
.wiz-foot .switch { margin-top: 0; }
.wizard .status:not(:empty) { margin-top: 14px; }

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.meter i { height: 3px; border-radius: 2px; background: var(--line); transition: background .25s; }
.meter[data-score="1"] i:nth-child(-n+1) { background: #E58A7E; }
.meter[data-score="2"] i:nth-child(-n+2) { background: #E2B36B; }
.meter[data-score="3"] i:nth-child(-n+3), .meter[data-score="4"] i { background: #9BD3A5; }
.meter-txt { min-height: 16px; margin: 6px 0 0; color: var(--dim); font-size: 12px; }
.check { display: grid !important; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--text); cursor: pointer; }
.check .err { grid-column: 1 / -1; }

.done { text-align: center; }
.mail-ic { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid var(--line); border-radius: 50%; }
.auth input.code-in { height: 58px; font-size: 26px; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }
.mail-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; }
.done .auth-lead { line-height: 1.6; }
.done .auth-lead b { color: var(--text); font-weight: 500; }
.ghost-btn { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font: 500 14.5px "Inter Tight", sans-serif; cursor: pointer; }
.ghost-btn:hover { border-color: #555; }

.auth .field { margin-bottom: 14px; }
.auth .lbl { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12.5px; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.forgot { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.forgot:hover { color: var(--text); }
.auth input[type="email"], .auth input[type="password"], .auth input[type="text"] {
  display: block;
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #141414; color: var(--text); font: 400 15px "Inter Tight", sans-serif; outline: none; transition: border-color .2s;
}
.auth input::placeholder { color: var(--dim); }
.auth input:focus { border-color: #555; }
.has-eye { position: relative; }
.has-eye input { padding-right: 46px !important; }
.eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.eye .off, .eye[aria-pressed="true"] .on { display: none; }
.eye[aria-pressed="true"] .off { display: block; }
.err { max-height: 0; margin: 0; overflow: hidden; color: #E58A7E; font-size: 12.5px; transition: max-height .2s, margin .2s; }
.invalid .err { max-height: 40px; margin-top: 6px; }
.auth .invalid input { border-color: #7a3b33; }

.submit { position: relative; width: 100%; height: 44px; margin-top: 6px; border: 0; border-radius: 8px; background: var(--text); color: var(--bg); font: 500 14.5px "Inter Tight", sans-serif; cursor: pointer; transition: background .2s, transform .15s; }
.submit:hover { background: #fff; }
.submit:active { transform: scale(.985); }
.submit[aria-busy="true"] { cursor: progress; }
.submit[aria-busy="true"] .label { opacity: 0; }
.spinner { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border: 2px solid rgba(0, 0, 0, .2); border-top-color: var(--bg); border-radius: 50%; opacity: 0; }
.submit[aria-busy="true"] .spinner { opacity: 1; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; }
.status:not(:empty) { margin-top: 12px; }
.status.ok { color: #9BD3A5; }
.status.err { max-height: none; overflow: visible; color: #E58A7E; } /* .err hierboven is een ingeklapte veldfout */

.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sso { height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s; }
.sso:hover { border-color: #555; }
.sso svg { width: 16px; height: 16px; fill: currentColor; }
.switch { margin: 22px 0 0; color: var(--muted); font-size: 13.5px; }
.switch button { padding: 11px 4px; margin: -11px -4px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.switch button:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .auth { inset: auto 0 0 0; width: 100%; max-height: 92dvh; border-radius: 16px 16px 0 0; border-width: 1px 0 0; }
  .auth-in { padding: 20px 20px 28px; }
  .auth-body { padding-top: 24px; }
  @keyframes panel-in { from { transform: translateY(100%); } }
  @keyframes panel-out { to { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .auth[open], .auth[open]::backdrop { animation: none; }
}

/* account aangemaakt: wit rondje met zwart vinkje */
.ok-ic { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: var(--text); }
.ok-ic svg { width: 34px; height: 34px; fill: none; stroke: #0A0A0A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ok-ic path { stroke-dasharray: 1; stroke-dashoffset: 0; }
#view-welcome:not([hidden]) .ok-ic { animation: ok-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
#view-welcome:not([hidden]) .ok-ic path { animation: ok-draw .45s .3s cubic-bezier(.65, 0, .35, 1) both; }
#view-welcome .submit { margin-top: 8px; }
@keyframes ok-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes ok-draw { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { #view-welcome .ok-ic, #view-welcome .ok-ic path { animation: none !important; } }
