:root {
  --pv-ci-cyan: #21d4fd;
  --pv-ci-violet: #7772ff;
  --pv-ci-gold: #f6b942;
}

html.pv-cinematic-pending,
body.pv-cinematic-open {
  background: #050b14;
}

html.pv-cinematic-pending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4999;
  background: radial-gradient(circle at 50% 48%, #10233d 0%, #050b14 58%);
}

body.pv-cinematic-open {
  overflow: hidden !important;
}

.pv-cinematic,
.pv-cinematic * {
  box-sizing: border-box;
}

.pv-cinematic {
  position: fixed;
  inset: 0;
  z-index: 5000;
  min-width: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(27, 59, 99, .52), transparent 44%),
    linear-gradient(145deg, #050a12 0%, #071322 52%, #040910 100%);
  opacity: 1;
  isolation: isolate;
  transition: opacity .18s ease, filter .18s ease;
}

.pv-cinematic.is-leaving {
  opacity: 0;
  filter: blur(4px);
}

.pv-ci-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(76vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(70, 104, 255, .16);
  filter: blur(92px);
  opacity: .5;
  transform: translate(-50%, -50%) scale(.86);
}

.is-running .pv-ci-glow {
  animation: pvCiAmbient 3.82s ease-in-out both;
}

.pv-ci-grid {
  position: absolute;
  inset: -25%;
  z-index: -2;
  opacity: .14;
  background-image:
    linear-gradient(rgba(126, 160, 202, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 160, 202, .11) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 64%);
  transform: perspective(720px) rotateX(60deg) translateY(24%);
  transform-origin: 50% 72%;
}

.pv-ci-skip {
  position: absolute;
  z-index: 8;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: #b8c7d8;
  border: 1px solid rgba(190, 207, 226, .18);
  border-radius: 50%;
  background: rgba(6, 15, 27, .58);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.pv-ci-skip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pv-ci-skip:hover {
  color: #fff;
  border-color: rgba(33, 212, 253, .48);
  background: rgba(18, 39, 65, .78);
  transform: scale(1.04);
}

.pv-ci-skip:focus-visible {
  outline: 3px solid rgba(33, 212, 253, .55);
  outline-offset: 3px;
}

.pv-ci-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.pv-ci-composition {
  position: relative;
  width: min(820px, 92vw, 99.7vh);
  aspect-ratio: 720 / 520;
  opacity: 0;
  transform: scale(.965);
}

.is-running .pv-ci-composition {
  animation: pvCiCompositionIn .7s .04s cubic-bezier(.2, .82, .24, 1) forwards;
}

.pv-ci-network {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .28));
}

.pv-ci-street {
  fill: none;
  stroke: rgba(122, 153, 190, .09);
  stroke-linecap: round;
}

.pv-ci-street-one {
  stroke-width: 18;
}

.pv-ci-street-two {
  stroke-width: 10;
}

.pv-ci-street-three {
  stroke-width: 7;
}

.pv-ci-route,
.pv-ci-route-flow,
.pv-ci-connector {
  fill: none;
  stroke-linecap: round;
}

.pv-ci-route {
  stroke: url(#pvCiRouteGradient);
  stroke-width: 4.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: url(#pvCiRouteGlow);
}

.is-running .pv-ci-route {
  animation: pvCiRouteDraw 2.65s .42s cubic-bezier(.22, .66, .2, 1) forwards;
}

.pv-ci-route-flow {
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 2;
  stroke-dasharray: .018 .09;
  stroke-dashoffset: 1;
  opacity: 0;
  filter: url(#pvCiRouteGlow);
}

.is-running .pv-ci-route-flow {
  animation: pvCiRouteFlow 3.1s .62s linear forwards;
}

.pv-ci-connector {
  stroke: rgba(138, 163, 255, .56);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: url(#pvCiRouteGlow);
}

.is-running .pv-ci-connector-survey {
  animation: pvCiRouteDraw .72s 1.05s ease-out forwards;
}

.is-running .pv-ci-connector-camera {
  animation: pvCiRouteDraw .72s 1.62s ease-out forwards;
}

.is-running .pv-ci-connector-gps {
  animation: pvCiRouteDraw .72s 2.19s ease-out forwards;
}

.pv-ci-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.pv-ci-node-glow {
  fill: rgba(33, 212, 253, .14);
  stroke: rgba(33, 212, 253, .18);
}

.pv-ci-node-core {
  fill: rgba(6, 17, 31, .96);
  stroke: rgba(33, 212, 253, .68);
  stroke-width: 1.5;
}

.pv-ci-node path {
  fill: none;
  stroke: var(--pv-ci-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pv-ci-camera-lens,
.pv-ci-gps-center {
  fill: none;
  stroke: var(--pv-ci-violet);
  stroke-width: 2;
}

.pv-ci-node-camera .pv-ci-node-glow {
  fill: rgba(119, 114, 255, .14);
  stroke: rgba(119, 114, 255, .18);
}

.pv-ci-node-camera .pv-ci-node-core {
  stroke: rgba(119, 114, 255, .72);
}

.pv-ci-node-camera path {
  stroke: var(--pv-ci-violet);
}

.pv-ci-node-gps .pv-ci-node-glow {
  fill: rgba(246, 185, 66, .12);
  stroke: rgba(246, 185, 66, .18);
}

.pv-ci-node-gps .pv-ci-node-core {
  stroke: rgba(246, 185, 66, .72);
}

.pv-ci-node-gps path,
.pv-ci-node-gps .pv-ci-gps-center {
  stroke: var(--pv-ci-gold);
}

.is-running .pv-ci-node-survey {
  animation: pvCiNodeIn .72s .8s cubic-bezier(.18, .78, .24, 1) forwards;
}

.is-running .pv-ci-node-camera {
  animation: pvCiNodeIn .72s 1.37s cubic-bezier(.18, .78, .24, 1) forwards;
}

.is-running .pv-ci-node-gps {
  animation: pvCiNodeIn .72s 1.94s cubic-bezier(.18, .78, .24, 1) forwards;
}

.is-running .pv-ci-node-survey .pv-ci-node-glow {
  animation: pvCiNodePulse 1.4s 1.35s ease-in-out infinite;
}

.is-running .pv-ci-node-camera .pv-ci-node-glow {
  animation: pvCiNodePulse 1.4s 1.92s ease-in-out infinite;
}

.is-running .pv-ci-node-gps .pv-ci-node-glow {
  animation: pvCiNodePulse 1.4s 2.49s ease-in-out infinite;
}

.pv-ci-center {
  position: absolute;
  top: 53.5%;
  left: 50%;
  display: grid;
  width: clamp(90px, 14vw, 138px);
  aspect-ratio: 1;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.56);
}

.is-running .pv-ci-center {
  animation: pvCiCenterIn .82s .12s cubic-bezier(.18, .9, .24, 1.12) forwards;
}

.pv-ci-center img {
  position: relative;
  z-index: 5;
  width: 56%;
  height: 56%;
  filter: drop-shadow(0 18px 34px rgba(63, 104, 255, .54));
}

.pv-ci-center-halo {
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background: rgba(72, 108, 255, .68);
  filter: blur(30px);
  opacity: .34;
}

.is-running .pv-ci-center-halo {
  animation: pvCiCenterBreath 3.15s .58s ease-in-out both;
}

.pv-ci-center-signal {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(33, 212, 253, .3);
  border-radius: 50%;
  opacity: 0;
}

.is-running .pv-ci-center-signal {
  animation: pvCiCenterSignal 1.05s 2.66s ease-out forwards;
}

.pv-ci-center-ring {
  position: absolute;
  border: 1px solid rgba(78, 122, 255, .28);
  border-radius: 50%;
}

.pv-ci-center-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pv-ci-cyan);
  box-shadow: 0 0 15px var(--pv-ci-cyan);
}

.pv-ci-center-ring-one {
  inset: 3%;
}

.pv-ci-center-ring-two {
  inset: 16%;
  border-color: rgba(246, 185, 66, .22);
}

.pv-ci-center-ring-two::after {
  background: var(--pv-ci-gold);
  box-shadow: 0 0 15px var(--pv-ci-gold);
}

.is-running .pv-ci-center-ring-one {
  animation: pvCiSpin 4.4s .3s linear infinite;
}

.is-running .pv-ci-center-ring-two {
  animation: pvCiSpinReverse 3.7s .3s linear infinite;
}

.pv-ci-progress {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(160, 181, 207, .1);
}

.pv-ci-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pv-ci-cyan), var(--pv-ci-violet), var(--pv-ci-gold));
  box-shadow: 0 0 12px rgba(33, 212, 253, .42);
  transform: scaleX(0);
  transform-origin: left;
}

.is-running .pv-ci-progress span {
  animation: pvCiProgress 3.82s linear forwards;
}

.pv-ci-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes pvCiCompositionIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes pvCiRouteDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes pvCiRouteFlow {
  0% { opacity: 0; stroke-dashoffset: 1; }
  16% { opacity: .72; }
  100% { opacity: .72; stroke-dashoffset: -1; }
}

@keyframes pvCiNodeIn {
  0% { opacity: 0; scale: .62; }
  58% { opacity: .72; }
  100% { opacity: 1; scale: 1; }
}

@keyframes pvCiNodePulse {
  0%, 100% { opacity: .52; transform: scale(.92); transform-origin: center; }
  50% { opacity: 1; transform: scale(1.16); transform-origin: center; }
}

@keyframes pvCiCenterIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.56); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pvCiCenterBreath {
  0% { opacity: .28; transform: scale(.86); }
  52% { opacity: .66; transform: scale(1.18); }
  100% { opacity: .42; transform: scale(1); }
}

@keyframes pvCiCenterSignal {
  0% { opacity: 0; transform: scale(.55); }
  36% { opacity: .9; }
  100% { opacity: 0; transform: scale(2.45); }
}

@keyframes pvCiSpin {
  to { transform: rotate(360deg); }
}

@keyframes pvCiSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes pvCiProgress {
  to { transform: scaleX(1); }
}

@keyframes pvCiAmbient {
  0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(.86); }
  50% { opacity: .66; transform: translate(-50%, -50%) scale(1.04); }
}

@media (max-width: 430px) {
  .pv-ci-composition {
    width: 96vw;
  }

  .pv-ci-skip {
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-cinematic *,
  .pv-cinematic *::before,
  .pv-cinematic *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .pv-ci-composition,
  .pv-ci-center,
  .pv-ci-node {
    opacity: 1;
  }

  .pv-ci-composition {
    transform: none;
  }

  .pv-ci-center {
    transform: translate(-50%, -50%);
  }

  .pv-ci-route,
  .pv-ci-connector {
    stroke-dashoffset: 0;
  }

  .pv-ci-route-flow {
    display: none;
  }

  .pv-ci-progress span {
    transform: scaleX(1);
  }
}
