/* Hello Aesthetics — scroll reveals & custom cursor */

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

.ha-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.ha-reveal--left {
  transform: translate3d(-28px, 0, 0);
}

.ha-reveal--right {
  transform: translate3d(28px, 0, 0);
}

.ha-reveal--scale {
  transform: translate3d(0, 24px, 0) scale(0.96);
}

.ha-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.ha-reveal--delay-1 { transition-delay: 0.08s; }
.ha-reveal--delay-2 { transition-delay: 0.16s; }
.ha-reveal--delay-3 { transition-delay: 0.24s; }
.ha-reveal--delay-4 { transition-delay: 0.32s; }
.ha-reveal--delay-5 { transition-delay: 0.4s; }

/* Sticky why intro (desktop) */
@media (min-width: 901px) {
  .why-layout__intro--sticky {
    position: sticky;
    top: calc(var(--header-h) + 1.75rem);
    align-self: start;
    z-index: 2;
    padding-right: 0.5rem;
  }
}

/* Subtle scroll parallax on feature cards */
@media (min-width: 901px) {
  .section--why .feature-card--photo.ha-parallax.is-visible {
    transform: translate3d(0, var(--ha-parallax-y, 0), 0);
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.15s linear;
  }
}

/* -------------------------------------------------------------------------- */
/* Custom cursor (pointer devices only)                                       */
/* -------------------------------------------------------------------------- */

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ha-cursor-active,
  .ha-cursor-active a,
  .ha-cursor-active button,
  .ha-cursor-active .btn,
  .ha-cursor-active input,
  .ha-cursor-active textarea,
  .ha-cursor-active select,
  .ha-cursor-active label[for] {
    cursor: none !important;
  }

  .ha-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
  }

  .ha-cursor__ring,
  .ha-cursor__dot {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform;
  }

  .ha-cursor__dot {
    width: 8px;
    height: 8px;
    background: #c9a962;
    z-index: 2;
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  }

  .ha-cursor__ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    z-index: 1;
    transition:
      width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.25s ease,
      background 0.25s ease,
      opacity 0.25s ease;
  }

  .ha-cursor.is-hover .ha-cursor__ring {
    width: 56px;
    height: 56px;
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(232, 87, 106, 0.25);
  }

  .ha-cursor.is-hover .ha-cursor__dot {
    width: 4px;
    height: 4px;
    background: var(--color-coral, #e8576a);
  }

  .ha-cursor.is-press .ha-cursor__ring {
    width: 32px;
    height: 32px;
  }

  .ha-cursor.is-hidden {
    opacity: 0;
  }

  /* Magnetic nudge on primary CTAs */
  .ha-cursor-magnetic {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ha-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero — always-on float + cursor + scroll (JS sets --hero-mx/my/scroll)     */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  [data-ha-hero] {
    --hero-mx: 0;
    --hero-my: 0;
    --hero-scroll: 0;
    overflow: hidden;
  }

  [data-ha-hero-stage] {
    perspective: 1400px;
    transform-style: preserve-3d;
    will-change: transform;
  }

  [data-ha-hero-layer] {
    transform-style: preserve-3d;
    will-change: transform;
  }

  [data-ha-hero-content] {
    will-change: transform;
  }

  /* Ambient float (runs continuously on inner frames) */
  .hero-collage__float--main {
    border-radius: var(--radius-xl);
    animation: ha-hero-float-main 7s ease-in-out infinite;
  }

  .hero-collage__float--sm-a {
    border-radius: var(--radius-lg);
    animation: ha-hero-float-sm-a 5.2s ease-in-out infinite;
  }

  .hero-collage__float--sm-b {
    border-radius: var(--radius-lg);
    animation: ha-hero-float-sm-b 6.1s ease-in-out infinite 0.6s;
  }

  .hero-collage__accent {
    animation: ha-hero-glow 10s ease-in-out infinite;
  }

  .hero__badge-inner {
    animation: ha-hero-badge-float 4.8s ease-in-out infinite;
  }

  @keyframes ha-hero-float-main {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -14px, 0) scale(1.01); }
  }

  @keyframes ha-hero-float-sm-a {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
  }

  @keyframes ha-hero-float-sm-b {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(6px, -8px, 0); }
  }

  @keyframes ha-hero-glow {
    0%, 100% {
      transform: rotate(-4deg) scale(1);
      opacity: 0.2;
    }
    50% {
      transform: rotate(-1deg) scale(1.05);
      opacity: 0.3;
    }
  }

  @keyframes ha-hero-badge-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -7px, 0); }
  }

  /* Scroll: collage shifts + soft fade as user leaves hero */
  [data-ha-hero].ha-hero-motion [data-ha-hero-stage] {
    opacity: calc(1 - var(--hero-scroll) * 0.22);
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-collage__float--main,
  .hero-collage__float--sm-a,
  .hero-collage__float--sm-b,
  .hero-collage__accent,
  .hero__badge-inner {
    animation: none;
  }
}
