/* Movimiento editorial Bamera: visible, natural y gobernado por el scroll. */
html.motion-ready { scroll-behavior: smooth; }
.motion-reveal {
  --motion-x: 0px;
  --motion-y: 72px;
  --motion-delay: 0ms;
  opacity: 0;
  transform: translate3d(var(--motion-x), var(--motion-y), 0) scale(.985);
  filter: blur(8px);
  transition:
    opacity .9s cubic-bezier(.2,.75,.2,1) var(--motion-delay),
    transform 1.15s cubic-bezier(.16,1,.3,1) var(--motion-delay),
    filter .8s ease var(--motion-delay);
  will-change: transform, opacity, filter;
}
.motion-reveal.motion-in {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: blur(0);
}
.motion-title { --motion-x: -7vw; --motion-y: 28px; }
.motion-copy { --motion-x: 4vw; --motion-y: 42px; }
.motion-label { --motion-y: 24px; }
.service-reveal:nth-child(even) .motion-service { --motion-x: 7vw; }
.motion-service { --motion-x: -7vw; --motion-y: 20px; }
.motion-service {
  transform: translate3d(calc((var(--service-drift, 0) * 1px) + var(--motion-x)), var(--motion-y), 0) scale(.985);
}
.motion-service.motion-in {
  transform: translate3d(calc(var(--service-drift, 0) * 1px), 0, 0) scale(1);
}
.motion-work { --motion-y: 110px; transform-origin: 50% 100%; }

.hero-media { overflow: hidden; }
.hero-media img {
  transform: translate3d(0, calc(var(--hero-shift, 0) * 1px), 0) scale(calc(1.06 + var(--hero-depth, 0) * .00035));
  transform-origin: center center;
  will-change: transform;
}
.hero-content {
  transform: translate3d(0, calc(var(--hero-copy-shift, 0) * 1px), 0);
  opacity: var(--hero-copy-opacity, 1);
  will-change: transform, opacity;
}
.hero-kicker, .hero-content h1, .hero-support {
  animation: hero-arrive 1s cubic-bezier(.16,1,.3,1) both;
}
.hero-content h1 { animation-delay: .12s; }
.hero-support { animation-delay: .24s; }
@keyframes hero-arrive {
  from { opacity: 0; transform: translate3d(0, 56px, 0); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
}

.motion-parallax-image { overflow: hidden; }
.motion-parallax-image img {
  transform: translate3d(0, calc(var(--image-shift, 0) * 1px), 0) scale(1.1);
  will-change: transform;
}
.work-card.motion-in:nth-child(3n+2) { transition-delay: 90ms; }
.work-card.motion-in:nth-child(3n) { transition-delay: 180ms; }
.service-card { will-change: transform; }
.section-label::before { transform: scale(calc(.72 + var(--label-pulse, 0) * .28)); }

@media (max-width: 760px) {
  .motion-reveal { --motion-y: 52px; }
  .motion-title { --motion-x: -10vw; --motion-y: 22px; }
  .motion-copy { --motion-x: 7vw; --motion-y: 30px; }
  .motion-service { --motion-x: -9vw; }
  .service-reveal:nth-child(even) .motion-service { --motion-x: 9vw; }
  .motion-work { --motion-y: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready { scroll-behavior: auto; }
  .motion-reveal, .motion-reveal.motion-in,
  .hero-kicker, .hero-content h1, .hero-support,
  .hero-media img, .hero-content, .motion-parallax-image img, .service-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
