/* Codiav page transition — progress bar + soft veil */
.pt-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2147483646;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  transition: opacity 0.2s ease;
}

.pt-bar.is-active {
  opacity: 1;
}

.pt-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa 55%, #93c5fd);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
  transform-origin: left center;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pt-veil {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(15, 23, 42, 0.35), transparent 70%),
    rgba(6, 8, 15, 0.28);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pt-veil.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pt-veil__inner {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pt-veil__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.75);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.pt-veil__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-top-color: #60a5fa;
  animation: ptSpin 0.7s linear infinite;
}

.pt-veil__label {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
}

@keyframes ptSpin {
  to { transform: rotate(360deg); }
}

html.pt-leave body {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

html.pt-ready body {
  animation: ptBodyIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ptBodyIn {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-bar__fill,
  .pt-veil,
  html.pt-leave body,
  html.pt-ready body {
    transition: none !important;
    animation: none !important;
  }
  .pt-veil__spinner {
    animation: none;
    border-top-color: #93c5fd;
  }
}
