/* motion.css - calm, Claude-style motion through the app (Grady, 2026-10-06/07: "I like that style [the little animations Claude shows
   while it works]. I want our app to look modern and look realistic"; "i still want animations everywhere on the app"). Every screen a
   barber touches gets the right small move; nothing is decoration. The house set (style.css :root): a press 120 ms to .97, a fade
   150 ms, a sheet or a list 240 ms, one strong ease-out, never ease-in, nothing looping forever, nothing over the
   camera's video or a creator's. One exception since the reel of 2026-11-13 (style.css): the one main button of a flow and Record
   overshoot on release. Otherwise never a bounce, nothing over the
   camera's video or a creator's. Only opacity and transform move (selfcheck-screens.js), and under "reduce motion" the tokens stand
   still, so every keyframe below is a short fade (style.css). Linked from index.html after every other stylesheet. */

/* a screen change (app.js enter): the View Transitions crossfade where the phone has it, else the new screen fades in with a 6 px rise.
   Never on the camera or the feed (app.js STILL). At rest <main> has no transform, so nothing fixed inside it is ever moved. */
#app { transition: opacity var(--t-fade) var(--ease-out), transform var(--t-fade) var(--ease-out); }
#app.enter { opacity: 0; transform: translateY(var(--m-rise)); transition: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t-fade); animation-timing-function: var(--ease-out); }

/* the shared moves */
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-in { from { opacity: 0; transform: translateY(var(--m-rise)); } }

/* the tick (ui.js tick): a drawn check. .ck-draw draws it once, left to right, as it lands: a cover the colour of the tick's disc slides
   off it (transform only; both discs are cyan: a shot list row's mark, the camera's tick after a take) */
.ck { position: relative; display: inline-flex; overflow: hidden; width: 60%; height: 60%; }
.ck svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ck-draw::after { content: ""; position: absolute; inset: 0; background: var(--cyan); animation: m-wipe var(--t-sheet) var(--ease-out) 60ms both; }
@keyframes m-wipe { to { transform: translateX(101%); } }
@media (prefers-reduced-motion: reduce) { .ck-draw::after { display: none; } }

/* new words on a button (ui.js relabel: Start filming to AI Edit, Create to Opening...) fade in where the old ones were */
.m-swap { animation: m-fade var(--t-fade) var(--ease-out); }

/* Create, while the reel is made (reel-card.js): its words fade to "Opening...", a 1 px shimmer sweeps under them every 2 s, only
   while it waits; disabled against a double tap but never greyed */
button.create.working { position: relative; overflow: hidden; }
button.create.working:disabled { opacity: 1; cursor: progress; }
button.create.working::after { content: ""; position: absolute; left: 0; bottom: 12px; width: 40%; height: 1px;
  background: rgba(17, 17, 17, .35); animation: m-sweep 2s linear infinite; }
@keyframes m-sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { button.create.working::after { display: none; } }

/* the camera opens over a dark layer (app.js): the page goes dark at the tap, under the camera's own stage (.film, z 70), and goes once
   the stage is up or cannot be */
.cam-dark { position: fixed; inset: 0; z-index: 69; background: #0d0d0f; animation: m-fade var(--t-fade) var(--ease-out); }

/* the reel is ready (view-wait.js, view-reels.js): once and spring-free, the strip's box or the My reels card settles from .96 to 1 in
   300 ms as the reel's poster fades in; never on a refresh's redraw */
.wait-stage.ready { animation: m-settle 300ms var(--ease-out) both; }
.ea-poster { position: absolute; top: 7%; left: 0; right: 0; height: 86%; aspect-ratio: 9 / 16; margin: 0 auto; object-fit: cover; border-radius: 16px;
  box-shadow: var(--shadow); animation: m-fade 300ms var(--ease-out) backwards; }
.reel-card.ready-now { animation: m-settle 300ms var(--ease-out) backwards; }
.reel-card.ready-now .thumb { animation: m-fade 300ms var(--ease-out) backwards; }
@keyframes m-settle { from { transform: scale(var(--m-from)); } }

/* the shell (ui.js toast and sheet, tips.js): in 150 ms, out 100 ms, a fade and a short rise; the first-time tip slides down once as it
   appears, never again while it stays up. Settings and Plans get nothing but the press (app.js STILL). */
.toast { animation: m-in var(--t-fade) var(--ease-out); }
.toast.out { opacity: 0; transform: translateY(var(--m-rise)); transition: opacity 100ms var(--ease-out), transform 100ms var(--ease-out); }
.sheet-wrap { animation: m-fade var(--t-fade) var(--ease-out); }
.sheet { animation: m-up var(--t-fade) var(--ease-out); }
.sheet-wrap.out { opacity: 0; pointer-events: none; transition: opacity 100ms var(--ease-out); }
.sheet-wrap.out .sheet { transform: translateY(calc(var(--m-rise) * 4)); transition: transform 100ms var(--ease-out); }
@keyframes m-up { from { transform: translateY(calc(var(--m-rise) * 4)); } }
.tip { animation: m-down var(--t-fade) var(--ease-out); }
@keyframes m-down { from { opacity: 0; transform: translateY(calc(-1 * var(--m-rise))); } }

/* the snpz guy on the first open (intro.js; Grady, 2026-10-08: "animations for every step with him talking and pointing"): a moving
   picture with no background, over Home ("there's no background around the snips guy ... it's all overlaid over top of the videos").
   No tile, no corner, no colour behind him. His box has the picture's own shape before the file arrives, so the bubble under him
   never jumps; a soft shadow lifts him off a bright video. */
.intro-guy { width: min(72vw, 280px); aspect-ratio: 538 / 324; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
/* in the strip (tips.js) he points at his line, with no square round him: wider than he is tall, so his box widens with the phone, 64 px
   on a 320 px phone to 80 px from 400 px up, and the line keeps its two lines on every one of them */
.tip-guy { width: clamp(64px, 20vw, 80px); }
/* no mascot on a core screen (Grady, 2026-11-07, the Format Finder look; research/21: "no illustration, no mascot"): the guy's picture is
   off on Home, the camera, the walkthroughs, Post and the wait; his words stay. The welcome (.wl) and the first run (.fw) keep him. */
.intro-guy:not(.wl .intro-guy, .fw .intro-guy), .tip-guy, .qguy, .qthumbs, .snd-guy { display: none !important; }
