:root {
  --forest-motion-fast: 180ms;
  --forest-motion-normal: 500ms;
  --forest-motion-emphasis: 980ms;
  --forest-motion-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --forest-motion-action: cubic-bezier(0.4, 0, 0.2, 1);
}

.forest-motion-ready [data-forest-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--forest-motion-normal) var(--forest-motion-enter),
    transform var(--forest-motion-normal) var(--forest-motion-enter);
  transition-delay: var(--forest-motion-delay, 0ms);
}

.forest-motion-ready [data-forest-reveal].is-forest-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.forest-motion-ready [data-forest-reveal]:focus-within {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.forest-motion-ready [data-forest-motion="hero-airflow"]::after {
  position: absolute;
  inset: 0 0 0 48%;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    102deg,
    transparent 34%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(104, 199, 207, 0.28) 48%,
    rgba(255, 255, 255, 0.68) 51%,
    rgba(104, 199, 207, 0.18) 57%,
    transparent 66%
  );
  opacity: 0;
  transform: translate3d(-105%, 0, 0) skewX(-7deg);
  animation: forest-airflow-sweep 1500ms var(--forest-motion-enter) 220ms 1 both;
}

@keyframes forest-airflow-sweep {
  0% { opacity: 0; transform: translate3d(-105%, 0, 0) skewX(-7deg); }
  20% { opacity: 0.44; }
  72% { opacity: 0.28; }
  100% { opacity: 0; transform: translate3d(105%, 0, 0) skewX(-7deg); }
}

.section-heading[data-forest-reveal],
.pre-inquiry-heading[data-forest-reveal] {
  position: relative;
}

.section-heading[data-forest-reveal]::before,
.pre-inquiry-heading[data-forest-reveal]::before {
  position: absolute;
  top: -16px;
  left: 0;
  width: 54px;
  height: 2px;
  content: "";
  background: currentColor;
  opacity: 0.52;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 340ms var(--forest-motion-enter) 100ms;
}

.section-heading[data-forest-reveal].is-forest-revealed::before,
.pre-inquiry-heading[data-forest-reveal].is-forest-revealed::before {
  transform: scaleX(1);
}

.forest-motion-ready [data-forest-motion="hero-image"] {
  animation: forest-hero-settle var(--forest-motion-emphasis) var(--forest-motion-enter) both;
  transform-origin: 54% 48%;
}

@keyframes forest-hero-settle {
  from { opacity: 0.86; transform: scale(1.035) translate3d(0, 8px, 0); }
  to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); }
}

.forest-motion-ready [data-forest-once="service-card"] {
  opacity: 1;
  transform: translate3d(0, 24px, 0);
  transition: transform 520ms var(--forest-motion-enter);
  transition-delay: var(--forest-motion-delay, 0ms);
}

.forest-motion-ready [data-forest-once="service-card"].is-forest-revealed,
.forest-motion-ready [data-forest-once="service-card"]:focus-within {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.forest-motion-ready [data-forest-once="service-card"]::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--air-blue), #8ed1ef);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms var(--forest-motion-enter);
  transition-delay: var(--forest-motion-delay, 0ms);
}

.forest-motion-ready [data-forest-once="service-card"].is-forest-revealed::before {
  transform: scaleX(1);
}

.forest-motion-ready [data-forest-once="flow-step"]::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--air-blue), #8ed1ef);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 480ms var(--forest-motion-enter);
  transition-delay: var(--forest-motion-delay, 0ms);
}

.forest-motion-ready [data-forest-once="flow-step"].is-forest-revealed::before {
  transform: scaleX(1);
}

.forest-motion-ready [data-forest-once="flow-step"].is-forest-revealed > svg {
  animation: forest-flow-icon 420ms var(--forest-motion-enter) 1 both;
  animation-delay: var(--forest-motion-delay, 0ms);
}

@keyframes forest-flow-icon {
  from { transform: translate3d(-7px, 0, 0) scale(0.94); }
  to { transform: translate3d(0, 0, 0) scale(1); }
}

html .form-stepper {
  position: relative;
  padding-bottom: 25px;
}

.form-stepper::before,
.form-stepper::after {
  position: absolute;
  right: 14px;
  bottom: 10px;
  left: 14px;
  height: 3px;
  content: "";
  pointer-events: none;
  border-radius: 999px;
}

.form-stepper::before {
  background: #d4e4e0;
}

.form-stepper::after {
  background: linear-gradient(90deg, var(--forest-teal), var(--air-blue));
  transform: scaleX(var(--forest-form-progress, 0));
  transform-origin: left center;
}

.forest-motion-interactive .form-stepper::after {
  transition: transform 360ms var(--forest-motion-enter);
}

.forest-motion-interactive .form-step:not([hidden]) > .form-step-heading {
  animation: forest-form-step-heading 220ms var(--forest-motion-enter) 1 both;
}

@keyframes forest-form-step-heading {
  from { transform: translate3d(0, 6px, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.faq-item,
.faq-question,
.faq-question-toggle::after {
  transition:
    color var(--forest-motion-fast) var(--forest-motion-action),
    background-color var(--forest-motion-fast) var(--forest-motion-action),
    border-color var(--forest-motion-fast) var(--forest-motion-action),
    box-shadow var(--forest-motion-fast) var(--forest-motion-action),
    transform var(--forest-motion-fast) var(--forest-motion-action);
}

.faq-item.faq-item-open,
.faq-question[aria-expanded="true"] {
  border-color: rgba(0, 118, 122, 0.38);
  background-color: rgba(237, 247, 245, 0.72);
  box-shadow: 0 10px 26px rgba(18, 63, 64, 0.07);
}

.faq-item-open > button svg:last-child {
  animation: forest-faq-state 260ms var(--forest-motion-enter) both;
}

@keyframes forest-faq-state {
  from { opacity: 0.45; transform: rotate(-45deg) scale(0.84); }
  to { opacity: 1; transform: rotate(0deg) scale(1); }
}

.service-card-actions a svg:last-child,
.related-services-bridge svg:last-child,
.problem-detail-link svg:last-child,
.problem-index-link svg:last-child,
.price-page-link svg:last-child,
.area-page-link svg:last-child,
.faq-all-link svg:last-child,
.legal-return-link svg:last-child,
.cta svg:last-child {
  transition: transform var(--forest-motion-fast) var(--forest-motion-action);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .service-card-actions a:hover svg:last-child,
  .related-services-bridge:hover svg:last-child,
  .problem-detail-link:hover svg:last-child,
  .problem-index-link:hover svg:last-child,
  .price-page-link:hover svg:last-child,
  .area-page-link:hover svg:last-child,
  .faq-all-link:hover svg:last-child,
  .legal-return-link:hover svg:last-child,
  .cta:hover svg:last-child {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .service-card-actions a:focus-visible svg:last-child,
  .related-services-bridge:focus-visible svg:last-child,
  .problem-detail-link:focus-visible svg:last-child,
  .problem-index-link:focus-visible svg:last-child,
  .price-page-link:focus-visible svg:last-child,
  .area-page-link:focus-visible svg:last-child,
  .faq-all-link:focus-visible svg:last-child,
  .legal-return-link:focus-visible svg:last-child,
  .cta:focus-visible svg:last-child {
    transform: translateX(4px);
  }
}

.forest-motion-static .faq-item,
.forest-motion-static .faq-question,
.forest-motion-static .faq-question-toggle::after,
.forest-motion-static .service-card-actions a svg:last-child,
.forest-motion-static .related-services-bridge svg:last-child,
.forest-motion-static .problem-detail-link svg:last-child,
.forest-motion-static .problem-index-link svg:last-child,
.forest-motion-static .price-page-link svg:last-child,
.forest-motion-static .area-page-link svg:last-child,
.forest-motion-static .faq-all-link svg:last-child,
.forest-motion-static .legal-return-link svg:last-child,
.forest-motion-static .cta svg:last-child {
  transition: none !important;
  transform: none !important;
}

.forest-motion-static .faq-item-open > button svg:last-child {
  animation: none !important;
}

.forest-motion-static [data-forest-once],
.forest-motion-static [data-forest-once]::before,
.forest-motion-static [data-forest-once] > svg,
.forest-motion-static [data-forest-motion="hero-airflow"]::after,
.forest-motion-static .form-step:not([hidden]) > .form-step-heading {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.forest-motion-static .form-stepper::after {
  transition: none !important;
}

html.forest-motion-static {
  scroll-behavior: auto;
}

@media (max-width: 900px) {
  .forest-motion-ready [data-forest-motion="hero-airflow"]::after {
    inset: 0 0 auto;
    height: 360px;
  }
}

@media (max-width: 640px) {
  .forest-motion-ready [data-forest-motion="hero-airflow"]::after {
    height: 290px;
  }

  .forest-motion-ready [data-forest-once="flow-step"]::before {
    inset: 0 auto 0 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: center top;
  }

  .forest-motion-ready [data-forest-once="flow-step"]:not(:last-child)::before {
    bottom: -10px;
  }

  .forest-motion-ready [data-forest-once="flow-step"].is-forest-revealed::before {
    transform: scaleY(1);
  }

  .form-stepper::before,
  .form-stepper::after {
    right: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .forest-motion-ready [data-forest-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
