/* Pink Design — motion layer (print-themed). Driven by assets/js/motion.js + GSAP core.
   Every rule that hides or moves content is scoped to html.mo, which motion.js adds only when
   the visitor allows motion (html.m) and GSAP loaded. Without it the page renders as built. */
:root {
  --mo-expo: cubic-bezier(.16, 1, .3, 1);
  --mo-c: #00A0DC; --mo-m: #E4007C; --mo-y: #FFE000;
}

/* ---------- first-paint guard for page heads (released by motion.js, or by itself after 1.8 s) */
html.m:not(.mo):not(.mo-off) :is(.ph h1, .ph p, .ph__crumb, .nf > *, .st__h > *) { opacity: 0; animation: mo-safe 0s linear 1.8s forwards; }
@keyframes mo-safe { to { opacity: 1; } }

/* ---------- smooth wheel owns scrolling (native CSS smooth would fight the lerp) */
html.mo-ss { scroll-behavior: auto; }

/* ---------- nothing animated may widen the page */
.mo main > section:not(.hero) { overflow-x: clip; }

/* ---------- hand-off from core reveal ([data-rv]) for blocks motion.js choreographs itself */
html.mo :is(.sh, .pb, .pc, .cat)[data-rv] { opacity: 1; transform: none; transition: none; }
html.mo .cat[data-rv] { transition: transform .35s var(--ease), box-shadow .35s; }
html.mo .cat[data-rv]:hover { transform: translateY(-4px); }
.mo .mo-a { transition: none !important; }

/* ---------- scroll progress hairline */
.mo-prog { position: fixed; top: 0; left: 0; right: 0; z-index: 59; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: 100% 50%; pointer-events: none; }

/* ---------- section headings: words rise through a mask while C/M/Y plates come into register */
.mo .mo-h { position: relative; isolation: isolate; }
.mo .mo-w { display: inline-block; clip-path: inset(-.45em -.35em -.18em -.35em); }
.mo .mo-wi { display: inline-block; }
.mo .mo-h--done .mo-w { clip-path: none; }
.mo-pl { position: absolute; inset: 0; z-index: -1; pointer-events: none; user-select: none; }
.mo-pl > span { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0; }
.mo-pl > span * { color: inherit !important; }
.mo-pl__c { color: var(--mo-c); }
.mo-pl__m { color: var(--mo-m); }
.mo-pl__y { color: var(--mo-y); }
.mo-pl--scr > span { mix-blend-mode: screen; }
/* kicker rule is drawn first, then the label is set */
.mo .sh__k.mo-k::before { transform: scaleX(0); transform-origin: 100% 50%; transition: transform .9s var(--mo-expo); }
.mo .sh__k.mo-k.mo-k-in::before { transform: none; }
.mo .mo-kt { display: inline-block; }

/* ---------- price board: rose roller light */
.mo .pb { position: relative; }
.mo-roll { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.mo-roll i { position: absolute; top: 0; bottom: 0; left: 0; width: 160px; background: linear-gradient(90deg, rgba(183, 141, 142, .95) 0, rgba(183, 141, 142, .95) 1.5px, rgba(183, 141, 142, .2) 1.5px, rgba(244, 228, 226, 0) 100%); mix-blend-mode: multiply; }
.mo .mo-num { display: inline-block; }

/* ---------- delivery map: routes from Algiers */
.dzmap .mo-arcs, .dzmap .mo-arcs * { pointer-events: none; }
.dzmap .mo-arcs path { fill: none; stroke: var(--mauve); stroke-linecap: round; vector-effect: none; cursor: default; transition: none; }
.dzmap .mo-arcs circle { fill: none; stroke: var(--mauve); vector-effect: none; cursor: default; transition: none; }
.dzmap path.mo-hit { fill: #D4A9AA; transition: fill .1s; }

/* ---------- how to order: connector + stamp */
.mo .how__list { position: relative; }
.mo-how { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mo-how i { position: absolute; display: block; background: var(--line2); }
.mo-how i b { position: absolute; inset: 0; background: var(--rose); transform: scaleX(0); transform-origin: 100% 50%; }
.mo-how i.v b { transform: scaleY(0); transform-origin: 50% 0; }
.mo .how__i .ic { position: relative; z-index: 1; }
.mo-ink { position: absolute; top: 0; left: 0; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 95, 98, .34), rgba(183, 141, 142, .16) 60%, rgba(183, 141, 142, 0)); opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .mo .how__i { padding-inline-start: 70px; }
  .mo .how__i .ic { position: absolute; top: 25px; inset-inline-start: 20px; margin: 0; }
}

/* ---------- CTA band: the printed sheet behind moves slower than the page */
.mo .cta { background: var(--rose); isolation: isolate; }
.mo .cta::before { content: ''; position: absolute; top: -28px; bottom: -28px; left: 0; right: 0; z-index: -1; background: url(../img/brand/wing.webp) center / cover; transform: translate3d(0, var(--mo-py, 0px), 0); pointer-events: none; }

/* ---------- fly to cart */
.mo-fly { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; will-change: transform; }
.mo-fly--img { width: 54px; height: 68px; padding: 3px; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(43, 31, 35, .2), 0 14px 26px -10px rgba(43, 31, 35, .55); }
.mo-fly--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.mo-fly--card { width: 80px; border-radius: 3px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(43, 31, 35, .25), 0 14px 26px -10px rgba(43, 31, 35, .55); }
.mo-fly--card svg, .mo-fly--occ svg, .mo-fly--sticker svg { display: block; width: 100%; height: auto; }
.mo-fly--sticker { width: 54px; filter: drop-shadow(0 8px 10px rgba(43, 31, 35, .35)); }
.mo-fly--occ { width: 52px; background: #fff; box-shadow: 0 14px 26px -10px rgba(43, 31, 35, .55); }
.mo-fly--dot { width: 16px; height: 16px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(43, 31, 35, .5); }

/* ---------- linen tester (compte-fils) over works */
.mo-loupe { position: fixed; top: 0; left: 0; z-index: 85; width: 170px; height: 170px; border-radius: 50%; overflow: hidden; pointer-events: none; opacity: 0; background: var(--blush2); box-shadow: 0 0 0 3px rgba(255, 255, 255, .96), 0 0 0 4px rgba(43, 31, 35, .14), 0 22px 44px -14px rgba(43, 31, 35, .6); will-change: transform, opacity; }
.mo-loupe__img { position: absolute; inset: 0; background-repeat: no-repeat; }
.mo-loupe::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 46%); box-shadow: inset 0 0 18px rgba(43, 31, 35, .28); }
.mo-loupe__ui { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 .7px rgba(43, 31, 35, .75)); }
.mo-loupe__ui line { stroke: rgba(255, 255, 255, .9); stroke-width: .7; }
.mo-loupe__ui line.b { stroke-width: 1.2; }
.mo-loupe__ui path { fill: none; stroke: #fff; stroke-width: 1; stroke-linecap: round; }
.mo-lp, .mo-lp * { cursor: none; }

/* ---------- primary buttons: sheen pass (magnetic pull is set inline as `translate`) */
.mo-fine .btn--ink:not(.hero .btn), .mo-fine .cta__btns .btn { position: relative; overflow: hidden; isolation: isolate; }
.mo-fine .btn--ink:not(.hero .btn)::after, .mo-fine .cta__btns .btn::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 68%); transform: translateX(105%); }
.mo-fine .cta__btns .btn--paper::after { background: linear-gradient(105deg, rgba(183, 141, 142, 0) 32%, rgba(183, 141, 142, .24) 50%, rgba(183, 141, 142, 0) 68%); }
.mo-fine .btn--ink:not(.hero .btn):hover::after, .mo-fine .cta__btns .btn:hover::after { transform: translateX(-105%); transition: transform 1s var(--mo-expo); }

/* ---------- cross-document page transition: old sheet lifts away, new one rises on blush */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .hdr { view-transition-name: pd-hdr; }
  ::view-transition { background: var(--blush); }
  ::view-transition-old(root) { animation: mo-vt-out .26s cubic-bezier(.5, 0, .75, 0) both; }
  ::view-transition-new(root) { animation: mo-vt-in .42s var(--mo-expo) .03s both; }
  ::view-transition-group(pd-hdr) { animation-duration: .3s; animation-timing-function: var(--mo-expo); }
  ::view-transition-old(pd-hdr), ::view-transition-new(pd-hdr) { animation-duration: .18s; }
}
@keyframes mo-vt-out { to { opacity: 0; transform: translateY(-16px) scale(.992); } }
@keyframes mo-vt-in { from { opacity: 0; transform: translateY(30px); } }
