/* Restrained scroll motion for the specimens editorial page. */
html.specimens-motion-ready [data-motion] {
  opacity:0;
  transform:translate3d(0,22px,0);
  transition:
    opacity 760ms cubic-bezier(.22,.61,.36,1),
    transform 860ms cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--motion-delay,0ms);
  will-change:opacity,transform;
}

html.specimens-motion-ready [data-motion="left"] {
  transform:translate3d(-24px,0,0);
}

html.specimens-motion-ready [data-motion="right"] {
  transform:translate3d(24px,0,0);
}

html.specimens-motion-ready [data-motion="soft-scale"] {
  transform:scale(.965);
}

html.specimens-motion-ready [data-motion].is-motion-visible {
  opacity:1;
  transform:none;
}

/* Exact Porto blurIn keyframes from the referenced Barber template. */
@keyframes specimens-porto-blur-in {
  from { opacity:0; filter:blur(20px); transform:scale(1.3); }
  to { opacity:1; filter:blur(.1px); transform:none; }
}

/* Calm, editorial motion for the database hero only. */
.specimens-editorial-hero .specimens-hero-orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: specimens-hero-orbit-rotate 28s linear infinite;
  will-change: transform;
}

@keyframes specimens-hero-orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.specimens-editorial-hero .specimens-hero-orbit-dot {
  transform-box: view-box;
  transform-origin: 120px 120px;
  animation: specimens-hero-node-counter 28s linear infinite;
  will-change: transform;
}

@keyframes specimens-hero-node-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-720deg); }
}

.specimens-editorial-hero .hero-leaf-float-a {
  animation: specimens-hero-leaf-float-a 8.5s ease-in-out infinite;
  will-change: transform;
}

.specimens-editorial-hero .hero-leaf-float-b {
  animation: specimens-hero-leaf-float-b 9.5s ease-in-out 1.2s infinite;
  will-change: transform;
}

@keyframes specimens-hero-leaf-float-a {
  0%, 100% { transform: translateY(0) rotate(28deg); }
  50% { transform: translateY(-5px) rotate(29.5deg); }
}

@keyframes specimens-hero-leaf-float-b {
  0%, 100% { transform: translateY(0) rotate(54deg); }
  50% { transform: translateY(4px) rotate(52.8deg); }
}

.specimens-editorial-hero .hero-reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: specimens-hero-reveal-up .75s ease forwards;
  will-change: opacity, transform;
}

.specimens-editorial-hero .hero-reveal--1 { animation-delay: .08s; }
.specimens-editorial-hero .hero-reveal--2 { animation-delay: .18s; }
.specimens-editorial-hero .hero-reveal--3 { animation-delay: .28s; }
.specimens-editorial-hero .hero-reveal--4 { animation-delay: .38s; }
.specimens-editorial-hero .hero-reveal--5 { animation-delay: .48s; }
.specimens-editorial-hero .hero-reveal--6 { animation-delay: .58s; }

@keyframes specimens-hero-reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.specimens-motion-ready [data-motion="hero-blur"] {
  opacity:0;
  filter:blur(20px);
  transform:scale(1.3);
  transition:none;
}

html.specimens-motion-ready [data-motion="hero-blur"].is-motion-visible {
  animation:specimens-porto-blur-in 1s ease both;
  animation-delay:var(--motion-delay,0ms);
}

/* Let botanical artwork settle a little more slowly than its copy. */
html.specimens-motion-ready .focus-collection-artwork[data-motion],
html.specimens-motion-ready .collection-counter[data-motion] {
  transition-duration:900ms,980ms;
}

@media (max-width:760px) {
  html.specimens-motion-ready [data-motion] {
    transform:translate3d(0,15px,0);
    transition-duration:620ms,700ms;
  }

  html.specimens-motion-ready [data-motion="left"] {
    transform:translate3d(-15px,0,0);
  }

  html.specimens-motion-ready [data-motion="right"] {
    transform:translate3d(15px,0,0);
  }

  html.specimens-motion-ready [data-motion="soft-scale"] {
    transform:scale(.975);
  } 
}

@media (prefers-reduced-motion:reduce) {
  .specimens-editorial-hero .specimens-hero-orbit,
  .specimens-editorial-hero .specimens-hero-orbit-dot,
  .specimens-editorial-hero .hero-leaf-float-a,
  .specimens-editorial-hero .hero-leaf-float-b,
  .specimens-editorial-hero .hero-reveal {
    animation:none !important;
    transform:none !important;
    opacity:1 !important;
    will-change:auto !important;
  }

  html.specimens-motion-ready [data-motion] {
    opacity:1 !important;
    transform:none !important;
    filter:none !important;
    transition:none !important;
  }
}
