/* Motion of the public pages: the home, the catalogues, the documentation, the VM waiting list, the applications, the
   infrastructure, the managed services, the FAQ, the contact page and the status page (virtana/motion.blade.php).
   What opens a page rises in on load, CSS alone; motion.js adds .reveal to the blocks still below the fold and
   .is-visible when they come into view, which also takes them out of their load entrance (:not(.reveal)). So nothing is
   hidden without the script, nor for blocks already on screen. Animations only fill backwards with opacity, translate
   and scale, so hover effects and the layout stay as they are; reduced motion (app.css) stops all of it and .reveal then
   shows, as in print. The home's own scenes are in home.css, the documentation's in documentation.css, the status
   page's in status.css. */
:root{--rise:cubic-bezier(.2,.75,.25,1)}
.reveal:not(.is-visible){opacity:0}
.reveal.is-visible{animation:rise .8s var(--rise) var(--reveal-delay,0s) backwards}
.eyebrow-dot{animation:dot-pulse 2.8s ease-out 1.2s infinite}
/* The price of the chosen period slides in when the period switch shows it. */
.offer-card [data-period-value] .price{animation:price-in .35s var(--rise)}

/* The other pages open with their heading (eyebrow, title, lead), then what follows it on the first screen: the launch
   status, the catalogue's switches and cards, the explanations, the editorial sections with their rule drawn from the
   left, the waiting list form, the applications one after the other, the contact page's button. */
:is(.page-section>.eyebrow,.page-section>.page-title,.page-section>.lead,.page-section>.launch,.page-section .catalog-toolbar,.page-section .offer-grid>.offer-card,.page-section .catalog-foot,.explain-grid>article,.page-section .editorial-sections>article,.page-section>.panel,.page-section .recipe-grid>.recipe-card,.page-section>.button):not(.reveal){animation:rise .8s var(--rise) var(--enter,0s) backwards}
.page-section>.page-title{--enter:.08s}
.page-section>.lead{--enter:.2s}
.page-section>.launch{--enter:.3s}
.page-section .catalog-toolbar{--enter:.34s}
.page-section .offer-grid>.offer-card:nth-child(1){--enter:.4s}
.page-section .offer-grid>.offer-card:nth-child(2){--enter:.47s}
.page-section .offer-grid>.offer-card:nth-child(3){--enter:.54s}
.page-section .offer-grid>.offer-card:nth-child(4){--enter:.61s}
.page-section .offer-grid>.offer-card:nth-child(n+5){--enter:.68s}
.page-section .catalog-foot{--enter:.6s}
.explain-grid>article:nth-child(1){--enter:.55s}
.explain-grid>article:nth-child(2){--enter:.63s}
.explain-grid>article:nth-child(3){--enter:.71s}
.explain-grid>article:nth-child(n+4){--enter:.79s}
.page-section .editorial-sections>article:nth-child(1){--enter:.3s}
.page-section .editorial-sections>article:nth-child(2){--enter:.38s}
.page-section .editorial-sections>article:nth-child(n+3){--enter:.46s}
.page-section>.panel{--enter:.42s}
.page-section .recipe-grid>.recipe-card{--enter:.5s}
.page-section .recipe-grid>.recipe-card:nth-child(2){--enter:.56s}
.page-section .recipe-grid>.recipe-card:nth-child(3){--enter:.62s}
.page-section .recipe-grid>.recipe-card:nth-child(4){--enter:.68s}
.page-section .recipe-grid>.recipe-card:nth-child(5){--enter:.74s}
.page-section .recipe-grid>.recipe-card:nth-child(n+6){--enter:.8s}
.page-section>.button{--enter:.42s}
/* Who does what right under a page's heading (the catalogues, the infrastructure, the managed services): what of it is
   already on the first screen comes in after the page, the layers stacking up from the servers; the rest rises as it
   comes into view. */
.page-section+.responsibility :is(.responsibility-copy,.layer-stack figcaption,.stack-layer,.stack-note):not(.reveal){animation:rise .8s var(--rise) var(--enter,0s) backwards}
.page-section+.responsibility .responsibility-copy{--enter:.55s}
.page-section+.responsibility .layer-stack figcaption{--enter:.65s}
.page-section+.responsibility .stack-layer:nth-child(5){--enter:.7s}
.page-section+.responsibility .stack-layer:nth-child(4){--enter:.79s}
.page-section+.responsibility .stack-layer:nth-child(3){--enter:.88s}
.page-section+.responsibility .stack-layer:nth-child(2){--enter:.97s}
.page-section+.responsibility .stack-layer:nth-child(1){--enter:1.06s}
.page-section+.responsibility .stack-note{--enter:1.12s}
.page-section .editorial-sections>article{position:relative;border-top-color:transparent}
.page-section .editorial-sections>article::before{content:"";position:absolute;top:-1px;left:0;right:0;height:1px;background:var(--border);transform-origin:left}
.page-section .editorial-sections>article:first-child::before{top:-2px;height:2px;background:var(--ink)}
.page-section .editorial-sections>article:not(.reveal)::before{animation:draw-rule 1.1s var(--rise) var(--enter,0s) backwards}
.page-section .editorial-sections>article.is-visible::before{animation:draw-rule 1.1s var(--rise) var(--reveal-delay,0s) backwards}

@keyframes rise{from{opacity:0;translate:0 26px}}
@keyframes rise-short{from{opacity:0;translate:0 12px}}
@keyframes price-in{from{opacity:0;translate:0 8px}}
@keyframes draw-rule{from{scale:0 1}}
@keyframes tick-pop{from{opacity:0;scale:.2}}
@keyframes dot-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 55%,transparent)}70%,100%{box-shadow:0 0 0 10px transparent}}
@media(prefers-reduced-motion:reduce){.reveal:not(.is-visible){opacity:1}}
@media print{.reveal:not(.is-visible){opacity:1}}
