/* ============================================
   4R CONSULTANCY V4 — ART DIRECTION LAAG
   Laadt ná site.css en studio.css.
   - Gelaagd palet: diep navy-grafiet i.p.v. vlak zwart
   - Lichte secties voor visueel ritme
   - Sectie-identiteiten: foto, blueprint, mesh, navy
   - Grotere, doelgerichte media
   - Showpiece-simulatoren, TCO-chart, CTA-treatment
   ============================================ */

/* ---------- V4 PALET (overschrijft :root) ---------- */
:root {
  --void: #070a12;          /* diep navy-zwart */
  --void-soft: #0b1120;     /* navy */
  --void-raised: #121a2c;   /* grafiet-navy */
  --ink: #1b2740;           /* hoger grafiet */
  --line: rgba(160,180,220,0.09);
  --line-bright: rgba(160,180,220,0.18);
  --text: #e9edf4;
  --text-dim: #9aa6bb;
  --text-faint: #5d6a82;
  --accent: #3b82f6;        /* enterprise-blauw */
  --accent-2: #22d3ee;      /* cyan, spaarzaam */
  --warm: #f0a54a;          /* amber accent */
  --accent-glow: rgba(59,130,246,0.18);
  --accent-soft: rgba(59,130,246,0.10);

  /* lichte secties */
  --paper: #f4f6f9;
  --paper-raised: #ffffff;
  --paper-text: #131a28;
  --paper-dim: #48536a;
  --paper-faint: #8b95ab;
  --paper-line: rgba(19,26,40,0.10);
}

body { background: var(--void); }

/* ============================================
   SECTIE-IDENTITEITEN — nooit twee keer dezelfde
   zwarte vlakken achter elkaar
   ============================================ */

/* Donkere sectie met diepte: subtiele radiale gloed */
.bg-navy {
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(59,130,246,0.07), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--void-soft) 100%);
}

/* Blueprint-raster (technische tekening) */
.bg-blueprint { position: relative; }
.bg-blueprint::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,150,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,200,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

/* Mesh-gradiënt (zachte kleurvelden) */
.bg-mesh {
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(34,211,238,0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(59,130,246,0.09), transparent 60%),
    var(--void);
}

/* Foto-achtergrond met lees-overlay */
.bg-photo { position: relative; isolation: isolate; overflow: hidden; }
.bg-photo > .bg-photo-img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5;
}
.bg-photo > .bg-photo-img::after { content: none; }
.bg-photo::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,10,18,0.82) 0%, rgba(7,10,18,0.55) 45%, rgba(7,10,18,0.92) 100%);
}

/* LICHTE SECTIE — het ritme-breker */
.section-light {
  background: var(--paper);
  color: var(--paper-text);
}
.section-light h2, .section-light h3 { color: var(--paper-text); }
.section-light h2 span { color: var(--paper-faint); }
.section-light p { color: var(--paper-dim); }
.section-light .section-index { color: var(--paper-faint); }
.section-light .section-index::after { background: var(--paper-line); }
.section-light .challenge-item { border-top-color: var(--paper-line); }
.section-light .challenge-item:hover { background: rgba(59,130,246,0.05); }
.section-light .challenge-item h3 { color: var(--paper-text); }
.section-light .challenge-item p { color: var(--paper-dim); }
.section-light .challenge-num { color: var(--paper-faint); }
.section-light .why-cred { border-bottom-color: var(--paper-line); }
.section-light .why-cred p { color: var(--paper-text); }
.section-light .why-cred-num { color: var(--paper-faint); }
.section-light .service-stack-item { border-top-color: var(--paper-line); }
.section-light .service-stack-item h3 { color: var(--paper-text); }
.section-light .service-stack-item p { color: var(--paper-dim); }
.section-light .service-stack-item ul li {
  color: var(--paper-dim); border-color: var(--paper-line);
}
.section-light .service-num { -webkit-text-stroke: 1px var(--paper-faint); }
.section-light .service-img-wrap { border-color: var(--paper-line); box-shadow: 0 30px 80px rgba(19,26,40,0.18); }
.section-light .service-img-wrap img { opacity: 1; }
.section-light .section-rule { background: var(--paper-line); }
.section-light .concept-row { border-bottom-color: var(--paper-line); }
.section-light .concept-row:first-child { border-top-color: var(--paper-line); }
.section-light .concept-row h3 { color: var(--paper-text); }
.section-light .concept-row p { color: var(--paper-dim); }
.section-light .value-card {
  background: var(--paper-raised); border-color: var(--paper-line);
  box-shadow: 0 12px 32px rgba(19,26,40,0.07);
}
.section-light .value-card h3 { color: var(--paper-text); }
.section-light .value-card p { color: var(--paper-dim); }
.section-light .lead-left ul li { border-bottom-color: var(--paper-line); color: var(--paper-dim); }
.section-light .lead-form input {
  background: #fff; border-color: var(--paper-line); color: var(--paper-text);
}
.section-light .lead-form input::placeholder { color: var(--paper-faint); }
.section-light .stat-strip { background: var(--paper-line); border-color: var(--paper-line); }
.section-light .stat-cell { background: var(--paper); }
.section-light .stat-cell .s-num { color: var(--paper-text); }
.section-light .stat-cell .s-txt { color: var(--paper-dim); }

/* ============================================
   MEDIA — groter, doelgericht, consistent
   ============================================ */

/* Standaard redactioneel beeld: 3:2, mag groot zijn */
.visual-frame { max-width: 640px; }
.visual-frame.wide { max-width: 100%; }

/* Cinematische band (21:9 op desktop) */
.cine-frame {
  margin: 0; position: relative; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--line-bright);
}
.cine-frame img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block;
}
@media (max-width: 900px) { .cine-frame img { aspect-ratio: 16 / 9; } }
.cine-frame figcaption {
  position: absolute; left: 24px; bottom: 20px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(7,10,18,0.55);
  backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 2px;
}

/* Split-sectie: beeld + tekst naast elkaar, wisselend */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > .split-media { order: 0; }
}
.split-media { position: relative; overflow: hidden; border-radius: 6px; border: 1px solid var(--line-bright); }
.split-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease-out);
}
.split:hover .split-media img { transform: scale(1.04); }
.section-light .split-media { border-color: var(--paper-line); box-shadow: 0 24px 64px rgba(19,26,40,0.15); }

/* ============================================
   CTA — cinematische behandeling
   ============================================ */
.cta-cine {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center; padding: 180px 40px;
}
.cta-cine > .cta-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-cine::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(7,10,18,0.25), rgba(7,10,18,0.88) 90%),
    linear-gradient(180deg, var(--void) 0%, transparent 22%, transparent 78%, var(--void) 100%);
}
.cta-cine h2 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: #fff;
  max-width: 900px; margin: 0 auto 24px;
}
.cta-cine > p {
  font-size: 1.05rem; color: rgba(233,237,244,0.82); max-width: 520px;
  margin: 0 auto 40px; line-height: 1.65;
}
.cta-cine .cta-benefits span { color: rgba(233,237,244,0.65); }
@media (max-width: 768px) { .cta-cine { padding: 110px 20px; } }

/* ============================================
   PROFIEL (Mark) — persoonlijke geloofwaardigheid
   ============================================ */
.profile-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  align-items: center; padding: 32px;
  border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(135deg, var(--void-raised), var(--void-soft));
}
.profile-card img {
  width: 220px; height: 220px; object-fit: cover; border-radius: 6px;
  filter: saturate(0.92);
}
.profile-card h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff;
}
.profile-card .role {
  font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin: 6px 0 14px;
}
.profile-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }
@media (max-width: 640px) {
  .profile-card { grid-template-columns: 1fr; text-align: left; }
  .profile-card img { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Auteurs-byline onder artikelen */
.byline {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0; margin-top: 48px;
  border-top: 1px solid var(--line);
}
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline .b-name { font-size: 0.9rem; color: #fff; font-weight: 600; }
.byline .b-role { font-size: 0.75rem; color: var(--text-faint); }

/* ============================================
   ARTIKEL-KAARTEN MET BEELD (inzichten)
   ============================================ */
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1000px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--void-soft);
}
.article-card .ac-img { aspect-ratio: 3 / 2; overflow: hidden; }
.article-card .ac-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out), opacity 0.4s;
  opacity: 0.88;
}
.article-card:hover .ac-img img { transform: scale(1.05); opacity: 1; }
.article-card .ac-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card .cat {
  font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent);
}
.article-card h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: #fff; line-height: 1.25;
}
.article-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; flex: 1; }
.article-card .meta {
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Artikel-hero: breed cinematisch beeld */
.article-hero-cine {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
}
.article-hero-cine img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line-bright);
}
@media (max-width: 768px) {
  .article-hero-cine { padding: 0 20px; }
  .article-hero-cine img { aspect-ratio: 16 / 10; }
}

/* ============================================
   TOKEN-SIMULATOR — SHOWPIECE
   ============================================ */
.sim2-stage {
  border: 1px solid var(--line-bright); border-radius: 12px;
  background: linear-gradient(180deg, var(--void-raised), var(--void-soft));
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.sim2-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: rgba(7,10,18,0.4);
}
.sim2-tab {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim);
  padding: 9px 16px; border-radius: 6px; border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
}
.sim2-tab:hover { color: #fff; border-color: var(--line-bright); }
.sim2-tab.active {
  color: #fff; background: var(--accent-soft); border-color: var(--accent-glow);
}
.sim2-setup {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.sim2-setup .fld { display: flex; flex-direction: column; gap: 6px; }
.sim2-setup .fld > span {
  font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-faint);
}
.sim2-setup select, .sim2-setup input[type="range"] {
  background: var(--void); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: 0.85rem; padding: 9px 12px;
  border-radius: 6px; min-width: 210px;
}
.sim2-setup input[type="range"] { min-width: 160px; accent-color: var(--accent); padding: 0; }
.sim2-setup select:focus { outline: none; border-color: var(--accent); }
.sim2-run {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 11px 26px; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 600;
  transition: all 0.25s var(--ease-out);
}
.sim2-run:hover:not(:disabled) { background: #2f6fe0; transform: translateY(-1px); }
.sim2-run:disabled { opacity: 0.45; cursor: default; }

/* Terminal-venster */
.sim2-term {
  margin: 20px; border: 1px solid var(--line); border-radius: 10px;
  background: #05080f; overflow: hidden;
}
.sim2-term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.sim2-term-bar .td { width: 10px; height: 10px; border-radius: 50%; }
.sim2-term-bar .td:nth-child(1) { background: #ef4444; }
.sim2-term-bar .td:nth-child(2) { background: #f59e0b; }
.sim2-term-bar .td:nth-child(3) { background: #22c55e; }
.sim2-term-bar .tt {
  margin-left: 10px; font-family: var(--font-mono); font-size: 0.66rem;
  color: var(--text-faint); letter-spacing: 0.06em;
}
.sim2-term-bar .tt b { color: var(--text-dim); font-weight: 500; }

/* Live metrics */
.sim2-metrics {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .sim2-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sim2-metrics { grid-template-columns: repeat(2, 1fr); } }
.sim2-metrics > div { background: #05080f; padding: 14px 16px; }
.sim2-metrics span {
  display: block; font-family: var(--font-mono); font-size: 0.56rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint);
}
.sim2-metrics b {
  display: block; margin-top: 4px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums;
}
.sim2-metrics b.live { color: var(--accent-2); }

/* Output — flink groot */
.sim2-out {
  min-height: 460px; max-height: 460px; overflow-y: auto;
  padding: 24px 28px;
  font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.75;
  color: #c6d0e0; white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 768px) { .sim2-out { min-height: 320px; max-height: 320px; padding: 18px; font-size: 0.78rem; } }
.sim2-out .cursor {
  display: inline-block; width: 9px; height: 1.1em;
  background: var(--accent-2); vertical-align: text-bottom;
  animation: sim-blink 0.85s steps(1) infinite;
  box-shadow: 0 0 10px rgba(34,211,238,0.6);
}
.sim2-out .tk-sys { color: var(--warm); }
.sim2-out .tk-stage { color: var(--accent-2); }
.sim2-out .tk-code { color: #a5d6a7; }
.sim2-out .tk-dim { color: var(--text-faint); }
.sim2-out .tk-json-k { color: #7dd3fc; }
.sim2-out .tk-json-v { color: #fbbf24; }
.sim2-out .stage-line {
  display: block; padding: 6px 0; border-bottom: 1px dashed rgba(160,180,220,0.12);
}
.sim2-out .idle {
  color: var(--text-faint); font-style: italic;
}

/* ============================================
   LATENTIE — log-schaal met magnitude-stappen
   ============================================ */
.lat2-lane {
  display: grid; grid-template-columns: 200px 90px 1fr; gap: 8px 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.lat2-lane:first-of-type { border-top: 1px solid var(--line); }
.lat2-info strong { display: block; font-size: 0.95rem; color: #fff; }
.lat2-info span { display: block; font-size: 0.68rem; color: var(--text-faint); margin-top: 2px; }
.lat2-val {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-2);
  text-align: right;
}
.lat2-val small { display: block; color: var(--text-faint); font-size: 0.6rem; }
.lat2-track {
  position: relative; height: 34px; background: rgba(7,10,18,0.6);
  border: 1px solid var(--line); border-radius: 17px; overflow: hidden;
}
.lat2-ball {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow), 0 0 5px #60a5fa;
}
.lat2-ball.hot {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.lat2-step {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0 6px 220px;
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--warm);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.lat2-step::before { content: '▼'; font-size: 0.5rem; }
@media (max-width: 700px) {
  .lat2-lane { grid-template-columns: 1fr; gap: 6px; }
  .lat2-val { text-align: left; }
  .lat2-step { padding-left: 0; }
}

/* ============================================
   TCO-CHART (calculator)
   ============================================ */
.tco-chart-wrap {
  border: 1px solid var(--line-bright); border-radius: 10px;
  background: linear-gradient(180deg, var(--void-raised), var(--void-soft));
  padding: 24px; margin-top: 8px;
}
.tco-chart-wrap h4 {
  font-family: var(--font-display); font-size: 1rem; color: #fff; margin-bottom: 4px;
}
.tco-chart-wrap .sub { font-size: 0.72rem; color: var(--text-faint); margin-bottom: 16px; }
.tco-chart { width: 100%; height: auto; display: block; }
.tco-legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.tco-legend span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim);
}
.tco-legend i { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }

/* Scenario-kaarten cloud vs on-prem */
.vs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 700px) { .vs-cards { grid-template-columns: 1fr; } }
.vs-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 22px;
  background: var(--void-soft);
}
.vs-card.win { border-color: rgba(34,197,94,0.35); }
.vs-card .vc-tag {
  font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-faint);
}
.vs-card .vc-num {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: #fff;
  margin: 8px 0 2px; font-variant-numeric: tabular-nums;
}
.vs-card .vc-sub { font-size: 0.74rem; color: var(--text-dim); }

/* ============================================
   DIVERSE V4-VERFIJNINGEN
   ============================================ */

/* Koppen in donker mogen zachtere wit-tint hebben */
.page-hero { position: relative; }

/* Object-storage band */
.obj-band {
  position: relative; isolation: isolate; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.obj-band .ob-bg {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.4;
}
.obj-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,10,18,0.94) 25%, rgba(7,10,18,0.55) 70%, rgba(7,10,18,0.35));
}
.obj-band .ob-inner { padding: 110px 0; }
@media (max-width: 768px) { .obj-band .ob-inner { padding: 70px 0; } }

/* Grotere tool-thumbs */
.tool-card .tool-thumb { height: 200px; }
.tool-card .tool-thumb img { opacity: 0.9; }

/* Focus states overal zichtbaar */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 2px;
}

/* Reduced motion: v4-onderdelen statisch */
@media (prefers-reduced-motion: reduce) {
  .sim2-out .cursor { animation: none; }
  .split-media img, .article-card .ac-img img { transition: none; }
}

/* ============================================
   LICHTE SECTIE — extra component-overrides
   ============================================ */
.section-light .gap-visual { background: var(--paper-raised); border-color: var(--paper-line); }
.section-light .gap-visual::before, .section-light .gap-visual::after { background: var(--paper-line); }
.section-light .gap-visual .corner { color: var(--paper-faint); }
.section-light .gap-visual .bridge-label {
  background: var(--paper-raised); color: var(--paper-text);
  border-color: rgba(59,130,246,0.35);
}
.section-light .profile-card {
  background: var(--paper-raised); border-color: var(--paper-line);
  box-shadow: 0 24px 64px rgba(19,26,40,0.10);
}
.section-light .profile-card h3 { color: var(--paper-text); }
.section-light .profile-card p { color: var(--paper-dim); }
.section-light .tool-card {
  background: var(--paper-raised); border-color: var(--paper-line);
  box-shadow: 0 12px 36px rgba(19,26,40,0.08);
}
.section-light .tool-card h3 { color: var(--paper-text); }
.section-light .tool-card p { color: var(--paper-dim); }
.section-light .tool-card .tool-thumb { border-bottom-color: var(--paper-line); }
.section-light .tool-card .tool-link { color: var(--paper-text); }
.section-light .btn-secondary { border-color: var(--paper-line); color: var(--paper-text); }
.section-light .btn-secondary:hover { border-color: var(--accent); background: rgba(59,130,246,0.06); }
.section-light .btn-primary { background: var(--paper-text); color: #fff; }
.section-light .insight-item { border-top-color: var(--paper-line); }
.section-light .insight-item h3 { color: var(--paper-text); }
.section-light .insight-item p { color: var(--paper-dim); }
.section-light .insight-item:hover { background: rgba(59,130,246,0.05); }
.section-light .article-card { background: var(--paper-raised); border-color: var(--paper-line); box-shadow: 0 14px 40px rgba(19,26,40,0.08); }
.section-light .article-card h3 { color: var(--paper-text); }
.section-light .article-card p { color: var(--paper-dim); }
.section-light .article-card .ac-img img { opacity: 1; }
.section-light .news-item { border-bottom-color: var(--paper-line); }
.section-light .news-item .n-title { color: var(--paper-text); }
.section-light .news-item:hover { background: rgba(59,130,246,0.05); }

/* Object-storage band: tekstkleuren blijven donker-thema */
.obj-band .tag { background: rgba(7,10,18,0.5); backdrop-filter: blur(6px); }

/* Homepage visuals: geef de praktijksectie een sterk beeldanker. */
.section-light .gap-visual {
  background: #07111f;
  border-color: rgba(59,130,246,0.28);
  box-shadow: 0 24px 70px rgba(7,10,18,0.16);
}
.gap-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.92) contrast(1.04);
}
.gap-visual::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(7,10,18,0.12), rgba(59,130,246,0.22), rgba(7,10,18,0.12));
}
.gap-visual::after { z-index: 1; background: rgba(160,180,220,0.18); }
.gap-visual .bridge { z-index: 2; background: var(--accent-2); box-shadow: 0 0 24px rgba(34,211,238,0.6), 0 0 80px rgba(59,130,246,0.32); }
.gap-visual .bridge-label {
  z-index: 3;
  background: rgba(7,10,18,0.78);
  border-color: rgba(34,211,238,0.5);
  backdrop-filter: blur(8px);
}
.gap-visual .corner { z-index: 3; color: rgba(233,237,244,0.78); text-shadow: 0 1px 12px rgba(0,0,0,0.7); }

/* Extra beeld in de tools-teaser, zonder de tekstuele route te verdringen. */
.tools-feature-media {
  position: relative;
  max-width: 540px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--void-raised);
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}
.tools-feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.8s var(--ease-out), opacity 0.4s ease;
}
.tools-feature-media:hover img { transform: scale(1.04); opacity: 1; }
.tools-feature-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(7,10,18,0.78) 100%);
  pointer-events: none;
}
.tools-feature-media figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: rgba(233,237,244,0.84);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Compact, functioneel beeldanker in de toolssectie. */
.tool-quicklink {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 540px;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid var(--line-bright);
  border-radius: 7px;
  background: rgba(13, 25, 43, 0.66);
  transition: border-color .25s ease, background .25s ease;
}
.tool-quicklink:hover { border-color: rgba(59,130,246,.64); background: rgba(20,38,65,.82); }
.tool-quicklink img { width: 132px; height: 86px; object-fit: cover; border-radius: 4px; opacity:.86; }
.tool-quicklink small, .tool-quicklink strong, .tool-quicklink em { display:block; }
.tool-quicklink small { color:var(--accent-2); font-family:var(--font-mono); font-size:.57rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:5px; }
.tool-quicklink strong { color:var(--text); font-family:var(--font-display); font-size:.96rem; line-height:1.22; font-weight:500; }
.tool-quicklink em { color:var(--text-dim); font-family:var(--font-mono); font-size:.62rem; font-style:normal; letter-spacing:.03em; margin-top:8px; }
@media (max-width: 640px) { .tool-quicklink { grid-template-columns: 96px minmax(0,1fr); gap:12px; } .tool-quicklink img { width:96px; height:76px; } }

/* ============================================
   V4.2 — MEER MATERIAAL, MINDER WIT VLAK
   ============================================ */

/* De voormalige lichte secties krijgen een rustige, gelaagde inktkleur.
   De lokale variabelen houden bestaande kaarten en tekst automatisch in balans. */
.section-light {
  --paper: #0b1322;
  --paper-raised: #111d31;
  --paper-text: #f1f5fb;
  --paper-dim: #acb9cd;
  --paper-faint: #71809a;
  --paper-line: rgba(170, 193, 226, 0.15);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 0% 8%, rgba(59,130,246,0.14), transparent 64%),
    radial-gradient(ellipse 50% 80% at 100% 92%, rgba(34,211,238,0.08), transparent 66%),
    linear-gradient(135deg, #09111f 0%, #0d1728 55%, #09111a 100%);
}
.section-light .btn-primary { background: var(--accent); color: #fff; }
.section-light .btn-primary:hover { background: #5a96f7; }
.section-light .btn-secondary:hover,
.section-light .challenge-item:hover,
.section-light .insight-item:hover,
.section-light .news-item:hover { background: rgba(59,130,246,0.12); }

/* De vier obstakels zijn op groot scherm scanbare inhoudskaarten in plaats van
   een lange, lege lijst. Dit haalt de visuele nadruk terug naar de inhoud. */
.gap-section { padding-bottom: 104px; }
.gap-section .challenge-grid {
  margin-top: 68px;
  align-items: stretch;
  row-gap: 18px;
}
.gap-section .challenge-item {
  position: relative;
  grid-column: span 6;
  min-height: 206px;
  padding: 30px 30px 28px;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(19,33,54,0.92), rgba(10,18,31,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 18px 45px rgba(0,0,0,0.16);
}
.gap-section .challenge-item::before {
  content: '';
  position: absolute;
  width: 34px;
  height: 2px;
  margin-top: -31px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}
.gap-section .challenge-item:hover {
  transform: translateY(-3px);
  border-color: rgba(59,130,246,0.55);
  background: linear-gradient(145deg, rgba(23,42,69,0.96), rgba(11,22,38,0.96));
}
.gap-section .challenge-num { color: var(--accent-2); font-size: 0.74rem; padding-top: 3px; }
.gap-section .challenge-item h3 { font-size: clamp(1.15rem, 1.5vw, 1.38rem); margin-bottom: 12px; }
.gap-section .challenge-item p { max-width: 46ch; }

/* Lange dienstenpagina's krijgen duidelijke rustpunten zonder extra decoratie. */
@media (min-width: 901px) {
  .service-stack-item {
    padding: 56px 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(18,28,47,0.52), rgba(7,10,18,0.24));
  }
  .service-stack-item + .service-stack-item { margin-top: 18px; }
  .service-stack-item:nth-child(even) { background: linear-gradient(225deg, rgba(20,35,58,0.58), rgba(7,10,18,0.26)); }
  .service-img-wrap { box-shadow: 0 18px 52px rgba(0,0,0,0.24); }
}

@media (max-width: 900px) {
  /* Inline desktop-gridposities komen op mobiel altijd onder elkaar. */
  .grid > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .gap-section { padding-bottom: 72px; }
  .gap-section .challenge-grid { margin-top: 42px; row-gap: 12px; }
  .gap-section .challenge-item {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 24px 20px;
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }
  .gap-section .challenge-item::before { margin-top: -25px; }
  .gap-section .challenge-item p { max-width: none; }
}

@media (max-width: 900px) {
  .gap-left, .gap-right { grid-column: 1 / -1; }
  .gap-right { padding-bottom: 0; }
  .gap-visual { height: min(360px, 82vw); min-height: 250px; }
}

/* ============================================
   RESPONSIVE VERFIJNINGEN — V4.1
   ============================================ */

/* Skip-link blijft onzichtbaar tot toetsenbordgebruik. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10002;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* Zorgt dat brede componenten op kleine schermen nooit de pagina uitduwen. */
main, section, article, .grid, .hero-inner, .article-content,
.calc-wrap, .sim2-stage, .table-wrap { min-width: 0; }
.grid > *, .hero-inner > *, .article-content > * { min-width: 0; }
h1, h2, h3, h4, td, th { overflow-wrap: anywhere; }

.mobile-toggle {
  position: relative;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  font-size: 1.35rem;
  line-height: 1;
}
.mobile-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }

.mobile-nav {
  display: none;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(96px, calc(env(safe-area-inset-top) + 80px)) 24px 40px;
  visibility: hidden;
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.25s ease, visibility 0.4s;
}
.mobile-nav.open { display: flex; visibility: visible; opacity: 1; }
body.nav-open { overflow: hidden; }

/* Bronnen blijven leesbaar wanneer een bronnaam of URL lang is. */
.source-list li {
  display: block;
  position: relative;
  padding-left: 26px;
  overflow-wrap: anywhere;
}
.source-list li::before { position: absolute; left: 0; top: 14px; }
.source-list a { overflow-wrap: anywhere; }

/* Rustig alternatief voor de oude, productgerichte ticker op de homepage. */
.focus-strip { background: #080d16; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.focus-strip .grid { padding-block: 24px; }
.focus-strip .grid > div { grid-column: span 4; padding-right: 28px; border-right: 1px solid var(--line); }
.focus-strip .grid > div:last-child { border-right: 0; }
.focus-strip span { display:block; color: var(--accent-2); font-family: var(--font-mono); font-size: .59rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px; }
.focus-strip strong { color: var(--text); font-family: var(--font-display); font-size: .94rem; font-weight: 500; }
@media (max-width: 900px) { .focus-strip .grid > div { grid-column: 1 / -1; border-right:0; border-bottom:1px solid var(--line); padding: 14px 0; } .focus-strip .grid > div:last-child { border-bottom:0; } }

/* Het woordmerk staat leesbaar naast het beeldmerk; de kleine onderregel in
   het bronbestand is op headerformaat niet leesbaar en blijft daarom weg. */
.header-logo img { clip-path: none; object-fit: contain; }

/* V4.3 — Compactere desktopcompositie, zonder inhoud weg te laten. */
@media (min-width: 901px) {
  .section { padding-block: 88px; }
  .page-hero { padding: 118px 40px 58px; }
  .page-hero h1 { max-width: 18ch; font-size:clamp(2.8rem, 5.6vw, 6rem); }
  .page-hero-tools h1 { max-width: 22ch; }
  .bleed.parallax-frame { height: min(34vh, 340px) !important; }

  .service-stack-item {
    grid-template-columns: 64px minmax(0, 1.12fr) minmax(280px, .88fr);
    gap: 32px;
    padding: 40px 34px;
  }
  .service-stack-item h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); margin-bottom: 12px; }
  .service-stack-item p { margin-bottom: 18px; }
  .service-stack-item .service-img-wrap img { height: 244px; }
}

/* De dienstpagina gebruikt de tweede kolom voor inhoudelijke duiding. */
.service-hero-panel {
  align-self: center;
  padding: 26px 24px;
  border: 1px solid rgba(108,147,208,.25);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(16,31,53,.78), rgba(8,14,25,.6));
}
.service-hero-panel .label { display:block; margin-bottom: 12px; }
.service-hero-panel strong { display:block; color:var(--text); font-family:var(--font-display); font-size:1.16rem; line-height:1.28; font-weight:500; }
.service-hero-panel ul { display:grid; gap:10px; margin-top:18px; }
.service-hero-panel li { position:relative; padding-left:16px; color:var(--text-dim); font-size:.81rem; line-height:1.45; }
.service-hero-panel li::before { content:'›'; position:absolute; left:0; color:var(--accent-2); }

/* De toolsindex toont geen decoratief beeld: de ruimte geeft in één oogopslag
   aan wat bezoekers aan de tools hebben. */
.tools-hero-facts {
  align-self:center;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--line);
}
.tools-hero-facts > div { min-height:132px; display:flex; flex-direction:column; justify-content:center; padding:18px 16px; background:linear-gradient(145deg, rgba(17,31,54,.9), rgba(9,16,29,.94)); }
.tools-hero-facts strong { color:var(--text); font-family:var(--font-display); font-size:1.55rem; font-weight:500; line-height:1; }
.tools-hero-facts span { margin-top:9px; color:var(--text-dim); font-family:var(--font-mono); font-size:.56rem; letter-spacing:.08em; line-height:1.4; text-transform:uppercase; }

/* Homepage-tools: een kop met ondersteunend beeld, gevolgd door vier
   gelijke routes. Geen decoratieve leegte en elke kaart heeft hetzelfde gewicht. */
.home-tools-section { padding-block:56px; }
.home-tools-intro { grid-column:1 / 6; align-self:center; }
.home-tools-visual { grid-column:7 / 13; height:160px; position:relative; overflow:hidden; border:1px solid var(--line); border-radius:7px; background:var(--void-raised); }
.home-tools-visual img { width:100%; height:100%; object-fit:cover; opacity:.78; transition:transform .7s var(--ease-out), opacity .3s ease; }
.home-tools-visual:hover img { transform:scale(1.04); opacity:.94; }
.home-tools-visual::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(7,10,18,.22), transparent 68%); pointer-events:none; }
.home-tools-visual figcaption { position:absolute; z-index:1; left:16px; bottom:13px; color:var(--text); font-family:var(--font-mono); font-size:.59rem; letter-spacing:.1em; text-transform:uppercase; }
.home-tools-grid { grid-column:1 / -1; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; margin-top:22px; }
.home-tool-card { min-height:156px; display:flex; flex-direction:column; padding:18px; border:1px solid var(--line); border-radius:6px; background:linear-gradient(145deg, rgba(17,31,54,.87), rgba(9,16,29,.9)); transition:transform .25s var(--ease-out), border-color .25s ease, background .25s ease; }
.home-tool-card:hover { transform:translateY(-3px); border-color:rgba(59,130,246,.65); background:linear-gradient(145deg, rgba(23,43,73,.94), rgba(10,21,38,.94)); }
.home-tool-card .tool-tag { font-family:var(--font-mono); font-size:.55rem; letter-spacing:.11em; text-transform:uppercase; color:var(--accent-2); }
.home-tool-card h3 { margin-top:9px; color:var(--text); font-family:var(--font-display); font-size:1.04rem; font-weight:500; line-height:1.16; }
.home-tool-card p { margin-top:8px; color:var(--text-dim); font-size:.78rem; line-height:1.45; }
.home-tool-card .tool-link { margin-top:auto; padding-top:11px; color:var(--text); font-family:var(--font-mono); font-size:.57rem; letter-spacing:.07em; text-transform:uppercase; }
.home-tool-card .tool-link::after { content:' →'; color:var(--accent-2); }

@media (max-width: 900px) {
  .header { gap: 12px; }
  .header-logo { min-width: 0; }
  .header-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-cta { display: none; }
  .mobile-toggle { display: inline-flex; flex: 0 0 44px; }
  .service-hero-panel, .tools-hero-facts { grid-column:1 / -1 !important; margin-top:8px; }
  .home-tools-intro, .home-tools-visual, .home-tools-grid { grid-column:1 / -1; }
  .home-tools-visual { margin-top:28px; }
  .home-tools-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hero-stage { padding-top: 92px; padding-bottom: 48px; }
  .page-hero { padding: 132px 20px 56px; }
  .page-hero h1 { max-width: none; font-size: clamp(2.65rem, 13vw, 4.25rem); }
  .article-content { padding: 40px 20px 80px; }
  .article-content h2 { font-size: 1.35rem; margin-top: 40px; }
  .cta-cine { padding: 96px 20px; }
  .profile-card { padding: 20px; }
  .sim2-tabs { padding: 12px; }
  .sim2-tab { flex: 1 1 calc(50% - 4px); text-align: center; padding-inline: 8px; }
  .sim2-setup { padding: 16px; gap: 14px; }
  .sim2-setup .fld, .sim2-setup select, .sim2-setup input[type="range"] { width: 100%; min-width: 0; }
  .sim2-run { width: 100%; }
  .tco-chart-wrap { padding: 16px; }
  .lead-form { align-items: stretch; }
  .lead-form input, .lead-form button { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
  .header { padding-inline: 14px; }
  .header-logo { gap: 8px; }
  .header-logo span { font-size: 0.94rem; }
  .grid { padding-inline: 16px; }
  .hero-inner { padding-inline: 16px; }
  .hero-title { font-size: clamp(2.7rem, 13.5vw, 4rem); }
  .hero-foot { margin-top: 32px; }
  .hero-actions { width: 100%; }
  .hero-actions a { width: 100%; text-align: center; }
  .hero-stats { gap: 20px 28px; margin-top: 36px; }
  .hero-scrollhint { display: none; }
  .section { padding-block: 64px; }
  .home-tools-section { padding-block:64px; }
  .home-tools-visual { height:180px; }
  .home-tools-grid { grid-template-columns:1fr; gap:12px; margin-top:16px; }
  .home-tool-card { min-height:0; padding:19px; }
  .service-hero-panel { padding:22px 20px; }
  .tools-hero-facts > div { min-height:106px; padding:16px 12px; }
  .mobile-nav a { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link, .mobile-nav { transition: none; }
  .tools-feature-media img { transition: none; }
}

/* ============================================
   V4.4 — REDACTIONELE EN PERFORMANCE-PASS
   ============================================ */

/* De actuele artikelmarkup gebruikt figure/article-card-body. Deze selectors
   houden kaartbeeld, tekst en metadata overal gelijk uitgelijnd. */
.article-card figure { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.article-card figure img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: transform .8s var(--ease-out), opacity .35s ease; }
.article-card:hover figure img { transform: scale(1.045); opacity: 1; }
.article-card-body { padding: 22px 24px 25px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card-body .meta { margin-top: auto; padding-top: 8px; }

/* Artikelen openen compact: één onderwerpbeeld, daarna direct de inhoud. */
.article-back-link { display: flex; width: max-content; align-items: center; gap: 7px; margin-bottom: 16px; color: var(--accent-2); font-family: var(--font-mono); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.article-back-link:hover { color: #fff; }
.article-content { max-width: 720px; padding: 16px 0 52px; }
.article-content > p:first-child { color: #c2cada; font-size: 1.06rem; line-height: 1.72; }
.article-content h2 { margin-top: 40px; }
.article-content a { color: #78aaf9; text-decoration: underline; text-decoration-color: rgba(120,170,249,.35); text-underline-offset: 3px; }
.article-content a:hover { color: #a9c8fb; text-decoration-color: currentColor; }
.source-list { margin-top: 24px; padding: 18px 20px 8px 22px !important; border: 1px solid var(--line); border-radius: 6px; background: rgba(15,25,43,.52); }

/* Grote afsluiters en footer blijven visueel, maar kosten minder scrollruimte. */
.cta-cine { padding: 112px 40px; }
.cta-cine h2 { font-size: clamp(2.1rem, 4.5vw, 4.25rem); }
.footer { padding: 56px 0 30px; }
.footer-grid { margin-bottom: 48px; }

/* Vijf hoofdtools staan als drie plus twee gecentreerde, even brede kaarten. */
@media (min-width: 901px) {
  .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .tools-grid .tool-card:last-child:nth-child(odd) { grid-column: 2; }
  .article-page-hero { padding-top: 104px; padding-bottom: 40px; }
  .article-page-hero .grid > div { grid-column: 2 / 12 !important; }
  .article-page-hero h1 { max-width: 19ch; font-size: clamp(2.8rem, 4.7vw, 4.7rem); }
}

@media (max-width: 900px) {
  .page-hero-services h1 { font-size: clamp(2.4rem, 10.8vw, 3.1rem); }
  .article-page-hero { padding-bottom: 42px; }
  .article-content { padding: 0 0 44px; }
  .tools-grid .tool-card:last-child:nth-child(odd) { grid-column: auto; }
}

@media (max-width: 640px) {
  .article-page-hero { padding-top: 108px; padding-bottom: 34px; }
  .article-page-hero h1 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
  .article-content { padding: 0 0 30px; }
  .article-content > p:first-child { font-size: 1rem; }
  .cta-cine { padding: 76px 20px; }
  .footer { padding-top: 44px; }
  .footer-grid { margin-bottom: 36px; }
  .article-card-body { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-card figure img { transition: none; }
}

/* V4.5 — voorkom horizontale overloop door 100vw naast de scrollbar. */
html { overflow-x: clip; }
.bleed { width: 100%; margin-left: 0; }

/* Compacter paginaritme: voldoende rust, zonder onnodige schermen witruimte. */
.section { padding-block: 104px; }
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .service-stack-item { padding-block: 44px; }
}
