/* Delar — ontwerpsysteem (donker)
   Kleuren alleen via deze tokens. Om de Delar-huisstijl toe te passen,
   volstaat het --brand, --brand-ink en --glow aan te passen.
   --brand     = accent: hoofdacties, nadruk in titels, nummers, labels
   --ink       = tekst, --muted = secundaire tekst
   --canvas    = paginagrond, --surface = vlakken, --line = randen (geen schaduwen)
   --ok / --err = formulier gelukt / fout
*/
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(fonts/unbounded-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(fonts/inter-tight-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url(fonts/inter-tight-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  /* Delar-huisstijl: donker groen #0f1b13, middel groen #243323, creme #f7f6f4 */
  --brand: #b5cfa9;            /* licht salie, afgeleid van middel groen: labels, nummers, nadruk */
  --brand-hover: #cde0c3;
  --btn: #f7f6f4;              /* creme: hoofdknoppen */
  --btn-hover: #ffffff;
  --brand-ink: #0f1b13;        /* tekst op creme knoppen */
  --glow: 58, 92, 56;          /* rgb van de gloed (middel groen, opgelicht) */
  --ink: #f7f6f4;
  --muted: #a3ad9f;
  --line: #2b3a2a;
  --canvas: #0f1b13;
  --surface: #16241a;
  --surface-2: #243323;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --logo-font: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

/* Lichte beige blokken: zelfde componenten, andere tokens */
.light {
  --brand: #4e6a48;
  --brand-hover: #243323;
  --btn: #0f1b13;
  --btn-hover: #243323;
  --brand-ink: #f7f6f4;
  --ink: #0f1b13;
  --muted: #5d6656;
  --line: #ddd4c2;
  --canvas: #efe9dd;
  --surface: #f7f6f4;
  --surface-2: #e8e0cf;
  color-scheme: light;
  background: var(--canvas);
  color: var(--ink);
}
.light .card:hover { border-color: #c9bda5; }
.light .btn-ghost:hover { border-color: var(--ink); }
.light .field input:focus, .light .field textarea:focus { box-shadow: 0 0 0 3px rgba(78,106,72,.2); }
.light .prose { color: #2c3529; }
.light .draft-note { border-color: #b8975a; color: #7a5a1c; }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--canvas); }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.1rem, 8vw, 5rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.accent { color: var(--brand); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 860px) { .wrap { padding: 0 40px; } }

/* Labels in mono */
.label { font-family: var(--mono); font-size: .8rem; color: var(--brand); letter-spacing: .02em; margin-bottom: 14px; display: block; }
.label::before { content: "// "; color: var(--muted); }
.mono { font-family: var(--mono); font-size: .85rem; }
.muted { color: var(--muted); }

/* Kop */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; pointer-events: none; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-header a, .site-header button { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--logo-font); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { height: 29px; width: auto; color: var(--ink); flex: none; }
.logo .dot { color: var(--ink); }
.site-header.scrolled::before { content: ""; position: absolute; inset: 0; background: rgba(15,27,19,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { position: relative; }

/* Ronde menuknop met tekst in een cirkel */
.menu-btn { position: relative; width: 48px; height: 48px; margin-right: -12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.menu-btn:hover .bars::before, .menu-btn:hover .bars::after { background: var(--brand); }
.menu-btn .bars { position: absolute; left: 50%; top: 50%; width: 24px; height: 10px; transform: translate(-50%, -50%); }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .2s ease, top .2s ease; }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 8px; }
.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }

/* Menu over het volledige scherm */
.overlay { position: fixed; inset: 0; z-index: 20; background: var(--canvas); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; }
.menu-open .overlay { opacity: 1; visibility: visible; }
.overlay .wrap { width: 100%; }
.overlay ul { list-style: none; margin: 0; padding: 0; }
.overlay li a { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 9vw, 3.6rem); color: var(--ink); text-decoration: none; padding: 6px 0; line-height: 1.15; }
.overlay li a:hover, .overlay li a[aria-current="page"] { color: var(--brand); }
.overlay .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 24px; }
.overlay .legal a { font-family: var(--mono); font-size: .85rem; color: var(--muted); text-decoration: none; }
.overlay .legal a:hover { color: var(--ink); }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: var(--radius-sm); font-family: var(--body); font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--btn); color: var(--brand-ink); }
.btn-primary:hover { background: var(--btn-hover); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow { transition: transform .15s ease; } .btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; padding: 120px 0 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 90vw; height: 90vw; max-width: 1100px; max-height: 1100px; background: radial-gradient(closest-side, rgba(var(--glow), .9), rgba(var(--glow), 0)); filter: blur(20px); pointer-events: none; }
.hero .wrap { position: relative; width: 100%; }
.hero h1 { margin: 0 0 22px; max-width: 16ch; font-size: clamp(2.4rem, 8vw, 5rem); }
.hero .lead { color: var(--muted); max-width: 52ch; font-size: 1.1rem; }
.hero .btn-row { margin-top: 32px; }
@media (min-width: 900px) { .hero { padding: 150px 0 80px; } }
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(76,195,138,.18); }
.hero-grid { display: grid; gap: 32px; align-items: end; }
.portrait { width: 132px; aspect-ratio: 4/5; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .75rem; color: var(--muted); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait:has(img) { aspect-ratio: 1; border-radius: 50%; border: 0; background: none; }
.portrait:has(img) img { transform: scale(1.03); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 260px; } .portrait { width: 260px; } }

/* Secties */
section { padding: 80px 0; }
@media (min-width: 860px) { section { padding: 112px 0; } }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 46ch; margin: 0; }
@media (min-width: 860px) { .section-head { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.page-head { padding-top: 150px; padding-bottom: 8px; }
.page-head .lead { color: var(--muted); max-width: 58ch; font-size: 1.1rem; }

/* Cijfers */
.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div:nth-child(2n) { border-right: 0; }
.stats div:nth-last-child(-n+2) { border-bottom: 0; }
.stats strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stats span { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats div { border-bottom: 0; border-right: 1px solid var(--line) !important; } .stats div:last-child { border-right: 0 !important; } }

/* Diensten als genummerde rijen */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rows { padding: 8px; display: grid; gap: 8px; }
.row { background: var(--surface-2); border-radius: 10px; padding: 24px; display: grid; gap: 18px; }
.row .num { font-family: var(--mono); font-size: .8rem; color: var(--brand); display: block; margin-bottom: 10px; }
.row p { color: var(--muted); margin: 0; }
.row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.row li { display: flex; gap: 10px; } .row li::before { content: "•"; color: var(--brand); }
@media (min-width: 860px) { .row { grid-template-columns: 1fr 1fr; padding: 32px; gap: 40px; } }

/* Projecten */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; transition: border-color .15s ease; }
.card:hover { border-color: #3d5139; }
.card p { color: var(--muted); }
.card .mono { color: var(--brand); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 12px 0 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: .75rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Getuigenissen */
.quote { display: grid; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 3.4vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; }
.quote .who { margin-top: 18px; } .quote .who span { display: block; }
.quote .avatar { width: 88px; height: 88px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); color: var(--brand); }
@media (min-width: 860px) { .quote { grid-template-columns: 160px 1fr; gap: 36px; } .quote .avatar { width: 160px; height: 160px; font-size: 1.6rem; } }
.slider-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.round:hover { border-color: var(--ink); }
.slide[hidden] { display: none; }

/* Over mij */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; } .checks li::before { content: "→"; color: var(--brand); font-family: var(--mono); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .period { font-family: var(--mono); font-size: .85rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.timeline p { color: var(--muted); margin: 0; }
@media (min-width: 860px) { .timeline li { grid-template-columns: 200px 1fr 1.2fr; gap: 32px; align-items: baseline; } }

/* CTA */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; background: var(--surface); }
.cta::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(var(--glow), .85), rgba(var(--glow), 0)); pointer-events: none; }
.cta > * { position: relative; }
.cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 24px; }
@media (min-width: 860px) { .cta { padding: 80px 40px; } }

/* Formulier */
.form { display: grid; gap: 20px; }
.field label { display: block; font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(181,207,169,.25); }
.field textarea { min-height: 160px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .error { color: var(--err); font-size: .88rem; margin-top: 6px; }
.field label.consent { display: flex; gap: 12px; align-items: flex-start; font-family: var(--body); font-size: .92rem; color: var(--muted); margin: 0; }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: 1px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid; }
.notice-ok { color: var(--ok); border-color: rgba(76,195,138,.4); background: rgba(76,195,138,.08); }
.notice-err { color: var(--err); border-color: rgba(255,123,114,.4); background: rgba(255,123,114,.08); }
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list span { display: block; }
.contact-list a { color: var(--ink); }

/* Lange tekst */
.prose { color: #d9ddd5; }
.prose > * { max-width: 72ch; }
.page-head + section { padding-top: 40px; }
.prose h2 { font-size: 1.15rem; margin-top: 2em; color: var(--ink); }
.prose h2.part { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.05rem; margin-top: 1.8em; color: var(--brand); }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.draft-note { font-family: var(--mono); font-size: .85rem; border: 1px dashed #6b5a2a; color: #e6c46b; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 24px; }

/* Voet */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-top { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-top p { color: var(--muted); max-width: 34ch; margin-top: 14px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-cols h4 { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: .8rem; color: var(--brand); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-cols a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.footer-cols a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; margin-left: 16px; } .footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--ink); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 2fr; } .footer-cols { grid-template-columns: repeat(2, 1fr); } }

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

/* Titels van vaardigheden */
.card.skill h3 { font-size: 1.35rem; color: var(--brand); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .card.skill h3 { font-size: 1.5rem; } }
