/* Motion direction adapted from the ORIN REAL premium treatment. */
.hero-scene {
  --hero-clip: 100%;
  --hero-scale: 1.04;
  position: relative;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform, clip-path;
}

.hero-photo-first {
  transform: scale(var(--hero-scale));
}

.hero-photo-second {
  clip-path: inset(0 var(--hero-clip) 0 0);
  transform: scale(1.018);
}

.hero-visual {
  isolation: isolate;
  box-shadow: 0 28px 55px -34px rgb(29 37 31 / .58);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: inherit;
  pointer-events: none;
}

.visual-shade,
.hero-property,
.round-arrow,
.hero-scene-control {
  z-index: 2;
}

.hero-scene-control {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.hero-scene-control > span {
  margin-right: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgb(0 0 0 / .45);
}

.hero-scene-control button {
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / .62);
  border-radius: 50%;
  background: rgb(20 27 21 / .34);
  color: #fff;
  font-size: 9px;
  backdrop-filter: blur(10px);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.hero-scene-control button:is(:hover, [aria-pressed="true"]) {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-scene.is-manual .hero-photo-second {
  transition: clip-path 650ms cubic-bezier(.22,.68,.2,1);
}

.gallery button,
.project-image,
.price-card,
#contact-form {
  box-shadow: 0 18px 42px -32px rgb(29 37 31 / .38);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1), box-shadow 500ms ease;
}

.gallery img,
.project-image img {
  transition: transform 850ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
}

.service-list > a,
.process-list li,
.contact-direct a,
.form-submit,
.header-call,
.round-arrow {
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), background 250ms ease, color 250ms ease, border-color 250ms ease;
}

.service-list > a {
  position: relative;
}

.service-list > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.process-list li {
  position: relative;
}

.process-list li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -9px;
  border: 1px solid #aeb3a6;
  border-radius: 50%;
  background: var(--paper);
  color: #7e872d;
  transition: background 450ms ease, color 450ms ease, border-color 450ms ease, box-shadow 450ms ease;
}

.process-list li.is-reached > span {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 7px rgb(228 238 114 / .22);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes lemons-arrive {
  from { opacity: .25; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero-scene {
    height: calc(max(670px, 100svh - 88px) + 52vh);
  }

  .hero-scene .hero {
    position: sticky;
    top: 88px;
    min-height: max(670px, calc(100svh - 88px));
  }

  .hero-copy {
    animation: lemons-arrive 760ms ease-out both;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery button:hover,
  .project-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 50px -28px rgb(29 37 31 / .48);
  }

  .gallery button:hover img,
  .project-image:hover img {
    transform: scale(1.045);
  }

  .service-list > a:hover {
    transform: translateX(7px);
  }

  .service-list > a:hover::after {
    transform: scaleX(1);
  }

  .process-list li:hover {
    transform: translateX(7px);
  }

  .contact-direct a:hover {
    transform: translateX(5px);
  }

  .form-submit:hover,
  .header-call:hover {
    transform: translateY(-2px);
  }

  .round-arrow:hover {
    transform: rotate(-35deg) scale(1.05);
  }
}

@media (max-width: 899px) {
  .hero-photo-first { transform: none; }
  .hero-scene-control > span { display: none; }
  .hero-scene-control { top: 14px; right: 14px; }
  .hero-scene-control button { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .hero-scene-control button,
  .gallery button,
  .gallery img,
  .project-image,
  .project-image img,
  .price-card,
  #contact-form,
  .service-list > a,
  .service-list > a::after,
  .process-list li,
  .process-list li > span,
  .contact-direct a,
  .form-submit,
  .header-call,
  .round-arrow {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
