/* ==========================================================================
   Open House motion layer: one dialect for every page. Loaded after tt-kit.css.
   Verb: things SETTLE into place (short travel, firm stop, no bounce), on the kit's
   ease-out. Everything here is transform / opacity only and plays once.
   The app's own switch turns it off: html[data-tt-motion="reduced"] (tt-kit.css
   already collapses animation there); the OS setting is not read, by owner rule.

   Use (markup only, no page script needed):
     data-tt-enter            on a container: its direct children rise in, one after another (first 12 staggered)
     data-tt-enter="self"     the element itself rises in
     data-tt-enter="fade"     children fade in without travel (dense tables, rows)
     data-tt-count            on a figure: counts up to its number once (tt-motion.js); text stays real text
     data-tt-grow             a bar or meter fill: grows from the inline start
     data-tt-draw             an SVG path or polyline: draws itself (tt-motion.js)
     .tt-lift                 a clickable card: lifts on hover, presses on click
     .tt-pop-in               something that appears after an action (a chip, a tick): pops in from 96%
   Do not put data-tt-enter on a container that JavaScript re-renders often (a polled list):
   the children would replay on every redraw.
   ========================================================================== */

:root { --tt-d-enter: 380ms; --tt-stagger: 45ms; }

@keyframes tt-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes tt-fade { from { opacity: 0; } }
@keyframes tt-grow { from { transform: scaleX(0); } }
@keyframes tt-pop-in { from { opacity: 0; transform: scale(.96); } }

[data-tt-enter]:not([data-tt-enter="self"]) > * {
  animation: tt-rise var(--tt-d-enter) var(--tt-ease-out) both;
  animation-delay: calc(var(--tt-i, 12) * var(--tt-stagger));
}
[data-tt-enter="fade"] > * { animation-name: tt-fade; }
[data-tt-enter="self"] { animation: tt-rise var(--tt-d-enter) var(--tt-ease-out) both; }
[data-tt-enter] > :nth-child(1) { --tt-i: 0; }
[data-tt-enter] > :nth-child(2) { --tt-i: 1; }
[data-tt-enter] > :nth-child(3) { --tt-i: 2; }
[data-tt-enter] > :nth-child(4) { --tt-i: 3; }
[data-tt-enter] > :nth-child(5) { --tt-i: 4; }
[data-tt-enter] > :nth-child(6) { --tt-i: 5; }
[data-tt-enter] > :nth-child(7) { --tt-i: 6; }
[data-tt-enter] > :nth-child(8) { --tt-i: 7; }
[data-tt-enter] > :nth-child(9) { --tt-i: 8; }
[data-tt-enter] > :nth-child(10) { --tt-i: 9; }
[data-tt-enter] > :nth-child(11) { --tt-i: 10; }
[data-tt-enter] > :nth-child(12) { --tt-i: 11; }
/* Hidden things stay hidden: the entrance never overrides [hidden]. */
[data-tt-enter] > [hidden], [data-tt-enter][hidden] { animation: none; }

[data-tt-grow] { transform-origin: 0 50%; animation: tt-grow 700ms var(--tt-ease-out) both; animation-delay: 120ms; }
[dir="rtl"] [data-tt-grow] { transform-origin: 100% 50%; }

.tt-pop-in { animation: tt-pop-in var(--tt-d-pop, 180ms) var(--tt-ease-out) both; }

.tt-lift { transition: transform var(--tt-d-pop, 180ms) var(--tt-ease-out), box-shadow var(--tt-d-pop, 180ms) var(--tt-ease-out); }
@media (hover: hover) {
  .tt-lift:hover { transform: translateY(-2px); box-shadow: var(--tt-shadow-float); }
}
.tt-lift:active { transform: scale(.985); transition-duration: var(--tt-d-press, 120ms); }

/* A drawn line waits invisibly for tt-motion.js; without the script it is simply drawn. */
html.tt-motion-js [data-tt-draw]:not(.is-drawn) { visibility: hidden; }

html[data-tt-motion="reduced"] :is([data-tt-enter], [data-tt-enter] > *, [data-tt-grow], .tt-pop-in) { animation: none !important; }
html[data-tt-motion="reduced"] .tt-lift { transition: none; transform: none !important; }
html[data-tt-motion="reduced"] [data-tt-draw] { visibility: visible !important; }
