/* Cartoon Lottie heroes — inner pages only */

.hero-cartoon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-cartoon-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}

.hero-lottie {
  position: relative;
  flex-shrink: 0;
  width: min(180px, 44vw);
  max-width: 180px;
  pointer-events: none;
  user-select: none;
  contain: layout style paint;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (min-width: 640px) {
  .hero-lottie {
    width: min(220px, 36vw);
    max-width: 220px;
  }
}

@media (min-width: 1024px) {
  .hero-lottie {
    width: 280px;
    max-width: 280px;
  }
}

/* Reserve space before Lottie loads — avoids layout shift on mobile */
.hero-lottie::before {
  content: '';
  display: block;
  aspect-ratio: 1;
  width: 100%;
}

.hero-lottie dotlottie-wc {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1023px) {
  .page-hero {
    padding-bottom: 2.5rem;
  }

  .hero-cartoon-wrap .reveal {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lottie {
    display: none;
  }
}
