:root {
  --bg: #f5f4f0;
  --bg-alt: #ecebe5;
  --surface: #ffffff;
  --text: #161716;
  --muted: #5d605b;
  --line: #d9d7cf;
  --accent: #1d4a3a;
  --accent-soft: #e1ebe5;
  --dark: #161716;
  --dark-text: #f2f1ec;
  --radius: 6px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121312;
    --bg-alt: #181a18;
    --surface: #1b1d1b;
    --text: #ecebe6;
    --muted: #9c9f98;
    --line: #2c2f2c;
    --accent: #8fc1a8;
    --accent-soft: #1f2e27;
    --dark: #0b0c0b;
    --dark-text: #ecebe6;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .i-maan { display: none; }
  :root:not([data-theme="light"]) .i-zon { display: block; }
}
:root[data-theme="dark"] {
    --bg: #121312;
    --bg-alt: #181a18;
    --surface: #1b1d1b;
    --text: #ecebe6;
    --muted: #9c9f98;
    --line: #2c2f2c;
    --accent: #8fc1a8;
    --accent-soft: #1f2e27;
    --dark: #0b0c0b;
    --dark-text: #ecebe6;
    color-scheme: dark;
}
:root[data-theme="dark"] .i-maan { display: none; }
:root[data-theme="dark"] .i-zon { display: block; }

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Kop */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.top-in .mark { margin-right: auto; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.mark-box {
  display: grid; place-items: center; width: 28px; height: 28px;
  background: var(--text); color: var(--bg); border-radius: 4px;
  font-size: 15px; font-weight: 700;
}
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.top nav a:hover { color: var(--text); }
.top nav .nav-cta {
  color: var(--text); border: 1px solid var(--line); padding: 6px 14px; border-radius: var(--radius);
}
.top nav .nav-cta:hover { border-color: var(--text); }

/* Intro */
.hero { padding-top: 112px; padding-bottom: 96px; }
.eyebrow { margin: 0 0 20px; font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; max-width: 15ch; letter-spacing: -0.035em; }
.lead { margin: 28px 0 0; max-width: 58ch; font-size: 19px; color: var(--muted); }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px 0 0; max-width: 720px; border-top: 1px solid var(--line);
}
.facts div { padding: 18px 20px 0 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* Secties */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.section-head h2, .section h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.section-head p { margin: 0; color: var(--muted); max-width: 42ch; }
.muted { color: var(--muted); }

/* Projecten */
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
}
.case h3 { font-size: 22px; margin-top: 14px; }
.case-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.tag { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; font-weight: 600; }
.live { color: var(--accent); text-decoration: none; font-weight: 500; }
.live:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-sum { margin: 10px 0 0; }
.points { margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.points li { position: relative; padding-left: 18px; margin-top: 8px; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 8px; height: 1px; background: var(--muted);
}
.stack {
  margin: auto 0 0; padding-top: 22px; font-size: 13px; color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.case-lead { padding: 40px; margin-bottom: 20px; }
.case-lead h3 { font-size: clamp(28px, 3.2vw, 36px); }
.case-lead .case-sum { font-size: 19px; max-width: 60ch; }
.case-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.stats { margin: 22px 0 0; border-left: 1px solid var(--line); padding-left: 28px; display: grid; gap: 18px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Hosting en over */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.split > div > p { margin-top: 16px; max-width: 34ch; }
.checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.checklist li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.checklist strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }

.prose p { margin: 0 0 18px; max-width: 62ch; }
.prose p:first-child { font-size: 19px; }
.skills { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li {
  font-size: 14px; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); background: var(--surface);
}

/* Contact */
.section-dark { background: var(--dark); color: var(--dark-text); border-top: 0; }
.contact h2 { max-width: 18ch; }
.contact p { margin: 16px 0 0; color: color-mix(in srgb, var(--dark-text) 65%, transparent); font-size: 19px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  background: var(--dark-text); color: var(--dark);
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--dark-text); border: 1px solid color-mix(in srgb, var(--dark-text) 30%, transparent); }

.foot { background: var(--dark); color: color-mix(in srgb, var(--dark-text) 50%, transparent); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid color-mix(in srgb, var(--dark-text) 12%, transparent); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Losse pagina's */
.top nav a[aria-current="page"] { color: var(--text); }
.top nav a[aria-current="page"]:not(.nav-cta) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.top nav .nav-cta[aria-current="page"] { border-color: var(--text); }

.page-head { padding-top: 88px; padding-bottom: 56px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.035em; }
.page-head .lead { margin-top: 20px; }
.section-tight { padding-top: 56px; }
.narrow > * { max-width: 760px; }
.case { scroll-margin-top: 84px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--text); opacity: 1; }

.more { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.more:hover { color: var(--text); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows a {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .15s ease;
}
.rows a:hover { padding-left: 8px; }
.row-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.row-desc { color: var(--muted); }
.row-tag { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.band { padding: 64px 0; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(24px, 3vw, 32px); }

.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-size: 20px; font-weight: 500; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--text); }

@media (max-width: 700px) {
  .rows a { grid-template-columns: 1fr; gap: 4px; }
  .row-tag { order: -1; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dd { font-size: 18px; word-break: break-word; }
  .page-head { padding-top: 56px; padding-bottom: 32px; }
}

/* Thema-knop */
.thema {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: color .15s, border-color .15s;
}
.thema[hidden] { display: none; }
.thema:hover { color: var(--text); border-color: var(--text); }
.thema svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thema .i-zon { display: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Homepage: drie diensten */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.trio h3 { font-size: 20px; }
.trio p { margin: 10px 0 0; color: var(--muted); }

/* Werk-overzicht */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.work {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.work:hover { border-color: var(--muted); transform: translateY(-2px); }
.work img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.work-text { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.work h2 { font-size: 24px; margin-top: 10px; }
.work-text > p:not(.stack) { margin: 10px 0 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .work, .rows a { transition: none; } .work:hover { transform: none; } }

/* Projectpagina */
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--text); }
.meta-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
}
.meta-row dt { font-size: 13px; color: var(--muted); }
.meta-row dd { margin: 4px 0 0; font-weight: 500; }
.meta-row a { color: var(--accent); text-decoration: none; }
.meta-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shot { margin: 0; }
.shot-wrap { padding-bottom: 56px; }
.shot-wrap + .section { border-top: 0; padding-top: 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-alt);
}
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.story { display: grid; gap: 48px; }
.story-block { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.story-block h2 { font-size: 22px; }
.story-block .points { margin-top: 0; font-size: 17px; }
.story-block .points li { margin-top: 0; margin-bottom: 12px; }
.story-block .points strong { color: var(--text); font-weight: 600; }
.next {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 24px 0 96px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.next > span { color: var(--muted); }
.next strong { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.next:hover strong { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Diensten */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.service-nr { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; color: var(--muted); }
.service h2 { font-size: 24px; margin-top: 12px; }
.service > p { margin: 10px 0 0; }
.service .points { margin-top: 14px; }
.service .service-ex { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--muted); }
.service-ex a { color: var(--accent); text-underline-offset: 3px; }
.h-space { margin-bottom: 32px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: stap; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: stap; border-top: 2px solid var(--text); padding-top: 18px; }
.steps li::before { content: "0" counter(stap); display: block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.steps strong { display: block; font-size: 18px; font-weight: 600; }
.steps span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Footer-links */
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--dark-text); }
.foot-links { display: flex; gap: 20px; }

/* Kleinere schermen */
@media (max-width: 1000px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cases, .case-body, .split, .trio, .work-grid, .services, .story-block { grid-template-columns: 1fr; }
  .story-block { gap: 12px; }
  .trio { gap: 24px; }
  .top-in { gap: 18px; }
  .top nav { gap: 18px; }
  .case-body { gap: 0; }
  .stats { border-left: 0; padding-left: 0; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 18px; }
  .stats dd { font-size: 24px; }
  .split { gap: 24px; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; column-gap: 12px; }
  .top nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; font-size: 14px; }
  .top nav .nav-cta { padding: 4px 10px; }
  .steps, .meta-row { grid-template-columns: 1fr; }
  .service { padding: 24px; }
  .next { flex-direction: column; gap: 4px; margin-bottom: 64px; }
  .foot-in { flex-direction: column; gap: 10px; }
  .hero { padding-top: 72px; padding-bottom: 64px; }
  .lead { font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:last-child { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .case, .case-lead { padding: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
