/* =========================
   floating back to top
   ========================= */

.footer-bottom a[href="#top"]{
  display:none !important;
}

.back-to-top-fab{
  position:fixed;
  right:18px;
  bottom:22px;
  z-index:80;
  width:58px;
  height:58px;
  border:none;
  border-radius:999px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#fff;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    rgba(10,10,10,.84);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:
    0 18px 40px rgba(0,0,0,.34),
    0 0 34px rgba(255,70,70,.10),
    inset 0 1px 0 rgba(255,255,255,.10);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(16px) scale(.86);
  transition:
    opacity .56s ease,
    transform .72s cubic-bezier(.22,1,.36,1),
    visibility .56s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.back-to-top-fab::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite:xor;
  -webkit-mask-composite:xor;
  padding:1px;
  opacity:.75;
  pointer-events:none;
}

.back-to-top-fab::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:inherit;
  background:radial-gradient(circle, rgba(255,70,70,.16), transparent 68%);
  filter:blur(18px);
  opacity:.55;
  z-index:-1;
  pointer-events:none;
}

.back-to-top-fab.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.back-to-top-fab:hover{
  border-color:rgba(255,255,255,.16);
  box-shadow:
    0 22px 46px rgba(0,0,0,.38),
    0 0 42px rgba(255,70,70,.14),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.back-to-top-fab:active{
  transform:translateY(1px) scale(.97);
}

.back-to-top-fab svg{
  width:22px;
  height:22px;
  display:block;
  filter:drop-shadow(0 2px 10px rgba(255,255,255,.08));
}

.back-to-top-fab svg path{
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@keyframes backTopAppear{
  0%{
    opacity:0;
    transform:translateY(18px) scale(.82);
    filter:blur(8px);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

.back-to-top-fab.is-visible{
  animation:backTopAppear .72s cubic-bezier(.22,1,.36,1);
}

@media (max-width: 640px){
  .back-to-top-fab{
    right:14px;
    bottom:18px;
    width:54px;
    height:54px;
  }

  .back-to-top-fab svg{
    width:20px;
    height:20px;
  }
}

@media (prefers-reduced-motion: reduce){
  .back-to-top-fab{
    transition:none !important;
    animation:none !important;
    transform:none !important;
  }
}
