/*
treeview.be, ontwerp 1 "bonsai op rots": warm zand, mosgroen, donkere rots.
*/
:root {
	--sand: #F4F1EA;
	--sand-2: #E9E3D6;
	--moss-light: #DCE6CD;
	--moss: #4E6639;
	--moss-dark: #3F5530;
	--sage: #B7CC9C;
	--bark: #584B34;
	--ink: #2E2A20;
	--muted: #6B6252;
	--line: #DDD6C8;
	--line-2: #D9D1C1;
	--rock: #2A2A1F;
	--rock-line: #3D3A2F;
	--rock-text: #F3EFE6;
	--rock-muted: #C4BBA9;
	--white: #FFFFFF;
	--display: Poppins, system-ui, sans-serif;
	--body: 'Instrument Sans', system-ui, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
	--gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--moss); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1296px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { margin: 0; font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.04em; color: var(--moss); }
.mono { font-family: var(--mono); }
.h1, .h2, .h3 { font-family: var(--display); font-weight: 600; color: var(--bark); }
.h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.04; letter-spacing: -0.025em; margin: 20px 0 24px; text-wrap: balance; }
.h1.small { font-size: clamp(38px, 4.8vw, 66px); line-height: 1.05; margin: 0 0 24px; }
.h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 16px; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.25; margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; max-width: 600px; margin: 0 0 36px; }
.sub { margin: 0 0 48px; max-width: 620px; font-size: 18px; }
.section { padding: 120px 0; }
.section.tight-top { padding-top: 0; }

/* knoppen */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 17px; padding: 15px 24px; border-radius: 10px; border: 1px solid transparent; line-height: 1.3; cursor: pointer; font-family: var(--body); }
.btn-primary { background: var(--moss); color: var(--white); }
.btn-primary:hover { background: var(--moss-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #A89F8C; }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-sage { background: var(--sage); color: var(--rock); }
.btn-sage:hover { background: #C8DAB1; color: var(--rock); }
.btn-outline-light { color: var(--rock-text); border-color: #6A6655; }
.btn-outline-light:hover { color: var(--white); border-color: var(--rock-muted); }
.more { font-weight: 600; font-size: 16px; text-decoration: none; padding: 6px 0; }

/* header */
.site-header { background: var(--sand); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: flex-end; gap: 10px; line-height: 0; text-decoration: none; }
.brand .mark { height: 56px; width: auto; }
.brand .word { height: 26px; width: auto; margin-bottom: 3px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 12px 0; }
.menu a.on { color: var(--moss); font-weight: 600; box-shadow: inset 0 -2px 0 var(--moss); }
.menu a.btn { color: var(--white); padding: 12px 20px; margin-left: 4px; font-size: 16px; box-shadow: none; }
.menu a.btn:hover { color: var(--white); }

/* hero */
.hero { padding: clamp(24px, 5vw, 56px) 0 0; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-art .frame { position: relative; width: 100%; max-width: 520px; }
.hero-art .frame > img { display: block; width: 100%; height: auto; }
.tree { position: absolute; left: 0; bottom: 6%; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.8; color: var(--ink); margin: 0; list-style: none; }
.tree .root { color: var(--muted); }
.tree .branch { color: var(--moss); }

/* bewijsbalk */
.proof { padding: 56px 0 0; }
.proof dl { margin: 0; border-top: 1px solid var(--line-2); padding-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 40px; }
.proof dt { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--bark); }
.proof dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

/* dienst-tegels */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tile .path { font-family: var(--mono); font-size: 13px; color: var(--moss); }
.tile p { margin: 0; font-size: 16px; }
.branches { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 15px; line-height: 1.9; }
.branches li, .tech li { display: flex; }
.branches .b, .tech .b { flex: none; white-space: pre; }
.branches .b { font-family: var(--mono); color: var(--moss); }
.tile .more { margin-top: auto; }

/* rotsranden */
.ridge { line-height: 0; background: var(--sand); }
.ridge svg { display: block; width: 100%; height: clamp(56px, 8vw, 120px); }

/* cases */
.cases-band { background: var(--sand-2); padding: 40px 0 120px; }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 48px; }
.band-head > div { flex: 1 1 520px; min-width: 0; }
.band-head .sub { margin-bottom: 0; }
.band-head .more { font-size: 17px; padding: 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.chip.on-white { background: var(--white); }
.case-meta { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.case-wide { background: var(--white); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; display: flex; flex-wrap: wrap; }
.case-wide .visual { flex: 1 1 560px; min-width: 0; padding: clamp(20px, 3vw, 40px); display: flex; align-items: center; justify-content: center; }
.case-wide .body { flex: 1 1 420px; min-width: 0; padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.case-wide h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.015em; }
.case-wide p { margin: 0; }
.case-wide .more { font-size: 17px; align-self: flex-start; }

.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-top: 24px; }
.case-grid:first-child { margin-top: 0; }
.case-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.case-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(46, 42, 32, .45); }
.case-card .visual { height: 320px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.case-card .browser .placeholder { height: 210px; }
.case-card .body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.case-card h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.case-card p { margin: 0; font-size: 16px; }
.case-card .go { margin-top: auto; font-weight: 600; font-size: 16px; color: var(--moss); padding-top: 6px; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 32px; }
.also span { font-size: 16px; color: var(--muted); margin-right: 4px; }
.also a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; background: var(--white); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; }
.also a:hover { border-color: var(--moss); }

/* beelden in kaarten */
.browser { width: 100%; background: var(--white); border: 1px solid #C9C1B0; border-radius: 12px; overflow: hidden; }
.browser .dots { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #E6E0D4; }
.browser .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser img { display: block; width: 100%; height: auto; }
.placeholder { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.browser .placeholder { height: 300px; }
.phone { width: 150px; height: 290px; border: 7px solid var(--ink); border-radius: 30px; background: #FFF9E0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .placeholder { font-size: 12.5px; color: var(--bark); padding: 16px; }
.game { flex-direction: column; gap: 18px; }
.game svg { width: 220px; height: 120px; }
.game .placeholder { color: #9FB3B8; font-size: 12.5px; padding: 0; }
.game img { max-height: 280px; width: auto; border-radius: 12px; }

/* filter op het casesoverzicht */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.filter button { font-family: var(--mono); font-size: 13px; background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.filter button[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--white); }

/* waarom */
.why .wrap { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.portrait { flex: 1 1 320px; min-width: 0; max-width: 420px; }
.portrait .photo { aspect-ratio: 4 / 5; background: var(--sand-2); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .name { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--bark); margin-top: 20px; }
.portrait .role { font-size: 16px; color: var(--muted); }
.why-text { flex: 1 1 560px; min-width: 0; }
.why-text .h2 { margin-bottom: 40px; }
.pillar { display: flex; flex-wrap: wrap; gap: 8px 32px; border-top: 1px solid var(--line-2); padding: 28px 0; }
.pillar:last-child { border-bottom: 1px solid var(--line-2); }
.pillar .label { flex: 0 0 110px; font-family: var(--mono); font-size: 13.5px; color: var(--moss); padding-top: 4px; }
.pillar > div:last-child { flex: 1 1 360px; min-width: 0; }
.pillar .h3 { margin-bottom: 8px; }
.pillar p { margin: 0; }

/* stappen */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: step; }
.steps li { border-top: 2px solid var(--bark); padding-top: 20px; }
.steps .nr { font-family: var(--mono); font-size: 13.5px; color: var(--moss); }
.steps .h3 { font-size: 20px; line-height: 1.3; margin: 8px 0; }
.steps p { margin: 0; font-size: 16px; }

/* kruimelpad en paginakop */
.crumbs { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.page-head { padding: clamp(32px, 5vw, 64px) 0 56px; }
.page-head .row { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-end; margin-top: 28px; }
.page-head .row > div:first-child { flex: 1 1 640px; min-width: 0; }
.page-head .lead { margin: 0; max-width: 680px; }
.page-head .chips { margin-bottom: 20px; }
.facts { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.facts > div { padding: 22px 24px 22px 0; }
.facts dt { font-family: var(--mono); font-size: 13px; color: var(--moss); text-transform: lowercase; }
.facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 500; }

/* case-detail */
.screens { padding: 0 0 112px; }
.screens .stage { border-radius: 24px; padding: clamp(32px, 5vw, 72px) 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.screens .phone { width: 220px; height: 450px; border-width: 8px; border-radius: 38px; }
.screens .phone:nth-child(2) { margin-top: 40px; }
.screens .phone .placeholder { font-size: 13px; padding: 20px; }
.screens .shot { max-width: 100%; border-radius: 12px; }
.screens figure { margin: 0; }
.screens figcaption { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink); margin-top: 12px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px 72px; }
.two .h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; margin: 12px 0 16px; }
.two p { margin: 0; font-size: 18px; }
.features-band { background: var(--sand-2); padding: 96px 0; }
.features-band .h2 { margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; }
.card .h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.card p { margin: 0; font-size: 15.5px; }
.highlights { padding: 96px 0 0; }
.highlights .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.highlight { border-radius: 20px; padding: clamp(28px, 3.5vw, 48px); background: var(--white); border: 1px solid var(--line); }
.highlight:first-child { background: var(--moss-light); border-color: var(--moss-light); }
.highlight:first-child .kicker { color: var(--moss-dark); }
.highlight .h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.015em; margin: 12px 0 14px; }
.highlight p { margin: 0; font-size: 17px; }
.tech { padding: 20px 0 0; }
.tech details { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 0 clamp(28px, 3.5vw, 48px); }
.tech summary { cursor: pointer; padding: 26px 0; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--bark); }
.tech ul { list-style: none; margin: 0; padding: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 4px 48px; font-size: 16px; line-height: 2; }
.tech .b { font-family: var(--mono); color: var(--moss); }
.result { padding: 96px 0 0; }
.result blockquote { margin: 32px 0 0; padding: 0 0 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.35; color: var(--bark); }
.result cite { display: block; margin-top: 12px; font-family: var(--mono); font-style: normal; font-size: 13.5px; color: var(--moss); }
.onward { padding: 96px 0 112px; }
.onward .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.onward a { display: block; text-decoration: none; color: var(--ink); border-top: 2px solid var(--bark); padding: 24px 0; }
.onward .small { display: block; font-family: var(--mono); font-size: 13.5px; color: var(--moss); }
.onward .big { display: block; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.25; color: var(--bark); margin-top: 8px; }
.onward a:hover .big { color: var(--moss); }

/* dienst-detail */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--bark); }
.faq details p { margin: 0 0 24px; max-width: 760px; }

/* tekstpagina */
.prose { max-width: 720px; font-size: 18px; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--bark); margin: 48px 0 12px; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--bark); margin: 32px 0 8px; }
.prose ul { padding-left: 1.2em; }

/* contact */
.rock { background: var(--rock); color: var(--rock-text); }
.contact-cta { padding: 32px 0 104px; }
.contact-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.contact-cta .text { flex: 1 1 560px; min-width: 0; }
.contact-cta .kicker { color: var(--sage); }
.contact-cta .h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.025em; color: var(--rock-text); margin: 14px 0 20px; }
.contact-cta p { margin: 0 0 32px; max-width: 580px; font-size: 18px; color: var(--rock-muted); }
.contact-list { flex: 1 1 320px; min-width: 0; margin: 0; border: 1px solid #45433A; border-radius: 16px; padding: 8px 28px; }
.contact-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--rock-line); }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { font-family: var(--mono); font-size: 13px; color: var(--sage); }
.contact-list dd { margin: 0; font-size: 16px; }
.contact-list a { color: var(--rock-text); }

.form-wrap { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.form-wrap form { flex: 1 1 560px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3.5vw, 48px); }
.form-wrap aside { flex: 1 1 300px; min-width: 0; }
.form-wrap .h3 { margin: 0 0 24px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--sand); border: 1px solid #C9C1B0; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--moss-light); border-color: var(--moss); background: var(--white); }
.field .err { color: #9A3412; font-size: 14px; }
.field [aria-invalid="true"] { border-color: #9A3412; }
.form-error { background: #FDECE4; color: #7C2D12; border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; }
.form-sent { background: var(--moss-light); border-radius: 20px; padding: clamp(24px, 3.5vw, 48px); flex: 1 1 560px; }
.form-sent .h3 { margin: 0 0 8px; }
.form-wrap .btn { margin-top: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-list { margin: 0; border-top: 1px solid var(--line-2); }
.aside-list > div { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.aside-list dt { font-family: var(--mono); font-size: 13px; color: var(--moss); }
.aside-list dd { margin: 4px 0 0; }

/* footer */
.site-footer { background: var(--rock); color: #E6E0D2; border-top: 1px solid var(--rock-line); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.foot .about { flex: 1 1 300px; min-width: 0; }
.foot .about .brand .mark { height: 62px; }
.foot .about .brand .word { height: 30px; }
.foot .about p { margin: 20px 0 0; max-width: 320px; font-size: 15px; color: var(--rock-muted); }
.foot .col { flex: 0 1 180px; }
.foot .col h2 { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--sage); margin: 0 0 12px; }
.foot .col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.foot .col a { color: #E6E0D2; text-decoration: none; }
.foot .col a:hover { color: var(--white); text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rock-line); font-size: 14px; color: #A9A08E; }
.legal a { color: #A9A08E; }
.legal a:hover { color: var(--white); }

@media (max-width: 640px) {
	.section { padding: 80px 0; }
	.cases-band { padding-bottom: 80px; }
	.menu { gap: 0 20px; }
	.menu a.btn { margin-left: 0; }
	.tree { position: static; margin-top: 16px; display: inline-block; }
	.screens .phone { width: 180px; height: 370px; }
	.screens .phone:nth-child(2) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.case-card { transition: none; }
	.case-card:hover { transform: none; }
}
[hidden]{display:none !important}
