/* The motion the site shares with the product (owner 22.11.2026: the site and the product move with one physics).
   Names and values are the product's own, copied from Zadacha static/css/base/variables.css, never redefined here
   with other numbers: a change there is a change here, and tools/qa_pages/intro.py compares the two files whenever
   the product sits next to the site. The postcard that opens the home page (static/intro.js) and the hero loops'
   hand-over are built on them; the rest of the site moves to them as it is touched. */
:root {
  --duration-instant: 100ms;
  --duration-fast: 150ms;          /* something arrives: a fade and 4 px (the product's --enter-soft) */
  --duration-normal: 250ms;        /* a fold, a reaction, a pin (--enter-pop) */
  --duration-slow: 350ms;          /* a strip glides; a hero loop hands over to the next */
  --duration-switch-swap: 200ms;   /* a tab or a filter of the same page, in place */
  --duration-preview-swap: 300ms;  /* the right panel's content swapped in place */
  --duration-page-swap: 550ms;     /* a page leaves, the next comes */
  --duration-panel-stair-step: 40ms;  /* the step between neighbours of a ladder */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out-quint: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* The hero loops (static/loop.js) hand over to the next one by fading the player off the next loop's still: the
   product's slow step on its in-out curve (site.css had .35s ease). */
.hero-loop__play { transition: opacity var(--duration-slow) var(--ease-in-out); }
