/* ============================================================================
   Varelyno, 4 Dec 2026: the app's two ways of moving, in one place.
   (MOTION-AUDIT-2026-12-03.md. Behaviour: vx-motion.js. Loaded last.)

     move   the house curve: quick start, long soft settle. Lines, rows
            leaving and gliding, page switches, crossfades, sheets, closing.
     pop    the owner's "extra bounce" spring (1000 ms, about 20% over),
            for things that appear or lift into place. Transform only:
            opacity, colour, size and blur always stay on the house curve.

   Appearance > Motion picks the pop (html[data-vx-pop], set by vx-motion.js):
     spring   Expressive: pop = the spring
     smooth   Gentle: pop = the house curve, same durations
     still    Still, or Less motion On (or Follow the device on a device
              asking for less): short 0.2 s fades or nothing, never a bounce

   To retune: the two lines marked ONE LINE below. vx-motion.js reads them.
   ========================================================================== */
:root{
  --vx-ease:cubic-bezier(.16,.84,.3,1);    /* ONE LINE: the house curve ('move') */
  --vx-spring:linear(0.000, 0.041, 0.148, 0.297, 0.465, 0.636, 0.795, 0.932, 1.042, 1.123, 1.175, 1.201, 1.204, 1.191, 1.166, 1.134, 1.099, 1.064, 1.033, 1.006, 0.985, 0.971, 0.962, 0.958, 0.959, 0.962, 0.968, 0.975, 0.982, 0.989, 0.995, 1.000, 1.004, 1.007, 1.008, 1.009, 1.008, 1.007, 1.006, 1.005, 1.003, 1.002, 1.001, 1.000, 0.999, 0.999, 0.998, 0.998, 1);    /* ONE LINE: the extra-bounce spring ('pop') */
  --vx-pop:var(--vx-spring);
  --vx-pop-t:1s;      /* a pop */
  --vx-move-t:.9s;    /* movement */
  --vx-page-t:.5s;    /* a page arriving from the menu: snappy (owner, 4 Dec 2026) */
  --vx-fade-t:.55s;   /* crossfades, colour, small fades */
  --vx-out-t:.5s;     /* leaving and closing */
  /* the older shared tokens (polish.css:3, v9.css:3-4) now ride the house curve, a little longer */
  --motion-fast:.3s;--motion-med:.55s;--motion-slow:.9s;--motion-ease:var(--vx-ease);
}
/* a browser without linear() easing gets a close, gentler overshoot, never an error */
@supports not (transition-timing-function:linear(0, 1)){:root{--vx-spring:cubic-bezier(.34,1.56,.64,1)}}
html[data-vx-pop="smooth"]{--vx-pop:var(--vx-ease)}
html[data-vx-pop="still"]{--vx-pop:var(--vx-ease);--vx-pop-t:.2s;--vx-move-t:.2s;--vx-fade-t:.2s;--vx-out-t:.2s;--motion-fast:.2s;--motion-med:.2s;--motion-slow:.2s}
html[data-motion="off"]{--motion-fast:0ms;--motion-med:0ms;--motion-slow:0ms}

/* exit copies (vx-motion.js): a still picture of what left, never animated by any other rule */
.vxm-ghost,.vxm-ghost *{animation:none!important;transition:none!important;pointer-events:none!important}
.vxm-ghost{position:fixed!important;margin:0!important;z-index:30;box-sizing:border-box;contain:layout paint}
.vxm-ghost.vxm-ghost-wrap{display:block!important;padding:0!important;gap:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;min-height:0!important;max-height:none!important;grid-template-columns:none!important}
.vxm-ghost.vxm-ghost-wrap>*{margin:0!important;width:100%!important;height:100%!important;box-sizing:border-box}
/* a closing window (vx-motion.js closeModal): a copy of the card and its backdrop fades out together */
.modal-backdrop.vxm-closing{display:grid!important;pointer-events:none!important}
.vxm-closing,.vxm-closing *{animation:none!important;transition:none!important}
table.vxm-ghost{table-layout:fixed;border-collapse:collapse;border-spacing:0}
table.vxm-ghost>tbody>tr{height:100%}

/* a ticked box fills in the dark colour modes too (it stayed the page colour there), so the tick reads before the row leaves */
html.v-universe[data-tone="dark"] .task-check:checked{background-color:var(--nhs);border-color:var(--nhs);box-shadow:inset 0 0 0 3px var(--surface)}

/* ------------------------------------------------ side menu: the raised pill glides (A3) */
#sidebar .nav{isolation:isolate}
#sidebar .vxm-nav-pill,.mobile-bottom-nav .vxm-nav-pill{position:absolute;left:0;top:0;z-index:0;pointer-events:none;margin:0;box-sizing:border-box}
html:root body #sidebar .nav .nav-btn.active.vxm-under,html:root body #mobileNavigation.mobile-bottom-nav>button.active.vxm-under{background:transparent!important;background-image:none!important;box-shadow:none!important}
html:root body #sidebar .nav .nav-btn.active.vxm-under::before{opacity:0!important}
/* the button hands its look to the moving pill at once (its own colour fade would show a second highlight for a moment) */
html:root body #sidebar .nav .nav-btn.vxm-under,html:root body #sidebar .nav .nav-btn.vxm-under::before,html:root body #mobileNavigation.mobile-bottom-nav>button.vxm-under{transition:none!important}
.mobile-bottom-nav{isolation:isolate}
.mobile-bottom-nav>button{position:relative}
/* the old thin marker never animates twice (polish.js); it stays hidden on the website (v14-menu.css:47) */
.polish-nav-marker{transition:none}

/* side menu items: colour and nudge on the house curve (universe.css:10) */
html.v-universe .nav-btn{transition:background-color var(--vx-fade-t) var(--vx-ease),color var(--vx-fade-t) var(--vx-ease),translate var(--vx-fade-t) var(--vx-ease),box-shadow var(--vx-fade-t) var(--vx-ease)}
html.v-universe #sidebar .nav-btn:active{transition-duration:.08s}

/* ------------------------------------------------ the sidebar keeps one width (A4)
   Pages zoom the whole app (hub-responsive.css:248-264) and the Map does not, so the menu
   was 224 px on the Map and 206 px on a page. On a page the menu is zoomed back, so it is
   the Map's menu exactly: same width, same words, nothing cut. */
@media (min-width:901px){
  @media (max-width:1550px){html:not(.vx-map17) .app-shell{--sidebar:243.48px}html:not(.vx-map17) .app-shell>#sidebar{zoom:1.0869565}}
  @media (max-width:1350px){html:not(.vx-map17) .app-shell{--sidebar:263.53px}html:not(.vx-map17) .app-shell>#sidebar{zoom:1.1764706}}
  @media (max-width:1150px){html:not(.vx-map17) .app-shell{--sidebar:280px}html:not(.vx-map17) .app-shell>#sidebar{zoom:1.25}}
  @media (min-width:2560px){html:not(.vx-map17):not(.v10-own-zoom) .app-shell{--sidebar:207.41px}html:not(.vx-map17):not(.v10-own-zoom) .app-shell>#sidebar{zoom:.9259259}}
  @media (min-width:3300px){html:not(.vx-map17):not(.v10-own-zoom) .app-shell{--sidebar:186.67px}html:not(.vx-map17):not(.v10-own-zoom) .app-shell>#sidebar{zoom:.8333333}}
}

/* ------------------------------------------------ windows (A8, B window backdrop and card) */
.modal-backdrop.show{animation:vxm-fade var(--vx-fade-t) var(--vx-ease) both}
html .modal-backdrop.show .modal.modal,html.v-universe .modal-backdrop.show .modal.modal{animation:vxm-fade .5s var(--vx-ease) backwards,vxm-card-pop var(--vx-pop-t) var(--vx-pop) backwards}
@keyframes vxm-fade{from{opacity:0}to{opacity:1}}
@keyframes vxm-card-pop{from{scale:.94;translate:0 14px}to{scale:1;translate:0 0}}
html[data-vx-pop="still"] .modal-backdrop.show .modal.modal{animation:vxm-fade .2s var(--vx-ease) backwards}
html[data-motion="off"] .modal-backdrop.show,html[data-motion="off"] .modal-backdrop.show .modal.modal{animation:none!important}

/* ------------------------------------------------ menus and popovers open with a pop (not the Map's pill menus, not the account card) */
.search-pop.show,.context-menu,details[open]>.dropdown-menu,details[open]>.action-menu-pop:not(.vxy-card):not(#vxMap17 *){animation:vxm-fade .4s var(--vx-ease) backwards,vxm-menu-pop var(--vx-pop-t) var(--vx-pop) backwards;transform-origin:top right}
@keyframes vxm-menu-pop{from{scale:.9;translate:0 -6px}to{scale:1;translate:0 0}}
html[data-vx-pop="still"] :is(.search-pop.show,.context-menu,details[open]>.dropdown-menu,details[open]>.action-menu-pop:not(.vxy-card):not(#vxMap17 *)){animation:vxm-fade .2s var(--vx-ease) backwards}

/* ------------------------------------------------ toasts: arrive with a pop, leave on the curve (B toasts) */
.polish-toast{animation:vxm-fade .45s var(--vx-ease) backwards,vxm-toast-pop var(--vx-pop-t) var(--vx-pop) backwards}
@keyframes vxm-toast-pop{from{translate:0 18px;scale:.96}to{translate:0 0;scale:1}}
.polish-toast.leaving{opacity:0;translate:0 8px;transform:none;transition:opacity var(--vx-out-t) var(--vx-ease),translate var(--vx-out-t) var(--vx-ease)}
html[data-vx-pop="still"] .polish-toast{animation:vxm-fade .2s var(--vx-ease) backwards}
html[data-vx-pop="still"] .polish-toast.leaving{translate:0 0}

/* ------------------------------------------------ hover lifts: the pop (cards lift into place) */
/* buttons, rows, chips: colour on the curve, the small hover lift on the pop (polish.css:8, v9.css:55, universe.css, hover.css:7) */
html.v-universe .btn,html .fav,html .tag,html .colour-swatch,html .search-result{transition:background-color var(--vx-fade-t) var(--vx-ease),border-color var(--vx-fade-t) var(--vx-ease),color var(--vx-fade-t) var(--vx-ease),box-shadow var(--vx-fade-t) var(--vx-ease),opacity var(--vx-fade-t) var(--vx-ease),filter var(--vx-fade-t) var(--vx-ease),transform var(--vx-pop-t) var(--vx-pop),translate var(--vx-pop-t) var(--vx-pop)}
html.v-universe .uhl{transition:transform var(--vx-pop-t) var(--vx-pop),box-shadow var(--vx-fade-t) var(--vx-ease),border-color var(--vx-fade-t) var(--vx-ease),background-color var(--vx-fade-t) var(--vx-ease)}
html.v-universe .tasks-table tbody td{transition:border-color var(--vx-fade-t) var(--vx-ease),background-color var(--vx-fade-t) var(--vx-ease)}
html .pill,html .stage-chip,html .priority-badge,html .health-pill{transition:color var(--vx-fade-t) var(--vx-ease),background-color var(--vx-fade-t) var(--vx-ease),border-color var(--vx-fade-t) var(--vx-ease)}
html .fav .dot{transition:box-shadow var(--vx-fade-t) var(--vx-ease)}
html.v-universe .btn:active,html.v-universe .uhl:active{transition-duration:.08s}
html .project-card,html .person-card,html .note-card,html .command-card,html .future-project,html .rel-chip,html.v-universe .v8-inbox-item,html.v-universe .project-card.uhl,html.v-universe .person-card.uhl{
  transition:transform var(--vx-pop-t) var(--vx-pop),translate var(--vx-pop-t) var(--vx-pop),box-shadow var(--vx-fade-t) var(--vx-ease),border-color var(--vx-fade-t) var(--vx-ease),background-color var(--vx-fade-t) var(--vx-ease),color var(--vx-fade-t) var(--vx-ease),opacity var(--vx-fade-t) var(--vx-ease)}
.person-card .avatar-md{transition:transform var(--vx-pop-t) var(--vx-pop),box-shadow var(--vx-fade-t) var(--vx-ease)}
/* Projects page cards (v11-circles.css:102-107): lift with the pop, the rest on the curve */
html .vc-card{transition:transform var(--vx-pop-t) var(--vx-pop),box-shadow 1s var(--vx-ease),border-color .8s var(--vx-ease),opacity .7s var(--vx-ease),filter .7s var(--vx-ease)}
html .vc-card .vc-sphere{transition:transform var(--vx-pop-t) var(--vx-pop)}
/* v11-circles.css:72, 74, 108: the card's dashed orbit, links and quick buttons on the curve */
html .vc-orbit{transition:border-color .8s var(--vx-ease)}
html .vc-links line{transition:stroke .8s var(--vx-ease),stroke-width .8s var(--vx-ease)}
html .vc-qa{transition:transform var(--vc-slow,.9s) var(--vx-ease),opacity .6s var(--vx-ease),background-color .4s var(--vx-ease)}
/* the card's quick buttons pop out on hover, and tuck back in on the curve */
html .vc-card:hover .vc-qa,html .vc-card:focus-within .vc-qa{transition:transform var(--vx-pop-t) var(--vx-pop),opacity .6s var(--vx-ease),background-color .4s var(--vx-ease)}
/* the account chip (hub-responsive.css:68, transition .14s on everything): colour only, so its corners and padding no
   longer animate when the Map's glance opens or the top bar is drawn again (audit C) */
html #ownerAccess .account-menu>summary.account-trigger{transition:background-color .3s var(--vx-ease),border-color .3s var(--vx-ease),color .3s var(--vx-ease),box-shadow .3s var(--vx-ease)}
/* v11-circles.css:35, 43, 130: colours on the curve */
html .vc-seg button{transition:color var(--vx-fade-t) var(--vx-ease)}
html .vc-pills button{transition:background-color var(--vx-fade-t) var(--vx-ease),color var(--vx-fade-t) var(--vx-ease)}
/* a chip being chosen settles with a small pop */
html .nn-chip,html .v10cal-filter,html .v10cal-mode,html .nn-viewpick button,html .subtab,html .rl-lenses button{transition:background-color var(--vx-fade-t) var(--vx-ease),color var(--vx-fade-t) var(--vx-ease),border-color var(--vx-fade-t) var(--vx-ease),box-shadow var(--vx-fade-t) var(--vx-ease),scale var(--vx-pop-t) var(--vx-pop)}
html .nn-chip:active,html .v10cal-filter:active,html .v10cal-mode:active,html .nn-viewpick button:active,html .subtab:active,html .rl-lenses button:active{scale:.96;transition-duration:.08s}
/* tap feedback stays short */
html .btn:active{transition-duration:.08s}

/* ------------------------------------------------ page arrival and the older per-card arrivals */
@media (prefers-reduced-motion:no-preference){
  #mainContent .v10-step{animation:v10-step var(--vx-page-t) var(--vx-ease) both;animation-delay:var(--v10-d,0ms)}
}
html[data-vx-pop]:not([data-vx-pop="still"]) #mainContent .v10-step{animation:v10-step var(--vx-page-t) var(--vx-ease) both;animation-delay:var(--v10-d,0ms)}
html.v-universe .universe-view-enter>.page-head{animation-duration:var(--vx-move-t);animation-timing-function:var(--vx-ease)}
html.v-universe .waiting-card.universe-card{animation-timing-function:var(--vx-ease)}
/* Less motion or Still: page arrivals (vc-rise and friends) are a short fade, the task sparks do not fly */
html[data-vx-pop="still"] #mainContent .v10-step{animation:vxm-fade .2s var(--vx-ease) both!important;animation-delay:0s!important}
html[data-vx-pop="still"] :is(.vc-card,.vc-row,.vc-lane,[class*="vc-"][style*="--i"],.rl-card,.universe-card,.v9-enter,.polish-tab-enter,.polish-profile .avatar-lg,.polish-profile h1,.polish-profile .meta){animation:vxm-fade .2s var(--vx-ease) backwards!important;animation-delay:0s!important}
html[data-vx-pop="still"] .universe-complete{display:none!important}
html[data-vx-pop="still"] :is(.project-card,.person-card,.note-card,.command-card,.vc-card,.v8-inbox-item):hover{transform:none!important;translate:none!important}

/* Relationships Board: the same arrival as People and Projects (A13, v12-relations.css:65) */
.rl-board-wrap{animation:rl-in .9s var(--vx-ease) backwards}

/* ------------------------------------------------ phone "More" drawer (app.css:148) */
@media (max-width:900px){
  html body .sidebar{transition:transform .6s var(--vx-ease),visibility .6s}
}
/* top bar colour on a page switch (#topbar, polish.js) */
#topbar.topbar{transition:background-color var(--vx-fade-t) var(--vx-ease)}

/* ------------------------------------------------ weekly review: the finish moment (A14) */
.vxm-done-tick{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:10px;border-radius:50%;background:color-mix(in srgb,#43865a 16%,transparent);color:#2f7a4b;vertical-align:middle;flex:none}
.vxm-done-tick svg{width:18px;height:18px}
.vxm-done-tick path{stroke-dasharray:24;stroke-dashoffset:24;animation:vxm-draw .7s var(--vx-ease) .15s forwards}
@keyframes vxm-draw{to{stroke-dashoffset:0}}
html[data-vx-pop="still"] .vxm-done-tick path{animation:none;stroke-dashoffset:0}

/* ------------------------------------------------ Still: a short fade, or nothing (one rule for the new parts) */
html[data-vx-pop="still"] .vxm-nav-pill{display:none}
/* Still / Less motion On: the Projects view rings, arcs, spheres and the focus card change in a short fade, never a long draw or travel */
html[data-vx-pop="still"] :is(.vc-focus,.vc-card,.vc-sphere,.vc-qa,.vc-orbit,.vc-links line,.vc-arc circle,.vc-halo){transition-duration:.2s!important;transition-delay:0s!important}
html[data-vx-pop="still"] :is(.vc-focus,.vc-card):hover{transform:none!important;translate:none!important}

/* opening a project from its circle (v11-open.js view transition; MOTION-AUDIT B "Opening a project"):
   the circle travels to the page head on the house curve, the page underneath crossfades (was the browser default 0.25 s ease) */
::view-transition-group(vproj){animation-duration:.8s;animation-timing-function:var(--vx-ease)}
::view-transition-group(root),::view-transition-old(root),::view-transition-new(root),::view-transition-old(vproj),::view-transition-new(vproj){animation-duration:.5s;animation-timing-function:var(--vx-ease)}
html[data-vx-pop="still"]::view-transition-group(*),html[data-vx-pop="still"]::view-transition-old(*),html[data-vx-pop="still"]::view-transition-new(*){animation-duration:.2s}
