/* ============================================================
   animations.css — Sons Of Favor
   Keyframes, scroll reveals, page transitions, continuous
   ============================================================ */

/* PAGE TRANSITIONS */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* HERO H1 STAGGER (clip reveal) */
@keyframes clipUp {
  from { clip-path: inset(100% 0 0 0); opacity: 0; }
  to   { clip-path: inset(0% 0 0 0);   opacity: 1; }
}
.hero-h1-line         { overflow: hidden; }
.hero-h1-line span    { display: block; animation: clipUp .55s var(--ease) both; }
.hero-h1-line:nth-child(1) span { animation-delay: .25s; }
.hero-h1-line:nth-child(2) span { animation-delay: .38s; }
.hero-h1-line:nth-child(3) span { animation-delay: .51s; }
.hero-h1-line:nth-child(4) span { animation-delay: .64s; }

/* FADE KEYFRAMES */
@keyframes fadeUp   { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes slideLeft  { from{opacity:0;transform:translateX(-32px)} to{opacity:1;transform:none} }
@keyframes slideRight { from{opacity:0;transform:translateX(32px)}  to{opacity:1;transform:none} }
@keyframes scaleIn    { from{opacity:0;transform:scale(.92)} to{opacity:1;transform:scale(1)} }

/* HERO ENTRY ANIMATIONS */
.hero-kicker-pill { animation: fadeUp .5s var(--ease) .15s both; }
.hero-body        { animation: fadeUp .5s var(--ease) .85s both; }
.hero-btns        { animation: fadeUp .5s var(--ease) .95s both; }
.hero-stats       { animation: fadeUp .5s var(--ease) 1.1s  both; }

/* NAV SLIDE */
@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.tnav { animation: navSlideDown .6s var(--ease) .05s both; }

/* SCROLL REVEAL */
.rv, .rv1, .rv2, .rv3, .rv-l, .rv-r, .rv-scale {
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rv      { transform: translateY(24px); }
.rv1     { transform: translateY(24px); transition-delay: .1s; }
.rv2     { transform: translateY(24px); transition-delay: .2s; }
.rv3     { transform: translateY(24px); transition-delay: .3s; }
.rv-l    { transform: translateX(-32px); }
.rv-r    { transform: translateX(32px); }
.rv-scale{ transform: scale(.92); }

.rv.in, .rv1.in, .rv2.in, .rv3.in,
.rv-l.in, .rv-r.in, .rv-scale.in {
  opacity: 1; transform: none;
}

/* MARQUEE */
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* FEATURED CARD PULSE */
@keyframes pulseBorder { 0%,100%{opacity:.35} 50%{opacity:.85} }

/* KICKER DOT PULSE */
@keyframes kicPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* SCROLL PROGRESS */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold-lt));
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* SITE BY BADGE (builds.html only) */
.site-by-badge {
  position: fixed;
  bottom: calc(1.5rem + var(--bot));
  right: 1.5rem;
  z-index: 100;
  background: rgba(9,9,9,.88);
  border: 1px solid var(--border-md);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .7rem; font-weight: 500;
  letter-spacing: .06em;
  color: var(--gold);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: .4rem;
  transition: border-color .2s;
}
.site-by-badge:hover { border-color: var(--border-hi); }

/* REDUCED MOTION OVERRIDES */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv, .rv1, .rv2, .rv3, .rv-l, .rv-r, .rv-scale {
    opacity: 1; transform: none;
  }
  .marquee-track { animation: none; }
}
