/* Enhancement only: removing .fx restores the original page without overrides.
   Motion uses the individual translate/scale properties so each element's own skew or
   rotation (transform) stays applied while it animates. */
.fx [data-fx]:not(.is-in):not([data-fx="panel"]) { opacity: 0; }
.fx [data-fx="panel"]:not(.is-in)::before,
.fx [data-fx="panel"]:not(.is-in)::after { opacity: 0; }
.fx [data-fx].fx-playing {
  animation: fx-up .65s cubic-bezier(.22,1,.36,1) var(--fx-delay,0ms) backwards;
}
.fx [data-fx="fade"].fx-playing { animation-name: fx-fade; animation-duration: .6s; }
.fx [data-fx="left"].fx-playing { animation-name: fx-left; }
.fx [data-fx="right"].fx-playing { animation-name: fx-right; }
.fx [data-fx="diagonal"].fx-playing { animation-name: fx-diagonal; }
.fx [data-fx="pop-left"].fx-playing { animation-name: fx-pop-left; }
.fx [data-fx="pop-right"].fx-playing { animation-name: fx-pop-right; }
.fx [data-fx="wipe"].fx-playing { animation-name: fx-wipe; }
.fx [data-fx="wipe-up"].fx-playing { animation-name: fx-wipe-up; }
.fx [data-fx="bar"].fx-playing { animation-name: fx-bar; animation-duration: .6s; transform-origin: bottom; }
.fx [data-fx^="line-"].fx-playing { animation-name: fx-wipe-down; animation-duration: .6s; }
.fx [data-fx="line-brand"].fx-playing,
.fx [data-fx="line-card"].fx-playing { animation-name: fx-wipe; }
.fx [data-fx="panel"].fx-playing { animation: none; }
.fx [data-fx="panel"].fx-playing::before,
.fx [data-fx="panel"].fx-playing::after { animation: fx-fade .6s cubic-bezier(.22,1,.36,1) var(--fx-delay,0ms) backwards; }
.fx [data-fx="shine"].fx-playing { animation-name: fx-up; }
/* The transient pseudo-element clips its own light, never the button's artwork. */
/* The button itself must anchor the light; otherwise it spans the whole CTA panel box. */
.fx [data-fx="shine"] { position: relative; }
.fx [data-fx="shine"].fx-playing::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; clip-path: inset(0 round 8rem);
  background: linear-gradient(110deg,transparent 35%,rgba(255,255,255,.48) 50%,transparent 65%) 100% 0/250% 100% no-repeat;
  animation: fx-shine .45s ease-out calc(var(--fx-delay,0ms) + .65s) both;
}
@keyframes fx-up { from { opacity: 0; translate: 0 32rem; } to { opacity: 1; translate: none; } }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-left { from { opacity: 0; translate: -28rem 0; } to { opacity: 1; translate: none; } }
@keyframes fx-right { from { opacity: 0; translate: 28rem 0; } to { opacity: 1; translate: none; } }
@keyframes fx-diagonal { from { opacity: 0; translate: -24rem 32rem; } to { opacity: 1; translate: none; } }
@keyframes fx-pop-left { from { opacity: 0; translate: -24rem 0; scale: .9; } to { opacity: 1; translate: none; scale: none; } }
@keyframes fx-pop-right { from { opacity: 0; translate: 24rem 0; scale: .9; } to { opacity: 1; translate: none; scale: none; } }
@keyframes fx-bar { from { opacity: 1; scale: 1 0; } to { opacity: 1; scale: none; } }
/* Wipes clip a margin outside the box so slanted (skewed) corners are never cut square. */
@keyframes fx-wipe { from { opacity: 0; clip-path: inset(-20% 120% -20% -20%); } to { opacity: 1; clip-path: inset(-20%); } }
@keyframes fx-wipe-up { from { opacity: 0; clip-path: inset(120% -20% -20%); } to { opacity: 1; clip-path: inset(-20%); } }
@keyframes fx-wipe-down { from { opacity: 0; clip-path: inset(-20% -20% 120%); } to { opacity: 1; clip-path: inset(-20%); } }
/* The soft diagonal band itself travels across the button; the button's rounded clip stays fixed. */
@keyframes fx-shine {
  from { opacity: 0; background-position: 100% 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  to { opacity: 0; background-position: 0 0; }
}
@media (max-width:900px) {
  .fx [data-fx="line-brand"].fx-playing,
  .fx [data-fx="line-card"].fx-playing { animation-name: fx-wipe-down; }
  .fx [data-fx="line-branch"].fx-playing { animation-name: fx-wipe; }
}
/* PC: the branch grows up and down from where the M1LLION line meets it. */
@keyframes fx-wipe-mid { from { opacity: 0; clip-path: inset(50% -20% 50%); } to { opacity: 1; clip-path: inset(-20%); } }
@media (min-width:901px) {
  .fx [data-fx="line-branch"].fx-playing { animation-name: fx-wipe-mid; }
}
/* PC DIRECT: the M1LLION line stops at the branch, then continues to card 02 after card 01,
   so the cards appear in order 01 -> 02 -> 03 as each line reaches them. */
@keyframes fx-wipe-split {
  from { opacity: 0; clip-path: inset(-20% 120% -20% -20%); }
  20% { opacity: 1; clip-path: inset(-20% 50% -20% -20%); }
  60% { opacity: 1; clip-path: inset(-20% 50% -20% -20%); }
  to { opacity: 1; clip-path: inset(-20%); }
}
@media (min-width:901px) {
  .fx .dr-card-arrow-1.fx-playing { animation-name: fx-wipe-split; animation-duration: .66s; }
  /* PC DIRECT plays about 40% faster than the rest of the page so the whole diagram settles quickly. */
  .fx .dr-section .dr-brand.fx-playing,
  .fx .dr-section .dr-arrow.fx-playing:not(.dr-card-arrow-1),
  .fx .dr-section .dr-number.fx-playing,
  .fx .dr-section .dr-detail.fx-playing,
  .fx .dr-section .dr-card.fx-playing::before,
  .fx .dr-section .dr-card.fx-playing::after { animation-duration: .38s; }
}
@media (prefers-reduced-motion:reduce) {
  .fx [data-fx]:not(.is-in):not([data-fx="panel"]),
  .fx [data-fx="panel"]:not(.is-in)::before,
  .fx [data-fx="panel"]:not(.is-in)::after { opacity: 1; }
  .fx [data-fx].fx-playing,
  .fx [data-fx="panel"].fx-playing::before,
  .fx [data-fx="panel"].fx-playing::after { animation: none; }
  .fx [data-fx="shine"].fx-playing::after { content: none; }
}
