/* =========================================================
   Ondervindingspraktijk Oneplex — stylesheet
   ========================================================= */

:root {
  --wall: #f6f3ee;
  --wall-2: #ede8e0;
  --wall-3: #e2dbd0;
  --ink: #171615;
  --ink-soft: #46423e;
  --ink-mute: #77716a;
  --raven: #a31a2a;          /* uit het logo */
  --raven-deep: #7e1220;
  --raven-tint: #f3e3e2;
  --night: #131211;
  --night-2: #1d1b19;
  --line: rgba(23, 22, 21, .14);
  --line-light: rgba(246, 243, 238, .14);

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 6px;
  --ease: cubic-bezier(.22, .7, .18, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, .97rem + .2vw, 1.12rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--raven); color: var(--wall); }
:focus-visible { outline: 2px solid var(--raven); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--wall); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 1.6rem + 6.4vw, 7.6rem); letter-spacing: -.025em; line-height: .95; }
h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.9rem); }
h3 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
h4 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h1 em, h2 em, h3 em { color: var(--raven); }

.label {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--raven);
  margin-bottom: 1.4rem;
}
.label::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.dark .label { color: #e6727b; }

.lead { font-family: var(--font-display); font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.15rem); line-height: 1.28; color: var(--ink); letter-spacing: -.005em; }
.lead i, .lead em { color: var(--raven); }

.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--raven); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose h2, .prose h3 { color: var(--ink); }

.mono { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .02em; }

/* ---------- Knoppen ---------- */

.btn {
  --bg: var(--ink); --fg: var(--wall);
  display: inline-flex; align-items: center; gap: .9em;
  padding: 1em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  font: 500 .95rem/1 var(--font-body); text-decoration: none;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { --bg: var(--raven); }
.btn:hover svg { transform: translateX(3px); }
.btn--raven { --bg: var(--raven); }
.btn--raven:hover { --bg: var(--raven-deep); }
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: var(--wall); }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.link-arrow:hover { color: var(--raven); border-color: var(--raven); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s var(--ease), box-shadow .4s, transform .45s var(--ease); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.site-header.is-scrolled { background: rgba(246, 243, 238, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; }
.brand img { width: 56px; height: auto; transition: transform .6s var(--ease); }
.brand:hover img { transform: translateX(-3px) rotate(-4deg); }
.brand b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; letter-spacing: -.005em; }
.brand small { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }

.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { position: relative; display: block; padding: 10px 14px; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--raven); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta a { margin-left: 10px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--wall); transition: background-color .3s; }
.nav .nav-cta a::after { display: none; }
.nav .nav-cta a:hover, .nav .nav-cta a[aria-current="page"] { background: var(--raven); color: var(--wall); }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: var(--wall); position: relative; z-index: 60; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px; background: currentColor; transition: transform .35s var(--ease), background-color .2s; }
.menu-toggle span { top: 50%; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; left: 0; margin: 0; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-open .menu-toggle { background: var(--raven); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); background: var(--wall); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); background: var(--wall); }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--wall);
    display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav li { overflow: hidden; }
  .nav a { font-family: var(--font-display); font-size: clamp(2.3rem, 10vw, 3.6rem); color: var(--wall); padding: 4px 0; transform: translateY(105%); transition: transform .6s var(--ease), color .3s; }
  .menu-open .nav a { transform: none; }
  .menu-open .nav li:nth-child(2) a { transition-delay: .05s; }
  .menu-open .nav li:nth-child(3) a { transition-delay: .1s; }
  .menu-open .nav li:nth-child(4) a { transition-delay: .15s; }
  .menu-open .nav li:nth-child(5) a { transition-delay: .2s; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a[aria-current="page"] { color: #e6727b; }
  .nav .nav-cta a { margin: 0; padding: 4px 0; background: none; border-radius: 0; }
  .nav .nav-cta a:hover, .nav .nav-cta a[aria-current="page"] { background: none; color: #e6727b; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .brand { color: var(--wall); }
  .menu-open .brand small { color: rgba(246, 243, 238, .6); }
  .menu-open .brand img { filter: brightness(0) invert(1); }
  .brand, .brand small { transition: color .3s; }
  .site-header .brand { position: relative; z-index: 60; }
}

/* ---------- Secties ---------- */

.section { padding-block: clamp(80px, 11vw, 168px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--alt { background: var(--wall-2); }
.dark { background: var(--night); color: var(--wall); }
.dark .prose p, .dark .prose li { color: rgba(246, 243, 238, .74); }
.dark .prose strong, .dark .prose b { color: var(--wall); }
.dark .prose a { color: #f0959c; }
.dark .lead { color: var(--wall); }
.dark .btn--line { --fg: var(--wall); box-shadow: inset 0 0 0 1px var(--wall); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Raaf (getekende lijn) ---------- */

.raven svg { width: 100%; height: auto; overflow: visible; }
.raven path { fill: none; stroke: var(--raven); stroke-width: 11; stroke-linecap: square; stroke-linejoin: round; }
.js .raven path { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.js .raven.is-drawn path { animation: draw 1.6s var(--ease) forwards; }
.js .raven.is-drawn path:nth-child(2) { animation-delay: .9s; animation-duration: .7s; }
.js .raven.is-drawn path:nth-child(3) { animation-delay: 1.15s; animation-duration: .5s; }
.js .raven.is-drawn path:nth-child(4) { animation-delay: 1.3s; animation-duration: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Home: hero ---------- */

.hero { min-height: 100svh; padding-top: 128px; padding-bottom: clamp(48px, 6vw, 88px); display: grid; align-content: end; position: relative; overflow: hidden; }
.hero .raven { position: absolute; top: clamp(110px, 14vw, 150px); right: calc(var(--gutter) * -0.5); width: min(60vw, 820px); pointer-events: none; }
.hero h1 { margin-bottom: .32em; position: relative; }
.hero h1 span { display: block; }
.hero h1 span:last-child { padding-left: .9em; font-style: italic; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 80px); align-items: end; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--ink); }
.hero-sub h2 { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 28ch; }
.hero-sub p { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); }
.hero-sub p strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 220px; }
  .hero .raven { top: 96px; width: 84vw; right: -6vw; }
  .hero-sub { grid-template-columns: 1fr; }
  .hero h1 span:last-child { padding-left: 0; }
}

/* ---------- Home: driehoek ---------- */

.triangle { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.triangle figure { margin: 0; position: relative; }
.triangle img { width: 100%; }
.triangle .lead { margin-bottom: 1.6rem; }
@media (max-width: 860px) { .triangle { grid-template-columns: 1fr; } }

/* ---------- Video (klik om te laden) ---------- */

.video { position: relative; aspect-ratio: 16 / 9; background: var(--night-2); overflow: hidden; border-radius: var(--radius); }
.video button { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.video button:hover img { opacity: 1; transform: scale(1.03); }
.video .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--raven); color: var(--wall); display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); transition: transform .4s var(--ease), background-color .3s; }
.video .play svg { width: 22px; height: 22px; margin-left: 4px; }
.video button:hover .play { transform: scale(1.08); }
.video button:focus-visible .play { outline: 2px solid var(--wall); outline-offset: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 14px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; color: var(--ink-mute); }
.dark .video-caption { color: rgba(246, 243, 238, .55); }
.video-note { font-size: .78rem; color: var(--ink-mute); margin-top: 10px; }

.portrait-video { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .portrait-video { grid-template-columns: 1fr; } }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-grid .video .play { width: 54px; height: 54px; }
.video-grid .video .play svg { width: 16px; height: 16px; margin-left: 3px; }
@media (max-width: 860px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Home: stichtingen ---------- */

.orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.org { display: flex; flex-direction: column; background: var(--wall); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.org:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -36px rgba(23, 22, 21, .45); }
.org-logo { aspect-ratio: 16 / 10; background: #c78d8d; display: grid; place-items: center; overflow: hidden; }
.org-logo img { width: 62%; max-width: 230px; aspect-ratio: 1; object-fit: cover; }
.org-body { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 0; flex: 1; }
.org-body p { font-size: .98rem; color: var(--ink-soft); }
.org-body p a { color: var(--raven); text-underline-offset: 3px; word-break: break-word; }
.org-body .role { margin-top: auto; padding-top: 1rem; }
@media (max-width: 960px) { .orgs { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Paginakop ---------- */

.page-hero { padding-top: clamp(150px, 17vw, 230px); padding-bottom: clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.page-hero .raven { position: absolute; right: calc(var(--gutter) * -1); top: clamp(100px, 10vw, 130px); width: min(46vw, 560px); opacity: .95; pointer-events: none; }
.page-hero h1 { position: relative; }
.page-hero .crumbs { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: var(--ink-mute); margin-bottom: 1.4rem; }
.page-hero .crumbs a { text-decoration: none; color: var(--ink-mute); }
.page-hero .crumbs a:hover { color: var(--raven); }
@media (max-width: 760px) { .page-hero .raven { width: 70vw; top: 90px; opacity: .35; } }

/* ---------- Over John ---------- */

.about-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { position: sticky; top: 110px; margin: 0; }
.about-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(.15) contrast(1.02); }
.about-photo figcaption { margin-top: 12px; }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } .about-photo { position: static; max-width: min(100%, 420px); } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.facts p { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); margin: 0; color: var(--ink-soft); }
.facts p:nth-child(odd) { border-right: 1px solid var(--line); }
.facts p:nth-child(even) { padding-left: 28px; padding-right: 0; }
.facts p:first-child { grid-column: 1 / -1; border-right: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); line-height: 1.3; color: var(--ink); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } .facts p, .facts p:nth-child(even), .facts p:nth-child(odd) { padding: 22px 0; border-right: 0; } }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.quotes blockquote { margin: 0; padding-top: 28px; border-top: 1px solid var(--line-light); }
.quotes blockquote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.22; color: var(--wall) !important; }
.quotes cite { display: block; margin-top: 1.2rem; font-family: var(--font-mono); font-style: normal; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: #e6727b; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Over Ondervinden ---------- */

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 110px; list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 2.4em 1fr; gap: 4px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .93rem; line-height: 1.35; color: var(--ink-mute); transition: color .3s, padding-left .4s var(--ease); }
.toc li:last-child a { border-bottom: 1px solid var(--line); }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: .72rem; color: var(--raven); padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { padding-left: 6px; }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; } .toc { display: none; } }

.doc-part { padding-bottom: clamp(56px, 7vw, 104px); margin-bottom: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.doc-part:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-part > h2, .doc-part > h3 { margin-bottom: .6em; }
.doc-part h2 strong, .doc-part h3 strong { font-weight: 400; }

.figure { margin: clamp(32px, 4vw, 56px) 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure--multiply img { border-radius: 0; }
.figure--small { max-width: 380px; }
.figure figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: .78rem; color: var(--ink-mute); }

.lemniscate { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.lemniscate img { }
@media (max-width: 760px) { .lemniscate { grid-template-columns: 1fr; } .lemniscate img { max-width: min(100%, 280px); } }

.passes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin: 2rem 0; }
.pass { padding: 28px; border-radius: var(--radius); background: var(--wall); box-shadow: 0 0 0 1px var(--line); position: relative; display: flex; flex-direction: column; }
.pass::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--raven); border-radius: var(--radius) 0 0 var(--radius); transform: scaleY(.3); transform-origin: top; transition: transform .5s var(--ease); }
.pass:hover::before { transform: scaleY(1); }
.pass p { font-size: .97rem; }
.pass .term { margin-top: auto; padding-top: 1rem; font-family: var(--font-mono); font-size: .78rem; color: var(--raven); }

.costs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 2rem; }
.costs img { border-radius: var(--radius); }
@media (max-width: 1200px) { .costs { grid-template-columns: minmax(0, 1fr); } .costs img { max-width: min(100%, 360px); } }

.tariffs { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--wall); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.tariffs caption { caption-side: top; text-align: left; padding: 20px 22px; background: var(--raven); color: var(--wall); font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; border-radius: var(--radius) var(--radius) 0 0; }
.tariffs caption span:not([data-year-min]) { display: block; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; opacity: .8; margin-top: 4px; }
.tariffs th, .tariffs td { text-align: left; padding: 13px clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--line); }
.tariffs th { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); background: var(--wall-2); }
.tariffs td:last-child, .tariffs th:last-child { text-align: right; white-space: nowrap; }
.tariffs td:first-child { white-space: nowrap; }
.tariffs td:last-child { font-family: var(--font-display); font-size: 1.3rem; color: var(--raven); }
.tariffs tbody tr { transition: background-color .25s; }
.tariffs tbody tr:hover { background: var(--raven-tint); }
.tariffs tbody tr:last-child td { border-bottom: 0; }

.note { padding: 22px 24px; border-left: 2px solid var(--raven); background: var(--wall-2); margin: 1.6rem 0; }
.note p { font-size: .97rem; }

.ioc-list { list-style: none; margin: 1.4rem 0; padding: 0; counter-reset: i; }
.ioc-list li { counter-increment: i; position: relative; padding: 18px 0 18px 3.2em; border-top: 1px solid var(--line); }
.ioc-list li:last-child { border-bottom: 1px solid var(--line); }
.ioc-list li::before { content: counter(i, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--font-mono); font-size: .78rem; color: var(--raven); }

.price { display: inline-flex; align-items: baseline; gap: .5em; padding: 16px 22px; border-radius: var(--radius); background: var(--ink); color: var(--wall); margin: .4rem 0 0; }
.price p { color: var(--wall) !important; margin: 0; }

/* ---------- Ondervindingskamer ---------- */

.lab { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lab .stack { display: grid; gap: 20px; position: sticky; top: 110px; }
.lab .stack img { border-radius: var(--radius); width: 100%; }
@media (max-width: 860px) { .lab { grid-template-columns: minmax(0, 1fr); } .lab .stack { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lab-words { font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.lab-words em { color: var(--raven); }

/* ---------- Ravenpraat ---------- */

.mythos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.mythos .ravens { display: flex; gap: 24px; margin: 1.6rem 0; }
.mythos .ravens div { flex: 1; padding: 22px; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-light); }
.mythos .ravens b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--wall); line-height: 1.1; }
@media (max-width: 860px) { .mythos { grid-template-columns: 1fr; } }

.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: start; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); position: relative; }
.post-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--raven); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.post-row:hover::after { transform: scaleX(1); }
.post-date { font-family: var(--font-display); line-height: 1; }
.post-date b { display: block; font-weight: 400; font-size: 3.4rem; letter-spacing: -.02em; }
.post-date span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.post-row h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); margin-bottom: .35em; }
.post-row h2 a { text-decoration: none; transition: color .3s; }
.post-row h2 a::before { content: ""; position: absolute; inset: 0; }
.post-row:hover h2 a { color: var(--raven); }
.post-row p { color: var(--ink-soft); margin-bottom: .5em; }
.post-meta { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-mute); }
.post-row .link-arrow { position: relative; z-index: 1; white-space: nowrap; margin-top: 8px; }
@media (max-width: 760px) { .post-row { grid-template-columns: 1fr; gap: 10px; } .post-date b { display: inline; font-size: 2rem; margin-right: .3em; } }

.article { max-width: 760px; margin-inline: auto; }
.article .meta { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-mute); margin-bottom: 2.4rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.article p { font-size: clamp(1.08rem, 1rem + .3vw, 1.24rem); line-height: 1.75; color: var(--ink-soft); }
.article blockquote { margin: 0; padding: clamp(24px, 4vw, 44px); background: var(--wall-2); border-left: 3px solid var(--raven); border-radius: 0 var(--radius) var(--radius) 0; }
.article .verse p { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.32; color: var(--ink); }
.article .pull p { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.28; color: var(--ink); }
.article img { border-radius: var(--radius); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; padding: 20px 0; display: block; }
.post-nav a:last-child { text-align: right; }
.post-nav small { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.post-nav span { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; transition: color .3s; }
.post-nav a:hover span { color: var(--raven); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field textarea { font: inherit; font-size: 1.02rem; color: var(--ink); padding: 14px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0; transition: border-color .3s, box-shadow .3s; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--raven); box-shadow: 0 1px 0 var(--raven); }
.form .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.card-dark { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--night); color: var(--wall); }
.card-dark h2, .card-dark h3 { color: var(--wall); }
.info-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.info-list li { padding: 16px 0; border-top: 1px solid var(--line-light); color: rgba(246, 243, 238, .82); line-height: 1.55; display: grid; grid-template-columns: 2.4em 1fr; }
.info-list li span:first-child { font-family: var(--font-mono); font-size: .8rem; color: #e6727b; padding-top: 2px; }
.info-list a { color: var(--wall); text-decoration: none; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; }
.info-list a:hover { color: #f0959c; }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: rgba(246, 243, 238, .66); padding-top: clamp(72px, 9vw, 120px); padding-bottom: 32px; font-size: .95rem; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: clamp(56px, 7vw, 96px); }
.footer-brand img { width: 120px; margin-bottom: 24px; }
.footer-brand p { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.08; color: var(--wall); margin: 0; max-width: 14ch; }
.footer-brand p em { color: #e6727b; }
.site-footer h2 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #e6727b; margin-bottom: 1.2em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--wall); }
.footer-credits { padding: 24px 0; border-top: 1px solid var(--line-light); font-size: .82rem; color: rgba(246, 243, 238, .48); display: grid; gap: 4px; }
.footer-credits p { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-light); font-family: var(--font-mono); font-size: .74rem; color: rgba(246, 243, 238, .45); }
.footer-bottom ul { display: flex; gap: 20px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Verschijnen bij scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .raven path { stroke-dashoffset: 0; }
}

/* ---------- Aanvullingen berichten ---------- */
.article .verse-plain p { font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); color: var(--ink-soft); }
.article .pull + p, .article blockquote + p { margin-top: 2rem; }
.article .post-split img { width: 100%; }
@media (max-width: 600px) { .article .post-split { grid-template-columns: 1fr !important; } .article .post-split img { max-width: 180px; } }
.article .crumbs { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-mute); }
.doc > div { min-width: 0; }
@media (max-width: 520px) { .tariffs td:first-child { white-space: normal; } .tariffs th, .tariffs td { padding-inline: 12px; } }
@media (max-width: 520px) { .tariffs { table-layout: fixed; font-size: .9rem; } .tariffs th:last-child { white-space: normal; } .tariffs td:last-child { font-size: 1.15rem; } }
.costs > * { min-width: 0; }
.lab-words { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 520px) { .lab-words { font-size: 2rem; } h1 { overflow-wrap: break-word; hyphens: auto; } }

/* Melding na verzenden van het contactformulier (zie main.js en contact.php) */
.form .form-status { grid-column: 1 / -1; margin: 0; font-family: var(--font-body); color: var(--ink-soft); }
.form .form-status:empty { display: none; }
.form .form-status.ok { padding: .7em 1em; border-left: 3px solid var(--ink); background: var(--raven-tint); }
.form .form-status.err { padding: .7em 1em; border-left: 3px solid var(--raven); background: var(--raven-tint); color: var(--raven-deep); }

/* ---------- Ravenpraat: korte citaten (toegevoegd 24-11-2026) ---------- */
.post-row--quote .raven-quote { grid-column: 2 / -1; margin: 0; max-width: 72ch; }
.post-row--quote::after { display: none; }
.raven-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.4; color: var(--ink); margin-bottom: .7em; }
.raven-quote p b { font-weight: 400; color: var(--raven); }
.raven-quote .raven-quote-title { font-style: normal; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1.1; margin-bottom: .45em; }
.raven-quote footer { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em 1em; }
.raven-quote footer::before { content: ""; width: 28px; height: 1px; background: var(--raven); align-self: center; }
.raven-quote footer b { font-weight: 500; color: var(--ink); }
.raven-quote footer span { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-mute); }
@media (max-width: 760px) { .post-row--quote .raven-quote { grid-column: auto; } }
