html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
}

main > section {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.footer {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.footer .top-button {
  display: none;
}

.hero-top {
  display: grid;
  place-items: center;
}

.hero {
  height: 100svh;
}

.scroll-mouse {
  display: grid;
  opacity: 1;
  visibility: visible;
}

.fullpage-scroll-indicator {
  position: absolute;
  z-index: 5;
  left: max(24px, calc(50% - 640px));
  bottom: 28px;
  padding: 0;
  display: grid;
  justify-items: center;
  border: 0;
  color: #14202b;
  background: transparent;
  cursor: pointer;
}

.dark-section .fullpage-scroll-indicator,
.contact .fullpage-scroll-indicator {
  color: #fff;
}

.fullpage-scroll-indicator .scroll-indicator-mouse {
  width: 23px;
  height: 38px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 13px;
}

.fullpage-scroll-indicator .scroll-indicator-mouse::after {
  width: 3px;
  height: 8px;
  margin: 7px auto;
  display: block;
  border-radius: 2px;
  background: currentColor;
  content: "";
  animation: fullpageMouseWheel 1.5s infinite;
}

.fullpage-scroll-indicator .scroll-indicator-arrows {
  height: 30px;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fullpage-scroll-indicator .scroll-indicator-arrows i {
  width: 10px;
  height: 10px;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0;
  transform: rotate(45deg) translate(-2px, -2px);
  animation: fullpageChevron 1.8s ease-in-out infinite;
}

.fullpage-scroll-indicator .scroll-indicator-arrows i:nth-child(2) { animation-delay: .18s; }
.fullpage-scroll-indicator .scroll-indicator-arrows i:nth-child(3) { animation-delay: .36s; }

@keyframes fullpageMouseWheel {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(9px); }
}

@keyframes fullpageChevron {
  0%, 15% { opacity: 0; }
  35%, 60% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  main > section,
  .footer {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  main > .hero {
    min-height: 100svh;
    height: 100svh;
    scroll-snap-align: none;
  }

  .hero .scroll-mouse {
    bottom: 55px;
    display: grid;
  }

  .fullpage-scroll-indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
