/* roybosch.nl — opmaak per pagina, overgenomen uit designs/html/*.html. */

/* ---------- gedeeld ---------- */
.page { padding-bottom: 128px; }
.page-hero { padding: 96px 0 48px; display: flex; flex-direction: column; gap: 24px; }
.page-hero h1 { margin: 0; }
.page-hero .lead { max-width: var(--measure); }
.page-hero .lead p + p { margin-top: 20px; }
.eyebrow-path { text-transform: none; letter-spacing: 0.02em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mono { font-family: var(--font-mono); font-size: 14px; }
.path { font-family: var(--font-mono); font-size: 14px; line-height: 1.5; color: var(--ink-muted); overflow-wrap: anywhere; }
.date { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.frame { position: relative; display: block; border-radius: var(--radius-photo); overflow: hidden; background: var(--paper-sunken); }
.frame > picture, .frame > picture img, .frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame > .placeholder { position: absolute; inset: 0; }
.frame.tone-blog { background: var(--tint-blog); }
.frame.tone-foto { background: var(--tint-foto); }
.frame.tone-project { background: var(--tint-project); }

/* Filterknoppen: blogcategorieën en fototags. */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  box-sizing: border-box; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; color: var(--ink);
  font: 500 13px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.filter-btn:hover { background: var(--paper-raised); color: var(--ink); }
.filter-btn[aria-current="page"], .filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-btn .count { font-weight: 400; color: var(--ink-muted); }
.filter-btn[aria-current="page"] .count, .filter-btn[aria-pressed="true"] .count { color: inherit; }

/* ---------- PostItem ---------- */
.post-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.post-card:hover { color: var(--ink); }
.post-card .frame { transition: transform var(--dur-base) var(--ease-out); }
.post-card:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-title { font-size: var(--type-heading-s-size); line-height: var(--type-heading-s-lh); font-weight: 600; }
.post-card.is-ruled { padding-top: 16px; border-top: 1px solid var(--line); }
.post-card .frame img { transition: transform var(--dur-slow) var(--ease-out); }
.post-card:hover .frame img { transform: scale(1.03); }

/* ---------- Home ---------- */
.home-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.home-hero-inner { position: relative; padding-top: 128px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px 32px; align-items: flex-end; }
.home-hero-text { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.home-hero-text .lead { max-width: var(--measure); }
.pillar-index { flex: 1 1 260px; margin: 0; border-top: 1px solid var(--ink); font: 400 14px/1.5 var(--font-mono); }
.pillar-index a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pillar-index a:hover { background: linear-gradient(90deg, var(--paper-raised), transparent); }
.pillar-index .k { color: var(--ink-muted); }
.home-blog { padding-top: 96px; }
.post-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.post-grid-3 .post-title { font-size: var(--type-heading-m-size); line-height: var(--type-heading-m-lh); }
.center-action { margin-top: 48px; display: flex; justify-content: center; }
.home-photos { padding-top: 128px; }
/* De helix heeft zelf al 48 px boven de kop (.helix-head); samen weer 128 px, net als boven de foto's. */
.home-projects { padding-top: 80px; }
.home-photos .rb-section-head { margin-bottom: 48px; }
.home-photos-wrap { position: relative; }
.home-photos-fade {
  position: absolute; right: 0; bottom: 0; width: min(720px, 70%); height: min(360px, 75%); pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 100% 100%, rgba(236, 234, 227, 0.94) 0%, rgba(236, 234, 227, 0.78) 35%, rgba(236, 234, 227, 0) 75%);
}
.home-photos-more { position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); background: var(--paper-raised); }
.home-cta { padding-top: 128px; padding-bottom: 128px; }

/* ---------- PhotoRows ---------- */
.photo-rows { display: flex; flex-direction: column; gap: 16px; width: 100%; overflow: hidden; }
.photo-row { display: flex; gap: 16px; width: calc(100% + 80px); margin-left: -40px; will-change: transform; }
.photo-tile {
  position: relative; display: block; flex: 1 1 0; min-width: 0; aspect-ratio: 4 / 3; padding: 0; border: 0;
  border-radius: var(--radius-photo); background: var(--tint-foto); overflow: hidden; cursor: zoom-in;
}
.photo-tile.alt { background: var(--paper-sunken); }
.photo-tile picture, .photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-tile .placeholder { position: absolute; inset: 0; background: transparent; }
.photo-tile:focus-visible { outline-offset: -2px; }
.photo-tile.is-empty { visibility: hidden; }
/* Zoom-hover: de foto zoomt subtiel in vanuit het midden en ademt terug. fotozoom.js zet per frame --k op de tegel. */
.photo-tile { --k: 1; }
.photo-tile.is-zoom > picture { transform: scale(var(--k)); }
@media (prefers-reduced-motion: reduce) {
  .photo-tile.is-zoom > picture { transform: none !important; }
}
/* Mobiel: twee tegels naast elkaar; de rij als geheel schuift nog steeds mee. */
@media (max-width: 700px) {
  .photo-rows { gap: 8px; }
  .photo-row { flex-wrap: wrap; gap: 8px; width: calc(100% + 40px); margin-left: -20px; }
  .photo-tile { flex: 0 0 calc(50% - 4px); }
  .photo-tile.is-empty { display: none; }
}

/* ---------- Helix (statische basis; de 3D-spiraal komt in fase 3) ---------- */
.helix { position: relative; }
.helix-stage { position: relative; overflow: hidden; background: var(--paper); }
.helix-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%); }
.helix-head { position: relative; z-index: 200; padding-top: 48px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.helix-progress { position: absolute; right: clamp(16px, 3vw, 32px); top: 32px; z-index: 200; display: flex; align-items: center; gap: 12px; }
.helix-progress-bar { position: relative; width: 120px; height: 2px; background: var(--line); }
.helix-progress-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--cobalt); }
/* Zonder JavaScript: de projecten als rij kaarten. */
.helix-items { position: relative; display: flex; gap: 24px; overflow-x: auto; padding: 48px clamp(16px, 3vw, 32px) 96px; scroll-snap-type: x mandatory; }
.helix-card {
  flex: 0 0 min(420px, 80vw); scroll-snap-align: center; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  aspect-ratio: 4 / 3; padding: 24px 32px; border-radius: var(--radius-photo); background: var(--tint-project); color: #1e3128; text-decoration: none;
  position: relative; overflow: hidden;
}
.helix-card:hover { color: #1e3128; }
.helix-card > picture, .helix-card > .placeholder { position: absolute; inset: 0; }
.helix-card > .placeholder { background: transparent; }
.helix-card > picture img { width: 100%; height: 100%; object-fit: cover; }
/* Zelfde verloop als op de helix (interactions.css), zodat de tekst op elk beeld leesbaar is. */
.helix-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(236, 234, 227, 0.6) 0%, rgba(236, 234, 227, 0.25) 7%, rgba(236, 234, 227, 0) 15%),
    linear-gradient(to top, rgba(236, 234, 227, 0.75) 0%, rgba(236, 234, 227, 0.5) 14%, rgba(236, 234, 227, 0) 34%);
}
.helix-card.is-more::after { content: none; }
.helix-card .num { position: absolute; z-index: 1; left: 12px; top: 12px; color: inherit; }
.helix-card .arrow { position: absolute; z-index: 1; right: 10px; top: 10px; font-size: 18px; line-height: 1; }
.helix-card-title { position: relative; z-index: 1; font-size: 18px; line-height: 1.3; font-weight: 600; }
.helix-card-meta { position: relative; z-index: 1; color: inherit; }
.helix-card.is-more { background: var(--graphite); color: var(--on-graphite); }
.helix-card.is-more .helix-card-title { font: 400 36px/1 var(--font-serif); }
.helix-current { position: absolute; left: clamp(16px, 3vw, 32px); bottom: 32px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.helix-current .rb-serif { font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }

/* ---------- Blog ---------- */
.blog-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-bottom: 64px; }
.blog-tools .filters { flex: 999 1 600px; }
.blog-tools .filter-btn { flex: 1 1 auto; }
.blog-search { flex: 1 1 280px; position: relative; }
.blog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.blog-search input {
  width: 100%; height: 44px; padding: 0 14px 0 40px; background: var(--paper-raised); border: 1px solid var(--line-strong);
  border-radius: var(--radius-photo); color: var(--ink); font: 400 13px/1 var(--font-mono); letter-spacing: 0.04em;
}
.blog-search input::placeholder { color: var(--ink-muted); }
.post-featured { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; color: var(--ink); text-decoration: none; margin-bottom: 96px; }
.post-featured:hover { color: var(--ink); }
.post-featured .frame { flex: 999 1 560px; }
.post-featured-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.post-featured-title { font-size: var(--type-heading-l-size); line-height: var(--type-heading-l-lh); font-weight: 600; letter-spacing: -0.01em; }
.post-featured-intro { color: var(--ink-muted); }
.post-featured-more { font-size: 16px; font-weight: 600; color: var(--signal); }
.post-featured:hover .post-featured-more .rb-btn-arrow { transform: translateX(4px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 64px 32px; }
.blog-empty { padding: 48px 0; border-top: 1px solid var(--line); color: var(--ink-muted); }
.pagination { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pagination-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.page-num { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); font: 400 14px/1 var(--font-mono); text-decoration: none; }
.page-num:hover { background: var(--paper-raised); color: var(--ink); }
.page-num[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.page-step { min-height: 44px; padding: 0 16px; }

/* ---------- Artikel ---------- */
.article-head { padding: 96px 0 64px; display: flex; flex-direction: column; gap: 24px; max-width: var(--sheet-max); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font: 400 14px/1.5 var(--font-mono); color: var(--ink-muted); }
.article-hero { position: relative; margin-bottom: 96px; }
.article-hero .frame { aspect-ratio: 16 / 9; }
.toc-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 48%); padding: 96px 40px 40px 120px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; overflow-y: auto; isolation: isolate;
  border-radius: 0 var(--radius-photo) var(--radius-photo) 0;
}
.toc-overlay::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(246, 245, 241, 0) 0%, rgba(246, 245, 241, 0.72) 22%, rgba(246, 245, 241, 0.92) 42%, rgba(246, 245, 241, 0.94) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%); mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
}
.toc-title { padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--ink); }
.toc a { display: flex; gap: 12px; padding: 5px 0; font-size: 16px; line-height: 1.4; color: var(--ink-muted); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { font-weight: 600; }
.toc a .num { flex: 0 0 24px; font: 400 13px/1.4 var(--font-mono); color: var(--ink-muted); padding-top: 2px; }
.toc-block { display: none; }
@media (max-width: 860px) {
  .article-hero { margin-bottom: 48px; }
  .toc-overlay { display: none; }
  .toc-block { display: flex; flex-direction: column; gap: 2px; margin: -24px 0 48px; padding: 24px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-photo); }
}
.article-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.article-body { flex: 999 1 560px; min-width: 0; max-width: var(--measure); }
.article-body > .lead { margin-bottom: 32px; }
.article-aside { flex: 1 1 360px; min-width: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 64px; }
.param-card { border-radius: var(--radius-photo); padding: 32px; background: var(--paper-raised); border: 1px solid var(--line); }
.param-card h2 { margin: 0 0 16px; font-size: var(--type-heading-m-size); line-height: var(--type-heading-m-lh); font-weight: 600; }
.param-card .table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.param-card table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.param-card th { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--ink-muted); }
.param-card td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.param-card td:first-child { font: 400 15px/1.55 var(--font-mono); }
.param-card td:last-child { font: 400 14px/1.55 var(--font-mono); color: var(--ink-muted); padding-right: 0; }
.related { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--ink); }
.related .rb-label { margin-bottom: 12px; }
.related a { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.related a:hover .related-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.related-title { font-size: 20px; line-height: 1.35; font-weight: 600; }

/* Article-typografie (lopende tekst in artikelen, projecten en vaste pagina's). */
.prose { max-width: var(--measure); }
.prose > * { margin: 0 0 24px; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 64px 0 16px; font-size: var(--type-heading-l-size); line-height: var(--type-heading-l-lh); font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 40px 0 12px; font-size: var(--type-heading-m-size); line-height: var(--type-heading-m-lh); font-weight: 600; scroll-margin-top: 24px; }
.prose .lead { font-size: var(--type-lead-size); line-height: var(--type-lead-lh); margin-bottom: 32px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose blockquote { padding-left: 24px; border-left: 2px solid var(--signal); }
.prose blockquote p { font-family: var(--font-serif); font-size: 28px; line-height: 1.3; }
.prose blockquote cite { display: block; margin-top: 8px; font: normal 400 14px/1.5 var(--font-mono); color: var(--ink-muted); }
.prose code { padding: 1px 5px; border-radius: var(--radius-sm); background: var(--paper-sunken); font: 400 0.85em/1.5 var(--font-mono); }
.prose pre.code { padding: 20px 24px; border-radius: var(--radius-sm); background: var(--paper-sunken); overflow-x: auto; font: 400 var(--type-code-size)/var(--type-code-lh) var(--font-mono); }
.prose pre.code code { padding: 0; background: none; font: inherit; }
.prose .formula { margin: 0 0 24px; }
.prose .formula pre { margin: 0; }
/* LaTeX (formules.js): de bron is verborgen tot KaTeX klaar is; mislukt het, dan blijft de bron staan. */
.js .prose pre.tex:not(.is-failed) code { visibility: hidden; }
.prose .tex-out { padding: 20px 24px; border-radius: var(--radius-sm); background: var(--paper-sunken); overflow-x: auto; overflow-y: hidden; color: var(--ink); }
.prose .tex-out .katex-display { margin: 0; }
.prose .tex-out .katex { font-size: 1.15em; }
.prose .formula figcaption, .prose figcaption { margin-top: 12px; font-size: var(--type-body-s-size); line-height: var(--type-body-s-lh); color: var(--ink-muted); }
/* Widget (blocks.py, widgets.js): iframe met sandbox; de hoogte volgt de inhoud zodra de widget die meldt. */
.prose .widget { margin: 32px 0; }
.prose .widget-frame { display: block; width: 100%; height: 160px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-raised); }
.prose .article-figure { margin: 32px 0; }
.prose .article-figure img, .prose .article-figure .placeholder { display: block; width: 100%; border-radius: var(--radius-photo); }
.prose .article-figure img.is-vector { border-radius: 0; }
.prose .article-figure .placeholder { background: var(--tint-blog); }
.prose .article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.prose .article-gallery .article-figure { margin: 0; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.prose th { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td.mono { font: 400 14px/1.55 var(--font-mono); text-transform: uppercase; }
.prose a:not(.rb-btn) { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.rb-btn):hover { color: var(--ink); }

/* ---------- Project ---------- */
.project-head { padding: 96px 0 64px; display: flex; flex-direction: column; gap: 24px; }
.project-head .lead { max-width: var(--measure); }
.project-hero { aspect-ratio: 21 / 9; }
.spec-list { margin: 0 0 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 1px solid var(--line); font: 400 14px/1.5 var(--font-mono); }
.spec-list > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 0; }
.spec-list dt { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.project-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.project-layout .prose { flex: 999 1 560px; min-width: 0; }
.project-side { flex: 1 1 320px; min-width: 0; display: grid; gap: 16px; }
.project-side figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.project-side figcaption { font: 400 13px/1.5 var(--font-mono); color: var(--ink-muted); }
.project-nav { margin-top: 128px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--ink); }
.project-nav a { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.project-nav a.next { align-items: flex-end; text-align: right; margin-left: auto; }
.project-nav-title { font-size: var(--type-heading-m-size); line-height: var(--type-heading-m-lh); font-weight: 600; }
.project-nav a:hover .project-nav-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Vaste pagina's ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }
.service-card { display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius-photo); padding: 32px; background: var(--paper-raised); border: 1px solid var(--line); }
.service-card .rb-tag { align-self: flex-start; }
.service-card h2 { font-size: var(--type-heading-l-size); line-height: var(--type-heading-l-lh); font-weight: 600; letter-spacing: -0.01em; }
.service-card p { color: var(--ink-muted); }
.service-link { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.service-card.is-dark { background: var(--graphite); border-color: var(--graphite); color: var(--on-graphite); }
.service-card.is-dark p { color: var(--on-graphite); opacity: 0.86; }
.service-eyebrow { align-self: flex-start; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.78; }
.rb-btn-ghost { margin-top: auto; align-self: flex-start; border-color: var(--on-graphite); color: var(--on-graphite); }
.rb-btn-ghost:hover { background: var(--on-graphite); border-color: var(--on-graphite); color: var(--graphite); }
.service-card.is-dark a:focus-visible { outline-color: var(--cobalt-soft); }
.numbered-cards { margin-top: 128px; }
.numbered-cards ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.numbered-cards li { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ink); }
.numbered-cards .num { font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--signal); }
.numbered-cards .card-title { font-size: var(--type-heading-m-size); line-height: var(--type-heading-m-lh); font-weight: 600; }
.numbered-cards .card-text { font-size: var(--type-body-s-size); line-height: var(--type-body-s-lh); color: var(--ink-muted); }
.cta-box {
  margin-top: 128px; border-radius: var(--radius-photo); padding: 64px clamp(24px, 4vw, 64px); background: var(--paper-raised); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-box > h2 { flex: 1 1 480px; }
.cta-box-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.cta-box-text p { max-width: 560px; color: var(--ink-muted); }
.home-cta .cta-box { margin-top: 0; }

/* Over mij (roybosch-overmij/OVERMIJ.md): hero-foto over de volle breedte, de tekst links in de foto.
   --fx/--fy is het focuspunt uit het CMS (standaard 82% 55%: Roy zit rechts). */
.om-hero { position: relative; display: flex; align-items: center; min-height: min(860px, calc(100vh - var(--nav-height))); overflow: hidden; background: var(--paper); }
.om-hero picture { display: contents; }
.om-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 82%) var(--fy, 55%); }
/* Overloop naar paper (#eceae3): van links voor de tekst, en zacht onder en boven. */
.om-hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(236, 234, 227, 0.97) 0%, rgba(236, 234, 227, 0.94) 34%, rgba(236, 234, 227, 0.8) 44%, rgba(236, 234, 227, 0.35) 56%, rgba(236, 234, 227, 0) 68%),
    linear-gradient(0deg, var(--paper) 0%, rgba(236, 234, 227, 0.9) 8%, rgba(236, 234, 227, 0.55) 18%, rgba(236, 234, 227, 0.2) 28%, rgba(236, 234, 227, 0) 38%),
    linear-gradient(180deg, var(--paper) 0%, rgba(236, 234, 227, 0.85) 7%, rgba(236, 234, 227, 0.45) 16%, rgba(236, 234, 227, 0.12) 25%, rgba(236, 234, 227, 0) 32%);
}
.om-hero-text { position: relative; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 96px clamp(16px, 3vw, 32px) 120px; box-sizing: content-box; }
.om-hero-copy { max-width: 540px; display: flex; flex-direction: column; gap: 24px; }
.om-title { margin: 0; font-family: var(--font-serif); font-size: clamp(48px, 6vw, 80px); line-height: 0.95; font-weight: 400; letter-spacing: -0.015em; }
.om-intro { display: flex; flex-direction: column; gap: 16px; }
.om-intro p { margin: 0; font-size: 21px; line-height: 1.55; }
.om-main { padding-bottom: 128px; }
.om-rows { display: flex; flex-direction: column; padding-top: 72px; }
.om-row { display: flex; flex-wrap: wrap; gap: 16px 64px; padding: 28px 0 72px; border-top: 1px solid var(--ink); }
.om-row:last-child { padding-bottom: 0; }
.om-row-head { flex: 5 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.om-row-num { font: 500 13px/1.65 var(--font-mono); letter-spacing: 0.08em; color: var(--signal); }
.om-row h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(36px, 3.6vw, 48px); line-height: 1; font-weight: 400; letter-spacing: -0.01em; }
.om-row-text { flex: 7 1 480px; min-width: 0; font-size: 19px; line-height: 1.65; }
.om-row-text p, .om-row-text ul, .om-row-text ol { margin: 0 0 20px; }
.om-row-text .rb-btn { margin-top: 8px; gap: 0.28em; }
/* Onder 760 px: de foto bovenaan in 4:3 (iets verder naar rechts, zodat Roy niet tegen de rand zit), de tekst eronder. */
@media (max-width: 760px) {
  .om-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .om-hero-img { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: min(100%, calc(var(--fx, 82%) + 6%)) var(--fy, 55%); }
  .om-hero-fade {
    top: 0; bottom: auto; height: calc(min(100vw, 760px) * 0.75);
    background:
      linear-gradient(0deg, var(--paper) 0%, rgba(236, 234, 227, 0.6) 14%, rgba(236, 234, 227, 0) 34%),
      linear-gradient(180deg, var(--paper) 0%, rgba(236, 234, 227, 0.5) 10%, rgba(236, 234, 227, 0) 24%);
  }
  .om-hero-text { box-sizing: border-box; padding: 8px 16px 48px; }
}
.prose > .rb-btn { margin-top: 8px; }

/* Privacybeleid */
.summary-cards { margin: 0 0 80px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.summary-cards li { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-photo); }
.summary-label { font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--signal); }
.summary-cards li > span:last-child { font-size: 16px; line-height: 1.5; }
.privacy-updated { color: var(--ink-muted); }
.privacy-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.privacy-toc { flex: 1 1 260px; max-width: 320px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.privacy-toc a { padding: 6px 0; }
.privacy-body { flex: 999 1 560px; min-width: 0; max-width: var(--measure); }
.privacy-body h2 { display: flex; gap: 14px; align-items: baseline; margin-top: 40px; font-size: 30px; line-height: 1.2; }
.privacy-body > h2:first-child { margin-top: 0; }
.h2-num { font: 500 14px/1 var(--font-mono); color: var(--signal); }
@media (max-width: 860px) {
  .privacy-toc { position: static; max-width: none; }
}

/* Contact */
.contact { padding-top: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.contact-intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-details { margin: 32px 0 0; border-top: 1px solid var(--ink); font: 400 14px/1.5 var(--font-mono); }
.contact-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { color: var(--ink-muted); }
.contact-form {
  flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 24px;
  padding: 40px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-photo);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 16px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  min-height: 48px; padding: 0 14px; background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-photo);
  color: var(--ink); font: 400 16px/1.4 var(--font-sans);
}
.form-field textarea { padding: 12px 14px; line-height: 1.55; resize: vertical; }
.form-field select {
  padding-right: 48px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--ink); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-field.is-invalid input, .form-field.is-invalid textarea, .form-field.is-invalid select { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.form-note { font-size: 16px; line-height: 1.55; color: var(--ink-muted); }
.form-alert { padding: 16px 20px; border-radius: var(--radius-photo); background: var(--danger-soft); color: var(--danger); font-size: 16px; font-weight: 600; }
.contact-form .rb-btn-primary { align-self: flex-start; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { display: flex; flex-direction: column; gap: 16px; }
.contact-sent h2 { font-size: var(--type-heading-l-size); line-height: var(--type-heading-l-lh); font-weight: 600; }
.contact-sent p { color: var(--ink-muted); }
.contact-sent .rb-label { color: var(--ok); }
@media (max-width: 700px) {
  .contact-form { padding: 24px; }
}
.photo-filters { margin-bottom: 48px; }
.prose .note { padding: 16px 20px; border-left: 2px solid var(--signal); background: var(--paper-raised); border-radius: 0 var(--radius-photo) var(--radius-photo) 0; }
.prose .note p { margin: 0; }
.prose .article-figure .placeholder.is-missing { position: relative; height: auto; aspect-ratio: 3 / 2; display: flex; align-items: flex-end; padding: 12px; background: var(--paper-sunken); outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.placeholder.is-missing .label { position: relative; z-index: 1; color: var(--ink-muted); }
