/* Seamless moves (see seamless.js). Loaded last so it wins over older rules.
   Nothing here blurs or fades to black: the mark flies, and the world opens out
   of it (or closes back into it). */
@view-transition{navigation:auto}
::view-transition-group(dreamers-mark){animation-duration:1.35s;animation-timing-function:cubic-bezier(.65,0,.2,1)}
::view-transition-old(dreamers-mark),::view-transition-new(dreamers-mark){width:100%;height:100%;object-fit:cover;animation-duration:1.35s;animation-timing-function:cubic-bezier(.65,0,.2,1)}

/* Into a world: the threshold stays put while the world opens from the mark. */
html.seamless-in::view-transition-old(root){animation:none}
html.seamless-in::view-transition-new(root){animation:seamless-open 1.15s .5s cubic-bezier(.7,0,.2,1) both}
/* Back: the world closes into its mark, then the mark flies home into the oval. */
html.seamless-out::view-transition-new(root){animation:none}
html.seamless-out::view-transition-old(root){z-index:1;animation:seamless-close 1.05s cubic-bezier(.7,0,.2,1) both}
html.seamless-out::view-transition-group(dreamers-mark),
html.seamless-out::view-transition-old(dreamers-mark),
html.seamless-out::view-transition-new(dreamers-mark){animation-delay:.45s}

/* Logos fly as one sharp copy (the large one on the world page), never two blended ones. */
html.seamless-logo::view-transition-old(dreamers-mark),html.seamless-logo::view-transition-new(dreamers-mark){object-fit:contain}
html.seamless-logo.seamless-in::view-transition-old(dreamers-mark){animation:none;opacity:0}
html.seamless-logo.seamless-in::view-transition-new(dreamers-mark){animation:none}
html.seamless-logo.seamless-out::view-transition-new(dreamers-mark){animation:none;opacity:0}
html.seamless-logo.seamless-out::view-transition-old(dreamers-mark){animation:none}

/* Clover's photo flies as a soft-edged copy (seamless.js), never as the hard
   rectangle of its panel. It swaps with the oval while still small (never two
   faces at once) and hands over to the real photo once the world has opened
   around it. */
.artist-entry .dimension-art>img.seamless-photo{-webkit-mask-image:radial-gradient(closest-side at 60% 42%,#000 55%,transparent 100%)!important;mask-image:radial-gradient(closest-side at 60% 42%,#000 55%,transparent 100%)!important}
html.seamless-in:not(.seamless-logo)::view-transition-old(dreamers-mark){animation:seamless-photo-leave .3s linear both}
html.seamless-in:not(.seamless-logo)::view-transition-new(dreamers-mark){animation:seamless-photo-arrive 1.35s linear both}
html.seamless-out:not(.seamless-logo)::view-transition-old(dreamers-mark){animation:seamless-photo-lift 1.35s .45s linear both}
html.seamless-out:not(.seamless-logo)::view-transition-new(dreamers-mark){animation:seamless-photo-land 1.35s .45s linear both}
@keyframes seamless-photo-leave{from{opacity:1}to{opacity:0}}
@keyframes seamless-photo-arrive{0%{opacity:0}18%,72%{opacity:1}100%{opacity:0}}
@keyframes seamless-photo-lift{0%{opacity:0}20%,82%{opacity:1}100%{opacity:0}}
@keyframes seamless-photo-land{0%,80%{opacity:0}100%{opacity:1}}

@keyframes seamless-open{
  from{clip-path:circle(0 at var(--seamless-x,50%) var(--seamless-y,45%))}
  to{clip-path:circle(150vmax at var(--seamless-x,50%) var(--seamless-y,45%))}
}
@keyframes seamless-close{
  from{clip-path:circle(150vmax at var(--seamless-x,50%) var(--seamless-y,45%))}
  to{clip-path:circle(0 at var(--seamless-x,50%) var(--seamless-y,45%))}
}

/* The entrance and threshold keep their motion but lose their blur. */
@keyframes enterBloom{0%{opacity:0;scale:.94}to{opacity:1;scale:1}}
@keyframes riverInvitation{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}

/* Dust moves (seamless.js): one body of particles flies from mark to mark over the pages; nothing goes dark.
   The page change under it is a short cross-fade; the body itself is never part of that fade. */
html.seamless-fade::view-transition-old(root),html.seamless-fade::view-transition-new(root){animation-duration:.45s;animation-timing-function:ease-in-out}
::view-transition-old(dreamers-dust){display:none}
::view-transition-new(dreamers-dust),::view-transition-group(dreamers-dust){animation:none}
/* the mark the body is forming stays unseen until the body is on it (seamless.js then fades it in) */
html[data-seamless-landing=dreamers] [data-journey-anchor=dreamers],html[data-seamless-landing=triptuner] [data-journey-anchor=triptuner],
html[data-seamless-landing=frequencies] [data-journey-anchor=frequencies],html[data-seamless-landing=shop] [data-journey-anchor=shop],
html[data-seamless-landing=tickets] [data-journey-anchor=tickets],html[data-seamless-landing=websites] [data-journey-anchor=websites],
html[data-seamless-landing=clover] .artist-entry .dimension-art{opacity:0!important}
.dust-stage{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;pointer-events:none}
.dust-stage>canvas{display:block;width:100%;height:100%}
/* The threshold dialog sits in the top layer, above the cover: keep it unseen
   until the dust stage (also top layer, raised after it) takes over. */
html.seamless-dust dialog.world-welcome{opacity:0!important}
