/* Fleet Motion Phase 2 — Primitiva batch (Tap 3966 / MOVES M-466).
   Motion extracted ONLY from builds P-1..P-5 in
   ~/workspace/your_files/fleet-motion-programme-2026-11-21/builds/
   (demo scaffolding dropped). Tokens are Primitiva's own, per the HUNTs:
   --field #0C2B30, --support #143A40, --card #1B454C, --accent #F26430,
   --micro-accent #D7E237, --text #F4F1E8, --muted #A8C3C6, --success #22C55E.
   Curves (PROGRAMME.md §0): LAUNCH cubic-bezier(0.5,0,0.36,1),
   SETTLE cubic-bezier(0.34,1.4,0.64,1), FADE cubic-bezier(0.4,0,0.2,1).
   Every piece honours prefers-reduced-motion and the site's own
   reduced-motion state (html.mp2-reduced, set by motion-phase2.js from
   the existing Reduce-motion control). Motion never gates content. */

/* ---------- P-1 · booking-confirmed (booking.html, fr/booking.html) ----
   Badge injected by motion-phase2.js into the booking picker's .pk-done
   completion state (booking-picker.js step 4). Keyframes keep the build's
   1200ms timeline proportions: ring 500ms LAUNCH, check 450ms LAUNCH from
   150ms, badge settle 240ms SETTLE at 600ms, done-title fade 250ms FADE. */
.mp2-confirm-badge{width:120px;height:120px;margin:0 auto 18px}
.mp2-confirm-badge svg{display:block}
.mp2-confirm-ring{fill:none;stroke:var(--micro-accent,#D7E237);stroke-width:5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transform:rotate(-90deg);transform-origin:60px 60px}
.mp2-confirm-check{fill:none;stroke:var(--success,#22C55E);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:100}
.mp2-play .mp2-confirm-badge{animation:mp2-badge-settle 1200ms linear forwards}
.mp2-play .mp2-confirm-ring{animation:mp2-ring-draw 1200ms linear forwards}
.mp2-play .mp2-confirm-check{animation:mp2-check-draw 1200ms linear forwards}
.pk-wrap.mp2-play .pk-step-title{animation:mp2-done-in 1200ms linear forwards}
@keyframes mp2-ring-draw{0%{stroke-dashoffset:100;animation-timing-function:cubic-bezier(0.5,0,0.36,1)}41.667%{stroke-dashoffset:0}100%{stroke-dashoffset:0}}
@keyframes mp2-check-draw{0%,12.5%{stroke-dashoffset:100;animation-timing-function:cubic-bezier(0.5,0,0.36,1)}50%{stroke-dashoffset:0}100%{stroke-dashoffset:0}}
@keyframes mp2-badge-settle{0%{transform:scale(1)}50%{transform:scale(1);animation-timing-function:cubic-bezier(0.5,0,0.36,1)}58.333%{transform:scale(1.04);animation-timing-function:cubic-bezier(0.5,0,0.36,1)}70%{transform:scale(1)}100%{transform:scale(1)}}
@keyframes mp2-done-in{0%,50%{opacity:0;animation-timing-function:cubic-bezier(0.4,0,0.2,1)}70.833%{opacity:1}100%{opacity:1}}

/* ---------- P-2 · deletion-complete (delete-account.html) --------------
   Ring + line only; NO settle, deliberately (a deletion confirmation
   does not celebrate). Build timeline 900ms: ring 500ms LAUNCH, line
   fades 300ms FADE after the draw. Block is hidden until the deletion
   flow's return state shows it (motion-phase2.js: ?deleted / #deletion-complete). */
.mp2-deletion-complete{text-align:center;margin-top:2rem}
.mp2-deletion-badge{width:120px;height:120px;margin:0 auto 18px}
.mp2-deletion-badge svg{display:block}
.mp2-deletion-ring{fill:none;stroke:var(--muted,#A8C3C6);stroke-width:5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transform:rotate(-90deg);transform-origin:60px 60px}
.mp2-deletion-line{font-weight:700;font-size:1.3rem;opacity:0}
.mp2-play .mp2-deletion-ring{animation:mp2-del-ring 900ms linear forwards}
.mp2-play .mp2-deletion-line{animation:mp2-del-line 900ms linear forwards}
@keyframes mp2-del-ring{0%{stroke-dashoffset:100;animation-timing-function:cubic-bezier(0.5,0,0.36,1)}55.556%{stroke-dashoffset:0}100%{stroke-dashoffset:0}}
@keyframes mp2-del-line{0%,55.556%{opacity:0;animation-timing-function:cubic-bezier(0.4,0,0.2,1)}88.889%{opacity:1}100%{opacity:1}}

/* ---------- P-3 · site app boot veil (index.html, fr/index.html) -------
   Augments the EXISTING fleet-loader veil #blVeil2278 (brief 2278/2287) —
   its machinery is untouched. motion-phase2.js wraps .bl-mark in
   .mp2-veil-wrap and adds the ring; the ring draws and the mark fades in
   over 550ms on LAUNCH. The veil's own lift (loader hide on load-complete)
   is unchanged: motion never gates content. */
.mp2-veil-wrap{position:relative;width:160px;height:160px;margin:0 auto}
.mp2-veil-wrap svg{position:absolute;inset:0;transform:rotate(-90deg)}
.mp2-veil-ring{fill:none;stroke:var(--micro-accent,#D7E237);stroke-width:3;stroke-linecap:round;stroke-dasharray:628.319;stroke-dashoffset:628.319}
.mp2-veil-wrap .bl-mark{position:absolute;inset:14px;width:132px;height:132px;margin:0;animation:none;opacity:0}
.mp2-play .mp2-veil-ring{animation:mp2-veil-draw 550ms cubic-bezier(0.5,0,0.36,1) forwards}
.mp2-play .mp2-veil-wrap .bl-mark{animation:mp2-veil-mark 550ms cubic-bezier(0.5,0,0.36,1) forwards}
@keyframes mp2-veil-draw{from{stroke-dashoffset:628.319}to{stroke-dashoffset:0}}
@keyframes mp2-veil-mark{from{opacity:0}to{opacity:1}}

/* ---------- P-4 · staff app boot veil (portal/index.html, portal/fr/home.html)
   Staff variant tokens: ground --support, ring --accent. One-shot 1600ms:
   draw 550ms LAUNCH, hold to 1300ms, lift 300ms FADE (cured single-block
   keyframes per P-4-HUNT closure, so FADE truly governs the lift).
   pointer-events:none throughout — the veil never gates the portal. */
.mp2-staff-veil{position:fixed;inset:0;z-index:2147483000;background:var(--support,#143A40);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;pointer-events:none;animation:mp2-staff-lift 1600ms linear forwards}
.mp2-staff-markwrap{position:relative;width:216px;height:216px}
.mp2-staff-markwrap svg{position:absolute;inset:0;transform:rotate(-90deg)}
.mp2-staff-ring{fill:none;stroke:var(--accent,#F26430);stroke-width:3;stroke-linecap:round;stroke-dasharray:628.319;stroke-dashoffset:628.319;animation:mp2-veil-draw 1600ms linear forwards}
.mp2-staff-mark{position:absolute;inset:24px;width:168px;height:168px;object-fit:contain;opacity:0;animation:mp2-staff-markin 1600ms linear forwards}
.mp2-staff-name{font-weight:700;font-size:1rem;letter-spacing:.14em;text-transform:uppercase;color:var(--micro-accent,#D7E237)}
.mp2-staff-sub{font-weight:600;font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text,#F4F1E8);opacity:.85;margin-top:-14px}
@keyframes mp2-staff-markin{0%{opacity:0;animation-timing-function:cubic-bezier(0.5,0,0.36,1)}34.375%{opacity:1}100%{opacity:1}}
@keyframes mp2-staff-lift{0%{opacity:1;visibility:visible}81.25%{opacity:1;visibility:visible;animation-timing-function:cubic-bezier(0.4,0,0.2,1)}100%{opacity:0;visibility:hidden}}

/* ---------- P-5 · Settings toggle idiom --------------------------------
   Applied by motion-phase2.js to the Reduce-motion controls that actually
   exist in this tree: the site footer's #a11yMotion pill (inside the
   #a11yDrawer Accessibility group) and the portal's [data-a11y="motion"]
   button (inside its Accessibility controls). The JS adds a track + knob
   at the control's left; the control's own label text and aria-pressed
   semantics are unchanged. Geometry from the cured P-5 build: track
   47x28 = 3px gap + 19px travel + 22px knob + 3px gap; knob travel
   180ms as keyframed SETTLE-Z (overshoot extremum 20.005px at 62.626%,
   both segments LAUNCH — extended launch law); track colour crossfades
   --card -> --micro-accent over 200ms FADE. */
.mp2-pill-toggle{position:relative;padding-left:63px!important}
.mp2-pill-track{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:47px;height:28px;border-radius:999px;background:var(--card,#1B454C);transition:background-color 200ms cubic-bezier(0.4,0,0.2,1);pointer-events:none}
.mp2-pill-knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--micro-accent,#D7E237);transform:translateX(0px)}
.mp2-pill-toggle[aria-pressed="true"] .mp2-pill-track{background:var(--micro-accent,#D7E237)}
.mp2-pill-toggle[aria-pressed="true"] .mp2-pill-knob{transform:translateX(19px);background:var(--field,#0C2B30)}
.mp2-pill-toggle.mp2-live[aria-pressed="true"] .mp2-pill-knob{animation:mp2-knob-on 180ms linear forwards}
.mp2-pill-toggle.mp2-live[aria-pressed="false"] .mp2-pill-knob{animation:mp2-knob-off 180ms linear forwards}
@keyframes mp2-knob-on{0%{transform:translateX(0px);animation-timing-function:cubic-bezier(0.5,0,0.36,1)}62.626%{transform:translateX(20.005px);animation-timing-function:cubic-bezier(0.5,0,0.36,1)}100%{transform:translateX(19px)}}
@keyframes mp2-knob-off{0%{transform:translateX(19px);animation-timing-function:cubic-bezier(0.5,0,0.36,1)}62.626%{transform:translateX(-1.005px);animation-timing-function:cubic-bezier(0.5,0,0.36,1)}100%{transform:translateX(0px)}}

/* ---------- reduced motion: every piece shows its end state ----------- */
@media (prefers-reduced-motion: reduce){
  .mp2-confirm-badge,.mp2-confirm-ring,.mp2-confirm-check,.mp2-deletion-ring,.mp2-deletion-line,.mp2-staff-ring,.mp2-staff-mark,.mp2-pill-knob{animation:none!important}
  .mp2-confirm-ring,.mp2-confirm-check,.mp2-deletion-ring{stroke-dashoffset:0}
  .mp2-deletion-line{opacity:1}
  .mp2-staff-veil{display:none}
  .mp2-veil-ring{stroke-dashoffset:0}
  .mp2-veil-wrap .bl-mark{opacity:1}
  .mp2-pill-track{transition:none}
}
html.mp2-reduced .mp2-confirm-badge,html.mp2-reduced .mp2-confirm-ring,html.mp2-reduced .mp2-confirm-check,html.mp2-reduced .mp2-deletion-ring,html.mp2-reduced .mp2-deletion-line,html.mp2-reduced .mp2-staff-ring,html.mp2-reduced .mp2-staff-mark,html.mp2-reduced .mp2-pill-knob{animation:none!important}
html.mp2-reduced .mp2-confirm-ring,html.mp2-reduced .mp2-confirm-check,html.mp2-reduced .mp2-deletion-ring{stroke-dashoffset:0}
html.mp2-reduced .mp2-deletion-line{opacity:1}
html.mp2-reduced .mp2-staff-veil{display:none}
html.mp2-reduced .mp2-veil-ring{stroke-dashoffset:0}
html.mp2-reduced .mp2-veil-wrap .bl-mark{opacity:1}
html.mp2-reduced .mp2-pill-track{transition:none}
