.pi-brand-splash {
  display: none;
}

@media screen and (prefers-reduced-motion: no-preference) {
  .pi-brand-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid !important;
    place-items: center;
    pointer-events: none;
    background: #fff;
    animation: pi-splash-exit 1100ms ease-out both;
  }

  .pi-brand-splash-logo {
    display: grid;
    width: clamp(136px, 18vw, 208px);
    max-width: calc(100vw - 40px);
  }

  .pi-brand-splash-logo > * {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: auto;
  }

  .pi-brand-splash-mark {
    animation: pi-splash-trace-handoff 820ms step-end both;
  }

  .pi-brand-splash-trace {
    stroke-dasharray: 1;
    animation: pi-splash-trace 790ms linear both;
  }

  .pi-brand-splash-core {
    animation: pi-splash-core-fill 160ms 650ms ease-out both;
  }

  .pi-brand-splash-symbol {
    animation: pi-splash-symbol-show 820ms step-end both;
  }

  body:focus-within > .pi-brand-splash {
    visibility: hidden !important;
  }
}

@keyframes pi-splash-trace {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes pi-splash-core-fill {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pi-splash-trace-handoff {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes pi-splash-symbol-show {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pi-splash-exit {
  0%, 90% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
