/* RedHand Hero – vlny (WebGL canvas) + logo reveal (R.B. 25. 10. 2026), JS: hero-reveal.js */
.hero-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.rh-reveal{position:absolute;inset:0;z-index:6;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center}
.rh-reveal__move{will-change:transform;animation:rhToHead .85s 2.55s cubic-bezier(.65,0,.35,1) both}
.rh-reveal .rh-reveal__logo{font-size:clamp(76px,15vw,240px);letter-spacing:-.062em;font-weight:400;line-height:1;white-space:nowrap;
  color:transparent;-webkit-text-fill-color:transparent;
  background:linear-gradient(105deg,#fff 0 42%,#f6dccd 46.5%,#E2A586 50%,#f6dccd 53.5%,#fff 58% 100%);background-size:320% 100%;background-position:100% 0;
  -webkit-background-clip:text;background-clip:text;
  animation:rhLogoIn 1.15s .45s cubic-bezier(.16,.84,.24,1) both,rhShine .95s 1.55s ease-in-out both}
.rh-reveal .rh-reveal__logo span{font-weight:680}
@keyframes rhLogoIn{
  0%{opacity:0;transform:translate3d(-42vw,9vh,0) skewX(-16deg) scale(1.1);filter:blur(20px);letter-spacing:.16em}
  55%{opacity:1;filter:blur(3px)}
  100%{opacity:1;transform:none;filter:blur(0);letter-spacing:-.062em}}
@keyframes rhShine{from{background-position:100% 0}to{background-position:0 0}}
@keyframes rhToHead{to{transform:translate(var(--fx,0px),var(--fy,-40vh)) scale(var(--fs,.14))}}
@keyframes rhIn{from{opacity:0;transform:translateY(18px)}}
@keyframes rhShow{from{opacity:0}to{opacity:1}}
html.rh-intro .hero-inner{animation:rhIn .9s 2.9s cubic-bezier(.2,.7,.2,1) both}
html.rh-intro .site-head--home .wordmark{animation:rhShow .01s 3.38s both}
html.rh-intro .site-head--home .head-actions,html.rh-intro .site-head--home .menu-toggle{animation:rhIn .7s 3.0s cubic-bezier(.2,.7,.2,1) both}

/* Reklamní režim ?reveal=ad (záznam 9:16 pro konec reklam) */
html.rh-ad,html.rh-ad body{background:#071D29!important;overflow:hidden!important}
.rh-ad .site-head,.rh-ad .mobile-menu,.rh-ad .hero-inner,.rh-ad .hero~*,.rh-ad footer{display:none!important}
.rh-ad .hero{margin:0!important;border-radius:0!important;height:100vh!important;min-height:0!important;max-height:none!important}
.rh-ad .hero-overlay{background:radial-gradient(ellipse 80% 45% at 50% 52%,rgba(4,18,28,.62),rgba(4,18,28,.12) 70%),linear-gradient(180deg,rgba(4,18,28,.2),rgba(4,18,28,.05) 35%,rgba(4,18,28,.8))!important}
.rh-ad .rh-reveal{padding-top:2vh}
.rh-ad .rh-reveal__move{animation:none}
.rh-ad .rh-reveal .rh-reveal__logo{font-size:21vw}
.rh-reveal__slogan{color:#fff;font-family:var(--sans,inherit);font-size:7.4vw;font-weight:600;letter-spacing:-.025em;white-space:nowrap;margin-top:3vh;
  animation:rhSlogan .8s 2.85s cubic-bezier(.2,.7,.2,1) both}
@keyframes rhSlogan{from{opacity:0;transform:translateY(2.4vh);filter:blur(6px)}}
@media (prefers-reduced-motion:reduce){html:not(.rh-ad) .rh-reveal{display:none}}

/* Reklamní reveal v4 (R.B. 25. 10.): nejdřív jen vlny, pak se ze světla obkreslí ruka z původního loga, vyplní se červeně a dopadne (vlna v proudu), pak vyskáčou písmena */
.rh-hand{width:30vw;height:auto;display:block;margin-bottom:3.2vh;overflow:visible;transform:rotate(-8deg);transform-origin:50% 60%;
  animation:rhPress .55s 1.28s cubic-bezier(.3,1.5,.5,1) both}
.rh-hand__line path{fill:none;stroke:#ffe3d4;stroke-width:16;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1;
  filter:drop-shadow(0 0 10px rgba(226,165,134,.95));
  animation:rhDraw .85s calc(.5s + var(--i) * .05s) cubic-bezier(.45,0,.25,1) both,rhLineOut .45s 1.45s ease-out both}
.rh-hand__fill path{fill:#EE1D23}
.rh-hand__fill{opacity:0;animation:rhFill .35s 1.25s ease-out both}
@keyframes rhDraw{to{stroke-dashoffset:0}}
@keyframes rhLineOut{to{opacity:0}}
@keyframes rhFill{to{opacity:1}}
@keyframes rhPress{0%{transform:rotate(-8deg) scale(1.14)}55%{transform:rotate(-8deg) scale(.95)}100%{transform:rotate(-8deg) scale(1)}}
.rh-ring{position:absolute;left:50%;top:30.5%;width:34vw;height:34vw;margin:-17vw 0 0 -17vw;border-radius:50%;
  border:.7vw solid rgba(238,29,35,.85);opacity:0;animation:rhRing .9s 1.4s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes rhRing{0%{opacity:.95;transform:scale(.35)}100%{opacity:0;transform:scale(3.1)}}
.rh-reveal__word{font-size:21vw;letter-spacing:-.062em;font-weight:400;line-height:1;white-space:nowrap;color:#fff}
.rh-reveal__word .rl{display:inline-block;transform-origin:50% 85%;
  animation:rhPop .5s calc(1.75s + var(--i) * .055s) cubic-bezier(.3,1.6,.5,1) both,rhBump .38s calc(2.45s + var(--i) * .06s) ease-in-out}
.rh-reveal__word .rl--b{font-weight:680}
@keyframes rhPop{0%{opacity:0;transform:translateY(.45em) scale(.2)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes rhBump{0%{transform:none}45%{transform:translateY(-.1em) scale(1.3)}100%{transform:none}}

/* 3D ruka (three.js, assets/hand3d.js): místo v rozvržení + plátno přes celý reveal */
.rh-hand3d-slot{width:30vw;height:35.3vw;margin-bottom:3.2vh}
.rh-hand3d-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.rh-flash{position:absolute;inset:0;background:radial-gradient(circle at 50% 33%,rgba(255,240,235,.9),rgba(255,255,255,0) 60%);opacity:0;animation:rhFlash .35s .86s ease-out forwards}
@keyframes rhFlash{0%{opacity:.95}100%{opacity:0}}

/* === Reklamní reveal 'tecka' (nové logo „redhand.“, R.B. 26. 10. 2026): ruka → Spock → sepnutí → smrští se do tečky → tečka cvrnkne do vln → písmena → tečka dopadne na konec loga === */
.rh-ad .rh-hand3d-slot{position:absolute;left:50%;top:33%;margin:-17.65vw 0 0 -15vw}
.rh-ad .rh-ring{top:33%}
.rh-ad .rh-reveal .rh-reveal__logo{width:78vw;font-size:inherit;background:none;color:inherit;-webkit-text-fill-color:initial;animation:none;margin-top:10vh}
.rh-ad .rh-reveal__logo .rh-logo{display:block;width:100%;height:auto;overflow:visible}
.rh-ad .rh-reveal__logo .rl{transform-box:fill-box;transform-origin:50% 90%;
  animation:rhPopS .45s var(--d) cubic-bezier(.3,1.6,.5,1) both,rhBumpS .34s calc(3.6s + var(--i) * .025s) ease-in-out}
@keyframes rhPopS{0%{opacity:0;transform:translateY(45%) scale(.2)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes rhBumpS{0%{transform:none}45%{transform:translateY(-7%) scale(1.07)}100%{transform:none}}
.rh-ad .rh-reveal__slogan{animation-delay:3.85s}
.rh-adot,.rh-adot-ring{position:absolute;left:0;top:0;width:0;height:0;border-radius:50%;opacity:0;pointer-events:none;display:block}
.rh-adot{background:#F22D3D;z-index:3;will-change:transform,left,top}
.rh-adot-ring{border:3px solid rgba(242,45,61,.9);z-index:2}

.rh-reveal__logo{position:relative}
.rh-reveal__logo .rh-logo-dot{opacity:0}

/* === Úvod webu v2 (R.B. 26. 10. 2026 18:22): logo „redhand“ se vyklube z drátů → ruka přiletí nad jeho konec → Spock (drží) → sepnutí → tečka → rozdělí se na dvě:
   A dosedne na konec loga a logo odjede do hlavičky, B doskočí jako tečka za „V POHYBU“. ~3,8 s; klik/klávesa/kolečko/dotyk/scroll přeskočí === */
.rh-h1dot{position:relative;color:transparent;-webkit-text-fill-color:transparent}
.rh-h1dot i{position:absolute;left:50%;bottom:.11em;width:.17em;height:.17em;margin-left:-.1em;border-radius:50%;background:#F22D3D;pointer-events:none}
.rh-wslot{position:absolute;pointer-events:none}
.rh-wmove{width:clamp(280px,min(44vw,62vh),640px);animation:rhToHead .6s 3.15s cubic-bezier(.65,0,.35,1) both,rhHide .01s 3.76s forwards!important}
@keyframes rhHide{to{opacity:0}}
.rh-reveal .rh-wmove .rh-reveal__logo{font-size:inherit;background:none;color:inherit;-webkit-text-fill-color:initial;animation:rhEmerge 1s .25s cubic-bezier(.3,.6,.2,1) both}
.rh-wmove .rh-logo{display:block;width:100%;height:auto;overflow:visible}
.rh-wmove .rh-reveal__logo .rh-logo-dot{animation:rhShow .01s 3.1s both}
@keyframes rhEmerge{0%{opacity:0;clip-path:inset(-20% 100% -20% -5%);filter:blur(14px) drop-shadow(0 0 0 rgba(226,165,134,0));transform:scale(.97)}
  45%{opacity:1;filter:blur(4px) drop-shadow(0 0 22px rgba(226,165,134,.9))}
  100%{opacity:1;clip-path:inset(-20% -5% -20% -5%);filter:blur(0) drop-shadow(0 0 0 rgba(226,165,134,0));transform:none}}
.rh-wslot--2d .rh-hand{width:100%;height:100%;margin:0;animation:rhW2dIn .65s .45s cubic-bezier(.2,.9,.25,1.25) both,rhW2dOut .25s 2.15s ease-in both}
.rh-wslot--2d .rh-hand__fill{fill:#E0141C;opacity:1!important;animation:none!important}.rh-wslot--2d .rh-hand__line{display:none}
@keyframes rhW2dIn{0%{opacity:0;transform:translate(30vw,-20vh) rotate(35deg) scale(1.6)}70%{opacity:1}100%{opacity:1;transform:rotate(-8deg)}}
@keyframes rhW2dOut{to{opacity:0;transform:rotate(200deg) scale(.04)}}
html.rh-intro:not(.rh-ad) .hero-inner{animation:none}
html.rh-intro:not(.rh-ad) .hero h1{clip-path:none}
html.rh-intro:not(.rh-ad) .hero-meta,html.rh-intro:not(.rh-ad) .hero-copy p,html.rh-intro:not(.rh-ad) .hero-links,html.rh-intro:not(.rh-ad) .hero-circle,html.rh-intro:not(.rh-ad) .hero-bottom{animation:rhIn .7s 3.4s cubic-bezier(.2,.7,.2,1) both}
html.rh-intro:not(.rh-ad) .hero h1 .rh-l1{display:inline-block;animation:rhWipe .4s 3.0s cubic-bezier(.6,0,.2,1) both}
html.rh-intro:not(.rh-ad) .hero h1 em{animation:rhWipe .35s 3.1s cubic-bezier(.6,0,.2,1) both}
@keyframes rhWipe{from{clip-path:inset(-.1em calc(100% + .1em) -.3em -.1em);opacity:.4}to{clip-path:inset(-.1em -.3em -.3em -.1em);opacity:1}}
html.rh-intro:not(.rh-ad) .rh-h1dot i{animation:rhShow .01s 4.05s both}
html.rh-intro:not(.rh-ad) .site-head--home .wordmark{animation:rhShow .01s 3.75s both}
html.rh-intro:not(.rh-ad) .site-head--home .head-actions,html.rh-intro:not(.rh-ad) .site-head--home .menu-toggle{animation:rhIn .6s 3.6s cubic-bezier(.2,.7,.2,1) both}
html.rh-intro:not(.rh-ad) .site-head .rh-logo-dot{transform-box:fill-box;transform-origin:center;animation:rhEcho .55s 3.8s ease-in-out both}
@keyframes rhEcho{0%{transform:none}40%{transform:scale(1.9)}100%{transform:none}}
@media (max-width:750px){.rh-wmove{width:72vw}}

/* výkon (Safari): tečky a kruh jen přes transform/opacity, svit jako ::after s proměnnou --g */
html:not(.rh-ad) .rh-adot{will-change:transform,opacity;transform-origin:50% 50%;box-shadow:none!important}
html:not(.rh-ad) .rh-adot::after{content:"";position:absolute;inset:-70%;border-radius:50%;background:radial-gradient(circle,rgba(242,45,61,.6),rgba(242,45,61,0) 62%);opacity:var(--g,0)}
html:not(.rh-ad) .rh-adot-ring{will-change:transform,opacity;transform-origin:50% 50%}
