/* Service-page motion: particle shape in the hero, drifting glows, cards that fade in on scroll.
   Paired with service-motion.js. Every effect falls back to the plain layout in style.css. */

/* Particle stage inside the hero card */
.hero-stage {
  position: relative; width: 100%; height: 84px;
  display: flex; align-items: center; justify-content: center;
}
.hero-particles { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 901px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-stage { height: 240px; }
  .has-3d .hero-particles { display: block; }
  /* The icon only shows where the particles can't run */
  html:not(.no-3d) .hero-stage .hero-visual-icon { display: none; }
}

/* White spinning border, since navy would disappear on the navy hero */
.hero-service .btn-spin::before {
  background: conic-gradient(from var(--border-angle), #fff, transparent, #fff, transparent, #fff);
}

/* Fade in on scroll. Uses translate so the cards' own hover transforms still work. */
.js-reveal .reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity 0.55s ease var(--reveal-delay, 0ms), translate 0.55s ease var(--reveal-delay, 0ms), box-shadow 0.2s, transform 0.2s;
}
.js-reveal .reveal.is-in { opacity: 1; translate: 0 0; }

/* Slow gold glows */
@media (prefers-reduced-motion: no-preference) {
  .hero-service::before { animation: glow-drift 14s ease-in-out infinite alternate; }
  .why-block { position: relative; overflow: hidden; }
  .why-block > * { position: relative; }
  .why-block::before {
    content: ''; position: absolute; width: 420px; height: 420px; top: -180px; left: -120px; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255,216,77,0.24), transparent 70%);
    animation: glow-drift-wide 16s ease-in-out infinite alternate;
  }
}
@keyframes glow-drift { to { translate: -260px 120px; } }
@keyframes glow-drift-wide { to { translate: 480px 220px; } }
