/* ==========================================================================
   Ops Flow — motion

   Kept deliberately quiet: a short fade-and-rise as sections come into view,
   plus hover feedback on the things you can actually click. Everything here is
   additive — remove this stylesheet and the site still lays out identically.
   ========================================================================== */

/* ---------- Scroll reveal ------------------------------------------------

   Content is visible by default. The hidden-then-reveal state only applies once
   main.js has confirmed it can drive it and put `js-reveal` on <html>, so a
   failed script, a missing IntersectionObserver or a blocked observer can never
   leave the page blank.
   ------------------------------------------------------------------------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ------------------------------------------------------- */
.site-header__inner {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.main-nav__list a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.375rem;
  height: 0.125rem;
  border-radius: 0.0625rem;
  background: var(--of-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav__list a:hover,
.main-nav__list a[aria-current='page'] { color: var(--of-white); }

.main-nav__list a:hover::after,
.main-nav__list a[aria-current='page']::after { transform: scaleX(1); }

.nav-toggle span { transition: transform 0.25s ease, opacity 0.2s ease; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.75rem 1.5rem rgba(254, 44, 9, 0.28);
}

.btn--dark:hover { box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3); }

.btn:active { transform: translateY(0); }

.price-card__cta { transition: transform 0.2s ease, box-shadow 0.25s ease; }
.price-card__cta:hover { transform: translateY(-0.125rem); box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.12); }

/* ---------- Cards -------------------------------------------------------- */
.step-card,
.service-card,
.price-card,
.process-card,
.auto-card,
.faq-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover,
.service-card:hover,
.process-card:hover,
.auto-card:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 1.25rem 2.5rem rgba(12, 0, 0, 0.08);
}

/* the service card draws its border with an inset shadow, so keep it */
.service-card:hover {
  box-shadow: inset 0 0 0 0.06688rem var(--of-border),
              0 1.25rem 2.5rem rgba(12, 0, 0, 0.08);
}

.faq-item:hover {
  box-shadow: inset 0 0 0 0.0625rem var(--of-orange),
              0 0.75rem 1.5rem rgba(12, 0, 0, 0.06);
}

.price-card:hover { transform: translateY(-0.375rem); }

/* ---------- Media -------------------------------------------------------- */
.problem__media,
.founder__media,
.delivery__panel,
.showcase__feature-art {
  overflow: hidden;
}

.problem__photo,
.founder__photo,
.delivery__panel img,
.showcase__feature-art > img {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.problem__media:hover .problem__photo,
.founder__media:hover .founder__photo,
.delivery__panel:hover img,
.showcase__feature-art:hover > img { transform: scale(1.03); }

/* the problem photo is mirrored, so keep the flip while scaling */
.problem__media:hover .problem__photo { transform: scaleX(-1) scale(1.03); }

/* ---------- Contact rows ------------------------------------------------- */
.contact__row a { transition: color 0.2s ease, opacity 0.2s ease; }
.contact__row a:hover { color: var(--of-orange); }

.contact__row-icon { transition: transform 0.25s ease; }
.contact__row:hover .contact__row-icon { transform: scale(1.08); }

/* ---------- Form --------------------------------------------------------- */
.contact-form__field input,
.contact-form__field textarea {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form__status { transition: opacity 0.3s ease; }

/* ==========================================================================
   Anyone who has asked for less motion gets none of it.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   Cursor ring

   A ring in the brand gradient that trails the pointer with easing. Over
   anything clickable it opens up; on press it snaps in.

   The native cursor stays visible on purpose — the ring lags by design, so
   hiding the real pointer would make clicking feel imprecise. It reads as a
   halo around the cursor rather than a replacement for it.
   ========================================================================== */
@media (pointer: fine) {
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 2.25rem;
    height: 2.25rem;
    margin: -1.125rem 0 0 -1.125rem;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    /* a gradient ring: fill with the brand gradient, then mask the middle out
       so only a 1.5px band is painted */
    background: var(--of-gradient);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
    filter: drop-shadow(0 0 0.375rem rgba(254, 130, 37, 0.45));
    transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease,
                margin 0.25s ease;
    will-change: transform;
  }

  .cursor-ring.is-awake { opacity: 1; }

  /* over something clickable */
  .cursor-ring.is-hot {
    width: 3.25rem;
    height: 3.25rem;
    margin: -1.625rem 0 0 -1.625rem;
  }

  /* while the button is down */
  .cursor-ring.is-down {
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.875rem 0 0 -0.875rem;
  }
}

/* Anyone who asked for less motion keeps a plain pointer. */
@media (prefers-reduced-motion: reduce) {
  .cursor-ring { display: none; }
}
