/* Restore the incumbent AOS language: 100px, 800ms, ease-in-out, once. */
:root {
  --scroll-reveal-distance: 100px;
  --scroll-reveal-duration: 800ms;
  --scroll-reveal-easing: ease-in-out;
}

/* The default page is visible; these states are attached only by motion.js. */
[data-scroll-reveal-pending] {
  opacity: 0;
}
[data-scroll-reveal-active] { will-change: opacity, transform; }

/* Sideways AOS entrances must not make the document scroll horizontally. */
main { overflow-x: clip; }
.hero-copy { position: relative; }
.motion-scroll-cue {
  position: absolute;
  right: 22px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: inherit;
  opacity: .8;
  text-decoration: none;
}
.motion-scroll-cue svg, .motion-back-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.motion-scroll-cue.is-bouncing svg { animation: original-scroll-bounce 1s infinite; }
.motion-scroll-cue:hover, .motion-scroll-cue:focus-visible { opacity: 1; }
.motion-scroll-cue:hover svg, .motion-scroll-cue:focus-visible svg { animation-play-state: paused; }
@keyframes original-scroll-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}
.motion-back-top {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 38;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 50%;
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 12px rgb(16 36 61 / .15);
  cursor: pointer;
  transition: transform .3s ease, background-color .3s ease;
}
.motion-back-top[hidden] { display: none; }
.paint-complete .motion-back-top { background: #145be0; color: #fff; }
.hero-actions .button { transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease; }
[data-motion-painting] .motion-scroll-cue { visibility: hidden; }

@media (hover: hover) and (pointer: fine) {
  .motion-back-top:hover { background: var(--blue-hover); transform: translateY(-5px); }
  .paint-complete .motion-back-top:hover { background: #1048b5; }
  .service { transition: transform .3s ease; }
  .service:not([data-scroll-reveal-pending]):not([data-scroll-reveal-active]):hover { transform: translateY(-8px); }
  .service-ask .icon { transition: transform .3s ease; }
  .service:hover .service-ask .icon { transform: scale(1.1) rotate(5deg); }
  .hero-actions .button:hover { transform: scale(1.05); }
}

@media (max-width: 760px) {
  .motion-back-top { top: 86px; right: 12px; width: 44px; height: 44px; }
  .motion-scroll-cue { bottom: 0; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-scroll-reveal-pending], [data-scroll-reveal-active] {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
  .motion-scroll-cue svg { animation: none !important; }
  .service:hover, .hero-actions .button:hover, .motion-back-top:hover { transform: none !important; }
}
@media print {
  [data-scroll-reveal-pending], [data-scroll-reveal-active] { opacity: 1 !important; transform: none !important; }
  .motion-scroll-cue, .motion-back-top { display: none; }
}
