/* Motion calibrated against RecordedVideo.webm: the jar and floating props turn
   as a group, the old group exits right, and the new group arrives from left.
   Previous navigation reverses the direction. */
.nb-jar-float{position:relative}
.nb-jar-picture,.nb-fruit-picture{display:contents}
.nb-atmosphere,.nb-terrain{background-image:var(--nb-background)}
.nb-cta svg{flex:0 0 20px;width:20px;height:20px;display:block}
.nb-cylinder{position:absolute;inset:0;display:block;width:100%;height:100%;opacity:0;pointer-events:none}
.nb-surface-ready .nb-jar{opacity:0}
.nb-scene .nb-jar{animation:none!important;transform:none!important;will-change:auto}
.nb-scene .nb-jar-position{animation:none!important;transform:none}
.nb-scene{transition:visibility 1s;opacity:0}
.nb-scene.is-active,.nb-scene.is-leaving{opacity:1;visibility:visible}
.nb-scene:not(.is-active):not(.is-leaving) *,.nb-showcase.is-offscreen *{animation-play-state:paused!important}
.nb-stage{transform-origin:50% 46%;backface-visibility:hidden;--nb-turn-direction:1;will-change:transform}
.nb-stage.nb-pre-enter{visibility:hidden}
.nb-stage.nb-turn-enter{animation:nb-group-enter calc(var(--nb-turn-duration,1000ms) - 120ms) cubic-bezier(.2,.75,.2,1) 120ms both;will-change:transform}
.nb-stage.nb-turn-leave{animation:nb-group-leave var(--nb-turn-duration,700ms) cubic-bezier(.5,0,.85,.5) both;will-change:transform}
.nb-stage.nb-turn-flavour{animation:nb-group-flavour var(--nb-turn-duration,1000ms) linear both;will-change:transform}
.nb-scene.is-active .nb-prop,.nb-scene.is-active .nb-fruit{animation:none}
.nb-scene.is-leaving .nb-orbit{opacity:1;transform:none;transition:none}
.nb-scene.is-active .nb-copy{animation:nb-copy-in .55s .25s both}
.nb-scene.is-active .nb-description{animation:nb-description-in .55s .3s both}
.nb-scene.is-leaving .nb-copy,.nb-scene.is-leaving .nb-description,.nb-scene.is-leaving .nb-word{animation:nb-content-leave .3s ease both}
.nb-scene.is-active .nb-atmosphere{animation:nb-atmosphere-enter .9s ease both}
.nb-scene.is-leaving .nb-atmosphere,.nb-scene.is-leaving .nb-glow,.nb-scene.is-leaving .nb-stars{animation:nb-atmosphere-leave .9s ease both}
.nb-scene.is-active .nb-terrain{animation:nb-terrain-flow-in 1s cubic-bezier(.25,.65,.25,1) both}
.nb-scene.is-leaving .nb-terrain{animation:nb-terrain-flow-out .8s ease both}
@keyframes nb-group-enter{
 from{opacity:0;transform:perspective(1400px) translate3d(calc(var(--nb-turn-direction)*-70vw),0,0) rotateY(calc(var(--nb-turn-direction)*-68deg))}
 8%{opacity:1}
 to{opacity:1;transform:perspective(1400px) translate3d(0,0,0) rotateY(0deg)}
}
@keyframes nb-group-leave{
  0%{opacity:1;transform:perspective(1400px) translate3d(0,0,0) rotateY(0deg)}
  80%{opacity:1}
  100%{opacity:0;transform:perspective(1400px) translate3d(calc(var(--nb-turn-direction)*75vw),0,0) rotateY(calc(var(--nb-turn-direction)*68deg))}
}
@keyframes nb-group-flavour{
  0%,100%{opacity:1;transform:perspective(1400px) translate3d(0,0,0) rotateY(0deg)}
  40%{opacity:0;transform:perspective(1400px) translate3d(calc(var(--nb-turn-direction)*70vw),0,0) rotateY(calc(var(--nb-turn-direction)*68deg))}
  50%{opacity:0;transform:perspective(1400px) translate3d(calc(var(--nb-turn-direction)*-70vw),0,0) rotateY(calc(var(--nb-turn-direction)*-68deg))}
  58%{opacity:1;transform:perspective(1400px) translate3d(calc(var(--nb-turn-direction)*-47vw),0,0) rotateY(calc(var(--nb-turn-direction)*-58deg))}
  80%{opacity:1;transform:perspective(1400px) translate3d(calc(var(--nb-turn-direction)*-8vw),0,0) rotateY(calc(var(--nb-turn-direction)*-16deg))}
}
@keyframes nb-content-leave{to{opacity:0;transform:translateX(calc(var(--nb-turn-direction,1)*35px))}}
@keyframes nb-atmosphere-enter{from{opacity:0}to{opacity:.72}}
@keyframes nb-atmosphere-leave{to{opacity:0}}
@keyframes nb-terrain-flow-in{from{opacity:0;transform:translateX(calc(var(--nb-turn-direction,1)*-6%)) scale(1.04)}to{opacity:1;transform:translateX(0) scale(1)}}
@keyframes nb-terrain-flow-out{to{opacity:0;transform:translateX(calc(var(--nb-turn-direction,1)*10%)) scale(1.04)}}
/* Flat compositor layers avoid disappearing incoming canvases on mobile Safari.
   The actual label projection still rotates with the moving group. */
@media(max-width:760px),(max-width:1100px) and (pointer:coarse){
 .nb-atmosphere,.nb-terrain{background-image:var(--nb-mobile-background,var(--nb-background))}
 .nb-stage{backface-visibility:visible;will-change:auto}
 .nb-stage.nb-turn-enter{animation:nb-touch-enter var(--nb-turn-duration,1000ms) cubic-bezier(.2,.75,.2,1) both}
 .nb-stage.nb-turn-leave{animation:nb-touch-leave var(--nb-turn-duration,700ms) cubic-bezier(.5,0,.85,.5) both}
 .nb-stage.nb-turn-flavour{animation:nb-touch-flavour var(--nb-turn-duration,1000ms) linear both}
 .nb-atmosphere{transition:none;transform:none}
 .nb-terrain{transition:none}
 .nb-stars{animation:none;opacity:.4}
}
@keyframes nb-touch-enter{from{opacity:0;transform:translate3d(calc(var(--nb-turn-direction)*-105%),0,0)}14%{opacity:1}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes nb-touch-leave{from{opacity:1;transform:translate3d(0,0,0)}75%{opacity:1}to{opacity:0;transform:translate3d(calc(var(--nb-turn-direction)*105%),0,0)}}
@keyframes nb-touch-flavour{0%,100%{opacity:1;transform:translate3d(0,0,0)}40%{opacity:0;transform:translate3d(calc(var(--nb-turn-direction)*100%),0,0)}50%{opacity:0;transform:translate3d(calc(var(--nb-turn-direction)*-100%),0,0)}65%{opacity:1}80%{transform:translate3d(calc(var(--nb-turn-direction)*-12%),0,0)}}
@media(prefers-reduced-motion:reduce){
 .nb-cylinder{display:none}.nb-stage.nb-pre-enter{visibility:visible}
 .nb-scene .nb-stage,.nb-scene .nb-atmosphere,.nb-scene .nb-terrain,.nb-scene .nb-copy,.nb-scene .nb-description{animation:none!important;transform:none!important;will-change:auto}
 .nb-scene.is-leaving{opacity:0;visibility:hidden}
}
