/* ==========================================================================
   ProntoCore — Layout: aankondiging, header, mega-menu, mobiel menu,
   zoekpalet, footer, FAB. Mobile first.
   ========================================================================== */

/* ---------------- Paginaovergang (gordijn) ---------------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9950;
  pointer-events: none;
  visibility: hidden;
}

.curtain__panel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 50% 50%, rgba(255, 91, 31, 0.08), transparent 70%),
    var(--ink-950);
  transform: translateY(101%);
}

.curtain__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--grad-plasma);
  box-shadow: 0 0 24px 4px rgba(255, 91, 31, 0.55);
}

.curtain__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%) scale(0.8);
  color: var(--bone-50);
  opacity: 0;
}

.curtain__mark .brand-mark {
  width: 100%;
  height: 100%;
}

html.is-leaving .curtain,
html.is-arriving .curtain {
  visibility: visible;
  pointer-events: auto;
}

html.is-leaving .curtain__panel {
  transform: translateY(0);
  transition: transform 0.62s var(--ease-in-out);
}

html.is-leaving .curtain__mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.3s 0.3s, transform 0.6s var(--ease-out) 0.3s;
}

html.is-arriving .curtain__panel {
  transform: translateY(0);
}

html.is-arriving .curtain__mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

html.is-arriving.is-arrived .curtain__panel {
  transform: translateY(-101%);
  transition: transform 0.85s var(--ease-in-out) 0.05s;
}

html.is-arriving.is-arrived .curtain__panel::before {
  top: auto;
  bottom: -1px;
}

html.is-arriving.is-arrived .curtain__mark {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.2);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

html.is-arriving.is-arrived .curtain {
  pointer-events: none;
}

/* ---------------- Aankondigingsbalk ---------------- */
.announce {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 820;
  height: var(--bar-h);
  display: grid;
  place-items: center;
  background: rgba(5, 6, 11, 0.94);
  border-bottom: 1px solid rgba(255, 179, 107, 0.14);
  transition: transform 0.6s var(--ease-out);
}

.announce__link {
  display: block;
  line-height: var(--bar-h);
  padding-inline: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--plasma-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100vw;
  transition: color var(--dur-2);
}

.announce__link:hover {
  color: var(--bone-50);
}

@media (min-width: 768px) {
  .announce__link {
    font-size: 0.6875rem;
    letter-spacing: 0.42em;
  }
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  z-index: 810;
  transition: transform 0.6s var(--ease-out), background-color 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 6, 11, 0.94);
  opacity: 0;
  transition: opacity 0.5s;
}

html.is-scrolled .announce {
  transform: translateY(-100%);
}

html.is-scrolled .site-header {
  transform: translateY(calc(var(--bar-h) * -1));
  border-bottom-color: rgba(143, 180, 255, 0.07);
}

html.is-scrolled .site-header::before,
html.mega-open .site-header::before {
  opacity: 1;
}

html.is-scrolled.header-hidden:not(.mega-open):not(.menu-open):not(.chat-open) .site-header {
  transform: translateY(calc(-100% - var(--bar-h) - 2px));
}

.site-header__inner {
  position: relative;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding-inline: var(--gutter);
  max-width: calc(1680px + var(--gutter) * 2);
  margin-inline: auto;
  transition: height 0.6s var(--ease-out);
}

@supports (padding: max(0px)) {
  .site-header__inner {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

/* ---- Merk ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone-50);
  justify-self: start;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-mark__core {
  filter: drop-shadow(0 0 6px rgba(255, 91, 31, 0.9));
  transform-origin: 20.5px 15.5px;
  animation: core-breathe 3.6s ease-in-out infinite;
}

@keyframes core-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.82); }
}

.brand__word {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  line-height: 1;
}

.brand__word span {
  font-weight: 300;
  color: var(--plasma-300);
}

/* ---- Primaire nav (desktop) ---- */
.nav-primary {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 52px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-100);
  transition: color var(--dur-2);
}

.nav-link .icon {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
  transition: transform 0.5s var(--ease-out);
}

.nav-link:hover,
.nav-link.is-current,
.nav-link[aria-expanded="true"] {
  color: var(--plasma-200);
}

.nav-link[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

/* Indicator: rekbare plasmalijn ónder het label (raakt de tekst nooit) */
.nav-indicator {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  transition: left 0.5s var(--ease-out), right 0.5s var(--ease-out), opacity 0.35s;
}

.nav-indicator.is-on {
  opacity: 1;
}

.nav-indicator__line {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 122, 61, 0) 0%, rgba(255, 122, 61, 0.85) 22%, #FFB36B 50%, rgba(255, 122, 61, 0.85) 78%, rgba(255, 122, 61, 0) 100%);
  box-shadow: 0 2px 10px -1px rgba(255, 91, 31, 0.65);
}

.nav-indicator__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #FFF3E6;
  box-shadow: 0 0 6px 1px #FF7A3D, 0 0 14px 2px rgba(255, 91, 31, 0.6);
}

/* ---- Acties rechts ---- */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--bone-100);
  transition: color var(--dur-2), background-color var(--dur-2);
}

.icon-btn .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.5;
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  color: var(--plasma-300);
  background: rgba(255, 91, 31, 0.08);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
}

.lang-switch span {
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-3);
  transition: background-color var(--dur-2), color var(--dur-2);
}

.lang-switch span.is-active {
  background: var(--bone-50);
  color: var(--ink-950);
}

.lang-switch:hover span:not(.is-active) {
  color: var(--plasma-300);
}

.nav-actions .lang-switch--header,
.nav-actions .cursor-switch,
.nav-actions .nav-cta {
  display: none;
}

/* ---- Menuknop ---- */
.menu-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color var(--dur-2), background-color var(--dur-2);
}

.menu-btn span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--bone-50);
  border-radius: 2px;
  transition: transform 0.55s var(--ease-out), background-color 0.3s;
}

.menu-btn span:nth-child(1) { transform: translateY(-3.5px); }
.menu-btn span:nth-child(2) { transform: translateY(3.5px); left: 19px; }

.menu-btn:hover {
  border-color: var(--plasma-500);
}

html.menu-open .menu-btn {
  background: var(--bone-50);
  border-color: var(--bone-50);
}

html.menu-open .menu-btn span {
  background: var(--ink-950);
}

html.menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
html.menu-open .menu-btn span:nth-child(2) { transform: rotate(-45deg); left: 14px; }

@media (min-width: 768px) {
  .nav-actions .nav-cta {
    display: inline-flex;
  }
  .nav-actions {
    gap: 10px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
}

/* ---------------- Desktop header (≥1100px) ---------------- */
@media (min-width: 1100px) {
  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }

  .nav-primary {
    display: block;
    position: relative;
    justify-self: start;
  }

  .site-header .brand {
    grid-column: 2;
    flex-direction: column;
    gap: 9px;
    justify-self: center;
  }

  .site-header .brand-mark {
    width: 40px;
    height: 40px;
    transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out);
  }

  .site-header .brand__word {
    font-size: 0.875rem;
    letter-spacing: 0.4em;
    margin-right: -0.4em;
    transition: opacity 0.4s, transform 0.6s var(--ease-out), max-height 0.6s var(--ease-out);
    max-height: 20px;
  }

  .nav-actions {
    grid-column: 3;
    gap: 8px;
  }

  .nav-actions .lang-switch--header,
  .nav-actions .cursor-switch {
    display: inline-flex;
  }

  .menu-btn {
    display: none;
  }

  html.is-scrolled .site-header__inner {
    height: 78px;
  }

  html.is-scrolled .site-header .brand__word {
    opacity: 0;
    max-height: 0;
    transform: translateY(-6px);
  }

  html.is-scrolled .site-header .brand-mark {
    width: 34px;
    height: 34px;
  }

  html.is-touch .nav-actions .cursor-switch {
    display: none;
  }
}

/* ---------------- Mega-menu ---------------- */
.mega {
  display: none;
}

@media (min-width: 1100px) {
  .mega {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100svh - var(--header-h) - var(--bar-h));
    overflow: auto;
    background:
      radial-gradient(900px 420px at 12% -10%, rgba(255, 122, 61, 0.13), transparent 60%),
      radial-gradient(700px 400px at 90% 120%, rgba(143, 180, 255, 0.07), transparent 60%),
      linear-gradient(180deg, #0A0C14 0%, #06070D 100%);
    border-top: 1px solid rgba(255, 179, 107, 0.16);
    border-bottom: 1px solid rgba(143, 180, 255, 0.08);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
  }

  html.mega-open .mega {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.75s var(--ease-out), visibility 0s;
  }

  .mega__inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 3.1fr;
    gap: clamp(32px, 4vw, 72px);
    max-width: calc(1560px + var(--gutter) * 2);
    margin-inline: auto;
    padding: clamp(36px, 4.4vh, 60px) var(--gutter) clamp(40px, 5vh, 64px);
  }

  .mega__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-right: clamp(24px, 3vw, 56px);
    border-right: 1px solid rgba(255, 179, 107, 0.14);
  }

  .mega__title {
    font-size: clamp(1.9rem, 2.4vw, 2.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 500;
  }

  .mega__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--plasma-300);
  }

  .mega__text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.45;
    color: var(--text-2);
    max-width: 30ch;
  }

  .mega__search {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    font-size: 0.8125rem;
    white-space: nowrap;
    color: var(--text-2);
    transition: border-color var(--dur-2), color var(--dur-2);
  }

  .mega__search kbd {
    white-space: nowrap;
  }

  .mega__search .icon {
    width: 16px;
    height: 16px;
  }

  .mega__search:hover {
    border-color: rgba(255, 91, 31, 0.5);
    color: var(--bone-50);
  }

  .mega__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  html.mega-open .mega-card {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.12s + var(--i) * 0.045s);
  }
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
}

/* Mega-kaart */
.mega-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(143, 180, 255, 0.1);
  border-radius: 4px;
  background:
    radial-gradient(260px 200px at var(--mx) var(--my), rgba(255, 122, 61, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(17, 21, 34, 0.7), rgba(8, 10, 18, 0.7));
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), border-color 0.4s;
}

.mega-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(180px 140px at var(--mx) var(--my), rgba(255, 122, 61, 0.8), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.mega-card:hover::after,
.mega-card:focus-visible::after {
  opacity: 1;
}

.mega-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(84px, 11vh, 120px);
  color: var(--bone-100);
}

.mega-card__visual .icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  stroke-width: 1.15;
  transition: transform 0.7s var(--ease-out), color 0.4s;
}

.mega-card__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 122, 61, 0.2), transparent 70%);
  transition: opacity 0.5s, transform 0.7s var(--ease-out);
  opacity: 0.8;
}

.mega-card:hover .mega-card__glow {
  opacity: 1;
  transform: scaleY(1.25);
}

.mega-card:hover .mega-card__visual .icon {
  transform: translateY(-4px) scale(1.06);
  color: var(--bone-50);
}

.mega-card__body {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(143, 180, 255, 0.07);
}

.mega-card__num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-4);
}

.mega-card__title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-50);
}

.mega-card__desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text-2);
}

.mega-card--care {
  grid-column: span 2;
  flex-direction: row;
  border-color: rgba(255, 122, 61, 0.28);
  background:
    radial-gradient(260px 200px at var(--mx) var(--my), rgba(255, 122, 61, 0.16), transparent 70%),
    linear-gradient(110deg, rgba(255, 91, 31, 0.08), rgba(8, 10, 18, 0.7) 55%);
}

.mega-card--care .mega-card__visual {
  height: auto;
  width: 38%;
  flex: none;
}

.mega-card--care .mega-card__glow {
  inset: 0;
  height: auto;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 91, 31, 0.28), transparent 70%);
}

.mega-card--care .mega-card__body {
  border-top: 0;
  border-left: 1px solid rgba(255, 122, 61, 0.14);
  align-content: center;
}

.mega-card--care .mega-card__num {
  color: var(--plasma-300);
}

/* Tekenbare iconen */
.icon--division .i-accent {
  color: var(--plasma-400);
  stroke: var(--plasma-400);
}

.draw-on-hover:hover [data-draw],
.mega-card:hover [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-in 1.1s var(--ease-out) forwards;
}

@keyframes draw-in {
  to {
    stroke-dashoffset: 0;
  }
}

[data-draw] {
  vector-effect: non-scaling-stroke;
}

/* pathLength voor draw-animatie (JS zet pathLength="1") */

/* ---------------- Cursorkeuze popover ---------------- */
.cursor-switch {
  position: relative;
}

.cursor-pop {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  width: 290px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(10, 12, 20, 0.94);
  border: 1px solid rgba(143, 180, 255, 0.1);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.cursor-switch.is-open .cursor-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s;
}

.cursor-pop__title {
  padding: 6px 10px 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cursor-opt {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background-color var(--dur-2);
}

.cursor-opt:hover,
.cursor-opt:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.cursor-opt[aria-checked="true"] {
  background: rgba(255, 91, 31, 0.08);
}

.cursor-opt__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.cursor-opt__desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
}

.cursor-opt__check {
  opacity: 0;
  color: var(--plasma-400);
}

.cursor-opt__check .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.cursor-opt[aria-checked="true"] .cursor-opt__check {
  opacity: 1;
}

.cursor-opt__preview {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cursor-opt__preview i,
.cursor-opt__preview b {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
}

.cursor-opt__preview--core i {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--plasma-500); box-shadow: var(--glow-plasma);
}

.cursor-opt__preview--core b {
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 1px solid rgba(243, 239, 232, 0.6);
  animation: prev-pulse 2.4s var(--ease-out) infinite;
}

.cursor-opt__preview--comet i {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px var(--plasma-400), 0 0 16px var(--plasma-500);
  animation: prev-comet 2.2s var(--ease-in-out) infinite;
}

.cursor-opt__preview--comet b {
  width: 26px; height: 3px; margin: -1.5px 0 0 -26px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 91, 31, 0.9));
  transform-origin: right center;
  animation: prev-comet 2.2s var(--ease-in-out) infinite;
}

.cursor-opt__preview--hud i {
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  background:
    linear-gradient(var(--ice-400), var(--ice-400)) center / 1px 100% no-repeat,
    linear-gradient(var(--ice-400), var(--ice-400)) center / 100% 1px no-repeat;
  opacity: 0.8;
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px);
  mask: radial-gradient(circle, transparent 3px, #000 3.5px);
}

.cursor-opt__preview--hud b {
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 1px solid var(--plasma-400);
  -webkit-mask: linear-gradient(#000 0 0) top left / 5px 5px no-repeat, linear-gradient(#000 0 0) top right / 5px 5px no-repeat, linear-gradient(#000 0 0) bottom left / 5px 5px no-repeat, linear-gradient(#000 0 0) bottom right / 5px 5px no-repeat;
  mask: linear-gradient(#000 0 0) top left / 5px 5px no-repeat, linear-gradient(#000 0 0) top right / 5px 5px no-repeat, linear-gradient(#000 0 0) bottom left / 5px 5px no-repeat, linear-gradient(#000 0 0) bottom right / 5px 5px no-repeat;
  animation: prev-spin 6s linear infinite;
}

.cursor-opt__preview--sparks i {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--plasma-300);
  box-shadow: 8px -6px 0 -1px var(--plasma-500), -7px 5px 0 -1.5px var(--plasma-300), 5px 9px 0 -1.5px var(--ice-400), -9px -7px 0 -1.8px var(--plasma-400);
  animation: prev-sparks 1.8s ease-in-out infinite;
}

.cursor-opt__preview--system i {
  width: 14px; height: 18px; margin: -9px 0 0 -6px;
  background: var(--bone-50);
  clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 100%, 58% 94%, 40% 56%, 72% 56%);
}

@keyframes prev-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes prev-comet {
  0%, 100% { transform: translate(-8px, 6px); }
  50% { transform: translate(8px, -6px); }
}

@keyframes prev-spin {
  to { transform: rotate(360deg); }
}

@keyframes prev-sparks {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(1.4) rotate(40deg); opacity: 0.6; }
}

/* ---------------- Mobiel menu ---------------- */
/* openen/sluiten met opacity + transform (compositor). Het oude clip-path-cirkeleffect
   herschilderde elke frame het hele scherm — op telefoons merkbaar schokkerig. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--ink-950);
  opacity: 0;
  transform: translate3d(0, -14px, 0);
  visibility: hidden;
  transition: opacity 0.38s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

html.menu-open .mobile-menu {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.42s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s;
}

.mobile-menu__glow {
  position: absolute;
  left: 50%;
  bottom: -30vh;
  width: 120vw;
  height: 70vh;
  transform: translate3d(-50%, 18%, 0);
  opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 91, 31, 0.22), rgba(255, 91, 31, 0.04) 60%, transparent);
  pointer-events: none;
  transition: transform 1s var(--ease-out), opacity 0.8s var(--ease-out);
}

html.menu-open .mobile-menu__glow {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  transition-delay: 0.1s;
}

.mobile-menu__inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: calc(var(--header-h) + var(--bar-h) + 16px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
}

html.is-scrolled .mobile-menu__inner {
  padding-top: calc(var(--header-h) + 16px);
}

.mm-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.mm-list > li {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s, transform 0.8s var(--ease-out);
}

html.menu-open .mm-list > li {
  opacity: 1;
  transform: none;
}

html.menu-open .mm-list > li:nth-child(1) { transition-delay: 0.1s; }
html.menu-open .mm-list > li:nth-child(2) { transition-delay: 0.15s; }
html.menu-open .mm-list > li:nth-child(3) { transition-delay: 0.2s; }
html.menu-open .mm-list > li:nth-child(4) { transition-delay: 0.25s; }
html.menu-open .mm-list > li:nth-child(5) { transition-delay: 0.3s; }
html.menu-open .mm-list > li:nth-child(6) { transition-delay: 0.35s; }

.mm-link {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  text-align: left;
}

.mm-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--plasma-400);
}

.mm-label {
  font-size: clamp(1.9rem, 8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color var(--dur-2), transform 0.5s var(--ease-out);
}

.mm-link:hover .mm-label,
.mm-link:focus-visible .mm-label {
  color: var(--plasma-300);
  transform: translateX(6px);
}

.mm-plus {
  position: relative;
  margin-left: auto;
  width: 18px;
  height: 18px;
  align-self: center;
}

.mm-plus::before,
.mm-plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}

.mm-plus::after {
  transform: rotate(90deg);
}

.mm-acc.is-open .mm-plus::after {
  transform: rotate(0deg);
}

.mm-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.mm-acc.is-open .mm-sub {
  grid-template-rows: 1fr;
}

.mm-sub > ul {
  overflow: hidden;
  display: grid;
  gap: 2px;
}

.mm-acc.is-open .mm-sub > ul {
  padding-bottom: 16px;
}

.mm-sub a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 10px 34px;
  font-size: 1.05rem;
  color: var(--text-2);
  transition: color var(--dur-2);
}

.mm-sub a:hover {
  color: var(--bone-50);
}

.mm-sub__icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.4;
}

.mm-sub__all a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plasma-300);
}

.mm-sub__all .icon {
  width: 14px;
  height: 14px;
}

.mm-foot {
  margin-top: auto;
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.8s var(--ease-out);
}

html.menu-open .mm-foot {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.mm-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.mm-quick__btn {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-2);
  transition: border-color var(--dur-2), color var(--dur-2);
}

.mm-quick__btn .icon {
  width: 22px;
  height: 22px;
}

.mm-quick__btn:hover {
  border-color: var(--plasma-500);
  color: var(--bone-50);
}

.mm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 1100px) {
  .mobile-menu {
    display: none;
  }
}

.status-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.status-dot::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok-400);
  box-shadow: 0 0 8px rgba(91, 228, 155, 0.45);
}

/* pulserende ring: transform + opacity (draait op de GPU, geen herschilderen) */
.status-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  border: 1px solid rgba(91, 228, 155, 0.7);
  animation: ring-ping 2.4s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes ring-ping {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ---------------- Zoekpalet ---------------- */
.palette {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(10vh, 72px) 12px 12px;
  visibility: hidden;
  transition: visibility 0s linear 0.45s;
}

.palette.is-open {
  visibility: visible;
  transition: visibility 0s;
}

.palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s;
}

.palette.is-open .palette__backdrop {
  opacity: 1;
}

.palette__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(620px, 80svh);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 21, 34, 0.98), rgba(10, 12, 20, 0.98));
  border: 1px solid rgba(143, 180, 255, 0.12);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 91, 31, 0.06), 0 0 80px -20px rgba(255, 91, 31, 0.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}

.palette.is-open .palette__panel {
  opacity: 1;
  transform: none;
}

.palette__search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.palette__search > .icon {
  width: 20px;
  height: 20px;
  color: var(--plasma-400);
  flex: none;
}

.palette__search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 1.05rem;
  color: var(--bone-50);
}

.palette__search input::placeholder {
  color: var(--text-4);
}

.palette__search kbd {
  cursor: pointer;
}

.palette__results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.palette__group {
  padding: 12px 12px 6px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-4);
}

.palette__item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-2);
  cursor: pointer;
}

.palette__item .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.4;
  margin-inline: auto;
}

.palette__item mark {
  background: none;
  color: var(--plasma-300);
}

.palette__item-meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  white-space: nowrap;
}

.palette__item.is-active {
  background: rgba(255, 91, 31, 0.1);
  color: var(--bone-50);
}

.palette__item.is-active .palette__item-meta {
  color: var(--plasma-300);
}

.palette__empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--text-3);
}

.palette__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-4);
}

.palette__foot kbd {
  margin-right: 3px;
}

.palette__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
}

@media (max-width: 600px) {
  .palette__foot span:not(.palette__count) {
    display: none;
  }
}

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  padding-top: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(1200px 500px at 50% 120%, rgba(255, 91, 31, 0.12), transparent 60%),
    var(--ink-950);
  overflow: hidden;
}

.footer-top {
  display: grid;
  gap: 56px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
}

.brand--footer .brand-mark {
  width: 36px;
  height: 36px;
}

.footer-motto {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 14ch;
}

.footer-motto em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--plasma-300);
}

.footer-text {
  color: var(--text-3);
  max-width: 38ch;
}

.footer-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.footer-clock {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
}

.footer-socials {
  display: flex;
  gap: 6px;
  margin-left: -10px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}

.footer-col:last-child {
  grid-column: 1 / -1;
}

.footer-col__title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-4);
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-link {
  position: relative;
  display: inline-block;
  color: var(--text-2);
  font-size: 0.95rem;
  transition: color var(--dur-2);
  overflow-wrap: anywhere;
}

.footer-link span {
  background: linear-gradient(var(--plasma-400), var(--plasma-400)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}

.footer-link:hover {
  color: var(--bone-50);
}

.footer-link:hover span {
  background-size: 100% 1px;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.1fr 1.6fr;
    gap: 48px;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-col:last-child {
    grid-column: auto;
  }
}

.footer-word {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(64px, 9vw, 130px);
  font-size: clamp(2.6rem, 11.6vw, 13.6rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 232, 0.18);
  user-select: none;
}

.footer-word__ch {
  display: inline-block;
  font-weight: var(--w, 400);
  background: linear-gradient(180deg, rgba(255, 179, 107, var(--fill, 0)) 0%, rgba(255, 91, 31, var(--fill, 0)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: transform 0.6s var(--ease-out);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  margin-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-legal a:hover,
.to-top:hover {
  color: var(--bone-50);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color var(--dur-2);
}

/* ---------------- Weergave-keuze (auto · licht · max) ---------------- */
.q-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.q-switch__label {
  padding: 0 8px 0 10px;
  color: var(--text-4);
  white-space: nowrap;
}

.q-switch__label b {
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.q-switch button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--text-3);
  text-transform: uppercase;
  transition: background-color var(--dur-2), color var(--dur-2);
}

.q-switch button:hover {
  color: var(--bone-50);
}

.q-switch button[aria-pressed="true"] {
  background: rgba(255, 91, 31, 0.14);
  color: var(--plasma-200);
}

.q-switch.is-busy {
  opacity: 0.5;
  pointer-events: none;
}

html.is-touch .q-switch button {
  min-height: 38px;
  padding: 0 12px;
}

.to-top .icon {
  width: 14px;
  height: 14px;
}

/* ---------------- Snelcontact (FAB) ---------------- */
.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 780;
  display: grid;
  justify-items: end;
  gap: 12px;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}

html.is-loading .fab,
html.menu-open .fab {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

/* telefoon, homepage: in de hero overlapt de knop de CTA's — pas daarna tonen */
@media (max-width: 767px) {
  html:not(.past-hero) body[data-page="home"] .fab {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
  }
}

.fab__btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #151a28, #07080e);
  border: 1px solid rgba(255, 179, 107, 0.32);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px -6px rgba(255, 91, 31, 0.45);
  transition: transform 0.5s var(--ease-spring), border-color var(--dur-2);
}

.fab__btn:hover {
  transform: scale(1.06);
  border-color: rgba(255, 179, 107, 0.7);
}

.fab__core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #FFB36B 35%, #FF5B1F 70%);
  box-shadow: 0 0 12px #FF5B1F, 0 0 28px rgba(255, 91, 31, 0.6);
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}

.fab__ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 107, 0.4);
  animation: fab-ring 2.8s var(--ease-out) infinite;
}

@keyframes fab-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.fab__x {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

.fab__x .icon {
  width: 20px;
  height: 20px;
}

.fab.is-open .fab__core {
  transform: scale(0);
  opacity: 0;
}

.fab.is-open .fab__ring {
  animation: none;
  opacity: 0;
}

.fab.is-open .fab__x {
  opacity: 1;
  transform: none;
}

.fab__menu {
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

.fab.is-open .fab__menu {
  pointer-events: auto;
}

.fab__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transform-origin: right center;
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

.fab.is-open .fab__item {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 0.05s);
}

.fab__item-label {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(12, 15, 24, 0.94);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fab__item-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-800);
  border: 1px solid var(--line);
  transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}

.fab__item-icon .icon {
  width: 20px;
  height: 20px;
}

.fab__item:hover .fab__item-icon {
  background: var(--plasma-500);
  border-color: var(--plasma-500);
  color: var(--ink-950);
}

.fab__item--wa:hover .fab__item-icon {
  background: #25D366;
  border-color: #25D366;
}

/* ---------------- AI-chat knop (navigatie) ---------------- */
.ai-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 179, 107, 0.28);
  background: linear-gradient(120deg, rgba(255, 91, 31, 0.12), rgba(143, 180, 255, 0.06));
  color: var(--bone-50);
  transition: border-color var(--dur-2), background-color var(--dur-2), box-shadow var(--dur-2);
}

.ai-btn:hover,
.ai-btn[aria-expanded="true"] {
  border-color: rgba(255, 122, 61, 0.75);
  box-shadow: 0 0 24px -6px rgba(255, 91, 31, 0.6);
}

.ai-btn__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF5B1F, #FFB36B, #8FB4FF, #FF5B1F);
  animation: ai-orb 6s linear infinite;
}

.ai-btn__orb::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #151a28, #07080e);
}

.ai-btn__orb i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #FFB36B 45%, #FF5B1F);
  box-shadow: 0 0 10px #FF5B1F;
  animation: core-breathe 2.4s ease-in-out infinite;
}

@keyframes ai-orb {
  to { transform: rotate(360deg); }
}

.ai-btn__label {
  display: none;
  padding-right: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 1100px) {
  .ai-btn__label {
    display: inline;
  }
}
