/* Viewport-led entrances: content plays once, when it is actually in view. */
@view-transition { navigation: auto; }
/* Page changes: the header stays put while the page underneath rises into place. */
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(root) { animation: page-out 200ms ease both; }
::view-transition-new(root) { animation: page-in 460ms var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes headline-in {
  from { clip-path: inset(0 0 100% 0); transform: translateY(32px); }
  to { clip-path: inset(-12% -4% -28% -4%); transform: none; }
}
@keyframes word-in { from { opacity: 0; transform: translateY(45%); } }
@keyframes drift { to { transform: translate(-35%, 45%); } }
@keyframes scroll-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes arrive {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes screen-arrive {
  from { opacity: 0; transform: translateY(32px) scale(.98); }
}
@keyframes screen-rise {
  from { opacity: 0; transform: translateY(140px) rotateX(46deg) scale(.9); }
}
@keyframes glare { to { background-position: -130% 0; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes language-open {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

/* The landing plays from the first frame, without waiting for scripts. */
.landing .eyebrow { animation: arrive 700ms 200ms var(--ease-out) both; }
.landing h1 { animation: headline-in 1100ms 280ms var(--ease-out) both; }
.landing h1 em { display: inline-block; animation: word-in 1100ms 560ms var(--ease-out) both; }
.landing .hero-lead { animation: arrive 800ms 520ms var(--ease-out) both; }
.landing .actions { animation: arrive 800ms 640ms var(--ease-out) both; }
/* Backwards only, so the scroll can turn the screen once it has arrived. */
.landing-screen { animation: screen-rise 1600ms 250ms var(--ease-out) backwards; }
.landing-screen:after { animation: glare 1500ms 1300ms ease-in-out both; }
/* Backwards only, so the scroll can lift the phone once it has arrived. */
.landing-phone { animation: screen-arrive 1100ms 750ms var(--ease-out) backwards; }
.landing-points li { animation: arrive 700ms var(--ease-out) both; }
.landing-points li:nth-child(1) { animation-delay: 760ms; }
.landing-points li:nth-child(2) { animation-delay: 860ms; }
.landing-points li:nth-child(3) { animation-delay: 960ms; }
.landing-points li:nth-child(4) { animation-delay: 1060ms; }
.ticket-stack.is-live .order-ticket { transition: transform 800ms var(--ease-out), opacity 500ms ease; }
.site-header, .site-header :is(.brand, .main-nav a, .language-switch, .menu-toggle, .header-actions > .button) {
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
/* Section headings rise out of a mask as their block comes into view. */
.motion-ready [data-reveal] h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(.4em);
  transition: clip-path 1000ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 100ms);
}
.motion-ready [data-reveal].is-visible h2 { clip-path: inset(-20% -5% -30% -5%); transform: none; }
.cta-inner:before { animation: drift 16s ease-in-out infinite alternate; }
.flow-node { transition: border-color 200ms ease, transform 200ms var(--ease-out); }
.flow-section:not(.is-live) .flow-lines circle { visibility: hidden; }
@keyframes flow-drop { to { background-position: 50% calc(100% + 12px), 50% 0; } }
@media (max-width: 900px) {
  .flow-hub:before, .flow-hub:after { animation: flow-drop 1.4s linear infinite; }
  .flow-hub:after { animation-delay: .7s; }
}
.queue-state, .queue-demo i { transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease; }
.plan-panel:not([hidden]) { animation: panel-in 450ms var(--ease-out); }
/* Interface styles cross-fade: the old screen stays until the new one has faded in over it. */
.skin-stage .scene { transition: opacity 500ms ease, visibility 0s linear 0s; }
.skin-stage .scene[hidden] { transition: opacity 500ms ease, visibility 0s linear 500ms; }
.tab-switch [role=tab], .billing-switch button, .stepper button { transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 650ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.motion-setup [data-reveal], .motion-setup [data-reveal] h2 { transition: none !important; }
.motion-ready .mobile-scene[data-reveal] { transform: translateY(44px) scale(.96); }
.motion-ready .mobile-scene[data-reveal].is-visible { transform: none; }
/* Each screen wipes across the last; its picture settles as it arrives. */
.story-frame, .story-frame > * { transition: transform 900ms cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.story-frame .scene { transform: scale(1.06); transition: transform 1400ms var(--ease-out); }
.story-frame.is-active .scene, .story-frame.is-past .scene { transform: none; }
.screen-dialog[open] { animation: arrive 250ms var(--ease-out); }
.language-menu:not([hidden]) { animation: language-open 160ms var(--ease-out); }
.screen-expand, .screen-dialog-close, .back-to-top {
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.screen-expand:active, .screen-dialog-close:active, .back-to-top:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .button .icon, .text-link .icon { transition: transform 160ms var(--ease-out); }
  .button:hover .icon, .text-link:hover .icon { transform: translateX(3px); }
}
@media (max-width: 800px) {
  .motion-ready [data-reveal] { transition-delay: 0ms; }
  .landing-screen { animation-name: screen-arrive; animation-duration: 900ms; }
}

/* A thin reading-progress line under the header, where the browser can drive it from the scroll. */
@supports (animation-timeline: scroll()) {
  .site-header:after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform-origin: 0 50%;
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }
}
