/* ==========================================================================
   ProntoCore — Homepage
   ========================================================================== */

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

/* Header & FAB wachten op de intro */
html.is-loading:not(.is-intro) .announce,
html.is-loading:not(.is-intro) .site-header {
  opacity: 0;
  transform: translateY(-24px);
}

html.is-intro .announce,
html.is-intro .site-header {
  transition: opacity 1s var(--ease-out) 0.55s, transform 1.2s var(--ease-out) 0.55s;
}

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  --cx: 50vw;
  --cy: calc(var(--core-y) * 1vh);
  --hole: 0px;
  position: fixed;
  inset: 0;
  z-index: 9900;
  overflow: hidden;
  color: var(--bone-50);
  background:
    radial-gradient(800px 560px at 50% calc(var(--core-y) * 1%), rgba(255, 91, 31, 0.07), transparent 62%),
    var(--ink-950);
}

.loader.is-revealing {
  -webkit-mask: radial-gradient(circle at var(--cx) var(--cy), transparent var(--hole), #000 calc(var(--hole) + 1.5px));
  mask: radial-gradient(circle at var(--cx) var(--cy), transparent var(--hole), #000 calc(var(--hole) + 1.5px));
}

.loader__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 180, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 180, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 50% calc(var(--core-y) * 1%);
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% calc(var(--core-y) * 1%), #000 0%, transparent 75%);
  mask: radial-gradient(ellipse 70% 60% at 50% calc(var(--core-y) * 1%), #000 0%, transparent 75%);
  animation: loader-grid 3s var(--ease-out) both;
}

@keyframes loader-grid {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: none; }
}

.loader__top {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.loader__meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-4);
  animation: fade-in 1s var(--ease-out) 0.2s both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 520px) {
  .loader__meta--r {
    display: none;
  }
}

.loader__center {
  position: absolute;
  left: 50%;
  top: calc(var(--core-y) * 1%);
  width: clamp(150px, 40vw, 212px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.loader__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.9s var(--ease-out), opacity 0.6s;
  animation: loader-ring-in 1.2s var(--ease-out) both;
}

@keyframes loader-ring-in {
  from { opacity: 0; transform: scale(0.85) rotate(-30deg); }
  to { opacity: 1; transform: none; }
}

.loader__track {
  fill: none;
  stroke: rgba(143, 180, 255, 0.12);
  stroke-width: 0.6;
}

.loader__ticks line {
  stroke: rgba(143, 180, 255, 0.16);
  stroke-width: 1;
  stroke-linecap: round;
  transition: stroke 0.4s;
}

.loader__ticks line.on {
  stroke: var(--plasma-300);
}

.loader__progress {
  fill: none;
  stroke: var(--plasma-500);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: 100px 100px;
  filter: drop-shadow(0 0 4px rgba(255, 91, 31, 0.9));
}

.loader__orbit {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s;
}

.loader__orbit i {
  position: absolute;
  left: 50%;
  top: 7%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--plasma-300), 0 0 18px var(--plasma-500);
}

.loader__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
}

.loader__core i,
.loader__core::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.loader__core i {
  background: radial-gradient(circle at 42% 38%, #fff 0%, #FFE3C2 30%, #FFB36B 55%, #FF5B1F 100%);
  box-shadow: 0 0 14px 2px rgba(255, 91, 31, 0.95), 0 0 40px 8px rgba(255, 91, 31, 0.45), 0 0 90px 20px rgba(255, 91, 31, 0.18);
  animation: loader-core 1.8s ease-in-out infinite;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.loader__core::before {
  content: "";
  inset: -22px;
  border: 1px solid rgba(255, 179, 107, 0.35);
  animation: loader-core-ring 2.2s var(--ease-out) infinite;
}

@keyframes loader-core {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.78); }
}

@keyframes loader-core-ring {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.loader__word {
  position: absolute;
  left: 50%;
  top: calc(var(--core-y) * 1% + clamp(106px, 25vw, 150px));
  transform: translateX(-50%);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.56em;
  margin-right: -0.56em;
  white-space: nowrap;
  animation: loader-word 1.4s var(--ease-out) 0.35s both;
  transition: opacity 0.5s, letter-spacing 1s var(--ease-out);
}

.loader__word span {
  font-weight: 300;
  color: var(--plasma-300);
}

@keyframes loader-word {
  from { opacity: 0; letter-spacing: 1.2em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: 0.56em; filter: blur(0); }
}

.loader__bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  transition: opacity 0.5s, transform 0.8s var(--ease-out);
}

.loader__log {
  display: grid;
  gap: 5px;
  min-height: 70px;
  align-content: end;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plasma-200);
}

.loader__log li {
  animation: log-in 0.5s var(--ease-out) both;
  transition: opacity 0.4s, color 0.4s;
}

.loader__log li.is-old {
  opacity: 0.38;
  color: var(--text-3);
}

@keyframes log-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.loader__count {
  display: flex;
  align-items: flex-start;
  font-size: clamp(3.6rem, 16vw, 9.5rem);
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--bone-50);
}

.loader__count sup {
  margin-left: 6px;
  font-size: 0.22em;
  font-family: var(--font-mono);
  letter-spacing: 0;
  color: var(--plasma-400);
  line-height: 1;
  top: 0;
}

.loader__rim {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(255, 196, 140, 0.95);
  box-shadow: 0 0 24px 4px rgba(255, 91, 31, 0.85), 0 0 80px 20px rgba(255, 91, 31, 0.35);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

/* afronding */
.loader.is-complete .loader__progress {
  stroke: #FFE3C2;
  filter: drop-shadow(0 0 8px rgba(255, 179, 107, 1));
}

.loader.is-complete .loader__ticks line {
  stroke: var(--plasma-200);
}

.loader.is-igniting .loader__ring {
  transform: scale(0.35) rotate(90deg);
  opacity: 0;
}

.loader.is-igniting .loader__orbit {
  opacity: 0;
}

.loader.is-igniting .loader__core i {
  animation: none;
  transform: scale(2.6);
  box-shadow: 0 0 20px 6px rgba(255, 179, 107, 1), 0 0 70px 24px rgba(255, 91, 31, 0.7), 0 0 160px 60px rgba(255, 91, 31, 0.3);
}

.loader.is-igniting .loader__core::before {
  animation: none;
  opacity: 0;
}

.loader.is-igniting .loader__word {
  opacity: 0;
  letter-spacing: 1em;
}

.loader.is-igniting .loader__bottom {
  opacity: 0;
  transform: translateY(20px);
}

.loader.is-igniting .loader__top {
  opacity: 0;
  transition: opacity 0.4s;
}

/* ---------------- Eenvoudig laadscherm (telefoons, lichte niveaus) ----------------
   Ring + kern + woordmerk + klein percentage. Geen raster-masker, geen 72 tikken,
   geen blur/letterspatiëring-animatie, en een fade i.p.v. een portaal-masker. */
html.fx-loader-instant .loader {
  display: none;
}

html.fx-loader-simple .loader__grid,
html.fx-loader-simple .loader__ticks,
html.fx-loader-simple .loader__orbit,
html.fx-loader-simple .loader__log,
html.fx-loader-simple .loader__rim,
html.fx-loader-simple .loader__meta--r {
  display: none;
}

html.fx-loader-simple .loader {
  background: radial-gradient(70vmax 50vmax at 50% calc(var(--core-y) * 1%), rgba(255, 91, 31, 0.06), transparent 62%), var(--ink-950);
  transition: opacity 0.55s var(--ease-out);
}

html.fx-loader-simple .loader__center {
  width: clamp(120px, 34vw, 170px);
  transition: transform 0.6s var(--ease-out);
}

html.fx-loader-simple .loader__progress,
html.fx-loader-simple .loader.is-complete .loader__progress {
  filter: none;
  stroke-width: 1.4;
}

html.fx-loader-simple .loader__word {
  top: calc(var(--core-y) * 1% + clamp(88px, 22vw, 120px));
  font-size: 0.75rem;
  animation: loader-word-lite 0.9s var(--ease-out) 0.1s both;
}

@keyframes loader-word-lite {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

html.fx-loader-simple .loader__bottom {
  left: 0;
  right: 0;
  justify-content: center;
  bottom: calc(34px + env(safe-area-inset-bottom));
}

html.fx-loader-simple .loader__count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.3em;
  color: var(--text-3);
}

html.fx-loader-simple .loader__count sup {
  font-size: 1em;
  margin-left: 2px;
  color: var(--plasma-400);
}

html.fx-loader-simple .loader.is-igniting .loader__ring {
  transform: scale(0.6);
  opacity: 0;
}

html.fx-loader-simple .loader__core i {
  transition: transform 0.5s var(--ease-out);
}

html.fx-loader-simple .loader.is-igniting .loader__core i {
  transform: scale(2.2);
  box-shadow: 0 0 14px 2px rgba(255, 91, 31, 0.95), 0 0 40px 8px rgba(255, 91, 31, 0.45), 0 0 90px 20px rgba(255, 91, 31, 0.18);
}

html.fx-loader-simple .loader.is-fading {
  opacity: 0;
  pointer-events: none;
}

html.fx-loader-simple .loader.is-fading .loader__center {
  transform: translate(-50%, -50%) scale(1.35);
}

/* ==========================================================================
   HERO — The Core
   De WebGL-animatie is de hoofdrol. Tekst is klein, technisch (mono) en staat
   als HUD-paneel in de hoek — nooit over de kern heen.
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-950);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 125% 95% at 50% calc(var(--core-y) * 1%), transparent 52%, rgba(5, 6, 11, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 6, 11, 0.55) 0%, transparent 16%, transparent 72%, rgba(5, 6, 11, 0.55) 100%),
    radial-gradient(760px 380px at 0% 100%, rgba(5, 6, 11, 0.78), transparent 70%);
}

/* CSS-kern: zonder WebGL (niveau 0–1, of als WebGL faalt).
   Zelfde beeld als de deeltjeskern — gloeiende kern, schil met randlicht en
   drie banen — maar alleen transform/opacity-animaties (GPU, geen herschilderen). */
.hero__fallback {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(var(--core-y) * 1%);
  width: min(74vw, 440px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(1 - var(--hold, 0) * 0.72));
  perspective: 900px;
  z-index: 0;
  pointer-events: none;
}

.hero.no-webgl .hero__fallback {
  display: block;
  animation: css-core-in 1.6s var(--ease-out) both;
}

/* na het uitschakelen van WebGL geen bevroren laatste beeld laten staan */
.hero.no-webgl .hero__canvas {
  visibility: hidden;
}

@keyframes css-core-in {
  from { opacity: 0; }
}

.hero__fallback i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* halo */
.hero__fallback i:nth-child(1) {
  inset: -18%;
  background: radial-gradient(circle, rgba(255, 91, 31, 0.2) 0%, rgba(255, 91, 31, 0.07) 32%, transparent 62%);
}

/* schil met randlicht (zoals de rim van de deeltjesbol) */
.hero__fallback i:nth-child(2) {
  inset: 21%;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(143, 180, 255, 0.07) 64%, rgba(255, 122, 61, 0.34) 69.5%, rgba(255, 179, 107, 0.12) 71%, transparent 72%),
    radial-gradient(circle at 50% 50%, rgba(143, 180, 255, 0.06), transparent 70%);
}

/* baan A — getint, met een lichtpunt */
.hero__fallback i:nth-child(3) {
  inset: 9%;
  border: 1px solid rgba(143, 180, 255, 0.2);
  border-top-color: rgba(255, 196, 140, 0.75);
  transform: rotateX(72deg) rotateY(-14deg);
  animation: css-orbit-a 18s linear infinite;
}

/* baan B — gestippeld, andere kanteling */
.hero__fallback i:nth-child(4) {
  inset: 1%;
  border: 1px dashed rgba(143, 180, 255, 0.16);
  transform: rotateX(76deg) rotateY(26deg);
  animation: css-orbit-b 34s linear infinite;
}

/* de kern zelf */
.hero__fallback i:nth-child(5) {
  inset: 42%;
  background: radial-gradient(circle at 44% 40%, #fff 0%, #FFE3C2 16%, #FFB36B 32%, #FF5B1F 52%, rgba(255, 91, 31, 0.35) 64%, transparent 74%);
  box-shadow: 0 0 60px 18px rgba(255, 91, 31, 0.28);
  animation: loader-core 3.2s ease-in-out infinite;
}

@keyframes css-orbit-a {
  to { transform: rotateX(72deg) rotateY(-14deg) rotateZ(360deg); }
}

@keyframes css-orbit-b {
  to { transform: rotateX(76deg) rotateY(26deg) rotateZ(-360deg); }
}

/* niveau 0: stilstaand beeld */
html.fx-static .hero__fallback,
html.fx-static .hero__fallback i {
  animation: none !important;
}

/* ---------------- Satellieten (disciplines op de baan) ---------------- */
.hero__tags {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.orbit-tag {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 0;
  margin: -12px 0 0 -3.5px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-100);
  white-space: nowrap;
  opacity: 0;
  pointer-events: auto;
  will-change: transform, opacity;
  transition: color 0.3s;
}

.orbit-tag i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice-300);
  box-shadow: 0 0 10px var(--ice-400);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.orbit-tag s {
  flex: none;
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 208, 255, 0.7), rgba(185, 208, 255, 0.1));
}

.orbit-tag:hover,
.orbit-tag:focus-visible {
  color: var(--plasma-200);
}

.orbit-tag:hover i,
.orbit-tag:focus-visible i {
  background: var(--plasma-400);
  box-shadow: 0 0 12px var(--plasma-500);
}

.orbit-tag.is-behind {
  color: var(--text-4);
}

@media (max-width: 767px) {
  .orbit-tag {
    font-size: 0.5625rem;
    letter-spacing: 0.14em;
  }

  .orbit-tag s {
    width: 8px;
  }
}

/* ---------------- Technisch kader ---------------- */
.hero__frame {
  position: absolute;
  z-index: 2;
  inset: calc(var(--bar-h) + var(--header-h) + 8px) calc(var(--gutter) - 6px) 12px;
  pointer-events: none;
}

.hero__frame i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid rgba(143, 180, 255, 0.3);
}

.hero__frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero__frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero__frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero__frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------------- HUD ---------------- */
.hero__hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hud {
  position: absolute;
  display: grid;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-4);
}

.hud__k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
}

.hud__v {
  color: var(--text-4);
}

.hud__live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok-400);
  box-shadow: 0 0 8px var(--ok-400);
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

.hud--tl,
.hud--tr {
  display: none;
  top: calc(var(--bar-h) + var(--header-h) + 26px);
}

.hud--tl { left: calc(var(--gutter) + 18px); }
.hud--tr { right: calc(var(--gutter) + 18px); text-align: right; justify-items: end; }

.hud--scroll {
  display: none;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  justify-items: center;
  transform: translateX(-50%);
}

.hud__hint--touch { display: none; }
html.is-touch .hud__hint--touch { display: block; }
html.is-touch .hud__hint--pointer { display: none; }

.hud__scroll {
  position: relative;
  width: 1px;
  height: 34px;
  background: rgba(143, 180, 255, 0.18);
  overflow: hidden;
}

.hud__scroll i {
  position: absolute;
  left: -1px;
  width: 3px;
  height: 12px;
  border-radius: 3px;
  background: var(--plasma-400);
  box-shadow: 0 0 8px var(--plasma-500);
  animation: scroll-cue 2s var(--ease-in-out) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-14px); }
  100% { transform: translateY(40px); }
}

@media (min-width: 768px) {
  .hud--tl,
  .hud--tr {
    display: grid;
  }
}

@media (min-width: 1100px) {
  .hud--scroll {
    display: grid;
  }
}

/* ---------------- Tekstpaneel ---------------- */
.hero__panel {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(143, 180, 255, 0.18);
  transition: filter 0.6s var(--ease-out);
}

.hero__panel::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 30px;
  background: var(--plasma-400);
  box-shadow: 0 0 10px var(--plasma-500);
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero__title {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(1rem, 0.82rem + 0.7vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bone-50);
  text-wrap: balance;
}

.hero__arrow {
  color: var(--plasma-400);
  margin: 0 0.25em;
}

.hero__t2 {
  color: var(--plasma-300);
}

.hero__lead {
  max-width: 46ch;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text-3);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hbtn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243, 239, 232, 0.2);
  background: rgba(5, 6, 11, 0.45);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-100);
  white-space: nowrap;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.hbtn .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease-out);
}

.hbtn:hover {
  border-color: rgba(255, 122, 61, 0.7);
  color: var(--bone-50);
}

.hbtn:hover .icon {
  transform: translateX(3px);
}

.hbtn--primary {
  background: var(--plasma-500);
  border-color: var(--plasma-500);
  color: var(--ink-950);
  font-weight: 500;
  box-shadow: 0 0 24px -6px rgba(255, 91, 31, 0.7);
}

.hbtn--primary:hover {
  background: var(--plasma-400);
  border-color: var(--plasma-400);
  color: var(--ink-950);
  box-shadow: 0 0 30px -4px rgba(255, 91, 31, 0.85);
}

@media (min-width: 768px) {
  .hero__panel {
    right: auto;
    width: min(480px, 42vw);
    bottom: calc(34px + env(safe-area-inset-bottom));
    left: calc(var(--gutter) + 18px);
  }

  .hbtn {
    flex: 0 0 auto;
    height: 42px;
  }

  .hero__kicker {
    font-size: 0.625rem;
  }

  .hero__lead {
    font-size: 0.75rem;
  }
}

@media (max-height: 640px) and (max-width: 767px) {
  .hero__lead {
    display: none;
  }
}

/* ---------------- Vasthouden-hint ---------------- */
.hero__holdhint {
  position: absolute;
  z-index: 3;
  top: calc(var(--bar-h) + var(--header-h) + 14px);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.hero__holdring {
  width: 34px;
  height: 34px;
  transform: rotate(-90deg);
  flex: none;
}

.hero__holdring circle {
  fill: none;
  stroke: rgba(143, 180, 255, 0.22);
  stroke-width: 1.2;
}

.hero__holdring .hero__holdring-fill {
  stroke: var(--plasma-400);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--hold, 0));
}

.hero__holdring .hero__holdring-core {
  fill: var(--plasma-500);
  stroke: none;
  transform-origin: 20px 20px;
  animation: core-breathe 2.4s ease-in-out infinite;
}

.hero__holdtext {
  display: grid;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__holdtext b {
  font-weight: 400;
  color: var(--text-2);
}

.hero__holdtext small {
  font-size: 0.625rem;
  color: var(--text-4);
}

@media (min-width: 768px) {
  .hero__holdhint {
    top: auto;
    right: calc(var(--gutter) + 80px);
    bottom: calc(34px + env(safe-area-inset-bottom));
    flex-direction: row-reverse;
    text-align: right;
  }

  .hero__holdring {
    width: 40px;
    height: 40px;
  }

  .hero__holdtext {
    font-size: 0.625rem;
  }

  .hero__holdtext small {
    font-size: 0.625rem;
  }
}

/* ---------------- Vasthouden: uitlezing ---------------- */
.hero__hold {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(var(--core-y) * 1%);
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, calc(-50% + clamp(140px, 23svh, 250px)));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.hero__hold-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--plasma-300);
}

.hero__hold-time {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone-50);
  text-shadow: 0 0 30px rgba(255, 91, 31, 0.6);
}

.hero.is-holding .hero__hold,
.hero.is-released .hero__hold {
  opacity: 1;
}

.hero.is-holding .hero__panel {
  filter: blur(3px) brightness(0.3);
}

/* telefoons/zwakkere pc's: zelfde dimmen, maar met opacity i.p.v. een blur-filter */
html.fx-no-glow .hero.is-holding .hero__panel {
  filter: none;
}

html.fx-no-glow .hero.is-intro-done .hero__panel > * {
  transition: opacity 0.5s var(--ease-out);
}

html.fx-no-glow .hero.is-holding .hero__panel > * {
  opacity: 0.22 !important;
}

.hero.is-released .hero__hold-time {
  color: var(--plasma-200);
}

/* ---------------- Intro-staat ---------------- */
.js .hero .hero__panel > *,
.js .hero .hero__hud .hud,
.js .hero .hero__frame i,
.js .hero .hero__holdhint {
  opacity: 0;
}

/* LCP: de introtekst begint net boven 0. Een element dat bij de eerste weergave op 0 staat,
   telt Chrome nooit mee — dan wordt de wisselende aankondigingsbalk het LCP-element. */
.js .hero .hero__panel > .hero__lead {
  opacity: 0.01;
}

.no-gsap .loader {
  display: none;
}

.no-gsap .hero .hero__panel > *,
.no-gsap .hero .hero__hud .hud,
.no-gsap .hero .hero__frame i,
.no-gsap .hero .hero__holdhint {
  opacity: 1 !important;
}

/* ==========================================================================
   RACE
   ========================================================================== */
.race {
  position: relative;
  background:
    radial-gradient(1000px 600px at 80% 0%, rgba(143, 180, 255, 0.05), transparent 60%),
    var(--ink-950);
}

.race__intro {
  padding-top: var(--section-y);
  padding-bottom: clamp(60px, 8vw, 120px);
  display: grid;
  gap: 28px;
}

.race__statement {
  font-size: clamp(1.6rem, 0.9rem + 3.1vw, 4.1rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.038em;
  max-width: 24ch;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .race__statement {
    max-width: 30ch;
  }
}

.race__statement em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.race__pin {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header-h) * 0.6) 40px;
}

.race__stage {
  display: grid;
  gap: clamp(22px, 4svh, 44px);
}

.race__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.race__head > div {
  display: grid;
  gap: 16px;
}

.race__title {
  font-size: var(--fs-h2);
}

.race__clock {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: none;
}

.race__clock-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-4);
}

.race__clock-time {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.6rem);
  line-height: 1;
  color: var(--plasma-300);
  text-shadow: 0 0 30px rgba(255, 91, 31, 0.45);
}

.race__board {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 44px 0 6px;
}

.race__axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 20px;
}

.race__axis span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--text-4);
}

.race__axis span:first-child {
  transform: none;
}

.race__axis span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 1px;
  height: 200px;
  background: linear-gradient(180deg, rgba(143, 180, 255, 0.1), transparent);
}

.race__axis span:first-child::after {
  left: 0;
}

.lane {
  display: grid;
  gap: 10px;
}

.lane__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.lane__name {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lane--manual .lane__name {
  color: var(--text-2);
}

.lane--pc .lane__name {
  color: var(--plasma-300);
}

.lane__stat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.lane__track {
  position: relative;
  height: clamp(40px, 6svh, 56px);
  border-radius: 12px;
  background: rgba(17, 21, 34, 0.7);
  border: 1px solid rgba(143, 180, 255, 0.07);
  overflow: hidden;
}

.lane__block {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(143, 180, 255, 0.05);
  border: 1px solid rgba(143, 180, 255, 0.1);
}

.lane__block b {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--f, 0));
}

.lane--manual .lane__block b {
  background: linear-gradient(90deg, rgba(110, 151, 245, 0.35), rgba(143, 180, 255, 0.55));
}

.lane--pc .lane__block {
  border-color: rgba(255, 122, 61, 0.4);
}

.lane--pc .lane__block b {
  background: var(--grad-plasma);
  box-shadow: 0 0 16px rgba(255, 91, 31, 0.7);
}

.lane__block span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  white-space: nowrap;
  color: var(--bone-50);
  opacity: 0;
  transition: opacity 0.3s;
}

@media (min-width: 900px) {
  .lane--manual .lane__block span {
    opacity: 0.9;
  }
}

.lane__free {
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 6px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding-inline: 14px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 91, 31, 0.1) 0 10px, rgba(255, 91, 31, 0.03) 10px 20px);
  border: 1px dashed rgba(255, 122, 61, 0.45);
  clip-path: inset(0 100% 0 0);
  overflow: hidden;
}

.lane__free-label {
  font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.9rem);
  color: var(--plasma-200);
  white-space: nowrap;
}

.lane__free-label b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--bone-50);
}

@media (max-width: 699px) {
  .lane__free-more {
    display: none;
  }

  .race__pin {
    padding-top: calc(var(--header-h) + 10px);
  }
}

.race__now {
  position: absolute;
  top: 26px;
  bottom: 0;
  left: 0;
  width: 2px;
  margin-left: -1px;
  transform: translateX(var(--now, 0px));
  background: linear-gradient(180deg, var(--plasma-300), var(--plasma-500) 60%, transparent);
  box-shadow: 0 0 14px rgba(255, 91, 31, 0.8);
  pointer-events: none;
}

.race__now i {
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--plasma-400);
}

.race__tasks {
  display: grid;
  border-top: 1px solid var(--line);
}

.race__tasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(0.84rem, 0.8rem + 0.2vw, 1rem);
  color: var(--text-3);
  transition: color 0.4s;
}

.race__tasks li.is-active {
  color: var(--bone-50);
}

.race__tasks li.is-done .race__task-name {
  color: var(--text-2);
}

.race__task-times {
  display: inline-flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.race__task-times s {
  color: var(--text-4);
}

.race__task-times b {
  font-weight: 500;
  color: var(--plasma-300);
}

@media (min-width: 900px) {
  .race__tasks {
    grid-template-columns: repeat(5, 1fr);
    border-top: 0;
    gap: 14px;
  }

  .race__tasks li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line);
    transition: color 0.4s, border-color 0.4s;
  }

  .race__tasks li.is-active {
    border-top-color: var(--plasma-500);
  }
}

@media (max-height: 700px) and (max-width: 899px) {
  .race:not(.race--auto) .race__tasks li:nth-child(n + 4) {
    display: none;
  }
}

/* ---------------- Race op de telefoon: timelapse met finale ---------------- */
.race--auto .race__pin {
  min-height: 0;
  padding-block: 8px clamp(64px, 12vw, 110px);
}

.race--auto .lane__track {
  isolation: isolate;
}

/* lichtstreep die één keer over de ProntoCore-baan glijdt */
.race--auto .lane--pc .lane__track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  z-index: 2;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 211, 168, 0) 20%, rgba(255, 211, 168, 0.34) 50%, rgba(255, 211, 168, 0) 80%, transparent 100%);
  transform: translateX(-110%);
  pointer-events: none;
}

.race--auto.is-finished .lane--pc .lane__track::after {
  animation: race-sweep 1.5s var(--ease-out) 0.1s both;
}

@keyframes race-sweep {
  to { transform: translateX(200%); }
}

/* pulsring rond de kop van de nu-lijn */
.race--auto .race__now i::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--plasma-300);
  opacity: 0;
}

.race--auto.is-finished .race__now i::after {
  animation: race-ping 1.3s var(--ease-out) 2;
}

@keyframes race-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* de klok tikt aan en wordt wit: werkdag voorbij */
.race--auto .race__clock-time {
  display: inline-block;
  transition: color 0.6s;
}

.race--auto.is-finished .race__clock-time {
  color: var(--bone-50);
  animation: race-tick 0.7s var(--ease-spring);
}

@keyframes race-tick {
  35% { transform: scale(1.09); }
}

/* het vrije blok licht op */
.race--auto .lane__free {
  transition: border-color 0.6s, box-shadow 0.6s;
}

.race--auto.is-finished .lane__free {
  border-color: rgba(255, 179, 107, 0.85);
  box-shadow: inset 0 0 18px rgba(255, 91, 31, 0.18);
}

.race--auto .lane__free-label b {
  font-variant-numeric: tabular-nums;
}

/* opnieuw afspelen */
.race__replay {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: -8px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease-out) 0.6s, transform 0.5s var(--ease-out) 0.6s, color 0.3s;
}

.race__replay .icon {
  width: 16px;
  height: 16px;
  color: var(--plasma-400);
  transition: transform 0.6s var(--ease-out);
}

.race--auto.is-finished .race__replay {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.race__replay:hover,
.race__replay:focus-visible {
  color: var(--bone-50);
}

.race__replay:active .icon {
  transform: rotate(-120deg);
}

/* ==========================================================================
   COLLAPSE — tien stappen, één klik
   ========================================================================== */
.collapse {
  position: relative;
  background:
    radial-gradient(900px 700px at 50% 60%, rgba(255, 91, 31, 0.06), transparent 60%),
    var(--ink-950);
}

.collapse__pin {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) * 0.5 + 24px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.collapse__head {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.collapse__title {
  font-size: var(--fs-h2);
}

.collapse__stage {
  position: relative;
}

.collapse__cards {
  position: absolute;
  inset: 0;
}

.step-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(280px, 74vw);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  margin: -24px 0 0 calc(min(280px, 74vw) / -2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 27, 42, 0.95), rgba(12, 15, 24, 0.95));
  border: 1px solid rgba(143, 180, 255, 0.12);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  font-size: 0.8125rem;
  will-change: transform, opacity;
}

.step-card__n {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--plasma-400);
}

.step-card__t {
  color: var(--bone-100);
  line-height: 1.25;
}

.step-card__m {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  white-space: nowrap;
}

.collapse__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  opacity: 0;
  /* eigen laag: de gloed wordt één keer getekend en daarna alleen geschaald */
  will-change: transform, opacity;
}

.collapse__core i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff, #FFB36B 45%, #FF5B1F);
  box-shadow: 0 0 20px 4px rgba(255, 91, 31, 0.9), 0 0 80px 20px rgba(255, 91, 31, 0.35);
}

.collapse__button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 30px 0 12px;
  border-radius: var(--radius-pill);
  transform: translate(-50%, -50%) scale(0);
  background: var(--grad-plasma);
  color: var(--ink-950);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  box-shadow: 0 0 0 10px rgba(255, 91, 31, 0.12), 0 0 60px rgba(255, 91, 31, 0.6);
  pointer-events: none;
  will-change: transform;
}

.collapse__button-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-950);
  color: var(--plasma-300);
}

.collapse__button-icon .icon {
  width: 20px;
  height: 20px;
}

.collapse__meter {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.collapse__timer {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.collapse__timer-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-4);
}

.collapse__timer-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 1.3rem + 3.2vw, 4.2rem);
  line-height: 1;
  color: var(--bone-50);
}

.collapse__after {
  max-width: 40ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.7rem);
  line-height: 1.3;
  color: var(--text-2);
  opacity: 0;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  position: relative;
  padding-block: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(255, 91, 31, 0.05), transparent 70%),
    var(--ink-950);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 20px;
}

.stat {
  display: grid;
  align-content: start;
  gap: 10px;
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(3.2rem, 1.6rem + 6vw, 7.8rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.stat__unit {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  letter-spacing: -0.01em;
  color: var(--plasma-300);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-100);
}

.stat__text {
  font-size: 0.875rem;
  color: var(--text-3);
  max-width: 30ch;
}

@media (min-width: 1000px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .stat {
    padding: 0 clamp(20px, 2.4vw, 40px);
    border-left: 1px solid var(--line);
  }

  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ==========================================================================
   DIVISIONS
   ========================================================================== */
.divisions {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: clamp(60px, 8vw, 120px);
}

.divisions__track {
  display: grid;
  gap: 18px;
  padding-inline: var(--gutter);
}

.division {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(22px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(143, 180, 255, 0.09);
  background:
    radial-gradient(700px 500px at 100% 100%, rgba(255, 91, 31, 0.07), transparent 60%),
    linear-gradient(160deg, rgba(22, 27, 42, 0.8), rgba(8, 10, 18, 0.9));
  overflow: hidden;
}

.division::before {
  content: attr(data-num);
  position: absolute;
}

.division__info {
  display: grid;
  align-content: start;
  gap: 18px;
}

.division__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--plasma-400);
}

.division__num i {
  font-style: normal;
  color: var(--text-4);
}

.division__name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-3);
}

.division__tagline {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 14ch;
}

.division__tagline em {
  color: var(--plasma-300);
}

.division__desc {
  color: var(--text-2);
  max-width: 46ch;
}

.division__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.division__info .link-line {
  justify-self: start;
  margin-top: 6px;
}

.division__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(143, 180, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(143, 180, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 50% 50%, rgba(255, 91, 31, 0.08), transparent 70%),
    var(--ink-900);
  border: 1px solid rgba(143, 180, 255, 0.07);
  overflow: hidden;
  padding: 20px;
}

.divisions__progress {
  display: flex;
  align-items: center;
  gap: 20px;
}

.divisions__progress-bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divisions__progress-bar i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--plasma-600), var(--plasma-300));
  box-shadow: 0 0 10px rgba(255, 91, 31, 0.6);
}

.divisions__progress-label {
  color: var(--text-3);
}

.divisions__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-4);
  transition: opacity 0.5s;
}

.divisions__hint .icon {
  width: 14px;
  height: 14px;
  color: var(--plasma-400);
}

.divisions.is-swiped .divisions__hint {
  opacity: 0;
}

/* Telefoon & tablet: dezelfde reis als op desktop (horizontaal door de zeven
   disciplines), maar native vegen met snap — geen scroll-kaping, geen JS per frame.
   Demo's in kaarten buiten beeld pauzeren vanzelf. */
@media (max-width: 1023px) {
  .divisions__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(86vw, 560px);
    gap: 12px;
    padding: 4px var(--gutter) 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .divisions__track::-webkit-scrollbar {
    display: none;
  }

  .division {
    align-content: start;
    gap: 22px;
    padding: 20px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* vaste hoogte: alle kaarten even hoog en de chat-demo kan niet meer "meegroeien" */
  .division__visual {
    order: -1;
    height: 360px;
    min-height: 0;
    padding: 14px;
  }

  .division .demo--chat {
    height: 100%;
    min-height: 0;
  }

  .division__info {
    gap: 14px;
  }

  .division__desc {
    font-size: 0.9375rem;
  }

  .divisions__progress {
    margin-top: 18px;
  }
}

@media (max-width: 767px) {
  .division__chips li:nth-child(n + 5) {
    display: none;
  }

  .division__visual {
    height: 300px;
  }

  /* demo's passend in het kleinere venster */
  .division .demo--app {
    height: 262px;
  }

  .division .web__page {
    min-height: 0;
  }

  .division .web__row {
    display: none;
  }

  .division .dash__chart {
    height: 88px;
  }

  .division .kpi {
    padding: 10px;
  }

  .division .dash__ask {
    min-height: 66px;
  }

  .division .care__checks li:nth-child(n + 4) {
    display: none;
  }

  .division .care__monitor {
    padding: 12px 14px;
  }

  .division .care__pulse {
    height: 46px;
  }

  .division .care__checks li {
    padding: 9px 12px;
  }
}

@media (min-width: 1024px) {
  .divisions__hint {
    display: none;
  }
}

@media (min-width: 1024px) {
  .divisions__pin {
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 28px;
    overflow: hidden;
  }

  .divisions__track {
    display: flex;
    gap: clamp(20px, 2.4vw, 40px);
    width: max-content;
    justify-self: start;
    padding-inline: var(--gutter);
    will-change: transform;
  }

  .division {
    width: min(84vw, 1280px);
    height: min(74svh, 720px);
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: stretch;
  }

  .division__info {
    align-content: center;
  }

  .division__visual {
    min-height: 0;
  }

}

/* lage desktopschermen (bijv. 1024 × 768): kaart iets hoger, minder lucht en vier chips,
   zodat de link onderaan niet wegvalt */
@media (min-width: 1024px) and (max-height: 860px) {
  .division {
    height: 78svh;
    padding: 36px;
  }

  .division__info {
    gap: 14px;
  }

  .division__chips li:nth-child(n + 5) {
    display: none;
  }
}

/* kop met de kern ernaast: zes disciplines rond één kern, Care als ring eromheen */
.divisions__head {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 110px);
}

.divisions__head .section-head {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .divisions__head {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

.kern {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  justify-self: center;
}

.kern__web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
}

.kern__ring {
  stroke: rgba(143, 180, 255, 0.1);
  stroke-width: 1;
}

.kern__ring--care {
  stroke: rgba(255, 122, 61, 0.38);
  stroke-dasharray: 2 7;
  transform-box: view-box;
  transform-origin: center;
  animation: kern-spin 90s linear infinite;
}

.kern__spoke {
  stroke: rgba(143, 180, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s var(--ease-out), stroke 0.35s, stroke-width 0.35s;
  transition-delay: calc(var(--i) * 0.08s + 0.25s), 0s, 0s;
}

.kern__spoke.is-hot {
  stroke: var(--plasma-400);
  stroke-width: 1.8;
}

/* een lichtpuls loopt telkens van de kern naar de volgende discipline */
.kern__pulse {
  stroke: var(--plasma-300);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 0.1 1.2;
  stroke-dashoffset: 0.1;
  opacity: 0;
  animation: kern-pulse 4.2s linear infinite;
  animation-delay: calc(var(--i) * 0.7s + 1.2s);
}

.kern__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 15%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.kern__core::before {
  content: "";
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 179, 107, 0.35);
  animation: kern-spin 30s linear infinite reverse;
}

.kern__core i {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff, #FFB36B 45%, #FF5B1F);
  box-shadow: 0 0 20px 4px rgba(255, 91, 31, 0.8), 0 0 70px 18px rgba(255, 91, 31, 0.28);
  animation: core-breathe 3.2s ease-in-out infinite;
}

/* knooppunt: het midden van het icoon staat op (x, y) */
.kern__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  justify-items: center;
  gap: 8px;
  /* zo breed als de naam, gecentreerd op (x, y); translate los van de transform-animatie */
  width: max-content;
  margin: -26px 0 0;
  translate: -50% 0;
  color: var(--text-2);
  text-align: center;
  transition: color 0.3s, opacity 0.5s, transform 0.7s var(--ease-spring);
  transition-delay: 0s, calc(var(--i) * 0.08s + 0.45s), calc(var(--i) * 0.08s + 0.45s);
}

.kern__ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--ink-700), var(--ink-850));
  border: 1px solid rgba(143, 180, 255, 0.18);
  color: var(--bone-100);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.45s var(--ease-out);
}

.kern__ico .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

/* ring die oplicht als de puls aankomt */
.kern__ico::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--plasma-400);
  opacity: 0;
  animation: kern-ping 4.2s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * 0.7s + 1.8s);
}

.kern__node--care .kern__ico {
  border-color: rgba(255, 122, 61, 0.45);
  color: var(--plasma-300);
}

.kern__node--care .kern__ico::after {
  content: none;
}

.kern__node b {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(5, 6, 11, 0.82);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kern__node:hover,
.kern__node:focus-visible {
  color: var(--bone-50);
}

.kern__node:hover .kern__ico,
.kern__node:focus-visible .kern__ico {
  border-color: var(--plasma-400);
  box-shadow: 0 0 26px rgba(255, 91, 31, 0.35);
  transform: scale(1.08);
}

/* binnenkomen: spaken tekenen vanuit de kern, daarna springen de knooppunten erbij
   (zonder JS of op niveau 0 staat alles er meteen) */
html.js:not(.fx-static) .kern:not(.is-in) .kern__spoke {
  stroke-dashoffset: 1;
}

html.js:not(.fx-static) .kern:not(.is-in) .kern__node {
  opacity: 0;
  transform: scale(0.6);
}

@media (max-width: 599px) {
  .kern__node {
    margin-top: -22px;
  }

  .kern__ico {
    width: 44px;
    height: 44px;
  }

  .kern__ico .icon {
    width: 22px;
    height: 22px;
  }

  .kern__node b {
    padding: 2px 7px;
    font-size: 0.625rem;
    letter-spacing: 0.03em;
  }
}

@keyframes kern-pulse {
  0% { stroke-dashoffset: 0.1; opacity: 1; }
  14% { stroke-dashoffset: -0.9; opacity: 1; }
  15%, 100% { stroke-dashoffset: -0.9; opacity: 0; }
}

@keyframes kern-ping {
  0% { opacity: 0.9; transform: scale(1); }
  14%, 100% { opacity: 0; transform: scale(1.6); }
}

@keyframes kern-spin {
  to { transform: rotate(360deg); }
}

/* groot nummer achter de kaart; op desktop met eigen tempo (parallax) */
.division__big {
  position: absolute;
  left: clamp(12px, 2vw, 32px);
  bottom: -0.2em;
  z-index: 0;
  color: transparent;
  font-family: var(--font-serif);
  font-size: clamp(9rem, 15vw, 19rem);
  font-style: italic;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 122, 61, 0.16);
  pointer-events: none;
  user-select: none;
}

.division__info,
.division__visual {
  position: relative;
  z-index: 1;
}

.division {
  transition: border-color 0.6s;
}

.division.is-current {
  border-color: rgba(255, 122, 61, 0.3);
}

@media (max-width: 1023px) {
  .division__big {
    display: none;
  }
}

/* voortgangslijn met een halte per discipline (klikbaar) */
.divisions__line {
  position: relative;
  flex: 1;
  height: 40px;
  margin-inline: 14px;
}

.divisions__line .divisions__progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
}

.divisions__stop {
  position: absolute;
  left: calc(var(--p) * 100%);
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
}

.divisions__stop i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-950);
  border: 1.5px solid var(--ink-500);
  transition: transform 0.35s var(--ease-spring), background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.divisions__stop.is-past i {
  border-color: var(--plasma-500);
}

.divisions__stop.is-on i {
  background: var(--plasma-400);
  border-color: var(--plasma-300);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.18), 0 0 14px rgba(255, 91, 31, 0.7);
  transform: scale(1.4);
}

.divisions__stop span {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 0.3s, opacity 0.3s;
}

.divisions__stop.is-on span {
  color: var(--plasma-300);
}

.divisions__stop:hover span,
.divisions__stop:focus-visible span {
  color: var(--bone-50);
}

.divisions__stop:hover i {
  border-color: var(--plasma-300);
}

/* smalle schermen: alleen de naam van de actieve halte */
@media (max-width: 1199px) {
  .divisions__stop:not(.is-on) span {
    opacity: 0;
  }
}

/* ==========================================================================
   WALL — dienstenmuur
   ========================================================================== */
.wall {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
}

.wall .section-head {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.wall__rows {
  position: relative;
  display: grid;
  gap: 12px;
  transform: rotate(-2deg) scale(1.04);
}

/* CSS-modus: rijen lopen op de compositor (duur zet home.js per rij) */
.wall--css .marquee__track {
  animation: marquee-x var(--marquee-dur, 70s) linear infinite;
}

.wall--css .marquee--rev .marquee__track {
  animation-direction: reverse;
}

@keyframes marquee-x {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

@media (hover: hover) {
  .wall--css .marquee:hover .marquee__track {
    animation-play-state: paused;
  }
}

/* aanraakschermen: vervagende randen als overlay i.p.v. een masker over bewegende rijen */
html.is-touch .wall .marquee {
  -webkit-mask: none;
  mask: none;
}

html.is-touch .wall__rows::before,
html.is-touch .wall__rows::after {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -12px;
  z-index: 2;
  width: 14%;
  pointer-events: none;
}

html.is-touch .wall__rows::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(5, 6, 11, 0));
}

html.is-touch .wall__rows::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(5, 6, 11, 0));
}

.wall-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(143, 180, 255, 0.1);
  background: rgba(12, 15, 24, 0.75);
  font-size: clamp(0.84rem, 0.8rem + 0.25vw, 1rem);
  white-space: nowrap;
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.wall-pill .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.4;
  color: var(--text-4);
  transition: color 0.3s;
}

.wall-pill:hover {
  border-color: rgba(255, 122, 61, 0.6);
  color: var(--bone-50);
  background: rgba(255, 91, 31, 0.08);
}

.wall-pill:hover .icon {
  color: var(--plasma-300);
}

.wall-pill--hot {
  border-color: rgba(255, 122, 61, 0.3);
  color: var(--bone-50);
}

.wall-pill--hot .icon {
  color: var(--plasma-400);
}

/* ==========================================================================
   CALCULATOR
   ========================================================================== */
.calc__grid {
  display: grid;
  gap: 16px;
}

.calc__inputs,
.calc__result {
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
}

.calc__inputs {
  display: grid;
  gap: 30px;
}

.calc__field {
  display: grid;
  gap: 12px;
}

.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.calc__row output {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--bone-50);
  white-space: nowrap;
}

.calc__note {
  font-size: 0.8125rem;
  color: var(--text-4);
}

.calc__result {
  position: relative;
  display: grid;
  align-content: start;
  gap: 22px;
  border-color: rgba(255, 122, 61, 0.2);
}

.calc__glow {
  position: absolute;
  right: -20%;
  top: -30%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  /* zachte gloed zonder blur-filter (dat kostte een extra render-pass) */
  background: radial-gradient(circle, rgba(255, 91, 31, 0.2) 0%, rgba(255, 91, 31, 0.09) 38%, transparent 68%);
  pointer-events: none;
}

.calc__big {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(3rem, 1.8rem + 5.4vw, 6.6rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.calc__currency {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--plasma-300);
}

.calc__bars {
  display: grid;
  gap: 12px;
}

.calc__bar {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-3);
}

.calc__bar i {
  position: relative;
  height: 8px;
  border-radius: 8px;
  background: var(--ink-800);
  overflow: hidden;
}

.calc__bar b {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: 0 50%;
  transform: scaleX(var(--s, 1));
  background: linear-gradient(90deg, rgba(110, 151, 245, 0.6), rgba(143, 180, 255, 0.9));
  transition: transform 0.8s var(--ease-out);
}

.calc__bar--after b {
  background: var(--grad-plasma);
  box-shadow: 0 0 12px rgba(255, 91, 31, 0.6);
}

.calc__bar em {
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--bone-100);
  min-width: 64px;
  text-align: right;
}

.calc__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.calc__stats div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--ink-900);
}

.calc__stats dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}

.calc__stats dd {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

@media (min-width: 960px) {
  .calc__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 20px;
  }
}

/* ==========================================================================
   TOOLS — telefoon-demo
   ========================================================================== */
.tools__grid {
  display: grid;
  gap: clamp(56px, 8vw, 110px);
  align-items: center;
}

.tools__phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.phone__glow {
  position: absolute;
  inset: 3% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 91, 31, 0.24) 0%, rgba(255, 91, 31, 0.1) 45%, transparent 100%);
}

.phone {
  position: relative;
  width: min(290px, 74vw);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a2f3d, #0d0f16 40%, #1c202b);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.8);
  transform: perspective(1400px) rotateY(-10deg) rotateX(4deg);
  transition: transform 1s var(--ease-out);
}

.phone:hover {
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 20px;
  background: #000;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  background: radial-gradient(circle at 50% 0%, #121726, #07080e 60%);
  overflow: hidden;
  padding: 44px 16px 16px;
}

.phone__status {
  position: absolute;
  top: 14px;
  left: 26px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 600;
}

.phone__icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.phone__icons i {
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--bone-100);
}

.phone__icons i:nth-child(1) { width: 12px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.phone__icons i:nth-child(2) { width: 10px; border-radius: 50% 50% 0 0; }

.tools__text {
  display: grid;
  gap: 24px;
  align-content: start;
}

.tools__title {
  font-size: var(--fs-h2);
}

.tools__steps {
  display: grid;
  border-top: 1px solid var(--line);
}

.tools__steps li {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  transition: color 0.4s;
}

.tools__steps li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--plasma-400);
  box-shadow: 0 0 8px var(--plasma-500);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.tools__steps li.is-active {
  color: var(--bone-50);
}

.tools__steps li.is-active::after {
  animation: step-bar var(--step-dur, 3.2s) linear forwards;
}

/* voortgangsbalk: scaleX i.p.v. width (geen lay-out per frame) */
@keyframes step-bar {
  to { transform: scaleX(1); }
}

.tools__step-n {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--plasma-400);
  padding-top: 3px;
}

.tools__trades {
  display: grid;
  gap: 12px;
}

.tools__trades-label {
  color: var(--text-4);
}

.tools__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suite {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
}

.suite__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suite p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

@media (min-width: 960px) {
  .tools__grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.suite .link-line {
  justify-self: start;
}

.tools__docs {
  margin-top: clamp(56px, 8vw, 110px);
}

/* --------------------------------------------------------------------------
   ProntoCore Assistant — de app in de telefoon (homepage + /tools/#app)
   Maten in em: de letter van het scherm schaalt mee met de telefoon.
   -------------------------------------------------------------------------- */
.phone--app .phone__notch {
  top: 21px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
}

.phone--app .phone__screen {
  padding: 0;
  font-size: min(10px, 2.55vw);
  line-height: 1.35;
  user-select: none;
}

.phone--app .phone__status {
  top: 1.3em;
  left: 2.4em;
  right: 2.2em;
  font-size: 1.1em;
}

.ap svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap [hidden] {
  display: none !important;
}

/* tik van een vinger */
.ap .is-tap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 4em;
  height: 4em;
  margin: -2em 0 0 -2em;
  border-radius: 50%;
  background: rgba(243, 239, 232, 0.28);
  box-shadow: 0 0 0 1px rgba(243, 239, 232, 0.5);
  pointer-events: none;
  animation: ap-tap 0.65s var(--ease-out) forwards;
}

.ap .is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--plasma-400);
  animation: ap-caret 0.9s steps(2, start) infinite;
}

/* schermen: chat en modules */
.ap-view {
  position: absolute;
  inset: 3.4em 0 0;
  transition: transform 0.7s var(--ease-out), opacity 0.5s;
}

.ap-view:not(.is-active) {
  opacity: 0;
  transform: translateX(-30%);
}

.ap-view--work:not(.is-active) {
  transform: translateX(45%);
}

.ap-bar {
  display: flex;
  align-items: center;
  gap: 1.1em;
  height: 4.4em;
  padding: 0 1.7em;
  color: var(--bone-100);
}

.ap-bar > svg,
.ap-back {
  font-size: 1.9em;
}

.ap-back {
  position: relative;
  display: grid;
}

.ap-org {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
}

.ap-org i {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--ink-700), var(--ink-850));
  border: 1px solid rgba(255, 179, 107, 0.4);
  color: var(--plasma-300);
  font-family: var(--font-serif);
  font-size: 1.15em;
  font-style: italic;
}

.ap-org b {
  overflow: hidden;
  font-size: 1.45em;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ap-org::after {
  content: "";
  flex: none;
  border: 0.4em solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
}

/* chat */
.ap-chat {
  position: absolute;
  inset: 4.4em 0 7em;
}

.ap-hello {
  position: absolute;
  inset: 0 1.6em;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.55em;
  text-align: center;
  transition: opacity 0.45s, transform 0.7s var(--ease-out);
}

.ap-chat.is-talking .ap-hello {
  opacity: 0;
  transform: translateY(-4em) scale(0.96);
}

.ap-orb {
  width: 5em;
  height: 5em;
  margin-bottom: 0.5em;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 107, 0.35);
  background: radial-gradient(circle, #FFD3A8 0 7%, #FF7A3D 15%, rgba(255, 91, 31, 0.32) 33%, transparent 60%), var(--ink-850);
  box-shadow: 0 0 2.6em rgba(255, 91, 31, 0.35);
}

.ap-hello__kicker {
  font-family: var(--font-mono);
  font-size: 0.8em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--plasma-400);
}

.ap-hello__title {
  font-size: 2.1em;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ap-hello__sub {
  font-size: 1.05em;
  color: var(--text-3);
}

.ap-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em;
  width: 100%;
  margin-top: 1.1em;
  text-align: left;
}

.ap-quick > span {
  display: grid;
  align-content: start;
  gap: 0.25em;
  padding: 1em;
  border-radius: 1.4em;
  background: var(--ink-850);
  border: 1px solid var(--line);
}

.ap-quick svg {
  width: 2.6em;
  height: 2.6em;
  margin-bottom: 0.4em;
  padding: 0.6em;
  border-radius: 0.8em;
  background: rgba(255, 91, 31, 0.1);
  color: var(--plasma-300);
}

.ap-quick b {
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.2;
}

.ap-quick small {
  font-size: 0.9em;
  line-height: 1.3;
  color: var(--text-3);
}

.ap-thread {
  position: absolute;
  inset: 0 1.6em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9em;
  padding-bottom: 0.8em;
}

.ap-msg {
  max-width: 84%;
  padding: 0.85em 1.15em;
  border-radius: 1.4em;
  font-size: 1.1em;
  line-height: 1.4;
  animation: ap-in 0.5s var(--ease-out) both;
}

.ap-msg--me {
  align-self: flex-end;
  border-bottom-right-radius: 0.4em;
  background: rgba(255, 91, 31, 0.16);
  border: 1px solid rgba(255, 122, 61, 0.35);
}

.ap-msg--ai,
.ap-msg--typing {
  align-self: flex-start;
  border-bottom-left-radius: 0.4em;
  background: var(--ink-800);
  border: 1px solid var(--line);
}

.ap-msg--ai {
  display: grid;
  gap: 0.7em;
  max-width: 94%;
}

.ap-msg--typing {
  display: flex;
  gap: 0.35em;
  padding: 1.1em 1.2em;
}

.ap-msg--typing i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--text-3);
  animation: ap-dot 1.2s ease-in-out infinite;
}

.ap-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.ap-msg--typing i:nth-child(3) { animation-delay: 0.3s; }

.ap-doc {
  display: grid;
  gap: 0.45em;
  padding: 1em;
  border-radius: 1em;
  background: var(--ink-900);
  border: 1px solid var(--line);
  font-size: 0.9em;
}

.ap-doc p {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  color: var(--text-2);
}

.ap-doc .ap-doc__head {
  align-items: baseline;
  margin-bottom: 0.2em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--line);
}

.ap-doc__head b,
.ap-doc .ap-doc__total {
  color: var(--bone-50);
  font-weight: 600;
}

.ap-doc__head small {
  font-size: 1em;
  color: var(--text-3);
}

.ap-doc__total span:last-child {
  color: var(--plasma-300);
}

.ap-doc .ap-doc__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
  margin-top: 0.5em;
}

.ap-btn {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.75em 1em;
  border-radius: 2em;
  border: 1px solid var(--ink-600);
  color: var(--bone-50);
  font-weight: 600;
}

.ap-btn--plasma {
  border-color: transparent;
  background: var(--grad-plasma);
  color: var(--ink-950);
}

.ap-input {
  position: absolute;
  left: 1.2em;
  right: 1.2em;
  bottom: 1.6em;
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-height: 4.8em;
  padding: 0.7em;
  border-radius: 2.4em;
  background: var(--ink-850);
  border: 1px solid rgba(255, 122, 61, 0.3);
  box-shadow: 0 0 2em rgba(255, 91, 31, 0.12);
}

.ap-input__plus,
.ap-send {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 3.3em;
  height: 3.3em;
  border-radius: 50%;
}

.ap-input__plus {
  background: var(--ink-750);
  color: var(--text-2);
}

.ap-send {
  background: var(--grad-plasma);
  color: var(--ink-950);
}

.ap-input__plus svg,
.ap-send svg {
  font-size: 1.5em;
}

.ap-input > svg {
  font-size: 1.6em;
  color: var(--text-3);
}

.ap-input__field {
  position: relative;
  flex: 1;
  min-width: 0;
  font-size: 1.1em;
  line-height: 1.3;
}

.ap-input__ph {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-4);
}

.ap-input__field.has-text .ap-input__ph {
  display: none;
}

/* modules: tabbladen met een pil die meeloopt */
.ap-tabs {
  overflow: hidden;
  margin-top: 0.2em;
}

.ap-tabs__track {
  position: relative;
  display: flex;
  gap: 0.2em;
  width: max-content;
  padding: 0 1.4em;
  transition: transform 0.7s var(--ease-out);
}

.ap-tabs__track > span {
  position: relative;
  z-index: 1;
  padding: 0.8em 1.2em;
  font-size: 1.15em;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-3);
  transition: color 0.4s;
}

.ap-tabs__track > span.is-active {
  color: var(--plasma-200);
}

.ap-tabs__pill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 2em;
  background: rgba(255, 91, 31, 0.16);
  border: 1px solid rgba(255, 122, 61, 0.38);
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out);
}

.ap-pane {
  position: absolute;
  inset: 8.7em 0 0;
  display: grid;
  align-content: start;
  gap: 0.9em;
  padding: 0 1.5em;
  opacity: 0;
  transform: translateX(2em);
  transition: opacity 0.45s, transform 0.6s var(--ease-out);
}

.ap-pane.is-active {
  opacity: 1;
  transform: none;
}

.ap-search {
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 3.6em;
  padding: 0 1.2em;
  overflow: hidden;
  border-radius: 1.8em;
  background: var(--ink-850);
  border: 1px solid var(--line);
  color: var(--text-4);
  font-size: 1.05em;
  white-space: nowrap;
}

.ap-search svg {
  font-size: 1.4em;
  color: var(--text-3);
}

.ap-sum {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em 1.2em;
  border-radius: 1.5em;
  background: linear-gradient(120deg, rgba(255, 91, 31, 0.2), rgba(255, 91, 31, 0.06));
  border: 1px solid rgba(255, 122, 61, 0.4);
}

.ap-sum svg {
  font-size: 2em;
  color: var(--plasma-300);
}

.ap-sum p {
  display: grid;
  gap: 0.1em;
}

.ap-sum b {
  font-size: 1.55em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--plasma-200);
  font-variant-numeric: tabular-nums;
}

.ap-sum small {
  font-size: 1em;
  color: var(--text-2);
}

.ap-list {
  display: grid;
  gap: 0.7em;
}

.ap-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1em;
  padding: 1.1em 1.2em;
  overflow: hidden;
  border-radius: 1.5em;
  background: var(--ink-850);
  border: 1px solid var(--line);
}

.ap-item.is-done {
  animation: ap-flash 1.2s var(--ease-out);
}

.ap-item__ico {
  display: grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  border-radius: 1em;
  background: rgba(255, 91, 31, 0.12);
  color: var(--plasma-300);
  transition: background-color 0.4s, color 0.4s;
}

.ap-item__ico svg {
  font-size: 1.7em;
}

.ap-item__ico--warm {
  background: rgba(255, 179, 107, 0.14);
  color: var(--plasma-200);
}

.ap-item__ico--ava {
  font-size: 1.5em;
  font-weight: 600;
  width: 2.3em;
  height: 2.3em;
  border-radius: 0.7em;
}

.ap-item.is-done .ap-item__ico {
  background: rgba(91, 228, 155, 0.12);
  color: var(--ok-400);
}

.ap-item__main {
  display: grid;
  gap: 0.15em;
  min-width: 0;
}

.ap-item__main b,
.ap-item__main small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ap-item__main b {
  font-size: 1.2em;
  font-weight: 600;
}

.ap-item__main small {
  font-size: 1em;
  color: var(--text-3);
}

.ap-item__amt {
  font-size: 1.2em;
  font-weight: 600;
  white-space: nowrap;
}

/* nieuw item schuift open */
.ap-new {
  max-height: 12em;
  transition: max-height 0.6s var(--ease-out), padding 0.6s var(--ease-out), margin 0.6s var(--ease-out), border-width 0.6s, opacity 0.4s, transform 0.6s var(--ease-out), border-color 0.5s;
}

.ap-new:not(.is-on) {
  max-height: 0;
  margin-bottom: -0.7em;
  padding-block: 0;
  border-width: 0;
  opacity: 0;
  transform: scale(0.96);
}

.ap-new.is-on {
  border-color: rgba(255, 122, 61, 0.45);
}

.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.35em;
}

.ap-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.3em 0.8em;
  border-radius: 2em;
  background: var(--ink-750);
  border: 1px solid var(--ink-600);
  color: var(--text-2);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
  animation: ap-pop 0.45s var(--ease-spring) both;
}

.ap-chip svg {
  font-size: 1.15em;
  stroke-width: 2.6;
}

.ap-chip--ok {
  background: rgba(91, 228, 155, 0.1);
  border-color: rgba(91, 228, 155, 0.3);
  color: var(--ok-400);
}

.ap-chip--warn {
  background: rgba(255, 179, 107, 0.1);
  border-color: rgba(255, 179, 107, 0.35);
  color: var(--plasma-300);
}

.ap-chip--late {
  background: rgba(255, 91, 31, 0.16);
  border-color: rgba(255, 91, 31, 0.45);
  color: #FF8A5C;
}

.ap-chip--ice {
  background: rgba(143, 180, 255, 0.1);
  border-color: rgba(143, 180, 255, 0.3);
  color: var(--ice-300);
}

/* nieuwe klant: paneel van onderen met VIES-check */
.ap-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 0.75em;
  padding: 1em 1.6em 2em;
  border-radius: 2.4em 2.4em 0 0;
  background: var(--ink-800);
  border-top: 1px solid rgba(255, 122, 61, 0.3);
  box-shadow: 0 0 0 100em rgba(3, 4, 8, 0);
  transform: translateY(105%);
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s;
}

.ap-sheet::before {
  content: "";
  justify-self: center;
  width: 3.6em;
  height: 0.4em;
  border-radius: 1em;
  background: var(--ink-600);
}

.ap-sheet.is-open {
  transform: none;
  box-shadow: 0 0 0 100em rgba(3, 4, 8, 0.5);
}

.ap-sheet__title {
  font-size: 1.4em;
  font-weight: 600;
}

.ap-field {
  display: grid;
  gap: 0.15em;
  padding: 0.65em 1.1em;
  border-radius: 1.1em;
  background: var(--ink-850);
  border: 1px solid var(--line);
}

.ap-field small {
  font-family: var(--font-mono);
  font-size: 0.8em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}

.ap-field span {
  min-height: 1.35em;
  font-size: 1.15em;
}

.ap-check {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 1.8em;
  font-size: 1.05em;
  color: var(--text-3);
}

.ap-check:not(.is-busy):not(.is-ok) {
  visibility: hidden;
}

.ap-check__ico {
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  border: 2px solid var(--ink-600);
  border-top-color: var(--plasma-400);
  animation: ap-spin 0.8s linear infinite;
}

.ap-check__ico svg {
  opacity: 0;
  stroke-width: 3;
}

.ap-check.is-ok {
  color: var(--ok-400);
}

.ap-check.is-ok .ap-check__ico {
  border: 0;
  background: var(--ok-400);
  color: var(--ink-950);
  animation: ap-pop 0.45s var(--ease-spring) both;
}

.ap-check.is-ok .ap-check__ico svg {
  opacity: 1;
}

.ap-check:not(.is-ok) .ap-check__ok,
.ap-check.is-ok .ap-check__busy {
  display: none;
}

.ap-note {
  color: var(--ice-300);
  transition: opacity 0.4s;
}

.ap-check:not(.is-ok) + .ap-note {
  opacity: 0;
}

/* kosten: bon scannen */
.ap-actions {
  display: flex;
  gap: 0.6em;
}

.ap-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.65em 1.1em;
  border-radius: 2em;
  border: 1px solid var(--ink-600);
  color: var(--plasma-300);
  font-size: 1.05em;
  font-weight: 600;
}

.ap-actions svg {
  font-size: 1.25em;
}

.ap-fab {
  position: absolute;
  right: 1.5em;
  bottom: 1.8em;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 1em 1.4em;
  border-radius: 2em;
  background: var(--grad-plasma);
  color: var(--ink-950);
  font-size: 1.1em;
  font-weight: 600;
  box-shadow: 0 1em 2.4em rgba(255, 91, 31, 0.35);
}

.ap-fab svg {
  font-size: 1.3em;
}

.ap-scan {
  position: absolute;
  inset: -0.6em 0 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4em;
  background: rgba(3, 4, 8, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}

.ap-scan.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s;
}

.ap-scan__view {
  position: relative;
  padding: 1.8em 2em;
  overflow: hidden;
  background:
    linear-gradient(var(--plasma-400) 0 0) 0 0 / 2.4em 2px,
    linear-gradient(var(--plasma-400) 0 0) 0 0 / 2px 2.4em,
    linear-gradient(var(--plasma-400) 0 0) 100% 0 / 2.4em 2px,
    linear-gradient(var(--plasma-400) 0 0) 100% 0 / 2px 2.4em,
    linear-gradient(var(--plasma-400) 0 0) 0 100% / 2.4em 2px,
    linear-gradient(var(--plasma-400) 0 0) 0 100% / 2px 2.4em,
    linear-gradient(var(--plasma-400) 0 0) 100% 100% / 2.4em 2px,
    linear-gradient(var(--plasma-400) 0 0) 100% 100% / 2px 2.4em;
  background-repeat: no-repeat;
}

.ap-receipt {
  display: grid;
  gap: 0.6em;
  width: 15em;
  padding: 1.5em 1.3em 1.7em;
  background: #ECE7DE;
  color: #26221C;
  font-family: var(--font-mono);
  font-size: 0.95em;
  box-shadow: 0 1em 2em rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
}

.ap-receipt b {
  justify-self: center;
  font-size: 1.05em;
  letter-spacing: 0.06em;
}

.ap-receipt i {
  height: 0.45em;
  border-radius: 0.3em;
  background: #CFC8BB;
}

.ap-receipt i:nth-of-type(2) { width: 70%; }
.ap-receipt i:nth-of-type(4) { width: 55%; }

.ap-receipt p {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.ap-receipt small {
  font-size: 0.9em;
  font-weight: 400;
  color: #5A544A;
}

/* scanlijn: transform i.p.v. top (geen lay-out per frame) */
.ap-scan__line {
  position: absolute;
  inset: 0;
  border-bottom: 2px solid var(--plasma-400);
  background: linear-gradient(180deg, transparent 70%, rgba(255, 122, 61, 0.25));
  transform: translateY(-100%);
}

.ap-scan.is-on:not(.is-done) .ap-scan__line {
  animation: ap-scanline 1.4s var(--ease-in-out) infinite alternate;
}

.ap-scan__tag {
  position: absolute;
  padding: 0.3em 0.7em;
  border-radius: 0.5em;
  background: var(--plasma-500);
  color: var(--ink-950);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(0.5em) scale(0.8);
  transition: opacity 0.35s, transform 0.5s var(--ease-spring);
}

.ap-scan__tag--sum {
  right: 0.2em;
  bottom: 5.4em;
}

.ap-scan__tag--cat {
  left: 0.4em;
  top: 5.8em;
  background: var(--ice-400);
  transition-delay: 0.2s;
}

.ap-scan.is-done .ap-scan__tag {
  opacity: 1;
  transform: none;
}

.ap-scan__hint {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.1em;
  color: var(--text-2);
}

.ap-scan__hint i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--plasma-400);
  animation: core-breathe 1s ease-in-out infinite;
}

.ap-scan.is-done .ap-scan__hint {
  color: var(--ok-400);
}

.ap-scan.is-done .ap-scan__hint i {
  background: var(--ok-400);
  animation: none;
}

/* financiën: btw per kwartaal */
.ap-seg {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 0.3em;
  border-radius: 2em;
  border: 1px solid var(--ink-600);
  font-size: 1.1em;
  text-align: center;
}

.ap-seg span {
  padding: 0.6em 0.4em;
  border-radius: 2em;
  color: var(--text-3);
  white-space: nowrap;
}

.ap-seg .is-on {
  background: rgba(255, 91, 31, 0.16);
  color: var(--plasma-200);
}

.ap-seg--sm {
  justify-self: center;
  width: 82%;
  font-size: 1em;
}

.ap-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1em;
  font-size: 1.3em;
}

.ap-period svg {
  color: var(--text-3);
}

.ap-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 1.6em;
  height: 8.4em;
  padding: 0 1.6em;
}

.ap-bars span {
  display: grid;
  justify-items: center;
  gap: 0.4em;
}

.ap-bars i {
  width: 100%;
  height: calc(var(--h) * 6.4em);
  border-radius: 0.6em 0.6em 0.2em 0.2em;
  background: var(--grad-plasma-v);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease-out);
}

.ap-bars span:nth-child(2) i { transition-delay: 0.1s; }
.ap-bars span:nth-child(3) i { transition-delay: 0.2s; }

.ap-bars.is-on i {
  transform: none;
}

.ap-bars small {
  font-size: 0.9em;
  color: var(--text-3);
}

.ap-vat {
  padding: 0.3em 1.3em;
  border-radius: 1.5em;
  background: var(--ink-850);
  border: 1px solid var(--line);
}

.ap-vat > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.65em 0;
  font-size: 1.1em;
}

.ap-vat > div + div {
  border-top: 1px solid var(--line);
}

.ap-vat dt {
  color: var(--text-2);
}

.ap-vat dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ap-vat .is-neg::before {
  content: "− ";
}

.ap-vat__total dt {
  color: var(--bone-50);
  font-weight: 600;
}

.ap-vat__total dd {
  font-size: 1.3em;
  color: var(--plasma-300);
}

.ap-fine {
  font-size: 0.9em;
  line-height: 1.4;
  color: var(--text-4);
}

@keyframes ap-in {
  from { opacity: 0; transform: translateY(1em) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes ap-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}

@keyframes ap-dot {
  0%, 60%, 100% { transform: none; opacity: 0.4; }
  30% { transform: translateY(-0.35em); opacity: 1; }
}

@keyframes ap-tap {
  from { opacity: 1; transform: scale(0.3); }
  to { opacity: 0; transform: scale(1.5); }
}

@keyframes ap-caret {
  50% { opacity: 0; }
}

@keyframes ap-spin {
  to { transform: rotate(360deg); }
}

@keyframes ap-flash {
  from { background-color: rgba(91, 228, 155, 0.16); border-color: rgba(91, 228, 155, 0.5); }
}

@keyframes ap-scanline {
  to { transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   ProntoCore Tools — rekenwerk voor vakmensen in de telefoon (/tools/)
   Zelfde basis als de Assistant (.ap: maten in em, tik, iconen); eigen schermen .tp-*.
   -------------------------------------------------------------------------- */
.phone__soon {
  position: absolute;
  top: 22px;
  right: -30px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-plasma);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(255, 91, 31, 0.7), 0 0 0 4px rgba(5, 6, 11, 0.7);
  transform: rotate(5deg);
}

.phone__soon i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-950);
  animation: core-breathe 1.6s ease-in-out infinite;
}

@media (max-width: 420px) {
  .phone__soon {
    top: 14px;
    right: -12px;
  }
}

.tp-bar {
  position: absolute;
  top: 3.4em;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 4.4em;
  padding: 0 1.6em;
}

.tp-logo {
  flex: none;
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.8em;
  background: radial-gradient(circle, var(--plasma-500) 0 0.35em, transparent 0.45em), var(--ink-800);
  border: 1px solid rgba(255, 179, 107, 0.4);
}

.tp-bar b {
  flex: 1;
  font-size: 1.4em;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tp-bar > svg {
  font-size: 1.9em;
  stroke-width: 3;
  color: var(--text-3);
}

.tp-proj {
  position: absolute;
  top: 7.9em;
  left: 1.5em;
  right: 1.5em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 1em;
  border-radius: 1em;
  background: var(--ink-850);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 1.05em;
}

.tp-proj > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tp-proj b {
  color: var(--bone-50);
  font-weight: 600;
}

.tp-proj svg:first-child {
  font-size: 1.3em;
  color: var(--plasma-300);
}

/* schermen; elk scherm komt binnen als zijn tabblad onderin actief wordt */
.tp-pane {
  position: absolute;
  inset: 11.3em 0 6.7em;
  display: grid;
  align-content: start;
  gap: 0.9em;
  padding: 0 1.5em;
  opacity: 0;
  transform: translateX(2em);
  transition: opacity 0.45s, transform 0.6s var(--ease-out);
}

.tp-pane.is-active {
  opacity: 1;
  transform: none;
}

.tp-nav {
  position: absolute;
  left: 1.2em;
  right: 1.2em;
  bottom: 1.4em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.45em;
  border-radius: 2.2em;
  background: var(--ink-850);
  border: 1px solid var(--line);
}

.tp-nav > span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.15em;
  padding: 0.5em 0 0.4em;
  border-radius: 1.6em;
  color: var(--text-4);
  transition: color 0.4s, background-color 0.4s;
}

.tp-nav svg {
  font-size: 1.6em;
}

.tp-nav b {
  font-size: 0.85em;
  font-weight: 500;
}

.tp-nav > span.is-active {
  color: var(--plasma-200);
  background: rgba(255, 91, 31, 0.14);
}

.tp .is-pop {
  display: inline-block;
  animation: ap-pop 0.45s var(--ease-spring) both;
}

/* 1 · de wand: zelfde kamer in de camera en op de foto's voor en na */
.tp-wall {
  --ceil: #8a8274;
  --wall: #71695b;
  --trim: #c9c1b2;
  --frame: #d4cdc0;
  --door: #5d564a;
  --wear: radial-gradient(26% 16% at 76% 20%, rgba(36, 28, 18, 0.38), transparent 70%), radial-gradient(14% 10% at 27% 66%, rgba(36, 28, 18, 0.32), transparent 70%), radial-gradient(9% 6% at 48% 40%, rgba(222, 214, 198, 0.4), transparent 70%);
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--ceil) 0 8%, rgba(0, 0, 0, 0.22) 8% 8.7%, transparent 8.7% 76.5%, var(--trim) 76.5% 78%, transparent 78%),
    var(--wear),
    radial-gradient(90% 70% at 35% 22%, rgba(255, 255, 255, 0.13), transparent 65%),
    repeating-linear-gradient(90deg, #4b3b2c 0 3.6em, #3b2e22 3.6em 3.7em) 0 100% / 100% 22% no-repeat,
    var(--wall);
}

.tp-wall--after {
  --ceil: #efe9df;
  --wall: #d8cfbf;
  --trim: #faf7f1;
  --frame: #faf7f1;
  --door: #ece6dc;
  --wear: linear-gradient(transparent, transparent);
}

.tp-wall i {
  position: absolute;
}

.tp-wall .w {
  left: 12%;
  top: 22%;
  width: 30%;
  height: 32%;
  border: 0.35em solid var(--frame);
  background: linear-gradient(160deg, #56677f, #232b3a 70%);
}

.tp-wall .w::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0.25em;
  margin-left: -0.125em;
  background: var(--frame);
}

.tp-wall .d {
  left: 58%;
  top: 30%;
  width: 20%;
  height: 46.5%;
  border: 0.25em solid var(--frame);
  border-bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08)), var(--door);
}

.tp-wall .d::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 52%;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #d8cfb8;
}

.tp-cam {
  position: relative;
  height: 25.5em;
  overflow: hidden;
  border-radius: 1.6em;
  background: #15171d;
}

/* hoeken van de zoeker */
.tp-cam::after {
  content: "";
  position: absolute;
  inset: 0.7em;
  pointer-events: none;
  background:
    linear-gradient(var(--bone-50) 0 0) 0 0 / 1.8em 2px,
    linear-gradient(var(--bone-50) 0 0) 0 0 / 2px 1.8em,
    linear-gradient(var(--bone-50) 0 0) 100% 0 / 1.8em 2px,
    linear-gradient(var(--bone-50) 0 0) 100% 0 / 2px 1.8em,
    linear-gradient(var(--bone-50) 0 0) 0 100% / 1.8em 2px,
    linear-gradient(var(--bone-50) 0 0) 0 100% / 2px 1.8em,
    linear-gradient(var(--bone-50) 0 0) 100% 100% / 1.8em 2px,
    linear-gradient(var(--bone-50) 0 0) 100% 100% / 2px 1.8em;
  background-repeat: no-repeat;
  opacity: 0.55;
  transition: opacity 0.4s;
}

.is-found .tp-cam::after {
  opacity: 0;
}

/* scanlijn: transform i.p.v. top (geen lay-out per frame) */
.tp-cam__scan {
  position: absolute;
  inset: 0;
  border-bottom: 2px solid var(--plasma-400);
  background: linear-gradient(180deg, transparent 72%, rgba(255, 122, 61, 0.24));
  opacity: 0;
  transform: translateY(-100%);
}

.is-scan .tp-cam__scan {
  opacity: 1;
  animation: tp-scan 1.7s var(--ease-in-out) both;
}

.tp-cam__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

.is-flash .tp-cam__flash {
  animation: tp-flash 0.55s var(--ease-out);
}

.tp-det,
.tp-dim {
  position: absolute;
  opacity: 0;
  transition: opacity 0.45s, transform 0.65s var(--ease-out);
}

.tp-det {
  border: 1.5px solid var(--plasma-400);
  border-radius: 0.5em;
  background: rgba(255, 91, 31, 0.1);
  transform: scale(1.05);
}

.tp-det small,
.tp-dim small {
  position: absolute;
  padding: 0.3em 0.7em;
  border-radius: 0.5em;
  font-size: 0.95em;
  font-weight: 600;
  white-space: nowrap;
}

.tp-det small {
  left: -1px;
  top: calc(100% + 0.4em);
  background: var(--plasma-500);
  color: var(--ink-950);
}

.tp-det--wall {
  left: 7%;
  right: 3%;
  top: 8.7%;
  bottom: 22%;
  background: none;
}

.tp-det--wall small {
  top: auto;
  left: 0.5em;
  bottom: 0.5em;
}

.tp-det--win,
.tp-det--door {
  border-color: var(--ice-400);
  background: rgba(143, 180, 255, 0.12);
}

.tp-det--win small,
.tp-det--door small {
  background: var(--ice-400);
}

.tp-det--win {
  left: 11%;
  top: 21%;
  width: 32%;
  height: 34%;
}

.tp-det--door {
  left: 57%;
  top: 29%;
  width: 22%;
  height: 48%;
}

.tp-det--door small {
  top: -2.1em;
}

.tp-dim {
  color: var(--plasma-300);
}

.tp-dim small {
  padding: 0.15em 0.55em;
  background: rgba(5, 6, 11, 0.78);
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 500;
}

.tp-dim--w {
  left: 7%;
  right: 3%;
  top: 3.6%;
  border-top: 1px solid currentColor;
  transform: scaleX(0.2);
}

.tp-dim--w small {
  left: 50%;
  top: -0.85em;
  transform: translateX(-50%);
}

.tp-dim--h {
  left: 3.2%;
  top: 8.7%;
  bottom: 22%;
  border-left: 1px solid currentColor;
  transform: scaleY(0.2);
}

.tp-dim--h small {
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.tp-dim--w::before,
.tp-dim--w::after,
.tp-dim--h::before,
.tp-dim--h::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.tp-dim--w::before,
.tp-dim--w::after {
  top: -0.4em;
  width: 1px;
  height: 0.8em;
}

.tp-dim--w::before { left: 0; }
.tp-dim--w::after { right: 0; }

.tp-dim--h::before,
.tp-dim--h::after {
  left: -0.4em;
  width: 0.8em;
  height: 1px;
}

.tp-dim--h::before { top: 0; }
.tp-dim--h::after { bottom: 0; }

.is-found .tp-det,
.is-found .tp-dim {
  opacity: 1;
  transform: none;
}

.is-found .tp-dim { transition-delay: 0.15s; }
.is-found .tp-det--win { transition-delay: 0.5s; }
.is-found .tp-det--door { transition-delay: 0.85s; }

.tp-shutter {
  position: absolute;
  left: 50%;
  bottom: 0.9em;
  width: 3.8em;
  height: 3.8em;
  margin-left: -1.9em;
  padding: 0.25em;
  border-radius: 50%;
  border: 0.3em solid rgba(243, 239, 232, 0.92);
  background: rgba(243, 239, 232, 0.3) content-box;
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.is-found .tp-shutter {
  opacity: 0;
  transform: scale(0.8);
}

.tp-res {
  position: relative;
  min-height: 8.4em;
}

.tp-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-size: 1.1em;
  color: var(--text-2);
  transition: opacity 0.3s;
}

.tp-hint i {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--plasma-400);
  animation: core-breathe 1s ease-in-out infinite;
}

.tp-hint__scan,
.is-scan .tp-hint__aim {
  display: none;
}

.is-scan .tp-hint__scan {
  display: inline;
}

.tp-res.is-on .tp-hint {
  opacity: 0;
}

.tp-res__card {
  padding: 1em 1.2em;
  border-radius: 1.5em;
  background: linear-gradient(120deg, rgba(255, 91, 31, 0.2), rgba(255, 91, 31, 0.06));
  border: 1px solid rgba(255, 122, 61, 0.4);
  opacity: 0;
  transform: translateY(1em) scale(0.97);
  transition: opacity 0.45s, transform 0.6s var(--ease-out);
}

.tp-res.is-on .tp-res__card {
  opacity: 1;
  transform: none;
}

.tp-res__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
}

.tp-res__head small {
  font-size: 1.05em;
  color: var(--text-2);
}

.tp-res__head b,
.tp-need__txt b {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--plasma-200);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tp-res__head b {
  font-size: 2.2em;
}

.tp-res__calc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.6em;
}

.tp-res__calc span {
  padding: 0.3em 0.75em;
  border-radius: 2em;
  background: var(--ink-750);
  border: 1px solid var(--ink-600);
  color: var(--text-2);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}

.tp-res__calc .tp-minus {
  background: rgba(143, 180, 255, 0.1);
  border-color: rgba(143, 180, 255, 0.3);
  color: var(--ice-300);
  opacity: 0.2;
  transition: opacity 0.4s;
}

.tp-res__calc .tp-minus.is-on {
  opacity: 1;
}

.tp-total {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 1.1em;
  border-radius: 1.3em;
  background: var(--ink-850);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 1.05em;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.tp-total.is-on {
  opacity: 1;
  transform: none;
}

.tp-total svg {
  font-size: 1.3em;
  stroke-width: 2.6;
  color: var(--ok-400);
}

.tp-total span {
  flex: 1;
  min-width: 0;
}

.tp-total b {
  color: var(--bone-50);
  font-weight: 600;
  white-space: nowrap;
}

/* 2 en 3 · rekenen */
.tp-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.3em;
  border-radius: 2em;
  border: 1px solid var(--ink-600);
  font-size: 1.1em;
  text-align: center;
}

.tp-seg > span {
  position: relative;
  z-index: 1;
  padding: 0.55em 0.4em;
  color: var(--text-3);
  transition: color 0.4s;
}

.tp-seg > span.is-active {
  color: var(--plasma-200);
}

.tp-seg__pill {
  position: absolute;
  top: 0.3em;
  bottom: 0.3em;
  left: 0;
  width: 0;
  border-radius: 2em;
  background: rgba(255, 91, 31, 0.16);
  border: 1px solid rgba(255, 122, 61, 0.38);
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out);
}

.tp-sub {
  grid-area: 2 / 1;
  display: grid;
  align-content: start;
  gap: 0.7em;
  opacity: 0;
  transform: translateX(1.5em);
  transition: opacity 0.4s, transform 0.55s var(--ease-out);
}

.tp-sub.is-active {
  opacity: 1;
  transform: none;
}

.tp-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9em;
  padding: 0.65em 1.1em;
  border-radius: 1.4em;
  background: var(--ink-850);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(0.8em);
  transition: opacity 0.4s, transform 0.55s var(--ease-out);
}

.tp-row--plain {
  grid-template-columns: minmax(0, 1fr) auto;
}

.tp-pane.is-active .tp-row {
  opacity: 1;
  transform: none;
}

.tp-pane.is-active .tp-row:nth-child(2) { transition-delay: 0.08s; }
.tp-pane.is-active .tp-row:nth-child(3) { transition-delay: 0.16s; }

.tp-row__ico,
.tp-swatch {
  width: 3em;
  height: 3em;
  border-radius: 0.9em;
}

.tp-row__ico {
  display: grid;
  place-items: center;
  background: rgba(255, 91, 31, 0.12);
  color: var(--plasma-300);
}

.tp-row__ico svg {
  font-size: 1.5em;
}

.tp-swatch {
  background: linear-gradient(135deg, #f6f1e9, #d6cdbd);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.tp-row__main {
  display: grid;
  gap: 0.1em;
  min-width: 0;
}

.tp-row__main b,
.tp-row__main small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tp-row__main b {
  font-size: 1.15em;
  font-weight: 600;
}

.tp-row__main small {
  font-size: 0.95em;
  color: var(--text-3);
}

.tp-row > b {
  font-size: 1.2em;
  font-weight: 600;
  white-space: nowrap;
}

.tp-row > svg {
  font-size: 1.4em;
  color: var(--text-3);
}

.tp-step {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em;
  border-radius: 2em;
  border: 1px solid var(--ink-600);
}

.tp-step > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--ink-750);
  color: var(--text-2);
  font-size: 1.15em;
  font-weight: 600;
}

.tp-step > span:last-child {
  background: var(--grad-plasma);
  color: var(--ink-950);
}

.tp-step b {
  min-width: 1.4em;
  font-size: 1.35em;
  font-weight: 600;
  text-align: center;
}

.tp-need {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.8em 1.3em;
  border-radius: 1.5em;
  background: linear-gradient(120deg, rgba(255, 91, 31, 0.2), rgba(255, 91, 31, 0.06));
  border: 1px solid rgba(255, 122, 61, 0.4);
}

.tp-need__txt {
  display: grid;
  gap: 0.1em;
}

.tp-need__txt small {
  font-size: 1em;
  color: var(--text-2);
}

.tp-need__txt b {
  font-size: 2.3em;
}

/* emmers die vollopen */
.tp-cans {
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
}

.tp-cans i {
  position: relative;
  width: 3.3em;
  height: 4.2em;
  overflow: hidden;
  border-radius: 0.35em 0.35em 0.7em 0.7em;
  background: var(--ink-750);
  border: 1px solid var(--ink-500);
  border-top-width: 0.35em;
}

.tp-cans i::after {
  content: "5 L";
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  z-index: 1;
  color: rgba(5, 6, 11, 0.55);
  font-size: 0.85em;
  font-weight: 700;
  text-align: center;
}

.tp-cans b {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f8f4ed, #d6cdbd);
  transform-origin: 50% 100%;
  transform: scaleY(0.94);
  transition: transform 1s var(--ease-out);
}

.tp-cans i + i {
  opacity: 0.45;
  transition: opacity 0.4s;
}

.tp-cans i + i b {
  transform: scaleY(0);
}

.is-done .tp-cans i:first-child b {
  transform: none;
}

.is-done .tp-cans i + i {
  opacity: 1;
}

.is-done .tp-cans i + i b {
  transform: scaleY(0.88);
  transition-delay: 0.25s;
}

.tp-list {
  display: grid;
  padding: 0.8em 1.3em 0.4em;
  border-radius: 1.5em;
  background: var(--ink-850);
  border: 1px solid var(--line);
}

.tp-list p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding: 0.4em 0;
  font-size: 1.05em;
}

.tp-list p + p {
  border-top: 1px solid var(--line);
}

.tp-list span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-2);
}

.tp-list b {
  font-weight: 600;
}

.tp-list .tp-list__head {
  padding-top: 0;
}

.tp-list__head b {
  font-size: 1.1em;
}

.tp-list__head small {
  color: var(--text-4);
}

/* tegels op de plattegrond van dezelfde kamer (5,20 × 4,10 m) */
.tp-plan {
  display: grid;
  place-items: center;
  height: 14.6em;
  padding: 1.9em 0 0 1.4em;
}

.tp-plan__room {
  position: relative;
  width: 15.8em;
  height: 12.5em;
  border: 0.35em solid var(--bone-100);
  border-radius: 0.2em;
  background: var(--ink-850);
}

.tp-plan__room i {
  position: absolute;
}

/* tegels van 60 cm: 8,67 × 6,83 per kamer; schuiven er diagonaal in */
.tp-plan__tiles {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 11, 0.5) 1px, transparent 1px) 0 0 / calc(100% / 8.667) 100%,
    linear-gradient(rgba(5, 6, 11, 0.5) 1px, transparent 1px) 0 0 / 100% calc(100% / 6.833),
    linear-gradient(135deg, #d3cabb, #ada291);
  clip-path: polygon(0 0, 0 0, 0 0);
  transition: clip-path 1.7s var(--ease-in-out);
}

.tp-plan.is-on .tp-plan__tiles {
  clip-path: polygon(0 0, 200% 0, 0 200%);
}

.tp-plan__win {
  left: 18%;
  top: -0.35em;
  width: 23%;
  height: 0.35em;
  background: var(--ice-400);
}

/* deur in de onderwand, met draaicirkel */
.tp-plan__door {
  left: 62%;
  bottom: -0.35em;
  width: 17.3%;
  height: 0.35em;
  background: var(--ink-850);
}

.tp-plan__door::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  aspect-ratio: 1;
  border-left: 2px solid var(--bone-100);
  border-top: 1px dashed rgba(243, 239, 232, 0.55);
  border-right: 1px dashed rgba(243, 239, 232, 0.55);
  border-top-right-radius: 100%;
}

.tp-plan__room small {
  position: absolute;
  color: var(--plasma-300);
  font-family: var(--font-mono);
  font-size: 0.85em;
  white-space: nowrap;
  opacity: 0.35;
  transition: opacity 0.4s 0.3s;
}

.tp-plan.is-on .tp-plan__room small {
  opacity: 1;
}

.tp-plan__w {
  left: 0;
  right: 0;
  top: -2.2em;
  text-align: center;
}

.tp-plan__h {
  left: -1.5em;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.tp-need--tiles {
  padding-block: 0.65em;
}

.tp-need--tiles .tp-need__txt b {
  font-size: 2em;
}

.tp-dl {
  padding: 0.2em 1.3em;
  border-radius: 1.5em;
  background: var(--ink-850);
  border: 1px solid var(--line);
}

.tp-dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.45em 0;
  font-size: 1.1em;
  opacity: 0.25;
  transition: opacity 0.4s;
}

.tp-dl > div + div {
  border-top: 1px solid var(--line);
}

.tp-dl dt {
  color: var(--text-2);
}

.tp-dl dd {
  font-weight: 600;
}

.tp-dl.is-on > div {
  opacity: 1;
}

.tp-dl.is-on > div:nth-child(2) { transition-delay: 0.12s; }
.tp-dl.is-on > div:nth-child(3) { transition-delay: 0.24s; }

/* 4 · uren en marge */
.tp-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.tp-title b {
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tp-tasks {
  display: grid;
  gap: 0.5em;
}

.tp-tasks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45em 1em;
  padding: 0.75em 1.1em;
  border-radius: 1.2em;
  background: var(--ink-850);
  border: 1px solid var(--line);
  font-size: 1.05em;
}

.tp-tasks span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-2);
}

.tp-tasks b {
  font-weight: 600;
  white-space: nowrap;
}

.tp-tasks i {
  grid-column: 1 / -1;
  height: 0.35em;
  border-radius: 1em;
  background: var(--grad-plasma);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out);
}

.tp-tasks.is-on i {
  transform: scaleX(var(--w));
}

.tp-tasks.is-on li:nth-child(2) i { transition-delay: 0.15s; }
.tp-tasks.is-on li:nth-child(3) i { transition-delay: 0.3s; }

.tp-hours {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0 0.3em;
}

.tp-hours > span {
  color: var(--text-3);
  font-size: 1.05em;
}

.tp-hours b {
  font-size: 1.6em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tp-hours small {
  margin-left: auto;
  color: var(--text-3);
  font-size: 1em;
}

.tp-margin {
  display: grid;
  gap: 0.8em;
  padding: 1.1em 1.3em;
  border-radius: 1.5em;
  background: var(--ink-850);
  border: 1px solid var(--line);
}

/* zelfde curve als het tellen in phone-kit.js (ease-out cubic) */
.tp-stack {
  display: flex;
  gap: 0.25em;
  height: 0.9em;
}

.tp-stack i {
  border-radius: 0.3em;
  transition: flex-grow 1.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.tp-stack i:nth-child(1) { flex: 212 1 0; background: var(--ice-500); }
.tp-stack i:nth-child(2) { flex: 720 1 0; background: var(--ink-500); }
.tp-stack i:nth-child(3) { flex: 93 1 0; background: var(--grad-plasma); }

.tp-margin.is-up .tp-stack i:nth-child(3) {
  flex-grow: 233;
}

.tp-legend {
  display: flex;
  gap: 1em;
  color: var(--text-3);
  font-size: 0.9em;
}

.tp-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.tp-legend i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 0.2em;
}

.tp-legend > span:nth-child(1) i { background: var(--ice-500); }
.tp-legend > span:nth-child(2) i { background: var(--ink-500); }
.tp-legend > span:nth-child(3) i { background: var(--plasma-400); }

/* marge-schuif: 0–40% over de hele baan (10% → 25%, 25% → 62,5%) */
.tp-slider {
  display: flex;
  align-items: center;
  gap: 1.2em;
}

.tp-slider__track {
  position: relative;
  flex: 1;
  height: 0.5em;
  margin-left: 1em;
  border-radius: 1em;
  background: var(--ink-700);
}

.tp-slider__fill,
.tp-slider__knob {
  position: absolute;
  inset: 0;
  transition: transform 1.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.tp-slider__fill {
  border-radius: 1em;
  background: var(--grad-plasma);
  transform-origin: 0 50%;
  transform: scaleX(0.25);
}

.tp-slider__knob {
  transform: translateX(25%);
}

.tp-slider__knob i {
  position: absolute;
  left: -1em;
  top: 50%;
  width: 2em;
  height: 2em;
  margin-top: -1em;
  border-radius: 50%;
  background: var(--bone-50);
  box-shadow: 0 0.3em 0.8em rgba(0, 0, 0, 0.5), 0 0 0 0.35em rgba(255, 91, 31, 0.25);
}

.tp-margin.is-up .tp-slider__fill {
  transform: scaleX(0.625);
}

.tp-margin.is-up .tp-slider__knob {
  transform: translateX(62.5%);
}

.tp-slider > b {
  min-width: 3em;
  color: var(--plasma-200);
  font-size: 1.4em;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tp-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
}

.tp-price > span {
  display: grid;
  gap: 0.1em;
  padding: 0.7em 1em;
  border-radius: 1.1em;
  background: var(--ink-800);
}

.tp-price small {
  color: var(--text-3);
  font-size: 0.95em;
}

.tp-price b {
  font-size: 1.5em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tp-price > span + span b {
  color: var(--ok-400);
}

/* 5 · foto's voor en na: de schuif onthult de geschilderde wand */
.tp-ba {
  position: relative;
  height: 24em;
  overflow: hidden;
  border-radius: 1.6em;
}

.tp-ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 88%);
  transition: clip-path 0.9s var(--ease-in-out);
}

.tp-ba__handle {
  position: absolute;
  inset: 0;
  transform: translateX(88%);
  transition: transform 0.9s var(--ease-in-out);
}

.tp-ba__handle::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bone-50);
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
}

.tp-ba__handle i {
  position: absolute;
  left: -1.4em;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  margin-top: -1.4em;
  border-radius: 50%;
  background: var(--bone-50);
  color: var(--ink-950);
  box-shadow: 0 0.3em 1em rgba(0, 0, 0, 0.5);
}

.tp-ba__handle svg {
  font-size: 1.5em;
  stroke-width: 2.4;
}

.tp-ba.is-sweep .tp-ba__after,
.tp-ba.is-sweep .tp-ba__handle {
  transition-duration: 2s;
}

.tp-ba.is-sweep .tp-ba__after { clip-path: inset(0 0 0 12%); }
.tp-ba.is-sweep .tp-ba__handle { transform: translateX(12%); }
.tp-ba.is-half .tp-ba__after { clip-path: inset(0 0 0 50%); }
.tp-ba.is-half .tp-ba__handle { transform: translateX(50%); }

.tp-ba__tag {
  position: absolute;
  top: 0.8em;
  left: 0.8em;
  padding: 0.3em 0.75em;
  border-radius: 2em;
  background: rgba(5, 6, 11, 0.72);
  color: var(--bone-100);
  font-size: 0.9em;
  font-weight: 600;
}

.tp-ba__tag--after {
  left: auto;
  right: 0.8em;
  background: var(--grad-plasma);
  color: var(--ink-950);
}

.tp-shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6em;
}

.tp-shots i {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.8em;
}

.tp-shots i:nth-child(1) { background: linear-gradient(160deg, #7d7466, #4b3b2c); }
.tp-shots i:nth-child(2) { background: linear-gradient(200deg, #8a8274, #56677f); }
.tp-shots i:nth-child(3) { background: linear-gradient(160deg, #b5ab9b, #71695b); }
.tp-shots i:nth-child(4) { background: linear-gradient(120deg, #cfc6b8, #8a8274); }

/* lege plek → de foto van vandaag */
.tp-shots i:last-child {
  border: 1px dashed var(--ink-500);
}

.tp-shots i:last-child::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-4);
  font-size: 1.6em;
}

.tp-shots.is-on i:last-child {
  border-color: transparent;
  background: linear-gradient(160deg, #efe9df, #d8cfbf);
  box-shadow: 0 0 0 2px var(--plasma-400);
  animation: ap-pop 0.45s var(--ease-spring) both;
}

.tp-shots.is-on i:last-child::after {
  content: none;
}

@keyframes tp-scan {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes tp-flash {
  from { opacity: 0.6; }
  to { opacity: 0; }
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process__body {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
}

.process__path {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 100%;
}

.process__path path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.process__path-bg {
  stroke: var(--line);
  stroke-width: 1.5;
}

.process__path-fg {
  stroke: var(--plasma-400);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 5px rgba(255, 91, 31, 0.8));
}

.process__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  z-index: 2;
  pointer-events: none;
}

.process__dot i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #FFB36B 45%, #FF5B1F);
  box-shadow: 0 0 16px 3px rgba(255, 91, 31, 0.9), 0 0 50px 10px rgba(255, 91, 31, 0.3);
}

.process__steps {
  display: grid;
  gap: clamp(40px, 8vw, 80px);
  padding-left: 64px;
  padding-block: 20px;
}

.pstep {
  position: relative;
  display: grid;
  gap: 14px;
}

.pstep__n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-4);
  transition: color 0.5s;
}

.pstep__card {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
  opacity: 0.45;
  transform: translateX(12px);
  transition: opacity 0.6s, transform 0.8s var(--ease-out), border-color 0.6s;
}

.pstep__card h3 {
  font-size: var(--fs-h3);
}

.pstep__card p:not(.pstep__kicker) {
  color: var(--text-2);
}

.pstep__kicker {
  color: var(--plasma-300);
}

/* werkwijze: wat je per stap krijgt en wat we van je nodig hebben */
.pstep__facts {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pstep__facts div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 12px;
  font-size: 0.9375rem;
}

.pstep__facts dt {
  padding-top: 4px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pstep__facts dd {
  color: var(--text-2);
}

@media (max-width: 599px) {
  .pstep__facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

.process__note,
.process__more {
  max-width: 62ch;
  margin: clamp(32px, 4vw, 48px) auto 0;
  text-align: center;
}

.process__note {
  color: var(--text-3);
}

.process__more {
  display: flex;
  justify-content: center;
}

.pstep.is-active .pstep__card {
  opacity: 1;
  transform: none;
  border-color: rgba(255, 122, 61, 0.28);
}

.pstep.is-active .pstep__n {
  color: var(--plasma-300);
}

@media (min-width: 900px) {
  .process__path {
    left: 50%;
    width: 180px;
    margin-left: -90px;
  }

  .process__steps {
    padding-left: 0;
    gap: 40px;
  }

  .pstep {
    width: calc(50% - 110px);
  }

  .pstep:nth-child(even) {
    margin-left: auto;
  }

  .pstep:nth-child(even) .pstep__card {
    transform: translateX(-12px);
  }

  .pstep.is-active:nth-child(even) .pstep__card {
    transform: none;
  }

  .pstep:nth-child(odd) {
    text-align: right;
  }

  .pstep:nth-child(odd) .pstep__card {
    text-align: left;
  }
}

/* ==========================================================================
   CARE — tiers
   ========================================================================== */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.tiers {
  display: grid;
  gap: 16px;
}

.tier {
  position: relative;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  border: 1px solid rgba(143, 180, 255, 0.09);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
  will-change: transform;
}

.tier--featured {
  border-color: transparent;
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(255, 91, 31, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(26, 22, 26, 0.9), rgba(12, 12, 18, 0.95));
}

.tier--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), rgba(255, 122, 61, 0.2) 0%, rgba(255, 122, 61, 0.2) 60%, #FFB36B 78%, #FF5B1F 84%, rgba(255, 122, 61, 0.2) 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 5s linear infinite;
  pointer-events: none;
}

@keyframes spin-angle {
  to { --angle: 360deg; }
}

/* de draaiende rand (custom property + masker) herschildert elke frame de hele
   kaart — alleen op sterke computers (fx-rich, niveau 12+), elders een vaste rand */
html:not(.fx-rich) .tier--featured::before {
  animation: none;
  --angle: 215deg;
}

.tier__badge {
  position: absolute;
  top: 20px;
  right: 20px;
}

.tier__name {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tier__desc {
  color: var(--text-2);
  font-size: 0.9375rem;
  min-height: 3em;
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.tier__price b {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1;
}

.tier__price span {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.tier__list {
  display: grid;
  gap: 12px;
}

.tier__list li {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.tier__list .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke-width: 2;
  color: var(--plasma-400);
}

.tier .btn {
  margin-top: 6px;
}

.care__security {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 40px;
  color: var(--text-3);
}

.care__security ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 960px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .tier--featured {
    translate: 0 -14px;
  }
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final {
  position: relative;
  padding-block: clamp(120px, 16vw, 240px);
  overflow: hidden;
  text-align: center;
}

.final__orb {
  position: absolute;
  left: 50%;
  top: clamp(70px, 9vw, 150px);
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  perspective: 900px;
  pointer-events: none;
  opacity: 0.9;
}

.final__ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(143, 180, 255, 0.14);
  transform-style: preserve-3d;
}

.final__ring--1 {
  transform: rotateX(74deg);
  animation: orbit-a 22s linear infinite;
  border-color: rgba(255, 122, 61, 0.22);
  border-top-color: rgba(255, 179, 107, 0.7);
}

.final__ring--2 {
  inset: 22%;
  transform: rotateX(74deg) rotateY(28deg);
  animation: orbit-b 30s linear infinite;
}

.final__ring--3 {
  inset: 4%;
  transform: rotateX(80deg) rotateY(-18deg);
  border-style: dashed;
  border-color: rgba(143, 180, 255, 0.08);
  animation: orbit-c 60s linear infinite;
}

@keyframes orbit-a {
  to { transform: rotateX(74deg) rotateZ(360deg); }
}

@keyframes orbit-b {
  to { transform: rotateX(74deg) rotateY(28deg) rotateZ(-360deg); }
}

@keyframes orbit-c {
  to { transform: rotateX(80deg) rotateY(-18deg) rotateZ(360deg); }
}

.final__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #fff 0%, #FFD3A8 12%, #FF7A3D 34%, rgba(255, 91, 31, 0.4) 55%, transparent 72%);
  filter: blur(2px);
  box-shadow: 0 0 120px 40px rgba(255, 91, 31, 0.22);
  animation: loader-core 4s ease-in-out infinite;
}

.final__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 26px;
}

.final__title {
  font-size: var(--fs-h1);
  max-width: 14ch;
}

.final__title em {
  color: var(--plasma-300);
}

.final .lead {
  max-width: 52ch;
}

.final__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
  margin-top: 24px;
  text-align: left;
}

.option {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--radius);
  border: 1px solid rgba(143, 180, 255, 0.1);
  background: rgba(12, 15, 24, 0.85);
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}

.option:hover {
  border-color: rgba(255, 122, 61, 0.55);
  transform: translateY(-4px);
}

.option__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 91, 31, 0.1);
  border: 1px solid rgba(255, 122, 61, 0.3);
  color: var(--plasma-300);
  margin-bottom: 6px;
}

.option__icon .icon {
  width: 22px;
  height: 22px;
}

.option__icon--wa {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.35);
  color: #4BE08A;
}

.option__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.option__text {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* drie opties (zonder WhatsApp-nummer): laatste kaart over de volle breedte */
.final__options.is-short > :last-child {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .final__options {
    grid-template-columns: repeat(4, 1fr);
  }

  .final__options.is-short {
    grid-template-columns: repeat(3, 1fr);
  }

  .final__options.is-short > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .final__options {
    grid-template-columns: 1fr;
  }
}
