.cloud-brand-loader {
  display: none;
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .cloud-brand-loader:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    overflow: clip;
    pointer-events: none;
  }
  .cloud-brand-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #242037, #151323 65%);
  }
  .cloud-loader-origin {
    position: relative;
    width: clamp(64px, 8vw, 96px);
    aspect-ratio: 208 / 172;
  }
  .cloud-loader-rig,
  .cloud-loader-symbol {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
  }
  /* Let the page through even if hydration or the wordmark request stalls. */
  .cloud-brand-loader:not([data-travel]) {
    animation: cloud-loader-fade 200ms ease 3200ms forwards;
  }
  .cloud-brand-loader:not([data-travel]) .cloud-loader-symbol {
    animation: cloud-loader-breathe 1200ms ease-in-out infinite;
  }
  .cloud-brand-loader[data-travel]:not([hidden]) + .cloud-landing .masthead .brand img {
    visibility: hidden;
  }
  .cloud-brand-loader[data-travel='direct'] {
    --flight: 680ms cubic-bezier(.77, 0, .175, 1) 320ms both;
  }
  .cloud-brand-loader[data-travel='direct']::before {
    animation: cloud-loader-fade var(--flight);
  }
  .cloud-brand-loader[data-travel='direct'] .cloud-loader-rig {
    animation: cloud-loader-dock var(--flight);
  }

  /* The close-up and the illustration share one coordinate system until takeoff. */
  .cloud-intro-plate {
    position: absolute;
    inset: 0 auto auto 0;
    width: 1920px;
    height: 1080px;
    transform-origin: 0 0;
    pointer-events: none;
  }
  .cloud-intro-camera {
    opacity: 0;
    mask-image:
      radial-gradient(ellipse 36% 56% at 85% 34%, #000 50%, transparent 96%),
      linear-gradient(to right, #000 93%, transparent),
      linear-gradient(to bottom, transparent, #000 12%);
    mask-composite: intersect;
  }
  .cloud-intro-camera > img:first-child {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
  }
  .cloud-intro-grid {
    position: absolute;
    left: 1572px;
    top: 218px;
    width: 166px;
    height: 202px;
    max-width: none;
  }
  .hero-media > .cloud-intro-plate::after {
    content: '';
    position: absolute;
    left: 1626px;
    top: 312px;
    width: 74px;
    height: 38px;
    background: radial-gradient(ellipse, #ffb4f6, #ed39d75c 25%, transparent 70%);
    transform: rotate(25deg);
    opacity: 0;
  }
  .cloud-brand-loader[data-travel='laptop']::before {
    animation: cloud-scene-unveil 190ms ease-in-out 695ms both;
  }
  .cloud-brand-loader[data-travel='laptop'] .cloud-loader-rig {
    animation:
      cloud-lens 300ms ease-in-out both,
      cloud-laptop-meet 540ms cubic-bezier(.42, 0, .22, 1) 300ms forwards,
      cloud-laptop-dock 600ms cubic-bezier(.52, .015, .18, 1) 900ms forwards,
      cloud-flight-arc 600ms linear 900ms forwards;
  }
  .cloud-brand-loader[data-travel='laptop'] .cloud-intro-camera {
    animation: cloud-camera-reveal 900ms linear both;
  }
  .cloud-brand-loader[data-travel='laptop'] .cloud-symbol-accent {
    animation: cloud-pixel-flash 380ms ease-out 765ms;
  }
  .cloud-brand-loader[data-travel='laptop'] + .cloud-landing .cloud-intro-plate::after {
    animation: cloud-glass-reflection 440ms ease-out 860ms;
  }
  .cloud-landing .masthead .brand img[data-revealing] {
    animation: cloud-wordmark-reveal 680ms var(--ease) backwards;
  }

  @keyframes cloud-loader-breathe {
    50% { opacity: .72; }
  }
  @keyframes cloud-loader-fade {
    0%, 25% { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; }
  }
  @keyframes cloud-loader-dock {
    from { transform: none; }
    to { transform: var(--dock-pose); }
  }
  @keyframes cloud-lens {
    from { transform: none; }
    to { transform: translate(-22%, -22%) scale(1.44); }
  }
  @keyframes cloud-laptop-meet {
    from { transform: translate(-22%, -22%) scale(1.44); }
    to { transform: var(--glass-pose); }
  }
  @keyframes cloud-camera-reveal {
    0%, 26% { opacity: 0; }
    67%, 93% { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
  }
  @keyframes cloud-scene-unveil {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  @keyframes cloud-laptop-dock {
    from { transform: var(--glass-pose); }
    to { transform: var(--dock-pose); }
  }
  @keyframes cloud-flight-arc {
    from { translate: 0 0; animation-timing-function: ease-out; }
    40% { translate: 0 var(--arc-rise); animation-timing-function: ease-in-out; }
    80%, to { translate: 0 0; }
  }
  @keyframes cloud-pixel-flash {
    from, to { fill: #d117ca; }
    40% { fill: #ffb8f6; }
  }
  @keyframes cloud-glass-reflection {
    0%, 100% { opacity: 0; }
    22% { opacity: .8; }
  }
  @keyframes cloud-wordmark-reveal {
    from {
      /* The center of the striped S is 10.4% across the artwork. */
      transform: translateX(calc(50% - 10.4%));
      clip-path: polygon(0 0, 22% 0, 18% 100%, 0 100%);
    }
    to {
      transform: translateX(0);
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
  }
}
