/* ---------- Fonts (self-hosted Roboto, variable 400–700) ---------- */
@font-face{font-family:'Roboto';font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;
  src:url(../fonts/roboto-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;
  src:url(../fonts/roboto-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Tokens ---------- */
:root{
  --purple:#4a017d; --purple-dark:#2e004f; --purple-ink:#1a002e; --lilac:#c9b3d8;
  --green:#98ba50; --grey:#e6e6e6; --line:#bdbdbd; --text:#333;
  --duo:#8f47c2;
  --ease:cubic-bezier(.2,.7,.2,1);

  /* mobile (< 720px) */
  --pad-x:24px; --sec-y:64px; --head-gap:40px;
  --hero-h:460px; --subhero-h:260px; --hero-title-bottom:64px;
  --display:38px; --h1:32px; --h2:26px; --h3:22px; --lead:18px;
  --panel-pad-l:40px 24px 48px; --panel-pad-r:40px 24px 48px;
  --img-h:260px; --intro-img-h:280px; --cta-img-h:280px;
  --header-h:72px; --header-h-s:64px; --logo-w:108px; --logo-w-s:96px; --bar-h:6px; --bar-h-s:6px;
  --foot-pad:48px 24px; --foot-bar-w:14px; --foot-logo-w:108px;
}
@media (min-width:720px){:root{
  --pad-x:48px; --sec-y:96px; --head-gap:48px;
  --hero-h:clamp(480px,70vh,600px); --subhero-h:320px; --hero-title-bottom:96px;
  --display:52px; --h1:40px; --h2:30px; --h3:24px; --lead:19px;
  --panel-pad-l:48px 40px 48px 48px; --panel-pad-r:48px 48px 48px 40px;
  --img-h:380px; --intro-img-h:440px; --cta-img-h:440px;
  --header-h:80px; --header-h-s:64px; --logo-w:120px; --logo-w-s:104px;
  --foot-pad:56px 48px; --foot-bar-w:38px; --foot-logo-w:120px;
}}
@media (min-width:1024px){:root{
  --pad-x:80px; --sec-y:128px; --head-gap:64px;
  --hero-h:clamp(560px,95vh,1100px); --subhero-h:clamp(320px,42vh,400px); --hero-title-bottom:128px;
  --display:clamp(48px,3.125vw,60px); --h1:48px; --h2:34px; --h3:26px; --lead:20px;
  --panel-pad-l:80px 96px 80px 80px; --panel-pad-r:80px 80px 80px 96px;
  --img-h:480px; --intro-img-h:600px; --cta-img-h:560px;
  --header-h:clamp(128px,7.8vw,150px); --header-h-s:80px; --logo-w:clamp(168px,13vw,250px); --logo-w-s:128px; --bar-h:clamp(7px,.52vw,10px); --bar-h-s:5px;
  --nav-fs:clamp(17px,1.15vw,22px); --nav-gap:clamp(40px,2.6vw,50px); --nav-pl:clamp(80px,7vw,135px);
  --hdr-pb:clamp(28px,1.72vw,33px); --hdr-pb-s:24px; --hdr-bar-w:clamp(96px,13.8vw,265px); --hero-bar-h:clamp(8px,.52vw,10px);
  --foot-pad:64px 80px; --foot-bar-w:70px; --foot-logo-w:140px;
}}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font-family:Roboto,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--text);background:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body.menu-open{overflow:hidden}
img{display:block;max-width:100%}
h1,h2,h3,p,ul{margin:0}
a{color:var(--purple)}
a:hover{color:var(--purple-dark)}
:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
[data-dark] :focus-visible{outline-color:var(--green)}
[tabindex="-1"]:focus{outline:none}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.page{overflow-x:hidden;overflow-x:clip;min-height:100vh;display:flex;flex-direction:column}
.wrap{max-width:1440px;margin:0 auto;padding:0 var(--pad-x)}

/* Links */
.link{color:var(--purple);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.link:hover{color:var(--purple-dark);text-decoration-thickness:3px}
.link-light{color:#fff;text-decoration:underline;text-decoration-color:var(--green);text-decoration-thickness:2px;text-underline-offset:4px}
.link-light:hover{color:var(--green)}

/* Typography */
.t-h2{font-size:var(--h2);line-height:1.2;font-weight:700;color:var(--purple);text-wrap:balance}
.t-h3{font-size:var(--h3);line-height:1.3;font-weight:700;color:var(--purple)}
.t-h3s{font-size:24px;line-height:1.3;font-weight:700;color:var(--purple)}
.t-body{font-size:17px;line-height:1.7;color:var(--text);text-wrap:pretty}
.t-lead{font-size:var(--lead);line-height:1.6;color:var(--text);text-wrap:pretty;max-width:760px}
.t-small{font-size:15px;line-height:1.5;color:var(--text)}
.sm{font-size:15px;line-height:1.5}

/* Headings with the green underline bar that runs off the left edge */
.barred{position:relative;display:inline-block;padding-bottom:16px}
.bar{position:absolute;left:-3000px;right:0;bottom:0;height:6px;background:var(--green)}

/* Skip link */
.skip{position:fixed;left:16px;top:-80px;z-index:200;background:#fff;color:var(--purple);padding:12px 16px;font-weight:700;font-size:16px;transition:top .15s}
.skip:focus{top:16px}

/* ---------- Header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;height:var(--header-h);background:rgba(74,1,125,0);transition:height .25s ease,background-color .25s ease}
.site-header.is-scrolled{height:var(--header-h-s);background:var(--purple)}
.logo-link{display:block;line-height:0}
.logo{width:var(--logo-w);height:auto;transition:width .25s ease}
.is-scrolled .logo{width:var(--logo-w-s)}

.hdr-desktop{display:none;height:100%;align-items:center;justify-content:space-between;gap:40px;padding-left:var(--pad-x)}
.hdr-compact{display:flex;height:100%;align-items:center;justify-content:space-between;padding:0 var(--pad-x)}
@media (min-width:1024px){.hdr-desktop{display:flex}.hdr-compact{display:none}}

.nav{list-style:none;padding:0;display:flex;gap:40px}
.nav a{display:block;padding:8px 0;font-size:17px;color:#fff;text-decoration:none}
.nav a.is-current{color:var(--lilac)}
.nav a:hover{color:var(--green);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.hdr-brand{display:flex;align-items:flex-end;gap:10px}
.hdr-bar{display:block;width:clamp(96px,16vw,240px);height:var(--bar-h);background:var(--green);transition:height .25s ease}
.is-scrolled .hdr-bar{height:var(--bar-h-s)}
/* Desktop: nav and brand share a bottom line; the bar runs from the logo to the right edge */
@media (min-width:1024px){
  .hdr-desktop{align-items:flex-end;padding-left:var(--nav-pl);padding-bottom:var(--hdr-pb);transition:padding-bottom .25s ease}
  .is-scrolled .hdr-desktop{padding-bottom:var(--hdr-pb-s)}
  .hdr-desktop>nav{margin-bottom:calc(var(--nav-fs) * -.6)}
  .nav{gap:var(--nav-gap)}
  .nav a{font-size:var(--nav-fs);line-height:1.2}
  .hdr-bar{width:var(--hdr-bar-w)}
}

.sq-btn{width:48px;height:48px;border:0;border-radius:0;background:var(--green);cursor:pointer;padding:0}
.sq-btn:hover{background:#fff}
.burger{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.burger span{display:block;width:22px;height:3px;background:var(--purple)}

/* ---------- Mobile menu ---------- */
.menu{position:fixed;inset:0;z-index:100;background:var(--purple);display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
.menu-top{flex:none;height:var(--header-h);display:flex;align-items:center;justify-content:space-between;padding:0 var(--pad-x)}
.menu-top .logo{width:108px}
.close{position:relative}
.close span{position:absolute;left:12px;top:22px;width:24px;height:3px;background:var(--purple)}
.close span:first-child{transform:rotate(45deg)}
.close span:last-child{transform:rotate(-45deg)}
.menu-nav{padding:40px var(--pad-x) 32px}
.menu-nav ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px}
.menu-nav a{display:block;padding:8px 0;font-size:34px;line-height:1.2;font-weight:700;color:#fff;text-decoration:none}
.menu-nav a.is-current{color:var(--lilac)}
.menu-nav a:hover{color:var(--green)}
.menu-bar{display:block;width:72%;height:6px;background:var(--green);flex:none}
.menu-contact{padding:32px var(--pad-x) 48px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:17px;line-height:1.6;color:#fff}

/* ---------- Hero ---------- */
.hero{position:relative;height:var(--hero-h);overflow:hidden;background:var(--purple);isolation:isolate;flex:none}
.hero.is-sub{height:var(--subhero-h)}
.hero-photo{position:absolute;left:0;right:0;top:-40%;bottom:0;will-change:transform;background:var(--purple)}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 45%);filter:grayscale(1) contrast(1.1)}
.hero-duo{position:absolute;inset:0;background:var(--duo);mix-blend-mode:multiply}
.hero-light{position:absolute;inset:0;background:var(--purple);mix-blend-mode:lighten}
.hero-grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(26,0,46,.9) 0%,rgba(26,0,46,.45) 28%,rgba(26,0,46,0) 55%,rgba(26,0,46,.3) 100%)}
.hero-title{position:absolute;left:0;right:0;bottom:var(--hero-title-bottom);padding:0 var(--pad-x)}
.hero.is-sub .hero-title{display:none}
.hero h1{position:relative;display:inline-block;padding-bottom:20px;font-size:var(--display);line-height:1.08;font-weight:700;color:#fff;text-wrap:balance}
.hero h1 .bar{height:8px}
/* Desktop: title right-aligned on the centre line, bar above it from the left edge */
@media (min-width:1024px){
  .hero-title{top:59%;bottom:auto;right:auto;width:50vw;padding:0;text-align:right}
  .hero h1{padding:calc(var(--hero-bar-h) + 30px) 0 0}
  .hero h1 .bar{top:0;bottom:auto;height:var(--hero-bar-h)}
}

/* ---------- Split rows (image + grey panel) ---------- */
.split{display:flex;flex-wrap:wrap}
.split--rev{flex-direction:row-reverse}
.split-media,.split-panel{flex:1 1 max(50%, calc((720px - 100%) * 999));min-width:0}
.split-media{position:relative;min-height:var(--img-h);overflow:hidden;background:var(--grey)}
.split-media.is-intro{min-height:var(--intro-img-h)}
.split-media.is-cta{min-height:var(--cta-img-h)}
.split-media picture{position:absolute;left:0;right:0;top:-48px;bottom:-48px;will-change:transform}
.split-media img{width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 50%)}
@media (max-width:719.98px){
  .split-media::after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:14px solid var(--grey)}
}
.split-panel{background:var(--grey);display:flex;flex-direction:column;justify-content:center}
.split-panel.pad-l{padding:var(--panel-pad-l)}
.split-panel.pad-r{padding:var(--panel-pad-r)}
.split-panel.is-float{align-self:center;position:relative;z-index:1;will-change:transform}
.split-panel.to-end{align-items:flex-end}
.panel-inner{max-width:560px;width:100%;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.panel-inner .cta{margin-top:8px;font-size:17px}

/* ---------- Sections ---------- */
.sec{padding-top:var(--sec-y);scroll-margin-top:var(--header-h-s)}
.grid{list-style:none;padding:0;display:grid;gap:48px}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.card{display:flex;flex-direction:column;gap:16px}
.card-bar{display:block;width:40px;height:5px;background:var(--green)}
.badge{height:120px;display:flex;align-items:center}
.badge img{max-width:100%;width:auto;height:auto}

.head-stack{display:flex;flex-direction:column;gap:var(--head-gap)}
.head-intro{display:flex;flex-direction:column;gap:24px;align-items:flex-start}

.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:40px 48px}
.contact-item{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.contact-item h3{margin:0 0 4px;font-size:17px;line-height:1.4;font-weight:700;color:var(--text)}
.contact-item .big{font-size:20px;line-height:1.4}
.contact-item address{font-style:normal;font-size:20px;line-height:1.4;color:var(--text)}

/* Lists in "werken bij" panels */
.jobs{list-style:none;padding:0;display:flex;flex-direction:column;width:100%}
.jobs li{display:flex;flex-direction:column;gap:2px;padding:12px 0;border-top:1px solid var(--line)}
.jobs li:last-child{border-bottom:1px solid var(--line)}
.jobs strong{font-size:17px;color:var(--text)}

/* Text pages */
.text-page{padding:var(--sec-y) var(--pad-x);max-width:1440px;margin:0 auto;width:100%}
.prose{max-width:68ch;display:flex;flex-direction:column;gap:24px;font-size:18px}
.prose h1{align-self:flex-start;margin:0 0 8px;font-size:var(--h1);line-height:1.15;font-weight:700;color:var(--purple)}
.prose h2{margin:16px 0 0;font-size:24px;line-height:1.3;font-weight:700;color:var(--purple)}
.prose p,.prose li{font-size:18px;line-height:1.7;color:var(--text)}
.prose .meta{font-size:14px;line-height:1.6}
.prose .t-lead{font-size:var(--lead);line-height:1.6}
.prose ul{padding-left:24px;display:flex;flex-direction:column;gap:8px}
.page-h1{font-size:var(--h1);line-height:1.15;font-weight:700;color:var(--purple)}

/* ---------- Footer ---------- */
.site-footer{background:var(--purple);color:#fff}
.foot-inner{padding:var(--foot-pad);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:40px}
.foot-brand{display:flex;align-items:flex-end;gap:10px;margin-left:calc(-1 * var(--pad-x))}
.foot-bar{display:block;width:var(--foot-bar-w);height:6px;background:var(--green)}
.foot-brand .logo{width:var(--foot-logo-w)}
.foot-info{display:flex;flex-direction:column;gap:12px;align-items:flex-start;text-align:left;font-size:14px;line-height:1.6;max-width:820px}
.foot-row{display:flex;flex-wrap:wrap;flex-direction:column;column-gap:10px}
.foot-row .sep{display:none}
.foot-info p{text-wrap:pretty}
.foot-links{list-style:none;padding:0;display:flex;flex-wrap:wrap;flex-direction:column;gap:4px 24px}
@media (min-width:720px){
  .foot-row,.foot-links{flex-direction:row}
  .foot-row .sep{display:inline}
}
@media (min-width:1024px){
  .foot-inner{align-items:flex-end}
  .foot-info{align-items:flex-end;text-align:right}
  .foot-row,.foot-links{justify-content:flex-end}
}

/* ---------- Motion ---------- */
[data-rv]{transition:opacity .9s var(--ease) var(--rd,0s),transform .9s var(--ease) var(--rd,0s)}
[data-rv] .bar{transition:transform 1.1s var(--ease) calc(var(--rd,0s) + .2s)}
.rv-pending{opacity:0;transform:translate3d(0,32px,0)}
.rv-pending .bar{transform:scaleX(0)}

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

/* ---------- Utilities (vervangen inline style-attributen i.v.m. CSP) ---------- */
.main{flex:1}
.pos-50-60{--pos:50% 60%}.pos-40-60{--pos:40% 60%}.pos-45-50{--pos:45% 50%}
.pos-60-60{--pos:60% 60%}.pos-40-55{--pos:40% 55%}.pos-70-60{--pos:70% 60%}
.badge img.mh-72{max-height:72px}.badge img.mh-80{max-height:80px}.badge img.mh-96{max-height:96px}
.pb-head{padding-bottom:var(--head-gap)}
.pb-sec{padding-bottom:var(--sec-y)}
.self-start{align-self:flex-start}
.werken-intro{padding:var(--sec-y) 0 var(--head-gap)}
.werken-intro-inner{display:flex;flex-direction:column;gap:32px;align-items:flex-start}
.anchor{scroll-margin-top:var(--header-h-s)}
.mt-8{margin-top:8px}
.fw-700{font-weight:700}

/* ---------- 404 ---------- */
.err{background:var(--purple);color:#fff}
.err-top{display:flex;align-items:flex-end;gap:10px;padding:32px 0 0}
.err-top .logo{width:var(--logo-w)}
.err-main{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:24px;padding:var(--sec-y) var(--pad-x);max-width:820px}
.err-main h1{font-size:var(--display);line-height:1.08;font-weight:700;color:#fff}
.err-main p{font-size:var(--lead);line-height:1.6;color:#fff;text-wrap:pretty}
.err-links{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px;font-size:17px}
