/* Case study motion: hero entrance after unlock, one-time reveal on scroll. Classes are added by case-motion.js. */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes cm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }
.cm-hero { animation: cm-rise 600ms var(--ease-out) both; animation-delay: var(--cm-delay, 0ms); }
.cm-hero.cm-visual { animation-name: cm-fade; animation-duration: 800ms; }
.cm-reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: var(--cm-delay, 0ms); }
.cm-reveal.cm-in { opacity: 1; transform: none; }
.image-dialog .cm-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cm-hero, .cm-hero.cm-visual { animation: cm-fade 200ms ease both; animation-delay: 0ms; }
  .cm-reveal { transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
}
/* Zoom buttons are positioned against their own screenshot, not whatever ancestor happens to be transformed. */
.story-section .shot, .story-section .anno-stage { position: relative; }
/* Hero box takes the height of the animated visual inside it, no empty band below. */
.case-hero .marketing-visual:has(.hk), .case-hero .marketing-visual:has(.kp-hero), .case-hero .hero-image-wrap:has(.hk) { aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; }
