/* Made from engine motion.css 3dc0de4f (design/engines/interactions, 24 Nov 2026), with motion.js.
   Lu Beauty Brows · motion kit: reveals, rulers, The Lu Way, page to page. The view transitions need
   no JavaScript. Every movement here is switched off by prefers-reduced-motion. Scrolling is never
   taken over. Adapted to the site in the places marked "site": the rulers and The Lu Way keep the
   site's own classes and looks (.ruler and .steps in site.css; no page uses [data-steps] since the
   24 Nov review), and a focused element is never left invisible; only their motion comes from here.
   npm run engines says when the engine's file has changed. */

/* ---------- v3 (26 Nov), one vocabulary: things settle rather than arrive ----------
   settle for anything that moves, soft for opacity and colour, exit for what leaves, toggle for two-state UI.
   Text rises 24 px (16 on phones) over 1,000 ms while it fades in over 700 ms; photos unveil downward
   from their top edge (clip, 1,300 ms) while the image inside settles from 1.1 (1,600 ms). */
:root { --m-settle: cubic-bezier(.22, 1, .36, 1); --m-soft: cubic-bezier(.33, 0, .2, 1); --m-exit: cubic-bezier(.4, 0, 1, 1); --m-toggle: cubic-bezier(.65, 0, .35, 1); --m-rise: 24px; }
@media (max-width: 699px) { :root { --m-rise: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .lu-js [data-reveal],
  .lu-js [data-reveal-seq] > *,
  .lu-js [data-reveal-stagger] > * {
    opacity: 0;
    transform: translate3d(0, var(--m-rise), 0);
    transition:
      opacity 700ms var(--m-soft) var(--lu-delay, 0ms),
      transform 1000ms var(--m-settle) var(--lu-delay, 0ms);
  }
  /* a photo opens downward from its top edge, its corners round, while the image inside settles. The
     clip is on the box's content, never on the observed box itself (a box clipped to nothing is never
     reported on screen). */
  .lu-js [data-reveal="photo"] { opacity: 1; transform: none; transition: none; }
  .lu-js [data-reveal="photo"] > * {
    clip-path: inset(0 0 100% 0 round var(--unveil-r, var(--r-lg, 24px)));
    transition: clip-path 1300ms cubic-bezier(.33, 1, .68, 1) var(--lu-delay, 0ms);
  }
  .lu-js [data-reveal="photo"] img { scale: 1.1; transition: scale 1600ms var(--m-settle) var(--lu-delay, 0ms); }
  .lu-js [data-reveal="photo"].is-in > * { clip-path: inset(0 round var(--unveil-r, var(--r-lg, 24px))); }
  .lu-js [data-reveal="photo"].is-in img { scale: 1; }
  .lu-js [data-reveal="photo"].is-done > * { clip-path: none; }
  .lu-js [data-reveal].is-in,
  .lu-js [data-reveal-seq] > .is-in,
  .lu-js [data-reveal-stagger] > .is-in { opacity: 1; transform: none; }
  /* if motion.js never arrives, show everything after 2.5 s */
  .lu-js:not(.lu-motion-ready) [data-reveal],
  .lu-js:not(.lu-motion-ready) [data-reveal-seq] > *,
  .lu-js:not(.lu-motion-ready) [data-reveal-stagger] > * { animation: lu-motion-failsafe .4s ease 2.5s forwards; }
  .lu-js:not(.lu-motion-ready) [data-reveal="photo"] img { animation: lu-motion-failsafe-img .4s ease 2.5s forwards; }
  .lu-js:not(.lu-motion-ready) [data-reveal="photo"] > * { animation: lu-motion-failsafe .4s ease 2.5s forwards; }
  /* motion.js arrived after that: what is on screen is marked shown with no transition, for one frame */
  .lu-instant [data-reveal], .lu-instant [data-reveal-seq] > *, .lu-instant [data-reveal-stagger] > *, .lu-instant [data-reveal] img,
  .lu-instant .ruler::before, .lu-instant .ruler::after { transition: none !important; }
  /* site: a keyboard that tabs faster than a reveal never lands on something still invisible */
  .lu-js [data-reveal]:focus-within, .lu-js [data-reveal-seq] > :focus-within, .lu-js [data-reveal-stagger] > :focus-within { opacity: 1; transform: none; clip-path: none; transition: none; }
  .lu-js [data-reveal="photo"]:focus-within > * { clip-path: none; transition: none; }
  /* in-page links glide (native smooth scrolling, never a library); 27 Nov: only those (site.js sets
     .is-gliding on the click), so an arrival from another page or a keyboard focus lands at once */
  html.is-gliding { scroll-behavior: smooth; }
}
@keyframes lu-motion-failsafe-img { to { scale: 1; } }
@keyframes lu-motion-failsafe { to { opacity: 1; transform: none; clip-path: none; } }

/* ---------- graduated ruler: the line leads, the graduations follow (at most two per page) ----------
   site: the site's .ruler (its line, 48 short and 4 long graduations are drawn by site.css). */
@media (prefers-reduced-motion: no-preference) {
  .lu-js .ruler[data-ruler]::before { transform: scaleX(0); transition: transform 900ms cubic-bezier(.65, 0, .35, 1); }
  .lu-js .ruler[data-ruler]::after { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms cubic-bezier(.65, 0, .35, 1) 140ms; }
  .lu-js .ruler[data-ruler].is-drawn::before { transform: none; }
  .lu-js .ruler[data-ruler].is-drawn::after { clip-path: inset(0 0 0 0); }
  .lu-js .ruler[data-ruler].is-still::before, .lu-js .ruler[data-ruler].is-still::after { transition: none; }
  .lu-js:not(.lu-motion-ready) .ruler[data-ruler]::before,
  .lu-js:not(.lu-motion-ready) .ruler[data-ruler]::after { animation: lu-ruler-failsafe 0s 2.5s forwards; }
}
@keyframes lu-ruler-failsafe { to { transform: none; clip-path: inset(0 0 0 0); } }

/* ---------- The Lu Way: steps I to IV beside a photo that stays put ----------
   site: [data-steps] holds the site's sticky plate (pages/home.css) and its .steps list. With
   JavaScript, the step spanning the middle of the screen is current: its numeral and the rule above it
   take the accent (her brown), and the counter in the plate's caption crossfades to it ("III / IV"). The text never
   fades (contrast stays AA). Phones: the plate is not sticky there, so the counter is hidden. */
.lu-js [data-steps].is-steps .steps__n { color: var(--lu-steps-idle, var(--fg-2)); }
.lu-js [data-steps].is-steps .steps__item[aria-current="step"] { box-shadow: 0 -1px 0 var(--lu-steps-mark, var(--accent)); }
.lu-js [data-steps].is-steps .steps__item[aria-current="step"] .steps__n { color: var(--lu-steps-mark, var(--accent)); }
@media (prefers-reduced-motion: no-preference) {
  .lu-js [data-steps].is-steps .steps__item { transition: box-shadow 500ms cubic-bezier(.25, .1, .25, 1); }
  .lu-js [data-steps].is-steps .steps__n { transition: color 500ms cubic-bezier(.25, .1, .25, 1); }
}
html:not(.lu-js) [data-steps-count] { display: none; }
@media (max-width: 899px) { [data-steps] [data-steps-count] { display: none; } }

/* ---------- page to page: the old page fades out (160 ms), then the new one in (360 ms); the nav does not move ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: 200ms cubic-bezier(.4, 0, 1, 1) both lu-vt-out; }
::view-transition-new(root) { animation: 440ms cubic-bezier(.33, 0, .2, 1) 60ms both lu-vt-in; }
@keyframes lu-vt-out { to { opacity: 0; } }
@keyframes lu-vt-in { from { opacity: 0; } }
.lu-nav, [data-vt="nav"] { view-transition-name: lu-nav; }
::view-transition-group(lu-nav) { animation: none; }
::view-transition-old(lu-nav) { animation: none; opacity: 0; }
::view-transition-new(lu-nav) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
