/* Editorial motion: short entrances, with a few scenes tied to scroll position. */
.hero-scene { position: relative; background: var(--paper); }
.hero-pinned .hero-scene { height: calc(clamp(760px, calc(100svh - 42px), 1040px) + 48vh); }
.hero-pinned .hero { position: sticky; top: 0; }
.motion-line { display: block; padding-bottom: .16em; margin-bottom: -.16em; }
.motion-line-text { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero {
    clip-path: inset(0 calc(var(--hero-progress, 0) * 2.5%) round calc(var(--hero-progress, 0) * 28px));
  }
  .motion-ready .hero-image {
    transform: scale(calc(1.09 - var(--hero-progress, 0) * .09));
    will-change: transform;
  }
  .hero-pinned .hero-content {
    transform: translate3d(0, calc(var(--hero-progress, 0) * -45px), 0);
  }
  .motion-ready .motion-line { overflow: clip; }
  .motion-ready .line-reveal .motion-line-text {
    opacity: 0;
    transform: translate3d(0, 112%, 0) rotate(2deg);
    transform-origin: left top;
    transition: transform 1.05s cubic-bezier(.16, 1, .3, 1), opacity .65s ease;
    transition-delay: var(--line-delay, 0ms);
  }
  .motion-ready .line-reveal.is-visible .motion-line-text {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
  }
  .motion-ready .reveal {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition: opacity .75s ease, transform .85s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready .reveal.is-visible, .motion-ready .reveal:focus-within {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  .motion-ready .interior-photo {
    clip-path: inset(calc((1 - var(--photo-progress, 1)) * 10%) calc((1 - var(--photo-progress, 1)) * 13%) round calc((1 - var(--photo-progress, 1)) * 140px));
  }
  .motion-ready .interior-photo img, .motion-ready .interior-photo:hover img {
    transform: scale(calc(1.13 - var(--photo-progress, 1) * .13));
    transition: none;
  }
  .motion-ready .approach {
    clip-path: inset(0 calc((1 - var(--panel-progress, 1)) * 5%) round calc((1 - var(--panel-progress, 1)) * 36px));
  }
  .motion-ready .benefit-figure {
    display: block;
    transform: translate3d(0, 22px, 0);
    transition: transform 1s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--reveal-delay, 0ms) + 80ms);
  }
  .motion-ready .benefit.is-visible .benefit-figure { transform: translate3d(0, 0, 0); }
  .motion-ready .logo-reveal { overflow: clip; }
  .motion-ready .logo-reveal > .footer-wordmark {
    transform: translate3d(0, 112%, 0);
    transition: transform 1.3s cubic-bezier(.16, 1, .3, 1);
  }
  .motion-ready .logo-reveal.is-visible > .footer-wordmark,
  .motion-ready .logo-reveal:focus-within > .footer-wordmark {
    transform: translate3d(0, 0, 0);
  }
  .motion-ready .logo-reveal:focus-within { overflow: visible; }
  .motion-ready .service[open] .service-body { animation: service-open .45s ease both; }
  @keyframes service-open {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (max-width: 700px) {
    .motion-ready .reveal { transform: translate3d(0, 20px, 0); }
    .motion-ready .reveal.is-visible, .motion-ready .reveal:focus-within { transform: none; }
    .motion-ready .line-reveal .motion-line-text { transition-duration: .8s, .5s; }
    .motion-ready .interior-photo {
      clip-path: inset(calc((1 - var(--photo-progress, 1)) * 6%) calc((1 - var(--photo-progress, 1)) * 7%) round calc((1 - var(--photo-progress, 1)) * 90px));
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene { height: auto !important; }
  .hero { position: relative !important; }
  .hero, .interior-photo, .approach, .logo-reveal { clip-path: none !important; }
  .reveal, .motion-line-text, .hero-image, .hero-content, .interior-photo img, .benefit-figure, .footer-wordmark {
    transform: none !important;
    opacity: 1 !important;
  }
}
