/* FrameCut — Shared Motion Styles */

/* Smooth scrolling for the whole site */
html { scroll-behavior: smooth; }

/* Reveal on scroll — fade + gentle rise */
.fc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.fc-reveal.fc-shown {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays — add fc-d1 ... fc-d6 alongside fc-reveal */
.fc-d1 { transition-delay: 0.08s; }
.fc-d2 { transition-delay: 0.16s; }
.fc-d3 { transition-delay: 0.24s; }
.fc-d4 { transition-delay: 0.32s; }
.fc-d5 { transition-delay: 0.40s; }
.fc-d6 { transition-delay: 0.48s; }

/* Scale-fade variant for hero / featured items */
.fc-reveal-scale {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.fc-reveal-scale.fc-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero line-by-line rise */
.fc-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fcLineRise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fc-line:nth-child(1) { animation-delay: 0.15s; }
.fc-line:nth-child(2) { animation-delay: 0.35s; }
.fc-line:nth-child(3) { animation-delay: 0.55s; }
@keyframes fcLineRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Floating ambient drift (subtle, infinite) */
.fc-float {
  animation: fcFloat 9s ease-in-out infinite;
}
@keyframes fcFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .fc-reveal, .fc-reveal-scale, .fc-line { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .fc-float { animation: none !important; }
  html { scroll-behavior: auto; }
}
