/* ─────────────────────────────────────────────────────
   INTRO.CSS — Kono Company Cinematic Intro
   Koule : #000000 + #FFFFFF sèlman — pa gen teks, pa gen wouj
   ───────────────────────────────────────────────────── */

/* ─── Overlay ─────────────────────────────────────── */
#kono-intro {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ─── Canvas particules blanches ──────────────────── */
#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ─── Logo PNG ────────────────────────────────────── */
#intro-logo-png {
  position: relative;
  z-index: 2;
  display: block;
  max-width: min(400px, 58vw);
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.94);
  filter: brightness(0) invert(1); /* force blanc pur si logo sombre */
  transition:
    opacity   0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter    0.9s ease;
  user-select: none;
  pointer-events: none;
  draggable: false;
}

#intro-logo-png.visible {
  opacity: 1;
  transform: scale(1);
  filter: brightness(0) invert(1)
          drop-shadow(0 0 18px rgba(255, 255, 255, 0.22));
}

#intro-logo-png.scaled {
  transform: scale(1.05);
  filter: brightness(0) invert(1)
          drop-shadow(0 0 36px rgba(255, 255, 255, 0.35))
          drop-shadow(0 0 70px rgba(255, 255, 255, 0.1));
}

/* ─── Fade out final ──────────────────────────────── */
#kono-intro.outro {
  animation: introOut 0.7s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes introOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
  #intro-logo-png {
    max-width: 72vw;
  }
}

/* ─── Respect prefers-reduced-motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  #intro-logo-png {
    transition: opacity 0.15s ease;
    transform: scale(1) !important;
  }
  #kono-intro.outro {
    animation: none;
    opacity: 0;
  }
}
