/*
 * botany.tech — entrances (owner, 13.11.2026): they start at once (delays
 * 0 to 70ms a step, never more than a few steps) and move smoothly (800 to
 * 1000ms, an expo ease-out), each block in its own way. site.js adds .is-in
 * to [data-reveal] as it comes into view; the value names the move:
 *   (none)   rise: up 28px from .96
 *   plate    a plate comes up from below and grows to full size
 *   unmask   a picture opens from its foot upward while it settles
 *   stage    How it works' green stage grows in from the middle
 *   deal     the team's cards, dealt in turn with a slight turn each
 *   row      a FAQ row, a short rise
 * Reduced motion: site.js marks everything in at once, no move.
 */
@media (prefers-reduced-motion:no-preference){
  .js [data-reveal]{transform-origin:50% 100%;transition:opacity 600ms cubic-bezier(.2,.7,.2,1),transform 900ms var(--ease-in-view),clip-path 1000ms var(--ease-in-view);transition-delay:var(--rd,0ms)}
  .js [data-reveal]:not(.is-in){opacity:0;transform:translateY(28px) scale(.96)}

  .js [data-reveal="plate"]{transform-origin:50% 0;transition-duration:500ms,1000ms}
  .js [data-reveal="plate"]:not(.is-in){opacity:0;transform:translateY(56px) scale(.93)}

  .js [data-reveal="unmask"]{transition-duration:500ms,1000ms,1000ms}
  .js [data-reveal="unmask"]:not(.is-in){opacity:.001;transform:scale(.94);clip-path:inset(22% 0 0 0 round var(--r-plate))}
  .js [data-reveal="unmask"].is-in{clip-path:inset(0 0 0 0 round var(--r-plate))}

  .js [data-reveal="stage"]{transform-origin:50% 50%;transition-duration:500ms,1000ms}
  .js [data-reveal="stage"]:not(.is-in){opacity:0;transform:scale(.9)}

  .js [data-reveal="deal"]{transition-duration:500ms,950ms}
  .js [data-reveal="deal"]:not(.is-in){opacity:0;transform:translateY(64px) rotate(var(--deal,-3deg)) scale(.94)}
  .js .team-card:nth-child(2)[data-reveal="deal"]{--deal:0deg}
  .js .team-card:nth-child(3)[data-reveal="deal"]{--deal:3deg}

  .js [data-reveal="row"]{transition-duration:450ms,700ms}
  .js [data-reveal="row"]:not(.is-in){opacity:0;transform:translateY(14px)}
}
/* What's next and the Advantages pictures: their own sequences, started sooner */
@media (prefers-reduced-motion:no-preference){
  /* the entrance waits its turn; the lit-or-grey colour never waits, so a
     stage's dot and words change together as you scroll (owner, 14.11.2026) */
  .wnm-dot{--d:calc(.35s + var(--i,0) * .35s);transition:transform .45s cubic-bezier(.3,1.4,.5,1) var(--d),opacity .3s ease var(--d)}
  .wnm-st > :not(.wnm-dot){--d:calc(.45s + var(--i,0) * .35s);transition:opacity .55s ease var(--d),transform .7s cubic-bezier(.2,.8,.2,1) var(--d),color .3s ease 0s}
  .wnm-list::before{transition-duration:.75s}
  .v8-adv-copy > :nth-child(2){transition-delay:.07s}
  .v8-adv-copy > :nth-child(3){transition-delay:.14s}
  .v8-adv-card .v8-sw-t,.v8-adv-card .v8-sw-t::after{transition-delay:.55s}
  .v8-adv-card .v8-sw-on > span{transition-delay:.6s}
  .v8-w2-mark{transition-delay:.25s}
  .v8-w2-rings i,.v8-w2-rings b{transition-delay:.5s}
}

/* What's next: the colour change, instant together, outside the motion query too */
.wnm-dot::before{transition:background-color .3s ease}

/* the last call: the canopy opens out as the plate straightens (--tilt from scroll-scenes.js) */
.end-cta-canopy img{transform:scale(calc(1 + var(--tilt,0) * .24));transform-origin:50% 55%}
/* the footer: the links and lines rise in turn; the big word comes up from under the floor */
@media (prefers-reduced-motion:no-preference){
  .js [data-reveal="word"]{transform-origin:50% 100%;transition-duration:700ms,1300ms}
  .js [data-reveal="word"]:not(.is-in){opacity:0;transform:translateY(38%) scale(.9)}
}

/* Advantages 03: the demo sheet slides up like the app's sheet, the money
   plate a beat later, the DEMO tag pops in once the count lands (adv-motion.js) */
@media (prefers-reduced-motion:no-preference){
  .v8-demo{transition:transform .8s var(--ease-in-view) .12s,opacity .45s ease .12s}
  .v8-demo-card{transition:transform .8s var(--ease-in-view) .28s,opacity .45s ease .28s}
  .v8-demo-tag{display:inline-block;transition:transform .4s cubic-bezier(.3,1.5,.5,1) .8s,opacity .2s ease .8s}
  .v8-adv-card.is-armed .v8-demo{opacity:0;transform:translateY(64px)}
  .v8-adv-card.is-armed .v8-demo-card{opacity:0;transform:translateY(18px)}
  .v8-adv-card.is-armed .v8-demo-tag{opacity:0;transform:scale(.4)}
}

/* pop: a portrait that springs out from small, a little turned (the founder's photo; owner, 17.11.2026) */
@media (prefers-reduced-motion:no-preference){
  .js [data-reveal="pop"]{transform-origin:50% 50%;transition:opacity 500ms ease,transform 900ms cubic-bezier(.3,1.35,.5,1);transition-delay:var(--rd,0ms)}
  .js [data-reveal="pop"]:not(.is-in){opacity:0;transform:scale(.6) rotate(-8deg)}
}

/* slide: a row that comes in from the left, its portrait popping out after it
   (the team; owner, 17.11.2026) */
@media (prefers-reduced-motion:no-preference){
  .js [data-reveal="slide"]{transition:opacity 500ms ease,transform 800ms cubic-bezier(.2,.8,.2,1);transition-delay:var(--rd,0ms)}
  .js [data-reveal="slide"]:not(.is-in){opacity:0;transform:translateX(-36px)}
  .js .team-card[data-reveal] .team-av{transition:opacity 400ms ease,transform 800ms cubic-bezier(.3,1.35,.5,1);transition-delay:calc(var(--rd,0ms) + 180ms)}
  .js .team-card[data-reveal]:not(.is-in) .team-av{opacity:0;transform:scale(.6) rotate(-8deg)}
}
