/* Intro-animatie ("Welkom in het team"), zie js/intro.js. Kleuren uit de huisstijl van PV Dashboard,
   lettertypes van opnaarnul.nl (Unbounded, Lexend, JetBrains Mono); los van de instelbare huisstijl. */
#introRoot {
  --i-bg: #F6F7F2; --i-ink: #16241F; --i-ink-soft: #59685F; --i-teal: #1E6F58; --i-teal-soft: #DCEFE7;
  --i-solar: #EFA13B; --i-solar-soft: #FBE7C6; --i-red: #BD4B3C;
  position: fixed; inset: 0; z-index: 9999; background: var(--i-bg); display: none; overflow: hidden;
  font-family: 'Lexend', system-ui, sans-serif; color: var(--i-ink);
}
/* Wordt al in <head> gezet (vóór de eerste paint), zodat de site niet eerst even zichtbaar is. */
html.intro-pending #introRoot { display: block; }
html.intro-pending body { overflow: hidden; }
#introRoot.closing { transition: opacity .7s ease; opacity: 0; }
#introRoot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.intro-text {
  position: absolute; left: 0; right: 0; top: 7vh; text-align: center; padding: 0 20px; pointer-events: none;
}
.intro-tag {
  display: inline-block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--i-ink); background: var(--i-solar-soft);
  border: 1px solid #F3C982; border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
.intro-title {
  font-family: 'Unbounded', system-ui, sans-serif; font-weight: 600; font-size: clamp(22px, 3.7vw, 48px);
  line-height: 1.15; letter-spacing: -.01em; margin: 0;
  isolation: isolate; /* zodat de oranje onderstreping (z-index -1) achter de tekst valt, niet achter de achtergrond */
}
.intro-title .accent { color: var(--i-teal); position: relative; white-space: nowrap; }
.intro-title .accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--i-solar);
  border-radius: 99px; z-index: -1; transform: scaleX(var(--underline, 0)); transform-origin: left;
}
.intro-sub { font-size: clamp(15px, 1.7vw, 20px); color: var(--i-ink-soft); margin: 14px 0 0; }
.intro-word { display: inline-block; opacity: 0; transform: translateY(18px); }

.intro-skip {
  position: absolute; right: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 8px;
  font: 500 14px 'Lexend', system-ui, sans-serif; color: var(--i-ink); background: rgba(255,255,255,.85);
  border: 1px solid #E2E5DB; border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.intro-skip:hover { border-color: var(--i-teal); color: var(--i-teal); }
.intro-skip kbd { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--i-ink-soft); border: 1px solid #E2E5DB; border-radius: 4px; padding: 0 5px; }
.intro-logo {
  position: absolute; left: 24px; top: 20px; height: 64px; width: auto; z-index: 2;
  animation: introLogoIn .8s ease .3s both;
}
@keyframes introLogoIn { from { opacity: 0; transform: translateY(-8px); } }
.intro-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--i-solar); width: 0; }

/* Zonder 3D (minder beweging gevraagd, geen WebGL of Three.js niet te laden): alleen de tekst. */
#introRoot.text-only .intro-text { top: 50%; transform: translateY(-50%); }
#introRoot.text-only .intro-word { opacity: 1; transform: none; transition: none; }
#introRoot.text-only .intro-title .accent::after { --underline: 1; }

@media (max-width: 640px) {
  .intro-text { top: 5vh; }
  .intro-skip { right: 12px; bottom: 12px; }
  .intro-logo { left: 14px; top: 12px; height: 40px; }
}
