/* Tamrin website: entrance motion. Sections carry data-enter; motion.js adds .in when 30% visible.
   Everything starts paused and invisible, then runs once. Same timings as the app tokens. */
@keyframes en-rise{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@keyframes en-draw{to{stroke-dashoffset:0}}
@keyframes en-fade{to{opacity:1}}
@keyframes en-pop{from{opacity:0;scale:.3}to{opacity:1;scale:1}}
@keyframes en-clip{to{clip-path:inset(0 0 0 0)}}
[data-enter]>*,[data-enter]>.wrap>*{opacity:0;animation:en-rise .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--k,0)*.08s)}
[data-enter]>.wrap{opacity:1;animation:none}
[data-enter]>*:nth-child(1),[data-enter]>.wrap>*:nth-child(1){--k:0}
[data-enter]>*:nth-child(2),[data-enter]>.wrap>*:nth-child(2){--k:1}
[data-enter]>*:nth-child(3),[data-enter]>.wrap>*:nth-child(3){--k:2}
[data-enter]>*:nth-child(4),[data-enter]>.wrap>*:nth-child(4){--k:3}
[data-enter]>*:nth-child(5),[data-enter]>.wrap>*:nth-child(5){--k:4}
[data-enter]>*:nth-child(6),[data-enter]>.wrap>*:nth-child(6){--k:5}
[data-enter]>*:nth-child(7),[data-enter]>.wrap>*:nth-child(7){--k:6}
[data-enter]>*:nth-child(8),[data-enter]>.wrap>*:nth-child(8){--k:7}
[data-enter]>*:nth-child(9),[data-enter]>.wrap>*:nth-child(9){--k:8}
[data-enter]>*:nth-child(10),[data-enter]>.wrap>*:nth-child(10){--k:9}
[data-enter]>*:nth-child(11),[data-enter]>.wrap>*:nth-child(11){--k:10}
[data-enter]>*:nth-child(12),[data-enter]>.wrap>*:nth-child(12){--k:11}
[data-enter]>*:nth-child(13),[data-enter]>.wrap>*:nth-child(13){--k:12}
[data-enter]>*:nth-child(14),[data-enter]>.wrap>*:nth-child(14){--k:13}

[data-enter] .thread path{stroke-dasharray:1400;stroke-dashoffset:1400;animation:en-draw 1.1s ease-out both;animation-delay:.5s}
[data-enter] .aside svg path{stroke-dasharray:70;stroke-dashoffset:70;animation:en-draw .4s ease-out both;animation-delay:.5s}
[data-enter] .aside span{clip-path:inset(0 100% 0 0);animation:en-clip .6s ease-out both;animation-delay:.85s}
[data-enter] .mcell{opacity:0;animation:en-pop .4s cubic-bezier(.2,.9,.25,1.2) both;animation-delay:.4s}
[data-enter] .mcell:nth-child(3n){animation-delay:.55s}[data-enter] .mcell:nth-child(3n+1){animation-delay:.7s}
[data-enter] .hw[aria-hidden]{opacity:0;animation:en-fade .8s ease-out both;animation-delay:.9s}
[data-enter] .ink{stroke-dasharray:1000;stroke-dashoffset:1000;animation:en-draw 1s ease-out both;animation-delay:.4s}
[data-enter] .inkg,[data-enter] .inkc{stroke-dasharray:200;stroke-dashoffset:200;animation:en-draw .7s ease-out both;animation-delay:.6s}
/* paused until the section is in view */
[data-enter] *,[data-enter] .dd path{animation-play-state:paused}
[data-enter].in *,[data-enter].in .dd path{animation-play-state:running}
/* the owl's glance (motion.js adds .glance for 1.2 s) */
@keyframes glance{0%,100%{translate:0 0}40%,70%{translate:-4px 1px}}
[data-owl].glance path[data-g="eye"],[data-owl].glance path[data-g="pupil"]{animation:glance 1.2s ease-in-out both}
@media (prefers-reduced-motion:reduce){[data-enter] *{animation:none!important;opacity:1!important;clip-path:none!important;stroke-dashoffset:0!important}}
