/* Drift stays inside existing photographic frames. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :is(.site-main, .theme-child-room) :is(.editorial-media-split__media:not(.swiper), .immersive-media:not(.immersive-media--illustration) .immersive-media__picture) {
      overflow: clip;
    }
    :is(.site-main, .theme-child-room) :is(.editorial-media-split__media:not(.swiper), .immersive-media:not(.immersive-media--illustration) .immersive-media__picture) img:not([class*="decoration"]) {
      animation: treyne-photo-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes treyne-photo-drift {
  from { scale: 1.11; translate: 0 -4%; }
  to { scale: 1.11; translate: 0 4%; }
}
@media (max-width: 767px) {
  @keyframes treyne-photo-drift {
    from { scale: 1.07; translate: 0 -2.5%; }
    to { scale: 1.07; translate: 0 2.5%; }
  }
}

@media (prefers-reduced-motion: no-preference) { .treyne-motion-pending { opacity: 0; } }

@keyframes treyne-hero-interface-enter {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
    html.is-home-ready [data-dia-front-header] :is(.dia-front-header__logo, .dia-front-header__start > *, .dia-front-header__contacts > a, .dia-front-header__end),
    html.is-home-ready .page-banner--immersive :is(.page-banner__title, .page-banner__signature, .page-banner__partner, .page-banner__scroll-cue),
    html.is-home-ready .page-banner--immersive.is-signature-playing .page-banner__signature-animation {
        animation: treyne-hero-interface-enter 850ms cubic-bezier(.22,1,.36,1) backwards;
        animation-delay: var(--hero-entry-delay, 0ms);
    }
    html.is-home-ready [data-dia-front-header] .dia-front-header__logo { --hero-entry-delay: 0ms; }
    html.is-home-ready [data-dia-front-header] .dia-front-header__start > button { --hero-entry-delay: 100ms; }
    html.is-home-ready [data-dia-front-header] .dia-front-header__language { --hero-entry-delay: 180ms; }
    html.is-home-ready [data-dia-front-header] .dia-front-header__contacts { animation: none; }
    html.is-home-ready [data-dia-front-header] .dia-front-header__contacts > a:nth-child(1) { --hero-entry-delay: 260ms; }
    html.is-home-ready [data-dia-front-header] .dia-front-header__contacts > a:nth-child(2) { --hero-entry-delay: 340ms; }
    html.is-home-ready [data-dia-front-header] .dia-front-header__end { --hero-entry-delay: 420ms; }
    html.is-home-ready .page-banner__title { --hero-entry-delay: 480ms; }
    html.is-home-ready .page-banner__signature,
    html.is-home-ready .page-banner__signature-animation { --hero-entry-delay: 600ms; }
    html.is-home-ready .page-banner__partner { --hero-entry-delay: 800ms; }
    html.is-home-ready .page-banner__scroll-cue { --hero-entry-delay: 960ms; }
}

@media (prefers-reduced-motion: no-preference) {

    html.is-home-ready .page-banner__title:has(.treyne-letter-title) { animation: none; }
}

.treyne-title-original { opacity: 0; }
.treyne-title-overlay { position: absolute; inset: 0; pointer-events: none; text-align: left; }
.treyne-letter-mask { position: absolute; display: block; width: max-content; overflow: visible; clip-path: inset(-.15em -1em -.1em -1em); }
.treyne-letter-mask .treyne-letter { display: block; white-space: pre; }
@media (prefers-reduced-motion: no-preference) {
    .treyne-letter-title:not(.treyne-letter-title--playing) { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .editorial-feature--decorated-split .editorial-feature__media { overflow: clip; }
        .editorial-feature--decorated-split .editorial-feature__media img {
            animation: treyne-feature-photo-drift linear both;
            animation-timeline: view();
            animation-range: entry 0% exit 100%;
        }
    }
}
@keyframes treyne-feature-photo-drift {
    from { scale: 1.08; translate: 0 -3%; }
    to { scale: 1.08; translate: 0 3%; }
}
@media (max-width: 767px) {
    @keyframes treyne-feature-photo-drift {
        from { scale: 1.05; translate: 0 -1.5%; }
        to { scale: 1.05; translate: 0 1.5%; }
    }
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        /* Clip the photograph without creating a local scroll timeline. */
        .treyne-parallax-frame, .treyne-parallax-section { overflow: clip !important; }
        .treyne-parallax-frame img {
            animation: treyne-feature-photo-drift linear both;
            animation-timeline: view();
            animation-range: entry 0% exit 100%;
        }
    }
}
