/* ==========================================================================
   Baili Packaging — motion, editor preview, print.
   Loaded last on every page.
   ========================================================================== */

/* One entrance, on the first screen only: the photograph feeds in from the
   right the way a printed web runs onto the rewind, and the text settles. */
@media (prefers-reduced-motion:no-preference){
  .hero-figure,.detail-figure{animation:web-feed 1.1s cubic-bezier(.2,.7,.1,1) backwards}
  .hero-content>*,.detail-hero>div:first-child>*{animation:settle .7s cubic-bezier(.2,.7,.1,1) both}
  .hero-content>:nth-child(2),.detail-hero>div:first-child>:nth-child(2){animation-delay:.06s}
  .hero-content>:nth-child(3),.detail-hero>div:first-child>:nth-child(3){animation-delay:.12s}
  .hero-content>:nth-child(4),.detail-hero>div:first-child>:nth-child(4){animation-delay:.18s}
  .detail-hero>div:first-child>:nth-child(5){animation-delay:.24s}
  .hero-proof{animation:settle .7s .3s cubic-bezier(.2,.7,.1,1) both}
}
@keyframes web-feed{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}
@keyframes settle{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}

/* Inside the visual editor every field must stay individually clickable. */
.cms-preview .capability-link::after,.cms-preview .discover-action::after{display:none}
.cms-preview .hero-figure,.cms-preview .detail-figure,.cms-preview .hero-content>*,.cms-preview .detail-hero>div:first-child>*,.cms-preview .hero-proof{animation:none}

@media print{
  .topline,.site-header,.page-index,.category-switcher,.photo-filters,.photo-filter-status,.brief,.nav-panel,.cms-editor-entry,.photo-enlarge{display:none!important}
  .on-dark,footer{background:#fff!important;color:#000!important}
  .on-dark *,footer *{color:#000!important}
  .mark::before{display:none}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:.8em}
}
