/* Transition nukleo.com → atomlab.technology
   Han Pixel, 22 nov. 2026. Maquette, pas un dépôt.
   Couleurs et mouvement : nukleo.com/marque (relecture le 22 nov. 2026, 18 h 34, America/Toronto).
   Sortie : le point du logo Nukleo s’étend en grille, 600 ms. Le disque qui couvre : cubic-bezier(.65,0,.35,1). Les points et le logo : cubic-bezier(.16,1,.3,1).
   Entrée : la même grille est déjà là ; le logo AtomLab apparaît en fondu, 800 ms, même courbe.
   Durée totale 1,4 s. Mouvement réduit : aucune animation, navigation normale.
   Pas de texte sur le voile, pas de Corail sur du texte, logo toujours statique. */

:root{
  --nk-atx-marin:#010C30;
  --nk-atx-e-out:cubic-bezier(.16,1,.3,1);
  --nk-atx-d-exit:600ms;
  --nk-atx-d-logo:800ms;
  --nk-atx-lueur:radial-gradient(58% 62% at 100% 100%,rgba(212,56,41,.9) 0%,rgba(176,48,79,.72) 18%,rgba(134,38,122,.5) 38%,rgba(55,19,208,.28) 62%,rgba(55,19,208,0) 100%);
  --nk-atx-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0/200px 200px;
}

.nk-atx{
  position:fixed;
  inset:0;
  z-index:100000;
  pointer-events:none;
  display:none;
}
.nk-atx.on{
  display:block;
  pointer-events:auto;
}
.nk-atx-fill{
  position:absolute;
  inset:0;
  background:var(--nk-atx-marin);
  clip-path:circle(0px at 0 0);
  will-change:clip-path;
}
.nk-atx-fill::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--nk-atx-lueur);
  pointer-events:none;
}
.nk-atx-fill canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
}
.nk-atx-fill::after{
  content:"";
  position:absolute;
  inset:0;
  background:var(--nk-atx-grain);
  opacity:.08;
  mix-blend-mode:overlay;
  pointer-events:none;
}
.nk-atx-ring{
  position:fixed;
  top:0;left:0;
  border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  pointer-events:none;
  opacity:0;
  box-sizing:border-box;
}

html.nk-tx-out,
html.nk-tx-out body{
  overflow:hidden !important;
  cursor:progress;
}

/* Entrée depuis Nukleo : pas de second fondu de la grille.
   Le logo (statique) et l’en-tête apparaissent en 800 ms. */
html.nk-from-nukleo .s-hero .gl img,
html.nk-from-nukleo .top .home img,
html.nk-from-nukleo .mh img{
  opacity:0;
}
html.nk-from-nukleo.flux .s-hero .gl img,
html.nk-from-nukleo.flux .top .home img,
html.nk-from-nukleo.flux .mh img{
  animation:nk-atx-fondu var(--nk-atx-d-logo) var(--nk-atx-e-out) both;
}
html.nk-from-nukleo.flux [data-rv]:not(.in){
  opacity:0;
  transform:translateY(22px);
}
@keyframes nk-atx-fondu{from{opacity:0}to{opacity:1}}

@media (prefers-reduced-motion:reduce){
  .nk-atx,
  .nk-atx.on{display:none !important}
  html.nk-from-nukleo .s-hero .gl img,
  html.nk-from-nukleo .top .home img,
  html.nk-from-nukleo .mh img,
  html.nk-from-nukleo.flux .s-hero .gl img,
  html.nk-from-nukleo.flux .top .home img,
  html.nk-from-nukleo.flux .mh img{
    opacity:1 !important;
    animation:none !important;
  }
  html.nk-from-nukleo.flux [data-rv]{
    opacity:1 !important;
    transform:none !important;
  }
}
