/* Fleet Motion Phase 2 — DWC2K (Tap 3965 / MOVES M-465)
   Pieces: W-1 coming-soon quiet moment · W-2 boot veil beat · W-3 Settings toggle idiom.
   Extracted from builds W-1.html / W-2.html / W-3.html (demo scaffolding dropped).
   Tokens: DWC2K's own tree of record — --pale #EDE6D6, --ink #0E0E10, --grey #2B2B2B,
   --paper #FAFAF7, --hairline #CFC8B8, --focus #A9713B.
   Curves (PROGRAMME.md §0): LAUNCH cubic-bezier(0.5,0,0.36,1) ·
   FADE cubic-bezier(0.4,0,0.2,1) · SETTLE-Z keyframed overshoot on LAUNCH segments. */

/* ---------- W-1 — coming-soon quiet moment ----------
   Mark: the nav wordmark of record (.nav-wordmark), hooked as .mp2-w1-mark.
   Line: the announcement bar's own coming-soon span, hooked as .mp2-w1-line.
   Reveal 600ms LAUNCH (opacity in, rising 6px); line fades 300ms FADE, +150ms delay.
   No overshoot, no ambient loop; the face holds the revealed frame.
   CURE 2026-11-25 (wordmark centring): the wordmark's base rule centres it with
   transform: translateX(-50%). A keyframe that writes transform REPLACES that
   translation for the whole animation, and fill-forwards holds the end frame
   forever — the original translateY-only keyframes left the mark parked half
   its own width right of centre (+33.56px measured). The X translation of
   record therefore rides inside both keyframes, so the reveal rises along the
   centre line and the held end frame is the centred frame. */
.mp2-w1-mark {
  animation: mp2-w1-mark-reveal 600ms cubic-bezier(0.5, 0, 0.36, 1) 1 forwards;
}
@keyframes mp2-w1-mark-reveal {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mp2-w1-line {
  animation: mp2-w1-line-fade 300ms cubic-bezier(0.4, 0, 0.2, 1) 150ms 1 both;
}
@keyframes mp2-w1-line-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- W-2 — boot veil beat (loader of record: brand-loader 2288, #blVeil2277) ----------
   The existing loader's machinery is untouched: app-only activation, real-load-progress
   pacing and its finish() are of record. This sheet re-works only the beat:
   each underline bar now draws over 550ms on LAUNCH (was 900ms on the unnamed curve
   "ease"; the loader sets the transition inline, so the override carries !important),
   and the veil lifts over 300ms on FADE via the .mp2-lift class the companion
   script adds at content-ready (the loader's own display:none lands afterwards,
   on an already-lifted veil). */
#blVeil2277 .bl-ltr i {
  transition: width 550ms cubic-bezier(0.5, 0, 0.36, 1) !important;
}
#blVeil2277 {
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 300ms;
}
#blVeil2277.mp2-lift {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- W-3 — Settings toggle idiom (footer Accessibility panel, F13 home of record) ----------
   The panel's controls of record are .a11y-pill buttons bound by the site's own
   a11y machinery via [data-a11y-toggle]; that machinery is untouched. Each toggle
   pill gains a track+knob hook (.mp2-track/.mp2-knob): the knob travels 22px over
   180ms as keyframed SETTLE-Z (23.163px overshoot extremum at 62.626%, both
   segments on LAUNCH — the cured W-3 build's travel), and the track crossfades
   pale -> ink over 200ms on FADE. Travel is gated on .mp2-live, added by the
   companion script on click, so resting states stay exact before the first tap. */
.a11y-panel .a11y-pill { gap: 10px; }
.mp2-track {
  position: relative; flex: none;
  width: 48px; height: 26px; border-radius: 13px;
  border: 1px solid #CFC8B8; background: #EDE6D6;
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.a11y-pill[aria-pressed="true"] .mp2-track { background: #0E0E10; }
.mp2-knob {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #FAFAF7; border: 1px solid #0E0E10;
}
.a11y-pill[aria-pressed="true"] .mp2-knob { transform: translateX(22px); }
@keyframes mp2-knob-on {
  0%      { transform: translateX(0px);     animation-timing-function: cubic-bezier(0.5, 0, 0.36, 1); }
  62.626% { transform: translateX(23.163px); animation-timing-function: cubic-bezier(0.5, 0, 0.36, 1); }
  100%    { transform: translateX(22px); }
}
@keyframes mp2-knob-off {
  0%      { transform: translateX(22px);    animation-timing-function: cubic-bezier(0.5, 0, 0.36, 1); }
  62.626% { transform: translateX(-1.163px); animation-timing-function: cubic-bezier(0.5, 0, 0.36, 1); }
  100%    { transform: translateX(0px); }
}
.a11y-pill.mp2-live[aria-pressed="true"] .mp2-knob  { animation: mp2-knob-on 180ms linear forwards; }
.a11y-pill.mp2-live[aria-pressed="false"] .mp2-knob { animation: mp2-knob-off 180ms linear forwards; }

/* ---------- Reduced motion — every piece shows its end state ----------
   Governed both by the media query and by DWC2K's own Settings class of
   record (html.a11y-reduce-motion, set by the Reduce motion pill). */
@media (prefers-reduced-motion: reduce) {
  .mp2-w1-line { animation: none; opacity: 1; transform: none; }
  .mp2-w1-mark { animation: none; opacity: 1; transform: translateX(-50%); }
  #blVeil2277 { display: none !important; }
  #blVeil2277 .bl-ltr i { transition: none !important; }
  .mp2-track, .a11y-pill .mp2-knob { transition: none; animation: none; }
}
html.a11y-reduce-motion .mp2-w1-line { animation: none; opacity: 1; transform: none; }
html.a11y-reduce-motion .mp2-w1-mark { animation: none; opacity: 1; transform: translateX(-50%); }
html.a11y-reduce-motion #blVeil2277 { display: none !important; }
html.a11y-reduce-motion #blVeil2277 .bl-ltr i { transition: none !important; }
html.a11y-reduce-motion .mp2-track,
html.a11y-reduce-motion .a11y-pill .mp2-knob { transition: none; animation: none; }
