/*
 * botany.tech — scroll scenes (owner, 13.11.2026, after asend.now).
 *   [data-scene-tilt]  a plate that comes up tilted and small, and straightens
 *                      and grows to full size as it rises (Where the system
 *                      trades, the founder's note, the team, the last call)
 *   .wt                Where the system trades: the venues on an arc that
 *                      turns by itself over the line
 * scroll-scenes.js sets --tilt (1 to 0); without it, or with reduced motion,
 * every plate stands straight and the arc stands still.
 */

/* ---------- the tilt ---------- */
@media (prefers-reduced-motion:no-preference){
  .scenes-on [data-scene-tilt]{--tilt:0;transform-origin:50% 0;
    transform:translate3d(0,calc(var(--tilt) * 72px),0) rotate(calc(var(--tilt) * var(--tilt-deg,2.6deg))) scale(calc(1 - var(--tilt) * .1));
    opacity:calc(1 - var(--tilt) * .55)}
  /* the sheet over the hero: a gentler lean, no fade (the hero would show through) */
  .scenes-on [data-scene-tilt="sheet"]{opacity:1;transform:translate3d(0,calc(var(--tilt) * 48px),0) rotate(calc(var(--tilt) * 2deg)) scale(calc(1 - var(--tilt) * .04))}
  .team-card[data-scene-tilt]:nth-child(2){--tilt-deg:-2deg}
  .team-card[data-scene-tilt]:nth-child(3){--tilt-deg:3.2deg}
}

/* ---------- Where the system trades ---------- */
/* the line at the top of the plate; under it the rim of a big circle whose
   centre sits far below the plate, the venues riding it (owner, 14.11.2026) */
.wt{padding-block:clamp(96px,12vw,168px)}
.wt-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;min-height:540px;padding:88px 24px 0;
  border-radius:var(--r-plate);background:var(--s2)}
.wt-in{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.wt .wt-h{margin:0;font-size:clamp(40px,4.6vw,64px);line-height:1;letter-spacing:-.04em}
.wt-h .ln{display:block}
.wt-p{margin:0;font-size:17px;line-height:26px;color:var(--ink500)}
/* the arc: the lower rim of a big circle whose centre sits above the plate,
   so the row dips in the middle and rises to the edges (owner, 14.11.2026);
   --low is how far down the plate its lowest point runs */
.wt-arc{--R:1300px;--b:104px;--step:calc(360deg / 49);--low:400px;--dur:150s;position:absolute;left:50%;top:var(--low);width:0;height:0;pointer-events:none}
.wt-ring{position:absolute;left:0;top:calc(var(--R) * -1);width:0;height:0}
.wt-b{position:absolute;left:0;top:0;width:var(--b);height:var(--b);margin:calc(var(--b) / -2) 0 0 calc(var(--b) / -2);--a:calc(var(--i) * var(--step) + var(--turn));
  transform:rotate(var(--a)) translateY(var(--R)) rotate(calc(var(--a) * -1))}
.wt-u,.wt-c{display:grid;place-items:center;width:100%;height:100%}
.wt-c{border-radius:50%;background:var(--bf,#111)}
.wt-c img{display:block;width:auto;max-width:60%;height:auto;max-height:26%;filter:brightness(0) invert(1)}
/* each venue in its own colours (checked 15.11.2026 on their sites and brand
   pages: BTSE's blue from btse.com, Gate's full-colour mark on white as on gate.com, Base Blue from
   brand.base.org, Hyperliquid's deep green and mint from hyperliquid.xyz;
   Binance, Bybit and OKX as their app marks, on their dark) */
.wt-b--btse{--bf:#015FE5}
.wt-b--gate{--bf:#fff}
.wt-b--gate .wt-c img{filter:none}
.wt-b--base{--bf:#0000FF}
.wt-b--okx{--bf:#000}
.wt-b--binance{--bf:#181A20}
.wt-b--binance .wt-c img{filter:none}
.wt-b--bybit{--bf:#17181E}
.wt-b--bybit .wt-c img{filter:none}
.wt-b--hl{--bf:#03211C}
.wt-b--hl .wt-c img{filter:none;max-width:46%;max-height:40%}
.wt-b--base .wt-c img,.wt-b--binance .wt-c img{max-width:44%;max-height:44%}
@property --turn{syntax:'<angle>';inherits:true;initial-value:0deg}
.wt-arc{--turn:0deg}
@media (prefers-reduced-motion:no-preference){
  .wt-arc{animation:wt-turn var(--dur) linear infinite}
}
@keyframes wt-turn{to{--turn:360deg}}
@media (max-width:759px){
  .wt-card{min-height:400px;padding:64px 20px 0}
  .wt-arc{--R:300px;--b:64px;--step:calc(360deg / 21);--low:300px;--dur:70s}
  .wt-b:nth-child(n+22){display:none}
  .wt .wt-h{font-size:38px}
  .wt-p{font-size:15px;line-height:22px}
}

/* ---------- What's next, held: the stages lit one by one as you scroll ---------- */
.wnm-st .wnm-name,.wnm-st .wnm-d,.wnm-st .wnm-when{transition:color .45s ease}
.wnm-dot::before{transition:background-color .45s ease}
.wnm-list .wnm-st .wnm-name,.wnm-list .wnm-st .wnm-d{color:var(--ink300)}
.wnm-list .wnm-st .wnm-when{color:var(--l500)}
.wnm-list .wnm-st .wnm-dot::before{background:var(--l500)}
.wnm-list .wnm-st.is-on .wnm-name{color:var(--ink900)}
.wnm-list .wnm-st.is-on .wnm-d,.wnm-list .wnm-st.is-on .wnm-when{color:var(--ink500)}
.wnm-list .wnm-st.is-on .wnm-dot::before{background:var(--ink900)}
@media (prefers-reduced-motion:no-preference){
  .scenes-on .wnm{padding-block:0}
  .scenes-on .wnm-track{height:210svh}
  .scenes-on .wnm-pin{position:sticky;top:0;display:flex;align-items:center;height:100svh}
  .scenes-on .wnm-pin > .container{width:100%}
}

/* under How it works now (owner, 15.11.2026): the wide air How it works
   needs goes over this plate; the founder follows at the usual distance */
/* 17.11.2026 (owner): under You can now, which already ends in its own
   air; the wide gap read as a hole */
.wt,.blk--white + .blk--white.wt{padding-top:clamp(16px,2vw,32px)}
#founder{padding-top:clamp(48px,5vw,72px)}
/* 17.11.2026: Base as its current mark from the brand kit, the white square on Base Blue */
.wt-b--base .wt-c img{max-width:32%;max-height:32%;filter:none}
/* 17.11.2026 (owner): Base as its lockup, the square and the word, so it
   reads as Base; every badge a faint light edge on the dark plate */
.wt-b--base .wt-c img{max-width:62%;max-height:none;width:62%;filter:none}
.wt-c{box-shadow:inset 0 0 0 1px rgb(247 247 242/.24)}
/* 17.11.2026 (owner): the venues a little higher on the plate, and the
   plate's foot following them up */
.wt-arc{--low:340px}
.wt-card{min-height:480px}
@media (max-width:759px){.wt-arc{--low:262px}.wt-card{min-height:360px}}

/* ---------- Advantages, scaled in (owner, 17.11.2026) ---------- */
/* "like How it works: small first, then it grows": each plate of the stack
   comes up at .85 and grows to full size as it rises to its place, scrubbed
   by the scroll (--grow from scroll-scenes.js, 0 to 1, eased out). The scroll
   owns the plate's transform; its one-time reveal keeps only the fade, so the
   two never pull on the same transform. Scaled from the top edge, so the
   stack's 14px steps land true; it only ever shrinks, never overflows. */
@media (prefers-reduced-motion:no-preference){
  .scenes-on .v8-adv .v8-adv-card[data-scene-grow]{--grow:1;transform-origin:50% 0;
    transform:scale(calc(.85 + var(--grow) * .15));
    transition:opacity 500ms cubic-bezier(.2,.7,.2,1) var(--rd,0ms);will-change:transform}
}

/* ---------- About's figures, in parallax (owner, 18.11.2026) ----------
   As the block rises, the three figures come up at three speeds, the last
   furthest behind, and settle into one line by the time it is well on
   screen; each fades in on its way. Advantages' cards fade in with their
   scale, scrubbed by the same scroll, instead of a one-off fade that played
   before they were seen. */
@media (prefers-reduced-motion:no-preference){
  .scenes-on [data-scene-par] .ab-f{--d:0px;transform:translate3d(0,calc((1 - var(--par,1)) * var(--d)),0);
    opacity:clamp(0,calc(var(--par,1) * 2.2 - .2 - var(--k,0) * .25),1);will-change:transform}
  .scenes-on [data-scene-par] .ab-f:nth-child(1){--d:80px;--k:0}
  .scenes-on [data-scene-par] .ab-f:nth-child(2){--d:150px;--k:1}
  .scenes-on [data-scene-par] .ab-f:nth-child(3){--d:220px;--k:2}
  @media (max-width:639px){
    .scenes-on [data-scene-par] .ab-f:nth-child(1){--d:40px}
    .scenes-on [data-scene-par] .ab-f:nth-child(2){--d:70px}
    .scenes-on [data-scene-par] .ab-f:nth-child(3){--d:100px}
  }
  .scenes-on .v8-adv .v8-adv-card[data-scene-grow]{opacity:clamp(0,calc(var(--grow) * 1.8),1);transition:none}
}
