/* ============================================================
   OUT OF FRAME — EXPERIENCE: vlucht door het universum
   Laadt bovenop css/style.css (tokens, knoppen, formulier).

   Twee modi:
   1. STANDAARD (statisch): geen canvas — de stations staan als
      gewone secties onder elkaar. Dit is wat zoekmachines,
      no-JS-bezoekers en prefers-reduced-motion zien.
   2. html.webgl-on: gezet door js/experience/main.js zodra de
      3D-scene echt draait. Stations worden zwevende panelen,
      canvas + HUD + vluchtroute verschijnen.
   ============================================================ */

/* ---------- Basis: alles wat bij de vlucht hoort is standaard uit ---------- */
.xp-canvas,
.xp-track,
.xp-rail,
.xp-hud,
.xp-debug[hidden] { display: none; }

/* ============================================================
   TOPBALK (beide modi)
   ============================================================ */
.xp-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 28px;
  background: linear-gradient(rgba(6, 6, 9, 0.82), rgba(6, 6, 9, 0));
}
.xp-top__brand { display: flex; align-items: center; gap: 13px; }
.xp-top__brand img { width: 34px; height: 34px; }
.xp-top__name {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em; line-height: 1.25; display: flex; flex-direction: column;
}
.xp-top__name em {
  font-style: normal; font-weight: 500; font-size: 10px;
  letter-spacing: 0.32em; color: var(--text-dim);
}
.xp-top__links { display: flex; align-items: center; gap: 28px; }
.xp-top__links a:not(.btn) {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color 0.2s ease;
}
.xp-top__links a:not(.btn):hover { color: var(--text); }

/* ============================================================
   MODUS 1 — STATISCH (standaard)
   ============================================================ */
.xp-station {
  min-height: 88svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 30px) 24px 60px;
}
.xp-panel { max-width: 640px; width: 100%; text-align: center; }
.xp-panel h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 18px; }
.xp-panel .section__label { margin-bottom: 16px; }
.xp-panel__text { color: var(--text-dim); font-size: 17px; margin-bottom: 22px; }
.xp-panel .over__more { margin-top: 4px; }

.xp-panel--hero { max-width: 760px; }
.xp-hero-title { font-size: clamp(40px, 5.4vw, 70px); font-weight: 700; margin: 0 0 24px; }
.xp-hero-sub {
  font-size: 17.5px; color: var(--text-dim);
  max-width: 540px; margin: 0 auto 36px;
}
.xp-cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.xp-panel--contact { max-width: 680px; }
.xp-panel--contact .contact-form { margin-bottom: 20px; }
.xp-panel__footer {
  margin-top: 8px; font-size: 12.5px; color: var(--text-dim);
}
.xp-panel__footer a { text-decoration: underline; }
.xp-panel__footer a:hover { color: var(--accent-2); }

/* Wisselregel bij station 02 */
.xp-cycle {
  display: grid; gap: 6px; margin-bottom: 22px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.xp-cycle.is-swap { opacity: 0; transform: translateY(8px); }
.xp-cycle__label {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
}
.xp-cycle__result {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}

/* ============================================================
   MODUS 2 — DE VLUCHT (html.webgl-on)
   ============================================================ */
.webgl-on { scrollbar-width: thin; scrollbar-color: rgba(109, 92, 255, 0.5) transparent; }

.webgl-on .bg-grid,
.webgl-on .bg-glow { display: none; }

.webgl-on .xp-canvas {
  display: block;
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100%;
}

/* De scrollhoogte: ~160svh per etappe, 7 etappes */
.webgl-on .xp-track { display: block; height: 1150svh; }

.webgl-on .xp-top { z-index: 40; }

/* Stations zweven boven de scene; main.js stuurt zichtbaarheid,
   transform en pointer-events per frame aan */
.webgl-on .xp-main { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.webgl-on .xp-station {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 16px) 24px 70px;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
  perspective: 900px; /* echt 3D-gevoel bij aanvliegen en doorvliegen */
}

/* Panelen: hoekig glas met afgesneden hoeken (cockpit-stijl).
   --bgo stuurt de dekking van het glas: tijdens de doorvlucht
   verdwijnt het glas zodat je door de losse letters heen vliegt. */
.webgl-on .xp-panel {
  position: relative;
  background: rgba(6, 6, 9, calc(0.66 * var(--bgo, 1)));
  border: 1px solid rgba(255, 255, 255, calc(0.1 * var(--bgo, 1)));
  padding: 38px 44px 34px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  will-change: transform, opacity;
}

/* Duidelijker in beeld: grotere, lichtere tekst in de panelen */
.webgl-on .xp-panel h2 { font-size: clamp(34px, 4.4vw, 52px); }
.webgl-on .xp-panel .xp-panel__text {
  font-size: 18px; line-height: 1.7; color: #c9ccdd;
}
.webgl-on .xp-panel--hero .xp-hero-sub {
  font-size: 18.5px; color: #c9ccdd;
}
.webgl-on .xp-panel .over__more { font-size: 16.5px; }
.webgl-on .xp-cycle__label { font-size: 22px; }
.webgl-on .xp-cycle__result { font-size: 17.5px; }

/* De gradient-woorden leven: de kleur golft van donker naar licht
   en terug, met een heldere "sterrenglans" die er doorheen trekt */
.webgl-on .grad-text {
  background: linear-gradient(110deg,
    #3b2fae, #6d5cff 22%, #bfe9ff 46%, #00e5ff 60%, #0a7fa6 82%, #3b2fae);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: xpGradFlow 5.5s ease-in-out infinite alternate;
}
@keyframes xpGradFlow {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}
.xp-countdown {
  background-image: linear-gradient(110deg,
    #3b2fae, #6d5cff 22%, #bfe9ff 46%, #00e5ff 60%, #0a7fa6 82%, #3b2fae);
  background-size: 260% 100%;
}
.xp-countdown.is-pop {
  animation: xpPop 0.9s ease forwards, xpGradFlow 2.4s ease-in-out infinite alternate;
}

/* 3D-dikte voor de tekst: een donkere kopie trapsgewijs schuin
   achter de letters. Groeit mee met de doorvlucht, waardoor de
   koppen als massieve blokken in de ruimte hangen. */
.webgl-on .xp-panel h1,
.webgl-on .xp-panel h2 {
  text-shadow:
    1px 1px 0 rgba(8, 8, 14, 0.9),
    2px 2px 0 rgba(8, 8, 14, 0.82),
    3px 3px 0 rgba(8, 8, 14, 0.72),
    4px 4px 0 rgba(8, 8, 14, 0.6),
    5px 5px 0 rgba(8, 8, 14, 0.46),
    6px 6px 0 rgba(8, 8, 14, 0.32),
    10px 16px 30px rgba(0, 0, 0, 0.55);
}
.webgl-on .xp-panel .xp-panel__text,
.webgl-on .xp-panel .section__label,
.webgl-on .xp-panel .over__more,
.webgl-on .xp-panel .xp-cycle {
  text-shadow: 1px 1px 0 rgba(8, 8, 14, 0.7), 2px 3px 10px rgba(0, 0, 0, 0.5);
}

/* Gradient-woorden: text-shadow tekent zich bij background-clip:text
   óver de vulling heen — daar dus drop-shadow, die blijft er netjes
   achter en geeft dezelfde dikte */
.webgl-on .xp-panel h1 .grad-text,
.webgl-on .xp-panel h2 .grad-text {
  text-shadow: none;
  filter: drop-shadow(2px 2px 0 rgba(8, 8, 14, 0.9)) drop-shadow(3px 4px 3px rgba(0, 0, 0, 0.6));
}
.webgl-on .xp-panel .xp-cycle__result {
  text-shadow: none;
  filter: drop-shadow(1px 1px 0 rgba(8, 8, 14, 0.8));
}

/* Hero zweeft vrij, zonder paneelkader */
.webgl-on .xp-panel--hero {
  background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 0; clip-path: none;
  text-shadow: 0 2px 30px rgba(6, 6, 9, 0.85);
}

.webgl-on .xp-panel--contact {
  padding: 28px 34px 24px;
  max-height: 86svh; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(109, 92, 255, 0.5) transparent;
}
.webgl-on .xp-panel--contact h2 { font-size: clamp(24px, 2.6vw, 34px); }
.webgl-on .xp-panel--contact .xp-panel__text { font-size: 15px; margin-bottom: 16px; }
.webgl-on .xp-panel--contact .contact-form { gap: 12px; }

/* Op brede schermen wisselen de panelen van kant, zodat het
   3D-decor (wiel, constellatie, kubus, schild…) ernaast zichtbaar is */
@media (min-width: 1100px) {
  .webgl-on .xp-station[data-station="0"] .xp-panel { margin-right: 26vw; text-align: left; }
  .webgl-on .xp-station[data-station="0"] .xp-hero-sub { margin-left: 0; }
  .webgl-on .xp-station[data-station="0"] .xp-cta-row { justify-content: flex-start; }
  .webgl-on .xp-station[data-station="1"] .xp-panel,
  .webgl-on .xp-station[data-station="3"] .xp-panel,
  .webgl-on .xp-station[data-station="4"] .xp-panel { margin-right: 38vw; }
  .webgl-on .xp-station[data-station="2"] .xp-panel,
  .webgl-on .xp-station[data-station="5"] .xp-panel { margin-left: 38vw; }
  .webgl-on .xp-station[data-station="6"] .xp-panel { margin-right: 24vw; }
}

/* ---------- Rondleiding ---------- */
.xp-tour-btn { display: none; }
.webgl-on .xp-tour-btn { display: inline-flex; }
.webgl-on .xp-tour-btn span { color: var(--accent-2); }

.xp-countdown {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  pointer-events: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 13vw, 190px); letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 70px rgba(109, 92, 255, 0.75), 0 0 24px rgba(0, 229, 255, 0.4);
  opacity: 0;
}
.xp-countdown.is-pop { animation: xpPop 0.9s ease forwards; }
@keyframes xpPop {
  0% { opacity: 0; transform: scale(1.3); }
  25% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(0.97); }
}
.xp-countdown--min {
  place-items: start center;
  padding-top: calc(var(--nav-h) + 16px);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.3em;
}

/* volzinnen (READY FOR TAKE-OFF, de finale): kleiner zodat ze
   binnen het beeld passen en mooi over twee regels vallen */
.xp-countdown--zin {
  font-size: clamp(34px, 6.5vw, 96px);
  line-height: 1.15;
  padding-left: 5vw; padding-right: 5vw;
  text-align: center;
}

/* tijdens de rondleiding: geen afleiding van knoppen en hint */
.xp-touring .xp-next,
.xp-touring .xp-hud__hint { display: none !important; }

/* Zwakkere GPU's (MID/LOW): blur is het duurste effect van de
   panelen; daar donkerder glas zonder blur */
.xp-tier-mid .xp-panel,
.xp-tier-low .xp-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(6, 6, 9, calc(0.85 * var(--bgo, 1)));
}

/* ---------- Konami-overdrive: hyperwarp door het hele universum ----------
   Het complete kleurenspectrum draait langzaam door de ruimte,
   de cockpit trilt en de stuwvlam staat aan. */
.xp-overdrive .xp-canvas {
  animation: xpShake 0.09s linear infinite, xpHue 1.9s linear infinite;
}
.xp-overdrive .xp-main,
.xp-overdrive .xp-hud {
  animation: xpShake 0.09s linear infinite;
}
@keyframes xpHue {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}
.xp-overdrive .xp-thrust { opacity: 0.75; }
.xp-overdrive .grad-text { animation-duration: 1.1s; }
.xp-overdrive .xp-hud__speed { color: #bffaff; text-shadow: 0 0 14px rgba(0, 229, 255, 0.8); }

/* Finale van de overdrive: het universum dimt zodat de boodschap
   "Zo voelt automatisering" vol in het licht staat */
.webgl-on .xp-canvas { transition: filter 0.5s ease; }
.webgl-on .xp-main,
.webgl-on .xp-hud { transition: opacity 0.5s ease; }
.xp-finale .xp-canvas { filter: brightness(0.28) saturate(0.7); }
.xp-finale .xp-main,
.xp-finale .xp-hud { opacity: 0.12; }

/* ---------- Lancering: de cockpit komt tot leven ----------
   --shake (px) en --thrust (0..1) worden per aftelstap gezet */
.xp-launching .xp-canvas,
.xp-launching .xp-main,
.xp-launching .xp-hud {
  animation: xpShake 0.09s linear infinite;
}
@keyframes xpShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(var(--shake, 2px), calc(var(--shake, 2px) * -0.6)); }
  50% { transform: translate(calc(var(--shake, 2px) * -0.8), var(--shake, 2px)); }
  75% { transform: translate(calc(var(--shake, 2px) * 0.6), calc(var(--shake, 2px) * 0.8)); }
}

/* stuwvlam onder in beeld: gloeit op per aftelstap en flakkert */
.xp-thrust {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34vh;
  pointer-events: none;
  opacity: var(--thrust, 0);
  background: linear-gradient(to top,
    rgba(191, 250, 255, 0.5),
    rgba(0, 229, 255, 0.32) 30%,
    rgba(109, 92, 255, 0.16) 60%,
    transparent);
  transform-origin: bottom;
  animation: xpFlicker 0.09s linear infinite;
  transition: opacity 0.35s ease;
}
@keyframes xpFlicker {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.93); }
}

/* ---------- Vluchtplan (rechterrand): altijd zichtbaar,
   met voortgangslijn — klik = warp naar dat station ---------- */
.webgl-on .xp-rail {
  --fill: 0%;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 30;
  padding-right: 20px;
}
.xp-rail__title { display: none; }
.webgl-on .xp-rail__title {
  display: block;
  font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: 0.34em; color: var(--accent-2);
  margin: 0 0 6px;
}
.webgl-on .xp-rail::before {
  content: ""; position: absolute; right: 4px; top: 36px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--accent-1), var(--accent-2) var(--fill),
    rgba(255, 255, 255, 0.14) var(--fill), rgba(255, 255, 255, 0.14));
}
.xp-rail a { position: relative; display: flex; align-items: center; gap: 14px; padding: 2px 0; }
.xp-rail i {
  position: absolute; right: -20px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--text-dim);
  background: var(--bg);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.xp-rail span {
  white-space: nowrap;
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.xp-rail a:hover i { border-color: var(--accent-2); box-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.xp-rail a:hover span { color: var(--text); }
.xp-rail a.is-active i {
  background: var(--grad); border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.9);
  transform: scale(1.3);
}
.xp-rail a.is-active span { color: var(--text); text-shadow: 0 0 16px rgba(0, 229, 255, 0.55); }

/* ---------- Warp naar volgende station (rechtsonder) ---------- */
.xp-next { display: none; }
.webgl-on .xp-next {
  display: inline-flex; align-items: center; gap: 10px;
  position: fixed; right: 58px; bottom: 20px; z-index: 30;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.26em; color: var(--accent-2);
  background: rgba(6, 6, 9, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.45);
  padding: 12px 18px; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.webgl-on .xp-next:hover {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.35);
  color: #bffaff;
}
.webgl-on .xp-next[hidden] { display: none; }

/* ---------- AUTOPILOT-knop (linksonder): rondleiding vanaf overal ---------- */
.xp-autopilot { display: none; }
.webgl-on .xp-autopilot {
  display: inline-flex; align-items: center; gap: 8px;
  position: fixed; left: 58px; bottom: 20px; z-index: 30;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.26em; color: var(--text-dim);
  background: rgba(6, 6, 9, 0.6);
  border: 1px solid var(--line);
  padding: 12px 18px; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.webgl-on .xp-autopilot:hover {
  color: var(--accent-2); border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.25);
}
.webgl-on .xp-autopilot[hidden] { display: none; }
.xp-touring .xp-autopilot,
.xp-touring .xp-tour-btn { display: none !important; }

/* ---------- HUD (cockpit) ---------- */
.webgl-on .xp-hud { display: block; position: fixed; inset: 0; z-index: 25; pointer-events: none; }

/* lichte cockpit-schaduw rond de randen van het beeld */
.webgl-on .xp-hud::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 62%, rgba(6, 6, 9, 0.5) 100%);
}

.xp-hud__corner {
  position: absolute; width: 44px; height: 44px;
  border-color: rgba(0, 229, 255, 0.35);
  animation: xpFadeIn 0.9s ease 0.2s both;
}
.xp-hud__corner--tl { top: 14px; left: 14px; border-top: 2px solid; border-left: 2px solid; }
.xp-hud__corner--tr { top: 14px; right: 14px; border-top: 2px solid; border-right: 2px solid; }
.xp-hud__corner--bl { bottom: 14px; left: 14px; border-bottom: 2px solid; border-left: 2px solid; }
.xp-hud__corner--br { bottom: 14px; right: 14px; border-bottom: 2px solid; border-right: 2px solid; }

.xp-hud__status {
  position: absolute; top: calc(var(--nav-h) + 8px); left: 30px;
  display: grid; gap: 4px;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.28em;
  color: var(--text-dim);
}
.xp-hud__status span { display: flex; align-items: center; gap: 8px; animation: xpFadeIn 0.7s ease both; }
.xp-hud__status span:nth-child(1) { animation-delay: 0.5s; color: var(--accent-2); }
.xp-hud__status span:nth-child(2) { animation-delay: 0.9s; }
.xp-hud__status span:nth-child(3) { animation-delay: 1.3s; }
.xp-hud__status span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: 0.8;
}

.xp-hud__readout {
  position: absolute; top: calc(var(--nav-h) + 8px); right: 30px;
  display: grid; gap: 4px; justify-items: end;
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  animation: xpFadeIn 0.7s ease 0.7s both;
}
.xp-hud__speed { color: rgba(0, 229, 255, 0.75); }

/* stuwkracht-balkje: loopt vol bij snelheid/warp */
.xp-hud__warp {
  width: 132px; height: 3px; margin-top: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.xp-hud__warp i {
  display: block; height: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
}

/* Werkwijze-poorten: stempels links in beeld */
.xp-hud__gates {
  position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 10px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.24em;
  color: rgba(154, 157, 176, 0.4);
  opacity: 0; transition: opacity 0.5s ease;
}
.xp-hud__gates.is-visible { opacity: 1; }
.xp-hud__gates span { transition: color 0.4s ease, text-shadow 0.4s ease; }
.xp-hud__gates span.is-passed {
  color: var(--accent-2);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.xp-hud__bottom {
  position: absolute; left: 0; right: 0; bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.26em;
  color: var(--text-dim);
  animation: xpFadeIn 0.7s ease 1s both;
}
.xp-hud__station { color: var(--text); }
.xp-hud__ticker { color: rgba(0, 229, 255, 0.7); }
.xp-hud__ticker:empty { display: none; }
.xp-hud__pct { font-variant-numeric: tabular-nums; }

.xp-hud__hint {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.4em;
  color: var(--text-dim);
  animation: xpFadeIn 0.9s ease 1.6s both;
}

@keyframes xpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
/* De hint/gates schuiven via eigen transform — fade zonder verschuiving */
.xp-hud__hint { animation-name: xpFadeInPlain; }
@keyframes xpFadeInPlain { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Debug (?debug=1) ---------- */
.xp-debug {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  font: 11px/1.6 Consolas, monospace; color: var(--accent-2);
  background: rgba(6, 6, 9, 0.8); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; pointer-events: none;
  white-space: pre;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .xp-hud__status { display: none; }
  .xp-hud__gates { left: 18px; font-size: 10px; letter-spacing: 0.18em; }
  .webgl-on .xp-rail { right: 12px; padding-right: 16px; }
  .webgl-on .xp-rail__title,
  .webgl-on .xp-rail span { display: none; }
  .webgl-on .xp-rail::before { top: 6px; }
  .xp-rail a { padding: 4px; }
  .xp-rail i { position: static; }
  .webgl-on .xp-next { right: 44px; bottom: 16px; font-size: 10px; padding: 10px 14px; letter-spacing: 0.2em; }
}

@media (max-width: 760px) {
  .xp-top { padding: 0 18px; }
  .xp-top__links { gap: 16px; }
  .xp-top__links a:not(.btn) { font-size: 13px; }
  /* Compact houden: minder links op klein scherm, CTA blijft */
  .xp-top__links a[href="werkwijze.html"],
  .xp-top__links a[href="veilig.html"] { display: none; }
  .xp-top__name em { display: none; }

  .webgl-on .xp-panel { padding: 26px 22px 24px; }
  .xp-hud__readout { display: none; }
  .xp-hud__bottom { gap: 12px; font-size: 10px; letter-spacing: 0.18em; padding: 0 14px; }
  .xp-hud__ticker { display: none; }
  .xp-rail span { display: none; }
  .xp-panel--contact .cf__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .xp-hero-title { font-size: clamp(32px, 9.5vw, 42px); }
  .xp-cta-row { flex-direction: column; align-items: stretch; }
  .xp-hud__gates { display: none; }
  .xp-hud__corner { width: 20px; height: 20px; }
  .webgl-on .xp-track { height: 1000svh; }
  /* onderin is het krap: hint weg, VOLGENDE boven de onderbalk,
     AUTOPILOT helemaal weg (hero-knop + vluchtplan volstaan) */
  .xp-hud__hint { display: none; }
  .webgl-on .xp-next { right: 12px; bottom: 52px; }
  .webgl-on .xp-autopilot { display: none !important; }
}

/* ============================================================
   VERMINDERDE BEWEGING — main.js start de vlucht dan nooit;
   dit dempt alleen nog de kleine CSS-animaties hier.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .xp-cycle { transition: none; }
  .xp-hud__corner, .xp-hud__status span, .xp-hud__readout,
  .xp-hud__bottom, .xp-hud__hint { animation: none; }
}
