/* ============================================================
   OUT OF FRAME — HOMEPAGE VERSIE B
   Het kleurverloop staat achter de hele pagina; een dimlaag maakt
   het per sectie donkerder of lichter. Alles beweegt mee met het
   soepele scrollen (zie js/home/smooth.js).
   Bouwt voort op css/home.css.
   ============================================================ */

/* Dimlaag tussen verloop en inhoud. Startwaarde: donker genoeg
   om tekst te lezen als JS niet draait. */
.b-dim {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg);
  opacity: 0.6;
}
.js .b-dim { opacity: 0; }

/* Voortgangsbalk bovenaan */
.b-progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 110; height: 2px;
  pointer-events: none;
}
.b-progress i {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: left; transform: scaleX(0);
}

/* Secties zijn doorzichtig: het verloop loopt overal door */
.home-b .h-section,
.home-b .h-marquee,
.home-b .h-footer { background: transparent; }
.home-b .h-section { border-top-color: rgba(255, 255, 255, 0.07); }
.home-b .h-contact::before { display: none; }
.home-b .h-footer { border-top-color: rgba(255, 255, 255, 0.07); }


/* ============================================================
   HERO: plakt vast terwijl de titelregels het beeld uit schuiven
   ============================================================ */
.b-hero { position: relative; }
.js .b-hero { height: 230vh; }
.b-hero__sticky {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: clip;
}
.js .b-hero__sticky { position: sticky; top: 0; height: 100svh; }
/* alleen bovenaan iets donkerder (achter het menu); onderaan geen
   donkere rand, anders ontstaat een harde kleurovergang met de band eronder */
.b-hero__sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 6, 9, 0.35) 0%, transparent 22%);
}
.b-hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(24px, 4vh, 48px)) var(--gutter) clamp(28px, 4vh, 44px);
  display: flex; flex-direction: column;
}
.b-hero__title .h-line { overflow: visible; }
.b-hero__title .h-line { will-change: transform; }
/* de masker-intro werkt via een binnenste wrapper; regels zelf mogen
   buiten beeld schuiven */
.b-hero__title .h-line > span { display: inline-block; }
.js .b-hero__title .h-line { clip-path: inset(-0.2em -100vw -0.2em -100vw); }
.b-hero__after {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  text-align: center;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 4vw, 58px); letter-spacing: -0.035em; line-height: 1.05;
  color: #fff;
  opacity: 0; pointer-events: none;
}

/* ============================================================
   STATEMENT: staat stil terwijl de woorden oplichten
   ============================================================ */
.js .b-pin { height: 240vh; padding: 0; }
.js .b-pin__sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
}
.js .b-pin__sticky > .h-wrap { width: 100%; }
.js .b-pin .h-statement__side { position: static; }

/* ============================================================
   LOPENDE BAND
   ============================================================ */
.b-marquee {
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(20px, 2.6vw, 34px) 0;
}
.b-marquee__track {
  display: flex; gap: clamp(26px, 3vw, 48px); align-items: center;
  width: max-content; white-space: nowrap; will-change: transform;
}
.b-marquee__track span {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5.2vw, 80px); letter-spacing: -0.035em;
  color: var(--text);
}
.b-marquee__track span:nth-of-type(even) {
  color: transparent; -webkit-text-stroke: 1px rgba(242, 243, 247, 0.6);
}
.b-marquee__track i {
  font-style: normal; font-size: clamp(18px, 2vw, 30px);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   KLEINE VOORBEELDEN in de dienstenkaarten
   (animaties lopen alleen op de kaart die vooraan staat)
   ============================================================ */
.b-ex {
  margin: 18px 0 20px;
  padding: 14px;
  min-height: 168px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px; line-height: 1.4;
  display: grid; gap: 9px; align-content: start;
}
.b-ex__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 2px;
}

/* 1. kansenkaart: balkjes met tijdwinst */
.b-ex__row {
  display: grid; grid-template-columns: minmax(0, 1fr) 54px auto;
  gap: 8px; align-items: center;
}
.b-ex__row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-ex__row i {
  height: 6px; border-radius: 3px; background: var(--grad);
  transform-origin: left; transform: scaleX(var(--w));
}
.b-ex__row b { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--accent-2); }

/* 2. processtappen die na elkaar oplichten */
.b-ex--flow ol { list-style: none; display: grid; gap: 9px; }
.b-ex--flow li { position: relative; padding-left: 20px; }
.b-ex--flow li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--accent-2); background: var(--accent-2);
}
.b-ex--flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 4.5px; top: 15px; height: 12px; width: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.b-ex--flow li b { color: #6ee7a8; }

/* 3. chat */
.b-ex--chat p { max-width: 88%; padding: 8px 11px; border-radius: 12px; }
.b-ex__q { justify-self: end; background: rgba(255, 255, 255, 0.1); border-bottom-right-radius: 4px; }
.b-ex__a {
  background: linear-gradient(120deg, rgba(109, 92, 255, 0.45), rgba(0, 229, 255, 0.3));
  border-bottom-left-radius: 4px;
}
.b-ex__typing { display: none; gap: 4px; background: rgba(255, 255, 255, 0.06); width: max-content; }
.b-ex__typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); }

/* 4. koppelingen: gegevens stromen naar één plek */
.b-ex__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.b-ex__chips span {
  text-align: center; padding: 6px 4px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.b-ex__lines { display: grid; grid-template-columns: repeat(3, 1fr); height: 26px; }
.b-ex__lines i { position: relative; justify-self: center; width: 1px; background: rgba(255, 255, 255, 0.2); }
.b-ex__lines i::after {
  content: ""; position: absolute; left: -2.5px; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2);
}
.b-ex__hub {
  text-align: center; padding: 8px; border-radius: 10px;
  background: linear-gradient(120deg, rgba(109, 92, 255, 0.35), rgba(0, 229, 255, 0.25));
}
.b-ex__hub b { color: #6ee7a8; }

/* animaties: alleen op de voorste kaart */
@media (prefers-reduced-motion: no-preference) {
  .is-front .b-ex__row i { animation: exBar 5s var(--ease-out) infinite; animation-delay: calc(var(--k) * 0.25s); }
  .is-front .b-ex--flow li { animation: exStep 4.8s ease infinite; animation-delay: calc(var(--k) * 0.7s); }
  .is-front .b-ex__q { animation: exQ 7s ease infinite; }
  .is-front .b-ex__typing { display: flex; animation: exTyping 7s ease infinite; }
  .is-front .b-ex__typing i { animation: exDot 0.9s ease-in-out infinite; }
  .is-front .b-ex__typing i:nth-child(2) { animation-delay: 0.15s; }
  .is-front .b-ex__typing i:nth-child(3) { animation-delay: 0.3s; }
  .is-front .b-ex__a { animation: exA 7s ease infinite; }
  .is-front .b-ex__lines i::after { animation: exFlow 1.8s ease-in infinite; animation-delay: calc(var(--k) * 0.3s); }
  .is-front .b-ex__hub { animation: exHub 1.8s ease infinite 0.9s; }
}
@keyframes exBar { 0% { transform: scaleX(0); } 35%, 100% { transform: scaleX(var(--w)); } }
@keyframes exStep { 0% { opacity: 0.3; } 12%, 80% { opacity: 1; } 100% { opacity: 0.3; } }
@keyframes exQ { 0%, 4% { opacity: 0; transform: translateY(6px); } 10%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes exTyping { 0%, 14% { opacity: 0; max-height: 0; padding-block: 0; } 18%, 40% { opacity: 1; max-height: 30px; } 44%, 100% { opacity: 0; max-height: 0; padding-block: 0; } }
@keyframes exDot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes exA { 0%, 42% { opacity: 0; transform: translateY(6px); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes exFlow { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 22px; opacity: 0; } }
@keyframes exHub { 0%, 100% { box-shadow: 0 0 0 rgba(0, 229, 255, 0); } 50% { box-shadow: 0 0 22px rgba(0, 229, 255, 0.35); } }


/* ============================================================
   KLEINERE SCHERMEN & MINDER BEWEGING
   ============================================================ */
@media (max-width: 760px) {
  .js .b-hero { height: 190vh; }
}

@media (prefers-reduced-motion: reduce) {
  .js .b-hero { height: auto; }
  .js .b-pin { height: auto; padding: clamp(90px, 12vw, 170px) 0; }
  .js .b-pin__sticky { position: relative; height: auto; display: block; padding-top: 0; }
  .js .b-hero__sticky { position: relative; height: auto; min-height: 100svh; }
  .js .b-dim { opacity: 0.55; }
  .b-hero__after { display: none; }
}

/* ============================================================
   DEMO: zelf proberen en uitrekenen
   ============================================================ */
.b-demo {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 18px;
}
.b-demo__tasks { display: grid; gap: 10px; align-content: start; }
.b-demo__tasks button {
  display: flex; align-items: center; gap: 14px;
  text-align: left; cursor: pointer;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 30, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: rgba(242, 243, 247, 0.8);
  font-family: var(--font-display); font-size: 16px; font-weight: 500;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.35s var(--ease-out);
}
.b-demo__tasks button span { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); }
.b-demo__tasks button:hover { color: #fff; border-color: rgba(0, 229, 255, 0.45); transform: translateX(4px); }
.b-demo__tasks button.is-active {
  color: #07070c; background: #f4f4f8; border-color: transparent; font-weight: 600;
}
.b-demo__tasks button.is-active span { color: #4a4a62; }
.b-demo__tasks button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.b-demo__panel {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 22, 0.82);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: grid; gap: 24px;
}
.b-demo__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.b-demo__top h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.03em; }

.b-demo__steps { list-style: none; counter-reset: st; display: grid; gap: 4px; }
.b-demo__steps li {
  counter-increment: st;
  transition: opacity 0.6s ease;
  position: relative;
  padding: 12px 0 12px 52px;
  font-size: 17px; line-height: 1.45; color: var(--text);
  transition: opacity 0.4s ease;
}
.b-demo__steps li::before {
  content: counter(st);
  position: absolute; left: 0; top: 9px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px;
  border: 1px solid rgba(0, 229, 255, 0.5); color: var(--accent-2);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.b-demo__steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 15.5px; top: 44px; bottom: -6px; width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
/* tijdens afspelen: nog niet bereikte stappen gedimd, bereikte stappen afgevinkt */
.b-demo.is-playing .b-demo__steps li:not(.is-on) { opacity: 0.32; }
.b-demo__steps li.is-on::before,
.b-demo.is-done .b-demo__steps li::before {
  content: "✓"; background: var(--accent-2); color: #05050a; border-color: transparent;
}
.b-demo__result {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  transition: color 0.4s ease;
}
.b-demo__result::before { content: "→ "; color: var(--accent-2); }
.b-demo.is-playing .b-demo__result { opacity: 0.32; }
.b-demo.is-done .b-demo__result { color: #fff; }

.b-demo__calc {
  display: grid; gap: 16px;
  padding: 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.b-demo__slider { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
.b-demo__slider label { font-size: 15px; color: var(--text); }
.b-demo__slider output { font-family: var(--mono); font-size: 14px; color: var(--accent-2); }
.b-demo__slider input { grid-column: 1 / -1; width: 100%; accent-color: #00e5ff; height: 28px; cursor: pointer; }
.b-demo__compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.b-demo__compare div {
  padding: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: grid; gap: 4px;
}
.b-demo__compare span { font-size: 12.5px; color: var(--text-dim); }
.b-demo__compare b {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.b-demo__compare .is-win { background: linear-gradient(120deg, rgba(109, 92, 255, 0.35), rgba(0, 229, 255, 0.22)); }
.b-demo__note { font-size: 12.5px; color: var(--text-dim); }

@media (max-width: 960px) {
  .b-demo { grid-template-columns: minmax(0, 1fr); }
  .b-demo__tasks { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .b-demo__tasks button { padding: 12px 14px; font-size: 14.5px; }
}
@media (max-width: 600px) {
  .b-demo__compare { grid-template-columns: minmax(0, 1fr); }
  .b-demo__steps li { font-size: 15.5px; }
}

/* ============================================================
   DIENSTEN: 3D-carrousel (zie js/home/services.js)
   JS zet per kaart de 3D-positie en --front (1 = vooraan, 0 = opzij).
   ============================================================ */
.b-svc-sec { position: relative; overflow: clip; padding-bottom: clamp(60px, 8vw, 110px); }
/* grote naam van de actieve dienst op de achtergrond */
.b-svc-word {
  position: absolute; left: 50%; top: 56%; z-index: 0;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(80px, 17vw, 280px); letter-spacing: -0.06em; line-height: 1;
  white-space: nowrap; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
}
.b-svc-word.is-swap { animation: svcWord 0.9s var(--ease-out); }
@keyframes svcWord {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 30px)); filter: blur(8px); }
  to { opacity: 1; transform: translate(-50%, -50%); filter: none; }
}
.b-svc {
  position: relative; z-index: 1;
  height: clamp(540px, 68vh, 660px);
  perspective: 1700px;
  touch-action: pan-y;
  cursor: grab; user-select: none; -webkit-user-select: none;
  outline: none;
}
.b-svc.is-dragging { cursor: grabbing; }
.b-svc:focus-visible .is-front .b-svc__inner { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.b-svc__card {
  --front: 1;
  position: absolute; left: 50%; top: 50%;
  width: min(460px, 84vw);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.b-svc__inner {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 30, 0.88);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s ease;
}
/* kaarten opzij worden donkerder */
.b-svc__inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: #05050a; opacity: calc((1 - var(--front)) * 0.6);
}
.is-front .b-svc__inner {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(109, 92, 255, 0.3), 0 40px 120px rgba(0, 0, 0, 0.5), 0 0 90px rgba(109, 92, 255, 0.28);
}
/* lichtschittering die de muis volgt */
.b-svc__glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.35s ease;
}
.is-front:hover .b-svc__glare { opacity: 1; }
.b-svc__top {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 26px;
}
.b-svc__inner h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 12px; }
.b-svc__text { color: rgba(242, 243, 247, 0.75); font-size: 15px; line-height: 1.55; }
.b-svc__inner .b-ex { margin: 20px 0 22px; }
.b-svc__inner .h-link { align-self: flex-start; font-size: 15px; }

.b-svc__nav { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.b-svc__arrow {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 14, 30, 0.7); color: #fff; font-size: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 0.25s ease, transform 0.35s var(--ease-out);
}
.b-svc__arrow:hover { background: rgba(255, 255, 255, 0.14); transform: scale(1.06); }
.b-svc__tabs {
  display: flex; gap: 4px; padding: 5px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 14, 30, 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.b-svc__tabs button {
  padding: 9px 16px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--text-dim);
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}
.b-svc__tabs button:hover { color: #fff; }
.b-svc__tabs button.is-active { background: #f4f4f8; color: #07070c; }
.b-svc__arrow:focus-visible, .b-svc__tabs button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

@media (max-width: 600px) {
  .b-svc { height: 600px; }
  .b-svc__tabs { order: -1; width: 100%; justify-content: space-between; }
  .b-svc__tabs button { padding: 8px 10px; font-size: 12.5px; }
}

/* ============================================================
   VEILIG: springt eruit (belangrijk onderwerp)
   ============================================================ */
@property --safeAng { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.b-safe__panel {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: 36px;
  background: rgba(8, 8, 18, 0.8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 120px rgba(109, 92, 255, 0.22), 0 40px 120px rgba(0, 0, 0, 0.45);
}
/* rand van licht die langzaam rondloopt */
.b-safe__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--safeAng), #6d5cff, #00e5ff 25%, rgba(109, 92, 255, 0.25) 50%, #00e5ff 75%, #6d5cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: safeSpin 10s linear infinite;
}
@keyframes safeSpin { to { --safeAng: 360deg; } }
.b-safe__intro { display: grid; gap: 20px; align-content: start; }
.b-safe .h-title { font-size: clamp(38px, 5vw, 76px); }
.b-safe__lead { font-size: 17.5px; line-height: 1.6; color: rgba(242, 243, 247, 0.85); max-width: 480px; }
.b-safe__shield svg { width: 108px; height: 108px; overflow: visible; }
.b-safe__shield-body {
  fill: rgba(109, 92, 255, 0.14); stroke: url(#gradShield); stroke-width: 3; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.b-safe__shield-check {
  fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.b-safe__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.b-safe__badges li {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.4); background: rgba(0, 229, 255, 0.07);
  color: #fff;
}
.b-safe__list {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 34px;
  align-content: center;
}
.b-safe__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.b-safe__list h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.b-safe__list p { font-size: 15px; line-height: 1.6; color: rgba(242, 243, 247, 0.75); }
.b-safe__check {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad);
}
.b-safe__check::after {
  content: ""; position: absolute; left: 11px; top: 8px; width: 8px; height: 13px;
  border-right: 2.5px solid #05050a; border-bottom: 2.5px solid #05050a;
  transform: rotate(45deg);
}
.b-safe__actions {
  grid-column: 1 / -1;
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* intro-animatie zodra het paneel in beeld komt (alleen met JS) */
@media (prefers-reduced-motion: no-preference) {
  .js .b-safe__shield-body { stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.6s ease, fill-opacity 0.8s ease 1.2s; }
  .js .b-safe__shield-check { stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s var(--ease-out) 1.4s; }
  .js .is-in .b-safe__shield-body { stroke-dashoffset: 0; fill-opacity: 1; }
  .js .is-in .b-safe__shield-check { stroke-dashoffset: 0; }
  .js .b-safe__list li { opacity: 0.25; transition: opacity 0.6s ease calc(0.6s + var(--k) * 0.3s); }
  .js .b-safe__check { transform: scale(0.4); opacity: 0; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.6s + var(--k) * 0.3s), opacity 0.3s ease calc(0.6s + var(--k) * 0.3s); }
  .js .is-in .b-safe__list li { opacity: 1; }
  .js .is-in .b-safe__check { transform: none; opacity: 1; }
}

@media (max-width: 960px) {
  .b-safe__panel { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
}
@media (max-width: 600px) {
  .b-safe__list { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   WERKWIJZE: de cirkel (zie js/home/cycle.js)
   Desktop (.is-pin): de sectie blijft staan; scrollen laat het
   lichtpunt van stap naar stap reizen en wisselt de uitleg rechts.
   ============================================================ */
.b-cyc__head { display: grid; gap: 16px; margin-bottom: clamp(20px, 3vh, 40px); }
.b-cyc .h-title { font-size: clamp(34px, min(4.6vw, 7.5vh), 76px); }
.b-cyc__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px); align-items: center;
}

/* de ring */
.b-cyc__ring {
  position: relative; justify-self: center;
  width: min(520px, 60vh, 100%); aspect-ratio: 1;
}
.b-cyc__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.b-cyc__track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; stroke-dasharray: 2 8; }
.b-cyc__arc { fill: none; stroke: url(#gradCyc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.b-cyc__comet { fill: #fff; }
.b-cyc__comet-glow { opacity: 0.9; }
.b-cyc__center {
  position: absolute; inset: 22%; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 4px;
  background: radial-gradient(circle, rgba(109, 92, 255, 0.18), transparent 70%);
}
.b-cyc__bignum {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(64px, min(9vw, 15vh), 140px); letter-spacing: -0.06em; line-height: 0.9;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.b-cyc__bigname { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 243, 247, 0.85); }
.b-cyc__bignum.is-swap, .b-cyc__bigname.is-swap { animation: cycSwap 0.6s var(--ease-out); }
@keyframes cycSwap { from { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* de stappen op de ring */
.b-cyc__nodes { position: absolute; inset: 0; }
.b-cyc__nodes button {
  position: absolute; left: 50%; top: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 12, 26, 0.92); color: #fff;
  font-family: var(--mono); font-size: 14px;
  transition: transform 0.5s var(--ease-out), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.b-cyc__nodes button em {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-style: normal; font-family: var(--font-display); font-size: 14px; font-weight: 500;
  white-space: nowrap; color: rgba(242, 243, 247, 0.7);
  transition: color 0.3s ease;
}
.b-cyc__nodes button:hover { transform: scale(1.08); border-color: rgba(0, 229, 255, 0.7); }
.b-cyc__nodes button.is-done { border-color: rgba(0, 229, 255, 0.6); }
.b-cyc__nodes button.is-active {
  transform: scale(1.22); border-color: transparent; color: #05050a;
  background: var(--grad);
  box-shadow: 0 0 0 8px rgba(0, 229, 255, 0.14), 0 0 40px rgba(0, 229, 255, 0.45);
}
.b-cyc__nodes button.is-active em { color: #fff; }
.b-cyc__nodes button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }

/* uitleg per stap */
.b-cyc__panels { position: relative; min-height: clamp(380px, 52vh, 480px); }
.b-cyc__panel {
  position: absolute; inset: 0 0 auto 0;
  display: grid; gap: 14px; align-content: start;
  opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity 0.5s ease, transform 0.7s var(--ease-out);
}
.b-cyc__panel.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.12s; }
.b-cyc__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.b-cyc__panel h3 { font-size: clamp(40px, 4.6vw, 72px); letter-spacing: -0.05em; line-height: 0.95; }
.b-cyc__panel > p:not(.b-cyc__kicker) { font-size: 17px; line-height: 1.6; color: rgba(242, 243, 247, 0.82); max-width: 520px; }
.b-cyc__panel--loop h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* mini-animaties per stap (lopen als het paneel actief wordt) */
.b-viz { position: relative; margin-top: 10px; min-height: 160px; }
.b-viz span, .b-viz i, .b-viz b, .b-viz__problem, .b-viz__win, .b-viz__btn { opacity: 1; }

/* 1. citaten van de werkvloer */
.b-viz--quotes { display: grid; gap: 10px; justify-items: start; }
.b-viz--quotes span {
  padding: 10px 16px; border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
}
.b-viz--quotes span:nth-child(2) { margin-left: 40px; }
.b-viz--quotes span:nth-child(3) { margin-left: 14px; }

/* 2. losse signalen worden één probleemstelling */
.b-viz__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.b-viz__chips i {
  font-style: normal; font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.3); color: rgba(242, 243, 247, 0.8);
}
.b-viz__problem {
  margin-top: 16px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(109, 92, 255, 0.35), rgba(0, 229, 255, 0.2));
  border: 1px solid rgba(0, 229, 255, 0.4);
  font-family: var(--font-display); font-size: 18px; line-height: 1.35;
}
.b-viz__problem small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 243, 247, 0.75); margin-bottom: 6px; }

/* 3. ideeënbriefjes */
.b-viz--ideas { display: flex; flex-wrap: wrap; gap: 12px; }
.b-viz--ideas span {
  padding: 14px 16px; border-radius: 6px; width: 46%;
  background: #f4f4f8; color: #14142a;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  transform: rotate(var(--r));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.b-viz--ideas span:nth-child(2) { background: #c9f6ff; }
.b-viz--ideas span:nth-child(3) { background: #ddd6ff; }

/* 4. prototype dat zich opbouwt */
.b-viz__win {
  max-width: 420px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05);
}
.b-viz__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, 0.06); }
.b-viz__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.b-viz__bar small { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.b-viz__rows { display: grid; gap: 9px; padding: 16px 16px 6px; }
.b-viz__rows b { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); transform-origin: left; }
.b-viz__rows b:nth-child(1) { width: 70%; } .b-viz__rows b:nth-child(2) { width: 92%; }
.b-viz__rows b:nth-child(3) { width: 56%; } .b-viz__rows b:nth-child(4) { width: 80%; }
.b-viz__btn {
  margin: 10px 16px 16px; display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--grad); color: #05050a; font-family: var(--font-display); font-weight: 600; font-size: 13px;
}

/* 5. test-checklist */
.b-viz--test { display: grid; gap: 10px; }
.b-viz--test span {
  position: relative; padding: 12px 14px 12px 46px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
}
.b-viz--test span::before {
  content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #6ee7a8; color: #05140c; font-size: 13px; font-weight: 700;
}
.b-viz--test span.is-fix::before { content: "↻"; background: #ffd27a; color: #2a1c00; }

@media (prefers-reduced-motion: no-preference) {
  .is-active .b-viz--quotes span { animation: vizIn 0.6s var(--ease-out) both; animation-delay: calc(0.3s + var(--k) * 0.45s); }
  .is-active .b-viz__chips i { animation: vizChip 2.2s var(--ease-out) both; animation-delay: 0.2s; }
  .is-active .b-viz__problem { animation: vizIn 0.7s var(--ease-out) both; animation-delay: 1.2s; }
  .is-active .b-viz--ideas span { animation: vizNote 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(0.25s + var(--k) * 0.25s); }
  .is-active .b-viz__win { animation: vizIn 0.6s var(--ease-out) both; animation-delay: 0.2s; }
  .is-active .b-viz__rows b { animation: vizRow 0.7s var(--ease-out) both; animation-delay: calc(0.6s + var(--k) * 0.25s); }
  .is-active .b-viz__btn { animation: vizIn 0.5s var(--ease-out) both, vizGlow 2s ease-in-out 2.2s infinite; animation-delay: 1.8s, 2.3s; }
  .is-active .b-viz--test span { animation: vizIn 0.5s var(--ease-out) both; animation-delay: calc(0.3s + var(--k) * 0.5s); }
  .is-active .b-viz--test span::before { animation: vizTick 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(0.6s + var(--k) * 0.5s); }
}
@keyframes vizIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vizChip { 0% { opacity: 0; transform: translateY(-8px); } 25%, 55% { opacity: 1; transform: none; } 100% { opacity: 0.35; transform: translateY(6px) scale(0.96); } }
@keyframes vizNote { from { opacity: 0; transform: translateY(20px) rotate(calc(var(--r) * 3)) scale(0.8); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes vizRow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vizGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); } 50% { box-shadow: 0 0 22px rgba(0, 229, 255, 0.55); } }
@keyframes vizTick { from { transform: translateY(-50%) scale(0); } to { transform: translateY(-50%) scale(1); } }

.b-cyc.is-pin { height: 640vh; padding: 0; }
.b-cyc.is-pin .b-cyc__sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
}
.b-cyc.is-pin .b-cyc__sticky > .h-wrap { width: 100%; }

/* zonder vastzetten (mobiel, minder beweging): ring bovenaan, alle stappen onder elkaar */
.b-cyc:not(.is-pin) .b-cyc__stage { grid-template-columns: minmax(0, 1fr); }
.b-cyc:not(.is-pin) .b-cyc__ring { width: min(340px, 86vw); }
.b-cyc:not(.is-pin) .b-cyc__panels { min-height: 0; display: grid; gap: 44px; }
.b-cyc:not(.is-pin) .b-cyc__panel { position: static; opacity: 1; transform: none; pointer-events: auto; }
.b-cyc:not(.is-pin) .b-cyc__panel h3 { font-size: clamp(32px, 9vw, 48px); }
.b-cyc:not(.is-pin) .b-cyc__nodes button em { display: none; }
@media (max-width: 600px) {
  .b-viz--ideas span { width: 100%; }
}
