/* Global, accessible back-to-top control. */
.lp-back-to-top {
  position: fixed;
  right: clamp(1rem, 2.2vw, 2rem);
  bottom: clamp(1rem, 2.2vw, 2rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(145, 169, 255, 0.38);
  border-radius: 50%;
  background: rgba(9, 13, 27, 0.88);
  color: #f5f7ff;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.lp-back-to-top span {
  font: 600 1.25rem/1 "Inter", sans-serif;
  transform: translateY(-1px);
}

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

.lp-back-to-top:hover {
  border-color: rgba(34, 211, 238, 0.72);
  background: rgba(18, 25, 48, 0.96);
  transform: translateY(-2px) scale(1);
}

.lp-back-to-top:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.48);
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .lp-back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-back-to-top {
    transition: none;
  }
}
