/* R40 hero – the thumbs-up film over the start page portrait (src/r40/hero.js). Replaces the R36 scene of site-r34 §7. */
/* kept from §7: the portrait's own transitions (the alt pictures fade, the hover scale) stay exactly as they were */
.hero-art :is(.sketch-portrait,canvas.portrait-anim){transform-origin:50% 35%;transition:opacity .34s ease,scale .45s cubic-bezier(.3,.7,.3,1),transform .6s cubic-bezier(.5,0,.2,1)}
/* the film: exactly over the portrait, wider and lower than its frame; no box – the edges run out softly */
.hero-art canvas.hero40-film{position:absolute;z-index:1;max-width:none;pointer-events:none;opacity:0;transition:opacity .16s ease;
  --m0:100%;--m1:100%;
  -webkit-mask-image:linear-gradient(#000 var(--m0),transparent var(--m1)),linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%);
  mask-image:linear-gradient(#000 var(--m0),transparent var(--m1)),linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%);
  -webkit-mask-composite:source-in;mask-composite:intersect}
.hero-art canvas.hero40-film.is-on{opacity:1}
.hero-art canvas.hero40-film:not(.is-on){transition-duration:.26s}
/* while it plays, the standing portrait underneath is out (nothing twice) and the glasses button waits */
.hero-art.hero40-play :is(.sketch-portrait,canvas.portrait-anim){opacity:0!important;transition:none!important}
.hero-art .portrait-play{transition:opacity .3s ease}
.hero-art.hero40-lock .portrait-play{pointer-events:none;opacity:0}
/* the film is the thumbs-up now: the old floating hand next to him (R28–R33) is gone */
.hero-art .thumb-float{display:none!important}
/* dark mode (R45): no page filter any more – the film shows as it is (its hair edge has no paper in it, tools/defringe45.py) */
html[data-read=on] .hero-art canvas.hero40-film,html.motion-paused .hero-art canvas.hero40-film{display:none}
@media (prefers-reduced-motion:reduce){.hero-art canvas.hero40-film{display:none}}
