/* ---------- motion ---------- */
/* Subtle entrance and hover feedback. Without JS the `anim` class is never
   added, so every block stays fully visible. */

.anim .rv {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .5s ease,
    transform .55s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--rv-delay, 0ms);
}

.anim .rv.in { opacity: 1; transform: none; }

/* hero entrance */
.anim .hero h1,
.anim .hero .lede,
.anim .hero .actions,
.anim .hero .specstrip {
  animation: rv-rise .8s cubic-bezier(.2, .7, .3, 1) both;
}

.anim .hero h1 { animation-delay: .05s; }
.anim .hero .lede { animation-delay: .16s; }
.anim .hero .actions { animation-delay: .27s; }
.anim .hero .specstrip { animation-delay: .38s; }
.anim .hero-media img { transition: opacity .6s ease; }
.anim .hero-media img.is-on { animation: hero-kb 6s ease-out both; }

.anim .hero .wrap.swap { animation: hero-swap .5s cubic-bezier(.2, .7, .3, 1) both; }

@keyframes rv-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-kb {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

@keyframes hero-swap {
  from { opacity: .3; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes rv-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* hover feedback */
.anim .btn { transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.anim .btn:hover { transform: translateY(-1px); }

.anim .shots figure { overflow: hidden; }
.anim .shots img { transition: transform .9s cubic-bezier(.2, .7, .3, 1); }
.anim .shots figure.rv img { transform: scale(1.05); }
.anim .shots figure.rv.in img { transform: scale(1); }
.anim .shots figure.rv.in:hover img { transform: scale(1.05); }

/* every other image answers the pointer too */
.anim .range-card.rv img { transform: scale(1.04); }
.anim .range-card.rv.in img { transform: scale(1); }
.anim .range-card.rv.in:hover img { transform: scale(1.06); }

.anim .family { overflow: hidden; }
.anim .family img { transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.anim .family:hover img { transform: scale(1.05); }

.anim .famindex a { overflow: hidden; }
.anim .famindex img { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.anim .famindex a:hover img { transform: scale(1.08); }

.anim .docs a { overflow: hidden; }
.anim .docs img { transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.anim .docs a:hover img { transform: scale(1.03); }

.anim .masthead { transition: box-shadow .3s ease; }
.anim .masthead.is-scrolled { box-shadow: 0 10px 26px rgba(20, 34, 48, .10); }

@media print {
  .anim .rv { opacity: 1; transform: none; }
}
