@property --rzf-home-beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 25deg;
}

@keyframes rzf-home-border-beam {
  from { --rzf-home-beam-angle: 25deg; }
  to { --rzf-home-beam-angle: 385deg; }
}

@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .rzf-homepage .company-video-play {
    position: relative;
    --rzf-home-beam-tail: #75b8f680;
    --rzf-home-beam-tip: #1a63c9;
  }

  .rzf-footer-ui .contact-launch {
    --rzf-home-beam-tail: #49c9ff85;
    --rzf-home-beam-tip: #effdff;
  }

  :is(.rzf-homepage .company-video-play, .rzf-footer-ui .contact-launch)::after {
    content: "";
    position: absolute;
    inset: -1px;
    box-sizing: border-box;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(
      from var(--rzf-home-beam-angle, 25deg),
      transparent 0deg 276deg,
      var(--rzf-home-beam-tail) 322deg,
      var(--rzf-home-beam-tip) 347deg,
      transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rzf-home-border-beam 4.8s linear infinite;
  }

  .rzf-footer-ui .contact-launch::after {
    animation-delay: -2.4s;
    animation-duration: 4.4s;
  }

  @media (prefers-reduced-motion: reduce) {
    :is(.rzf-homepage .company-video-play, .rzf-footer-ui .contact-launch)::after {
      animation: none;
    }
  }
}
