/* The temporary sequence uses the exact artwork of each PPT. The accessible
   4K plate underneath takes over once the last part has landed. */
html:not(.reduce-motion) .deck-panel[data-deck-motion].in-view .deck-sheet { animation: none; }
.deck-sequence {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-size: 100% 100%; background-repeat: no-repeat;
}
.deck-part {
  display: block; position: absolute; opacity: 0;
  background-repeat: no-repeat; pointer-events: none;
}
.deck-part[data-role="line"], .deck-part[data-role="mark"] { background-image: var(--motion-ink); }
.deck-part[data-role="still"], .deck-part[data-role="portrait"], .deck-part[data-role="hero"] { background-image: var(--motion-sheet); }
.deck-panel[data-deck-motion="playing"] .deck-sequence {
  animation: deck-hand-off 210ms ease var(--sequence-end) both;
}
.deck-panel[data-deck-motion="playing"] .deck-part {
  animation: deck-type-arrive 820ms cubic-bezier(.16,.75,.22,1) var(--delay) both;
}
.deck-panel[data-deck-motion="playing"] .deck-part[data-role="mark"] {
  animation-name: deck-mark-arrive;
}
.deck-panel[data-deck-motion="playing"] .deck-part[data-role="still"] {
  animation-name: deck-still-arrive;
}
.deck-panel[data-deck-motion="playing"] .deck-part[data-role="portrait"] {
  animation-name: deck-portrait-arrive;
}
.deck-panel[data-deck-motion="playing"] .deck-part[data-role="hero"] {
  animation: deck-forest-arrive 1550ms cubic-bezier(.2,.7,.22,1) both;
}
@keyframes deck-type-arrive {
  from { opacity: 0; transform: translateY(clamp(9px, 1.6vw, 26px)); }
  to { opacity: 1; transform: none; }
}
@keyframes deck-mark-arrive {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes deck-still-arrive {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}
@keyframes deck-portrait-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes deck-forest-arrive {
  from { opacity: .45; transform: scale(1.075); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes deck-hand-off { from { opacity: 1; } to { opacity: 0; } }
html.reduce-motion .deck-sequence { display: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.reduce-motion) .deck-panel[data-deck-motion="settled"] .deck-photo.crop-ready:hover img {
    transform: scale(1.06);
  }
}
/* Source mattes */
#partners { --motion-base: url("assets/revision/latest-partners-base.webp"); --motion-ink: url("assets/revision/latest-partners-ink.webp"); }
#shadow-watcher { --motion-base: url("assets/deck-motion/base-10.webp"); --motion-ink: url("assets/deck-motion/ink-10.webp"); }
#shadow-watcher-gallery { --motion-base: url("assets/revision/latest-shadow-watcher-gallery-base.webp"); --motion-ink: url("assets/revision/latest-shadow-watcher-gallery-ink.webp"); }
#divorcing-him { --motion-base: url("assets/deck-motion/base-12.webp"); --motion-ink: url("assets/deck-motion/ink-12.webp"); }
#insland-concert { --motion-base: url("assets/revision/existing-38-base.webp"); --motion-ink: url("assets/revision/existing-38-ink.webp"); }
#jd-618 { --motion-base: url("assets/deck-motion/base-15.webp"); --motion-ink: url("assets/deck-motion/ink-15.webp"); }
#space-probe { --motion-base: url("assets/deck-motion/base-16.webp"); --motion-ink: url("assets/deck-motion/ink-16.webp"); }
#bocom-worldskills { --motion-base: url("assets/deck-motion/base-18.webp"); --motion-ink: url("assets/deck-motion/ink-18.webp"); }
#mae { --motion-base: url("assets/deck-motion/base-19.webp"); --motion-ink: url("assets/deck-motion/ink-19.webp"); }
#paiwo { --motion-base: url("assets/deck-motion/base-20.webp"); --motion-ink: url("assets/deck-motion/ink-20.webp"); }
#agricultural-bank { --motion-base: url("assets/revision/existing-28-base.webp"); --motion-ink: url("assets/revision/existing-28-ink.webp"); }
#space-foundation-master-kong { --motion-base: url("assets/deck-motion/base-22.webp"); --motion-ink: url("assets/deck-motion/ink-22.webp"); }
#picc-life { --motion-base: url("assets/deck-motion/base-23.webp"); --motion-ink: url("assets/deck-motion/ink-23.webp"); }
#bionic-trace { --motion-base: url("assets/deck-motion/base-25.webp"); --motion-ink: url("assets/deck-motion/ink-25.webp"); }
#bionic-trace-gallery { --motion-base: url("assets/deck-motion/base-26.webp"); --motion-ink: url("assets/deck-motion/ink-26.webp"); }
#travel-products {
  --motion-base: url("assets/deck-motion/base-33.webp");
  --motion-ink: url("assets/deck-motion/ink-33.webp");
  --product-1-photo: url("assets/revision/product-1-photo.webp");
  --product-1-caption: url("assets/revision/product-1-caption.webp");
  --product-2-photo: url("assets/revision/product-2-photo.webp");
  --product-2-caption: url("assets/revision/product-2-caption.webp");
  --product-3-photo: url("assets/revision/product-3-photo.webp");
  --product-3-caption: url("assets/revision/product-3-caption.webp");
}
.product-card-layers { position: absolute; overflow: hidden; }
.product-card-layers::before, .product-card-layers::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none;
}
.product-card-layers::before { background-image: var(--card-photo); }
.product-card-layers::after { background-image: var(--card-caption); }
#travel-products .deck-part[data-role="product"] {
  opacity: 1; animation: none;
}
#travel-products .deck-part[data-role="product"]::before { opacity: 0; }
#travel-products[data-deck-motion="playing"] .deck-part[data-role="product"]::before {
  animation: deck-still-arrive 820ms cubic-bezier(.16,.75,.22,1) var(--delay) both;
}
.product-hover { display: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.reduce-motion) #travel-products.product-layers-ready[data-deck-motion="settled"] .product-hover {
    display: block; opacity: 0; transition: opacity .24s ease;
  }
  html:not(.reduce-motion) #travel-products.product-layers-ready[data-deck-motion="settled"] .product-hover:hover {
    opacity: 1;
  }
  .product-hover::before { transition: transform .65s cubic-bezier(.2,.65,.3,1); }
  .product-hover:hover::before { transform: scale(1.06); }
}
#sichuan-observation { --motion-base: url("assets/revision/existing-39-base.webp"); --motion-ink: url("assets/revision/existing-39-ink.webp"); }
#be-friends { --motion-base: url("assets/deck-motion/base-35.webp"); --motion-ink: url("assets/deck-motion/ink-35.webp"); }
#insland-butterfly { --motion-base: url("assets/revision/latest-insland-butterfly-base.webp"); --motion-ink: url("assets/revision/latest-insland-butterfly-ink.webp"); }
