/* Sad sections — extra motion · wave303 · load LAST */

.page-home.pw-hm-sad-animated #programmes .pw-sl-title--center::after,
.page-home.pw-hm-sad-animated #videos .pw-media-pro__head h2::after {
  animation: hm-line-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes hm-line-grow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 56px;
    opacity: 1;
  }
}

.page-home.pw-hm-sad-animated #programmes.hm-anim-in .pw-pro-program--pro {
  animation: hm-card-bounce 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  animation-delay: var(--prog-delay, 0ms);
  transition: border-color 0.35s ease, box-shadow 0.35s ease !important;
}

@keyframes hm-card-bounce {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.92);
  }
  70% {
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-home.pw-hm-sad-animated #programmes .pw-pro-program--pro::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent, rgba(201, 168, 110, 0.7), transparent, rgba(201, 168, 110, 0.5), transparent);
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  animation: hm-border-flow 4s linear infinite;
}

.page-home.pw-hm-sad-animated #programmes .pw-pro-program--pro:hover::after {
  opacity: 1;
}

@keyframes hm-border-flow {
  to {
    background-position: 220% 0;
  }
}

.page-home.pw-hm-sad-animated .pw-hm-sad-mosaic.hm-anim-in .pw-hm-sad-mosaic__cell {
  animation: hm-mosaic-pop 0.65s cubic-bezier(0.34, 1.35, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 100ms + 80ms);
}

@keyframes hm-mosaic-pop {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.88) rotate(var(--tilt, 0deg));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.page-home.pw-hm-sad-animated .pw-hm-sad-strip__tag,
.page-home.pw-hm-sad-animated .pw-hm-sad-strip__title,
.page-home.pw-hm-sad-animated .pw-hm-sad-strip__link {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home.pw-hm-sad-animated #videos.hm-anim-in .pw-hm-sad-strip__tag {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.page-home.pw-hm-sad-animated #videos.hm-anim-in .pw-hm-sad-strip__title {
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}

.page-home.pw-hm-sad-animated #videos.hm-anim-in .pw-hm-sad-strip__link {
  opacity: 1;
  transform: none;
  transition-delay: 0.42s;
}

.page-home.pw-hm-sad-animated .pw-vid-card__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(201, 168, 110, 0.25) 56%, transparent 57%);
  background-size: 100% 220%;
  animation: hm-scan 3.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.35;
}

@keyframes hm-scan {
  0% {
    background-position: 0 -120%;
  }
  100% {
    background-position: 0 120%;
  }
}

.page-home.pw-hm-sad-animated .pw-hm-banner-pro.hm-anim-in .pw-sl-banner__frame::before,
.page-home.pw-hm-sad-animated .pw-hm-banner-pro.hm-anim-in .pw-sl-banner__frame::after {
  animation: hm-corner-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home.pw-hm-sad-animated .pw-hm-banner-pro.hm-anim-in .pw-sl-banner__frame::after {
  animation-delay: 0.12s;
}

@keyframes hm-corner-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-home.pw-hm-sad-animated .pw-hm-founder-pro.hm-anim-in blockquote {
  animation: hm-quote-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes hm-quote-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-home.pw-hm-sad-animated .pw-hm-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.page-home.pw-hm-sad-animated .pw-hm-sparkles i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201, 168, 110, 0.55);
  animation: hm-sparkle 6s ease-in-out infinite;
  font-style: normal;
}

.page-home.pw-hm-sad-animated .pw-hm-sparkles i:nth-child(1) {
  left: 8%;
  top: 20%;
  animation-delay: 0s;
}
.page-home.pw-hm-sad-animated .pw-hm-sparkles i:nth-child(2) {
  left: 22%;
  top: 65%;
  animation-delay: 1.2s;
}
.page-home.pw-hm-sad-animated .pw-hm-sparkles i:nth-child(3) {
  right: 15%;
  top: 30%;
  animation-delay: 2.4s;
}
.page-home.pw-hm-sad-animated .pw-hm-sparkles i:nth-child(4) {
  right: 8%;
  bottom: 18%;
  animation-delay: 0.8s;
}

@keyframes hm-sparkle {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(-12px) scale(1);
  }
}

.page-home.pw-hm-sad-animated #programmes .container {
  position: relative;
  z-index: 1;
}

.page-home.pw-hm-sad-animated .pw-hm-services-pro__stats strong[data-count] {
  min-width: 2.5ch;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .page-home.pw-hm-sad-animated #programmes.hm-anim-in .pw-pro-program--pro,
  .page-home.pw-hm-sad-animated .pw-hm-sad-mosaic.hm-anim-in .pw-hm-sad-mosaic__cell,
  .page-home.pw-hm-sad-animated .pw-vid-card__screen::before,
  .page-home.pw-hm-sad-animated .pw-hm-sparkles i {
    animation: none !important;
  }

  .page-home.pw-hm-sad-animated .pw-hm-sad-strip__tag,
  .page-home.pw-hm-sad-animated .pw-hm-sad-strip__title,
  .page-home.pw-hm-sad-animated .pw-hm-sad-strip__link {
    opacity: 1 !important;
    transform: none !important;
  }
}
