/* ==========================================================================
   Brand morph: Vibino logo -> FilmTory logo (pop / burst), persistent while
   the visitor stays inside the FilmTory section.
   State lives on the logo link:  .fk-brandswap.is-ft   (FilmTory active)
   Transient classes:             .is-to-ft / .is-to-vb  (animation running)
   ========================================================================== */
.fk-brandswap{position:relative}
.fk-brandswap > img:not(.fk-bs-ft){transition:none}

/* FilmTory logo: stacked exactly over the Vibino logo box */
.fk-brandswap .fk-bs-ft,
html body .fk-brandswap img.fk-bs-ft,
html body #fk-app-header .fk-mobile-brand.fk-brandswap img.fk-bs-ft,
html body #fk-app-sidebar .fk-brandswap img.fk-bs-ft{
  position:absolute!important;inset:0!important;margin:auto!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;pointer-events:none;
  opacity:0;visibility:hidden;transform:scale(.2);transform-origin:50% 50%;
  will-change:transform,opacity,filter;
}

/* Settled states ------------------------------------------------------- */
.fk-brandswap.is-ft > img:not(.fk-bs-ft){opacity:0;visibility:hidden}
html body .fk-brandswap.is-ft img.fk-bs-ft{opacity:1;visibility:visible;transform:none}

/* Vibino -> FilmTory ---------------------------------------------------- */
.fk-brandswap.is-to-ft > img:not(.fk-bs-ft){
  visibility:visible;animation:fkBsPopOut .46s cubic-bezier(.3,.7,.4,1) both;
}
html body .fk-brandswap.is-to-ft img.fk-bs-ft{
  visibility:visible;animation:fkBsPopIn .62s cubic-bezier(.34,1.56,.64,1) .3s both;
}
/* FilmTory -> Vibino (reverse, when leaving the section) ---------------- */
.fk-brandswap.is-to-vb > img:not(.fk-bs-ft){
  visibility:visible;animation:fkBsPopIn .62s cubic-bezier(.34,1.56,.64,1) .3s both;
}
html body .fk-brandswap.is-to-vb img.fk-bs-ft{
  visibility:visible;animation:fkBsPopOut .46s cubic-bezier(.3,.7,.4,1) both;
}

@keyframes fkBsPopOut{
  0%  {transform:scale(1);opacity:1;filter:blur(0)}
  38% {transform:scale(1.16);opacity:1;filter:blur(0)}      /* swells like a bubble */
  100%{transform:scale(1.75);opacity:0;filter:blur(8px)}    /* ...and pops */
}
@keyframes fkBsPopIn{
  0%  {transform:scale(.15) rotate(-10deg);opacity:0;filter:blur(7px) drop-shadow(0 0 0 rgba(237,73,100,0))}
  55% {transform:scale(1.13) rotate(2deg);opacity:1;filter:blur(0) drop-shadow(0 0 14px rgba(237,73,100,.75))}
  100%{transform:scale(1) rotate(0);opacity:1;filter:blur(0) drop-shadow(0 0 0 rgba(237,73,100,0))}
}

/* Burst FX (ring + particles), created by js/fk-brand-morph.js ---------- */
.fk-bs-fx{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none;z-index:3}
.fk-bs-fx i{
  position:absolute;left:-28px;top:-28px;width:56px;height:56px;border-radius:50%;
  border:2px solid rgba(237,73,100,.9);box-shadow:0 0 14px rgba(237,73,100,.55),inset 0 0 10px rgba(255,159,90,.35);
  opacity:0;transform:scale(.3);
}
.fk-bs-fx b{
  position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;
  background:#ed4964;opacity:0;
}
.fk-bs-fx b:nth-child(3n+1){background:#ff9f5a}
.fk-bs-fx b:nth-child(3n+2){background:#fff;width:4px;height:4px;left:-2px;top:-2px}
.fk-bs-fx.go i{animation:fkBsRing .6s cubic-bezier(.2,.7,.3,1) .26s both}
.fk-bs-fx.go b{animation:fkBsDot .62s cubic-bezier(.2,.8,.3,1) .26s both}
@keyframes fkBsRing{
  0%  {transform:scale(.3);opacity:.95}
  100%{transform:scale(2.9);opacity:0;border-width:.5px}
}
@keyframes fkBsDot{
  0%  {transform:rotate(var(--a)) translateX(4px) scale(1);opacity:1}
  100%{transform:rotate(var(--a)) translateX(var(--d,44px)) scale(0);opacity:0}
}

/* Reduced motion: plain cross-fade ------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .fk-brandswap.is-to-ft > img:not(.fk-bs-ft),.fk-brandswap.is-to-vb .fk-bs-ft{animation:fkBsFadeOut .2s linear both}
  .fk-brandswap.is-to-ft .fk-bs-ft,.fk-brandswap.is-to-vb > img:not(.fk-bs-ft){animation:fkBsFadeIn .2s linear .1s both}
  .fk-bs-fx{display:none}
  @keyframes fkBsFadeOut{from{opacity:1}to{opacity:0}}
  @keyframes fkBsFadeIn{from{opacity:0}to{opacity:1}}
}
