/* flomi space — MOTION for a brand project (Nov 12 2026 audit: https://claude.ai/artifact/PFyVRXM5qcwmL5mgGrDhkG).
   Measured on studio case-study pages (Collins' Bose: each piece fades 800ms and rises on a long expo-out curve, 70ms apart;
   Pentagram: 300–600ms fades): the work arrives piece by piece, softly, then stays still. Everything here is transform/opacity,
   off under reduced motion, and never needed to read the page (an animation that doesn't run leaves everything visible).
   Its own file so brand-space.css keeps layout and this keeps movement (feature CSS in its own file). */

/* the three speeds and the one curve the space moves on (web-build: 2–3 duration tokens). --dur-fast was already read by
   brand-space.css with a .18s fallback. Nov 20 2026 (the polish pass; NN/g "Executing UX Animations": UI motion 100-500ms):
   --dur-slow 900 → 500ms, so the title and the options land within about a second, and the send row no longer waits for the
   pictures (it was 450ms late plus 450ms of fade): nobody waits for an animation to act. */
body.bs-page{--dur-fast:200ms;--dur-med:450ms;--dur-slow:500ms;--ease-soft:cubic-bezier(.19,1,.22,1);}

@media (prefers-reduced-motion:no-preference){
  /* 1. the first screen: the board's surface fades up, then each picture or option rises 16px into place, 80ms apart */
  .bs-stage .bs-board{animation:sm-fade var(--dur-med) ease-out both;}
  .bs-stage .bs-mood>.bs-tile,.bs-stage .bs-bento>.bs-tile,.bs-stage .bs-opt{animation:sm-rise var(--dur-slow) var(--ease-soft) both;}
  .bs-stage :is(.bs-mood>.bs-tile,.bs-bento>.bs-tile,.bs-opt):nth-child(1){animation-delay:120ms;}
  .bs-stage :is(.bs-mood>.bs-tile,.bs-bento>.bs-tile,.bs-opt):nth-child(2){animation-delay:200ms;}
  .bs-stage :is(.bs-mood>.bs-tile,.bs-bento>.bs-tile,.bs-opt):nth-child(3){animation-delay:280ms;}
  .bs-stage :is(.bs-mood>.bs-tile,.bs-bento>.bs-tile,.bs-opt):nth-child(4){animation-delay:360ms;}
  .bs-stage :is(.bs-mood>.bs-tile,.bs-bento>.bs-tile,.bs-opt):nth-child(5){animation-delay:440ms;}
  .bs-stage :is(.bs-mood>.bs-tile,.bs-bento>.bs-tile,.bs-opt):nth-child(n+6){animation-delay:520ms;}
  /* 0. the title comes first: kicker, name, line, 60ms apart; the board follows (delays above start at 120ms) */
  .bs-title>*{animation:sm-rise var(--dur-slow) var(--ease-soft) both;}
  .bs-title>:nth-child(2){animation-delay:60ms;} .bs-title>:nth-child(3){animation-delay:120ms;} .bs-title>:nth-child(4){animation-delay:180ms;}
    /* the words under the board arrive last, once the pictures have landed */
  .bs-stage .bs-cap,.bs-stage .bs-dots{animation:sm-fade var(--dur-med) ease-out 300ms both;}
  @keyframes sm-fade{from{opacity:0;}}
  @keyframes sm-rise{from{opacity:0;transform:translateY(16px);}}

  /* 2. below the fold: each section fades up as it scrolls in (Safari 18+ and Chrome; Zen shows them at once). Sections already on
     screen at load are past their range, so they sit at rest. */
  @supports (animation-timeline:view()){
    .bs>.bs-sec,#history,#reach{animation:sm-up linear both;animation-timeline:view();animation-range:entry 0% entry 35%;}
    @keyframes sm-up{from{opacity:0;transform:translateY(24px);}}
  }

  /* 3. hover (pointers only): the picture grows 3% inside its own frame, so nothing on the page moves (web-build: hover never moves
     the page). isolation keeps WebKit's rounded corners clipping a scaled child. */
  @media (hover:hover) and (pointer:fine){
    .bs-tile img{transition:transform var(--dur-med) var(--ease-soft);}
    .bs-tile button.open:is(:hover,:focus-visible) img{transform:scale(1.03);}
    .bs-send{transition:background-color var(--dur-fast) ease;}
    .bs-send:hover{background:var(--accent-d);}
  }

  /* 4. the viewer leaves the way it came (brand-space.js adds .closing for 200ms before close()) */
  .bs-lb.closing{animation:sm-out var(--dur-fast) ease-in forwards;}
  .bs-lb.closing::backdrop{animation:sm-out var(--dur-fast) ease-in forwards;}
  @keyframes sm-out{to{opacity:0;transform:translateY(8px) scale(.98);}}

  /* 5. "send to us" tapped before any reaction: the first option's buttons draw the eye once */
  .bs-react.nudge{animation:sm-nudge var(--dur-slow) var(--ease-soft);}
  @keyframes sm-nudge{0%,100%{box-shadow:0 0 0 0 transparent;}25%{box-shadow:0 0 0 4px color-mix(in srgb,var(--ink) 35%,transparent);}}
}
.bs-tile{isolation:isolate;}
.bs-send-hint.ask{color:var(--ink);font-weight:600;}

/* "waiting on you" during an open round: one link up to the pick */
.bs-up{margin:0;font-size:15px;}
.bs-up a{color:var(--ink);font-weight:600;text-underline-offset:3px;}

/* the phone send bar (brand-space.js sendBar): opaque, on the page's surface, above the home indicator; slides on --dur-med */
.bs-bar{display:none;}
@media (max-width:700px){
  .bs-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;align-items:center;justify-content:space-between;gap:12px;
    padding:12px max(18px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
    background:var(--panel);border-top:1px solid var(--line);font-size:14px;color:var(--soft);
    transform:translateY(110%);visibility:hidden;transition:transform var(--dur-med,.45s) var(--ease-soft,ease),visibility 0s linear var(--dur-med,.45s);}
  .bs-bar.up{transform:none;visibility:visible;transition:transform var(--dur-med,.45s) var(--ease-soft,ease),visibility 0s;}
  .bs-bar-n{font-variant-numeric:tabular-nums;}
}
@media (prefers-reduced-motion:reduce){.bs-bar,.bs-bar.up{transition:none;}}
