@view-transition { navigation: auto; }

.hero-copy h1 b { display: block; font: inherit; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(root) { animation-duration: .52s; }
  ::view-transition-old(root) { animation: page-out .52s cubic-bezier(.4,0,.35,1) both; }
  ::view-transition-new(root) { animation: page-in .52s cubic-bezier(.2,.7,.15,1) both; }
  ::view-transition-group(portfolio-picture) {
    z-index: 2;
    overflow: clip;
    animation-duration: .54s;
    animation-timing-function: cubic-bezier(.25,.72,.16,1);
  }
  ::view-transition-image-pair(portfolio-picture) { isolation: isolate; }
  ::view-transition-old(portfolio-picture), ::view-transition-new(portfolio-picture) {
    mix-blend-mode: normal;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .page-departure body { animation: fallback-out .18s ease both; }
  .page-arrival main { animation: fallback-in .42s cubic-bezier(.15,.7,.2,1) both; }

  .first-arrival .hero-photo picture { animation: open-picture .98s cubic-bezier(.16,.72,.14,1) both; }
  .first-arrival .hero-copy h1 b { animation: open-word .8s cubic-bezier(.16,.78,.22,1) both; }
  .first-arrival .hero-copy h1 span:first-child b { animation-delay: .1s; }
  .first-arrival .hero-copy h1 span:last-child b { animation-delay: .19s; }
  .first-arrival .hero-copy h1 span { overflow: clip; }
  .first-arrival .hero-copy .origin { animation: open-label .6s .02s ease both; }
  .first-arrival .hero-copy .geo { animation: open-label .65s .28s ease both; }
  .first-arrival .mast-inner>.brand { animation: open-label .56s .04s ease both; }
  .first-arrival .desktop-nav>a,.first-arrival .desktop-nav>.nav-portfolio,
  .first-arrival .mast-inner>.action,.first-arrival .mobile-nav>summary { animation: open-label .56s .12s ease both; }
  .first-arrival .desktop-nav>a:nth-child(2) { animation-delay: .17s; }
  .first-arrival .desktop-nav>a:nth-child(3) { animation-delay: .22s; }
  .first-arrival .eg-intro h1,.first-arrival .eg-case h1 { animation: open-heading .8s .08s cubic-bezier(.15,.75,.18,1) both; }

  @keyframes page-out {
    from { transform: none; opacity: 1; }
    to { transform: translateY(-2.2vh) scale(.992); opacity: .38; }
  }
  @keyframes page-in {
    from { clip-path: inset(0 0 100% 0); transform: translateY(2.8vh); }
    to { clip-path: inset(0); transform: none; }
  }
  @keyframes fallback-out { to { opacity: .5; } }
  @keyframes fallback-in { from { opacity: .3; translate: 0 14px; } }
  @keyframes open-picture {
    from { clip-path: inset(0 0 0 7%); scale: 1.055; opacity: .2; }
    to { clip-path: inset(0); scale: 1; opacity: 1; }
  }
  @keyframes open-word {
    from { translate: 0 85%; opacity: .1; }
    to { translate: 0; opacity: 1; }
  }
  @keyframes open-label { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: none; } }
  @keyframes open-heading { from { opacity: .1; translate: 0 22px; } to { opacity: 1; translate: none; } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),::view-transition-new(*),::view-transition-old(*) { animation-duration: .001ms !important; }
}
