/* Smile4U v8 · preloader (phone round, David 2026-10-23 „also need a preloader"; restored 2026-11-11 after the implant assembly was rejected). Shows only when head.js set
   html.pld-on (the visit enters from outside the site, JS running); without JS it never renders and the page shows.
   A paper ground with the logo file unchanged at a modest size and one hairline that fills with real loading
   (fonts, the page's first picture, main.js boot: data-step 1–3, js/core/preloader.js). Exit: one movement, the
   ground lifts off the page like a sheet (transform only, no layout, no CLS); reduced motion: a short fade. */
.pld { display: none; }
html.js.pld-on .pld {
  position: fixed; z-index: 200; inset: 0 0 auto; height: 100vh; height: 100lvh;   /* lvh: covers under Safari's toolbar */
  display: grid; place-items: center; background: var(--paper);
}
.pld-in { display: grid; justify-items: center; gap: 24px; }
.pld-logo { width: 200px; height: auto; aspect-ratio: 1072.375 / 388.125; }
/* the cue: a 2 px track the logo's width; its fill grows by thirds as each real stage lands */
.pld-rule { position: relative; width: 200px; height: 2px; overflow: hidden; border-radius: 1px; background: var(--mist); }
.pld-fill { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease-ui); }
.pld[data-step="1"] .pld-fill { transform: scaleX(.3333); }
.pld[data-step="2"] .pld-fill { transform: scaleX(.6667); }
.pld[data-step="3"] .pld-fill { transform: scaleX(1); }

/* exit: the sheet lifts off in one movement (calm, symmetric ease) while the page's load ladder plays under it */
html.js.pld-on.pld-out .pld { pointer-events: none; transform: translateY(-100%); transition: transform .9s var(--ease-scroll); }
html.js.rm.pld-on.pld-out .pld { transform: none; opacity: 0; transition: opacity .2s linear; }

@media (max-width: 809.98px) {
  .pld-logo, .pld-rule { width: 160px; }
}
