/* Homepage motion. Entrance on load, one-time reveal on scroll, small hover and press feedback. */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }

/* Hero entrance: staggered fade and rise, runs once on load. */
@keyframes hm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
.hm .hero .hero-name,
.hm .hero h1,
.hm .hero .hero-support > *,
.hm .hero .hero-art { animation: hm-rise 600ms var(--ease-out) both; }
.hm .hero .hero-name { animation-delay: 40ms; }
.hm .hero h1 { animation-delay: 100ms; }
.hm .hero .hero-support > :nth-child(1) { animation-delay: 180ms; }
.hm .hero .hero-support > :nth-child(2) { animation-delay: 230ms; }
.hm .hero .hero-support > :nth-child(3) { animation-delay: 280ms; }
.hm .hero .hero-support > :nth-child(4) { animation-delay: 330ms; }
.hm .hero .hero-art { animation-name: hm-fade; animation-duration: 800ms; animation-delay: 200ms; }

/* Scroll reveal: added by home-motion.js, so content stays visible without JS. */
.hm-reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: var(--hm-delay, 0ms); }
.hm-reveal.hm-in { opacity: 1; transform: none; }

/* Press feedback on buttons and tabs. */
.btn:active { transform: scale(0.97); transition-duration: 120ms; }

/* More work cards: lift a little and nudge the preview on hover. */
.more-card { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.more-thumb > img, .more-thumb > video { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .more-card:hover .more-thumb > img,
  .more-card:hover .more-thumb > video { transform: scale(1.02); }
}
@media (hover: none) { .more-card:hover { transform: none; box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  .hm .hero .hero-name, .hm .hero h1, .hm .hero .hero-support > *, .hm .hero .hero-art { animation: hm-fade 200ms ease both; animation-delay: 0ms; }
  .hm-reveal { transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
  .btn:active, .more-card:hover, .more-card:hover .more-thumb > img, .more-card:hover .more-thumb > video { transform: none; }
}
