/* BeneVocon Motion v1.0.0 — opening animation for Vision, Projects, Contact and Careers.
   Loads after /bv-fast-v73/studio-style.css.
   - Pure CSS: plays once when the page opens and always ends fully visible.
   - Uses "backwards" fill, so after playing every element returns to its normal styles (hover effects keep working).
   - Nothing animates for visitors who ask their system for reduced motion. */

@keyframes bvmRise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes bvmTitle {
  from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes bvmDrop {
  from { opacity: 0; transform: translate3d(0, -14px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes bvmSweep {
  0% { transform: scaleX(0); opacity: 1; }
  65% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes bvmGlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  /* 1. Navigation settles in */
  .site-header .header-inner { animation: bvmDrop .6s var(--ease) backwards; }

  /* 2. Hero: label, title, then text */
  .page-hero { position: relative; }
  .page-hero .eyebrow { animation: bvmRise .7s var(--ease) .08s backwards; }
  .page-hero h1 { animation: bvmTitle 1s var(--ease) .16s backwards; }
  .page-hero-copy,
  .page-hero .cr-hero-note { animation: bvmRise .8s var(--ease) .34s backwards; }

  /* 3. A gold line runs along the bottom of the hero, then fades into the normal divider */
  .page-hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold-2) 50%, var(--gold) 82%, transparent);
    box-shadow: 0 0 14px rgba(242,178,63,.45);
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    pointer-events: none;
    animation: bvmSweep 1.5s var(--ease) .32s backwards;
  }

  /* 4. First content block on each page rises in, one after another */
  .principles-grid > article { animation: bvmRise .85s var(--ease) backwards; }
  .principles-grid > article:nth-child(1) { animation-delay: .42s; }
  .principles-grid > article:nth-child(2) { animation-delay: .5s; }
  .principles-grid > article:nth-child(3) { animation-delay: .58s; }

  /* Project cards keep their own short fade-in from /projects/site-v180/public.css. */
  .wp-search-row { animation: bvmRise .7s var(--ease) .38s backwards; }

  .ct-panel,
  .cr-page .application { animation: bvmRise .9s var(--ease) .4s backwards; }
  .ct-aside > *,
  .cr-aside > * { animation: bvmRise .8s var(--ease) backwards; }
  .ct-aside > :nth-child(1), .cr-aside > :nth-child(1) { animation-delay: .46s; }
  .ct-aside > :nth-child(2), .cr-aside > :nth-child(2) { animation-delay: .54s; }
  .ct-aside > :nth-child(3), .cr-aside > :nth-child(3) { animation-delay: .62s; }
}
