/* Formula Unit - site-wide logo entrance animation */
.brand, .footer-logo { position: relative; }
.brand .clean-logo, .footer-logo {
  transform-origin: center center;
  animation: fuSiteLogoIn .9s cubic-bezier(.16,1,.3,1) both, fuSiteLogoFloat 4.8s 1.1s ease-in-out infinite;
  will-change: transform, opacity;
}
.brand { overflow: visible; }
.brand::after {
  content: "";
  position: absolute;
  left: 8%; top: 8%;
  width: 22%; height: 84%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
  transform: translateX(-180%) skewX(-16deg);
  pointer-events: none;
  animation: fuSiteLogoShine 3.6s 1.2s ease-in-out infinite;
}
.brand:hover .clean-logo { animation: fuSiteLogoPop .55s ease both; }
.footer-logo { animation-delay: .18s, 1.35s; }

@keyframes fuSiteLogoIn {
  from { opacity: 0; transform: translateY(-12px) scale(.88) rotate(-2deg); filter: blur(1px); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0); }
}
@keyframes fuSiteLogoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
@keyframes fuSiteLogoPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.055) rotate(-1deg); }
  100% { transform: scale(1); }
}
@keyframes fuSiteLogoShine {
  0%, 48% { transform: translateX(-180%) skewX(-16deg); opacity: 0; }
  55% { opacity: 1; }
  72%,100% { transform: translateX(520%) skewX(-16deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand .clean-logo, .footer-logo, .brand::after { animation: none !important; }
}

/* ===== Final Formula Unit logo motion + lighting polish ===== */
.brand .clean-logo,
.footer-logo {
  position: relative;
  animation:
    fuFinalLogoIn 1.15s cubic-bezier(.16,1,.3,1) both,
    fuFinalLogoFloat 5s 1.15s ease-in-out infinite;
  filter: drop-shadow(0 5px 10px rgba(242,11,112,.10));
}
.brand::before {
  content: "";
  position: absolute;
  left: 3%; top: 5%;
  width: 94%; height: 90%;
  border-radius: 18px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(242,11,112,.20), transparent 68%);
  opacity: 0;
  animation: fuLogoGlow 3.8s 1.1s ease-in-out infinite;
}
.brand::after {
  z-index: 2;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  animation: fuFinalLogoShine 3.8s 1.45s ease-in-out infinite;
}
.brand:hover .clean-logo {
  animation: fuFinalLogoHover .65s cubic-bezier(.2,.8,.2,1) both;
  filter: drop-shadow(0 8px 18px rgba(242,11,112,.22));
}
.footer-logo { animation-delay: .2s, 1.45s; }

@keyframes fuFinalLogoIn {
  0% { opacity:0; transform:translateY(-18px) scale(.84) rotate(-3deg); filter:blur(2px) drop-shadow(0 0 0 rgba(242,11,112,0)); }
  65% { opacity:1; transform:translateY(2px) scale(1.025) rotate(.5deg); }
  100% { opacity:1; transform:translateY(0) scale(1) rotate(0); filter:blur(0) drop-shadow(0 5px 10px rgba(242,11,112,.10)); }
}
@keyframes fuFinalLogoFloat {
  0%,100% { transform:translateY(0) rotate(0); }
  50% { transform:translateY(-3px) rotate(.25deg); }
}
@keyframes fuFinalLogoHover {
  0% { transform:scale(1); }
  45% { transform:scale(1.065) rotate(-1deg); }
  100% { transform:scale(1.02) rotate(0); }
}
@keyframes fuLogoGlow {
  0%,100% { opacity:0; transform:scale(.94); }
  45%,65% { opacity:.72; transform:scale(1.02); }
}
@keyframes fuFinalLogoShine {
  0%,42% { transform:translateX(-260%) skewX(-16deg); opacity:0; }
  50% { opacity:1; }
  68%,100% { transform:translateX(620%) skewX(-16deg); opacity:0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand .clean-logo, .footer-logo, .brand::before, .brand::after { animation:none !important; }
}


/* Formula Unit sitewide logo animation + subtle lighting */
.fu-site-logo-animation{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:99999;
  width:68px;
  height:68px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  background:radial-gradient(circle,rgba(255,255,255,.20),rgba(255,105,180,.08) 45%,transparent 70%);
  box-shadow:0 0 14px rgba(255,105,180,.28),0 0 34px rgba(255,255,255,.10);
  animation:fuLogoFloat 3.2s ease-in-out infinite;
}
.fu-site-logo-animation::before{
  content:"FORMULA UNIT";
  font-weight:800;
  font-size:8px;
  letter-spacing:1px;
  text-align:center;
  color:#fff;
  text-shadow:0 0 5px rgba(255,105,180,.9),0 0 12px rgba(255,255,255,.55);
  animation:fuLogoGlow 2.2s ease-in-out infinite alternate;
}
.fu-site-logo-animation::after{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:50%;
  border:1px solid rgba(255,105,180,.35);
  box-shadow:0 0 16px rgba(255,105,180,.25);
  animation:fuRing 3s linear infinite;
}
.fu-search-wrap{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
}
.fu-search-icon{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.10);
  color:currentColor;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fu-search-icon:hover{
  transform:translateY(-50%) scale(1.08);
  box-shadow:0 0 12px rgba(255,105,180,.45);
  background:rgba(255,105,180,.14);
}
.fu-search-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@keyframes fuLogoFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes fuLogoGlow{from{opacity:.65;filter:brightness(.9)}to{opacity:1;filter:brightness(1.35)}}
@keyframes fuRing{to{transform:rotate(360deg)}}
@media(max-width:700px){.fu-site-logo-animation{width:56px;height:56px;left:10px;bottom:10px}.fu-search-icon{width:28px;height:28px}}



/* ===== Formula Unit: sitewide polished logo animation ===== */
.fu-site-logo-animation{
  position:fixed!important;
  top:18px!important;
  right:18px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:2147483000!important;
  width:74px!important;
  height:74px!important;
  border-radius:50%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  pointer-events:none!important;
  overflow:visible!important;
  background:
    radial-gradient(circle at 50% 50%,rgba(255,255,255,.22) 0 14%,rgba(255,105,180,.12) 34%,rgba(255,255,255,0) 70%)!important;
  box-shadow:
    0 0 10px rgba(255,255,255,.18),
    0 0 22px rgba(255,105,180,.25),
    0 0 42px rgba(255,105,180,.12)!important;
  animation:fuLogoFloat 3.4s ease-in-out infinite!important;
}
.fu-site-logo-animation::before{
  content:"FORMULA UNIT"!important;
  width:58px!important;
  height:58px!important;
  border-radius:50%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px!important;
  box-sizing:border-box!important;
  font-weight:900!important;
  font-size:7px!important;
  line-height:1.15!important;
  letter-spacing:1px!important;
  text-align:center!important;
  color:#fff!important;
  background:rgba(0,0,0,.25)!important;
  border:1px solid rgba(255,255,255,.25)!important;
  text-shadow:0 0 5px rgba(255,105,180,.9),0 0 12px rgba(255,255,255,.5)!important;
  box-shadow:inset 0 0 15px rgba(255,105,180,.12)!important;
  animation:fuLogoPulse 2.2s ease-in-out infinite alternate!important;
}
.fu-site-logo-animation::after{
  content:""!important;
  position:absolute!important;
  inset:-6px!important;
  border-radius:50%!important;
  border:1px solid rgba(255,105,180,.38)!important;
  box-shadow:0 0 12px rgba(255,105,180,.24)!important;
  animation:fuRing 4s linear infinite!important;
}

/* Search icon: clean, centered, non-overlapping */
.fu-search-icon{
  position:absolute!important;
  right:8px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(255,105,180,.28)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.08)!important;
  color:currentColor!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:10!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
  line-height:1!important;
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease!important;
}
.fu-search-icon:hover{
  transform:translateY(-50%) scale(1.08)!important;
  background:rgba(255,105,180,.14)!important;
  box-shadow:0 0 14px rgba(255,105,180,.38)!important;
}
.fu-search-icon svg{
  width:17px!important;
  height:17px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.fu-search-wrap{position:relative!important;display:flex!important;align-items:center!important;width:100%!important}
@keyframes fuLogoFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes fuLogoPulse{from{opacity:.72;filter:brightness(.9)}to{opacity:1;filter:brightness(1.35)}}
@keyframes fuRing{to{transform:rotate(360deg)}}
@media(max-width:700px){
 .fu-site-logo-animation{top:10px!important;right:10px!important;width:62px!important;height:62px!important}
 .fu-site-logo-animation::before{width:49px!important;height:49px!important;font-size:6px!important}
 .fu-search-icon{width:32px!important;height:32px!important;min-width:32px!important}
}



/* Final shared logo animation reinforcement */
.brand .clean-logo,
.footer-logo{
  will-change:transform,filter;
}
.brand .clean-logo{
  animation:
    fuHeaderLogoInFinal 1.1s cubic-bezier(.16,1,.3,1) both,
    fuHeaderLogoFloatFinal 4.8s 1.1s ease-in-out infinite!important;
}
@keyframes fuHeaderLogoInFinal{
  from{opacity:0;transform:translateY(-10px) scale(.92);filter:blur(1px)}
  to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
@keyframes fuHeaderLogoFloatFinal{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-2px)}
}
