:root {
  --paper: #f7f9f7;
  --panel: #ffffff;
  --ink: #17201b;
  --muted: #5f6b63;
  --line: #d8ded7;
  --soft: #eef3ed;
  --accent: #2f6f57;
  --accent-dark: #194536;
  --accent-ink: #ffffff;
  --shadow: 0 3px 8px rgba(23, 32, 27, 0.07);
  --shadow-hover: 0 12px 28px rgba(23, 32, 27, 0.13);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121713;
    --panel: #1a211c;
    --ink: #e9eeea;
    --muted: #9db0a4;
    --line: #2c352f;
    --soft: #202a24;
    --accent: #63b08f;
    --accent-dark: #8fd0b3;
    --accent-ink: #0e1410;
    --shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.5);
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3, .top-name, .badge {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}
p, .checks li { text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { background: var(--paper); }
body {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: transparent;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
::selection { background: var(--accent); color: var(--accent-ink); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* Header + nav */
header.top { border-bottom: 1px solid var(--line); }
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  /* alleen verticale padding zetten; horizontale 20px komt van .wrap (zelfde element) */
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.top-name { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.top-mail { font-size: 0.9rem; text-decoration: none; font-weight: 600; }
.top-nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.top-nav a {
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.top-nav a[aria-current="page"] {
  color: var(--ink); text-decoration: underline; text-underline-offset: 5px;
}

/* Hero */
.hero { padding: 4.5rem 0 3rem; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 850; line-height: 1.08; letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
  margin-top: 1.1rem; font-size: 1.05rem; color: var(--muted); font-weight: 500;
  max-width: 62ch;
}
.hero .proof {
  margin-top: 0.9rem; font-size: 0.95rem; font-weight: 700; color: var(--ink);
  max-width: 52ch; border-left: 3px solid var(--accent); padding-left: 0.8rem;
}
.hero .loc {
  margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.35rem;
}
.hero .loc svg {
  width: 0.95rem; height: 0.95rem; flex-shrink: 0;
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 2.2rem; align-items: center;
}
.hero-foto-wrap { justify-self: end; width: 100%; max-width: 20rem; perspective: 1200px; }
.flip-inner {
  position: relative; aspect-ratio: 3/4;
  transform-style: preserve-3d;
  transform: rotate(1.5deg);
  transition: transform 0.6s cubic-bezier(0.35, 0.2, 0.2, 1);
}
@media (hover: hover) {
  .hero-foto-wrap:hover .flip-inner { transform: rotate(1.5deg) rotateY(180deg); }
}
.hero-foto {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 8px; border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  backface-visibility: hidden;
}
.flip-back { transform: rotateY(180deg); }
.hero-foto--face { object-position: 50% center; }
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

/* Sections */
section.block { padding: 3.5rem 0 0; }
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 850; letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
}
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.sec-head h2 { margin-bottom: 0; }
.link-more { font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.link-more::after { content: " →"; }
.page-head { padding: 3.2rem 0 0; }
.page-head h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 850; letter-spacing: -0.02em;
}
.page-intro { font-size: 1.02rem; color: var(--muted); max-width: 62ch; margin-top: 0.9rem; }

/* Hoe ik werk */
.method {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 1.7rem 1.6rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.2rem 2.2rem; align-items: start;
}
.method h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: 0.7rem; }
.method p { color: var(--muted); font-size: 0.98rem; max-width: 54ch; }
.method .btn { margin-top: 1.1rem; }
@media (max-width: 720px) { .method { grid-template-columns: 1fr; } }

/* Cases */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--soft);
  padding: 0.28rem 0.65rem; border-radius: 999px;
}
.card h3 { font-size: 1.18rem; font-weight: 750; line-height: 1.25; }
.card p { font-size: 0.95rem; color: var(--muted); }
.quote {
  margin: 0; padding: 0.8rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--soft); border-radius: 0 8px 8px 0;
}
.quote p { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.quote footer { margin-top: 0.3rem; font-size: 0.82rem; color: var(--muted); }
.card-shot {
  position: relative;
  margin: -1.6rem -1.5rem 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-shot img {
  display: block; width: 100%; height: auto;
  transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card:hover .card-shot img { transform: scale(1.04); }
.badge-over {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) {
  .card-shot img { transition: none; }
}
.checks { list-style: none; display: grid; gap: 0.4rem; }
.checks li { font-size: 0.92rem; padding-left: 1.5rem; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.chip {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

/* Groepen op de cases-pagina */
.group + .group { margin-top: 3.2rem; }
.group-head { margin-bottom: 1.1rem; }
.group-head h3 {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-dark);
}
.group-head p { font-size: 0.94rem; color: var(--muted); margin-top: 0.3rem; max-width: 60ch; }

.btn {
  display: inline-block; align-self: flex-start;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  padding: 0.68rem 1.15rem; border-radius: 999px;
  min-height: 44px; line-height: 1.4;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); color: var(--accent-ink); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--soft); color: var(--accent-dark); }
.btn::after {
  content: "→"; display: inline-block; margin-left: 0.45rem;
  transition: transform 0.15s ease;
}
.btn:hover::after { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Achtergrondlijnen (fixed, subtiel) */
.bg-paths { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-paths path {
  fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.13;
  stroke-dasharray: 5 9; animation: path-drift 32s linear infinite;
}
.bg-paths path:nth-child(2n) { animation-duration: 43s; animation-direction: reverse; }
@keyframes path-drift { to { stroke-dashoffset: -280; } }
@media (prefers-reduced-motion: reduce) {
  .bg-paths path { animation: none; }
}

/* Reveal bij scroll (enkel actief als JS de klasse .reveal zet) */
[id] { scroll-margin-top: 1rem; }
.reveal .card {
  opacity: 0; filter: blur(6px);
  transition: opacity 0.5s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.5s ease;
}
.reveal .card.in { opacity: 1; filter: none; }
.reveal .timeline li, .reveal .over-grid, .reveal .method, .reveal .contact .wrap > * {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}
.reveal .timeline li.in, .reveal .over-grid.in, .reveal .method.in, .reveal .contact .wrap > .in {
  opacity: 1; transform: none; filter: none;
}

/* Timeline */
.timeline { list-style: none; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.4rem; font-size: 0.98rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 0.42rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline .when {
  font-weight: 750; font-variant-numeric: tabular-nums; color: var(--accent-dark);
  margin-right: 0.45rem;
}
.timeline .what { color: var(--muted); }
.timeline .what b { color: var(--ink); font-weight: 700; }

/* Certs */
.certs { font-size: 0.88rem; color: var(--muted); margin-top: 1.6rem; max-width: 72ch; }
.over p { max-width: 62ch; font-size: 1rem; color: var(--ink); }
.over p + p { margin-top: 0.9rem; }
.over .lede { font-weight: 750; font-size: 1.15rem; }
.over-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2.2rem; align-items: start; }
.over-foto { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 720px) {
  .over-grid { grid-template-columns: 1fr; }
  .over-foto { max-width: 22rem; }
}
.certs b { color: var(--ink); font-weight: 700; }

/* Contact */
.contact {
  margin-top: 3.5rem;
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 3.5rem 0;
}
.contact h2 { max-width: 26ch; margin-bottom: 0.9rem; }
.contact .anchor {
  font-size: 1.05rem; font-weight: 750; color: var(--ink);
  max-width: 46ch; margin-bottom: 1.4rem;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem; font-size: 0.85rem; color: var(--muted);
  background: var(--panel);
}
footer a { text-decoration: none; font-weight: 600; }

/* 404 */
.notfound { padding: 5rem 0 4rem; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 850; letter-spacing: -0.02em; }
.notfound p { margin-top: 1rem; color: var(--muted); max-width: 52ch; }
.notfound .btn-row { margin-top: 1.6rem; }

@media (max-width: 480px) {
  /* specificiteit moet .top-nav a (0,1,1) overwinnen, anders blijft de mail zichtbaar */
  .top-nav a.top-mail { display: none; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-foto-wrap { justify-self: start; max-width: 16rem; }
}
