/* PPS — Home hero motion
   The PPS mark (traced from the logo) rises in letter by letter, then a light sweeps across it;
   streaks of gold light shoot across the right side, with a soft glow pulsing behind the mark. */

/* ---------- The mark (right side) ---------- */
.hero-visual {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; inset-inline-end: max(4vw, calc((100vw - var(--container, 1200px)) / 2 + var(--gutter, 24px)));
  width: min(400px, 29vw); aspect-ratio: 1952 / 924; translate: 0 -50%;
}
.mark-draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* letters rise in one by one (white to gold) */
.md-fill path { fill: url(#mdFill); opacity: 0; transform: translateY(-900px); animation: md-rise 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
.md-fill path:nth-child(1) { animation-delay: .3s; }
.md-fill path:nth-child(2) { animation-delay: .6s; }
.md-fill path:nth-child(3) { animation-delay: .9s; }
@keyframes md-rise { to { opacity: 1; transform: none; } }

/* then a light keeps sweeping across them (the movement itself is in the SVG gradient) */
.md-shine path { fill: url(#mdShine); }
.md-shine { opacity: 0; animation: md-show .6s ease 2.2s forwards; }
@keyframes md-show { to { opacity: 1; } }

/* ---------- Background: streaks of light on the right side ---------- */
.hero-streaks {
  position: absolute; inset: 0 0 0 48%; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%); mask: linear-gradient(90deg, transparent, #000 18%);
}
.hero-streaks i {
  position: absolute; left: 0; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(221, 190, 120, .9), #fff);
  filter: drop-shadow(0 0 6px rgba(221, 190, 120, .8));
  animation: hs-streak linear infinite;
}
@keyframes hs-streak { 0% { transform: translateX(-20vw); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(60vw); opacity: 0; } }

/* glow pulsing behind the mark */
.hs-glow {
  position: absolute; width: 640px; aspect-ratio: 1; top: 50%; border-radius: 50%;
  right: calc(max(4vw, (100vw - var(--container, 1200px)) / 2 + var(--gutter, 24px)) + min(200px, 14.5vw)); translate: 50% -50%;
  background: radial-gradient(circle, rgba(221, 190, 120, .4), transparent 62%);
  animation: hs-pulse 4s ease-in-out infinite;
}
@keyframes hs-pulse { 0%, 100% { scale: .85; opacity: .7; } 50% { scale: 1.1; opacity: 1; } }

/* the text keeps clear of the mark */
.hero-solo .hero-copy { position: relative; z-index: 1; max-width: 680px; }
@media (max-width: 1180px) { .hero-solo .hero-copy { max-width: 58%; } }

/* phones and tablets: the mark sits small above the text, the streaks stay around it */
@media (max-width: 900px) {
  .hero-solo .hero-copy { max-width: none; }
  .hero-visual { position: relative; top: auto; inset-inline-end: auto; translate: none; width: min(190px, 50vw); margin: 4px 0 30px; }
  .hero-streaks { inset: 0 0 auto 0; height: 300px; -webkit-mask: linear-gradient(180deg, #000 60%, transparent); mask: linear-gradient(180deg, #000 60%, transparent); }
  .hs-glow { width: 360px; right: auto; left: calc(var(--gutter, 24px) + 95px); top: 140px; translate: -50% -50%; }
}

@media (prefers-reduced-motion: reduce) {
  .md-fill path { animation: none; opacity: 1; transform: none; }
  .md-shine, .hero-streaks i { display: none; }
  .hs-glow { animation: none; }
}
