/* Scroll reveal for case pages. Only active when js/reveal.js adds .rv to <html>. */
:root { --rv-ease: cubic-bezier(.2, .7, .2, 1); }

.rv .rv-i { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--rv-ease) var(--d, 0ms), transform .9s var(--rv-ease) var(--d, 0ms); }
.rv .rv-i.in { opacity: 1; transform: none; }

.rv .rv-h .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.rv .rv-h .w > span { display: inline-block; transform: translateY(108%); transition: transform .95s var(--rv-ease) calc(var(--i, 0) * 55ms); }
.rv .rv-h.in .w > span { transform: none; }

.rv .rv-m { clip-path: inset(10% 8% 10% 8% round 8px); transform: scale(1.04); transition: clip-path 1.15s var(--rv-ease), transform 1.4s var(--rv-ease); }
.rv .rv-m.in { clip-path: inset(0 0 0 0 round 4px); transform: none; }

.rv .rv-hero { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--rv-ease) var(--d, 0ms), transform 1s var(--rv-ease) var(--d, 0ms); }
.rv .rv-hero.in { opacity: 1; transform: none; }

.rv-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: #fa1556; transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* Shared case-page chrome (impeccable pass, 2026-11-08): breadcrumb instead of a hero eyebrow,
   themed selection and scrollbar. */
.bar .crumb { font: 600 .75rem/1.2 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #b4b4be; text-align: center; padding: 0 16px; }
@media (max-width: 760px) { .bar .crumb { display: none; } }
::selection { background: #fa1556; color: #0a0a0b; }
html { scrollbar-color: #3a3a42 #0a0a0b; }
/* Top bar sits over bright film frames: give it its own dark ramp so the links stay readable. */
.bar { background: linear-gradient(180deg, rgba(10,10,11,.82) 0%, rgba(10,10,11,.45) 60%, rgba(10,10,11,0) 100%); }
/* No orphaned last words in running copy. */
.head .copy p, .beat p, .tech p, .impact p, figcaption, .src, .hero p, .hero-copy p { text-wrap: pretty; }
