/* PatternDesk splash screen */
html.pd-splash-active,
html.pd-splash-active body {
  overflow: hidden;
}

.pd-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a7a8a 0%, transparent 55%),
    linear-gradient(165deg, #062f38 0%, #0a4a5a 42%, #0f5c6e 100%);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.pd-splash.is-on {
  opacity: 1;
  pointer-events: auto;
}

.pd-splash.is-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.pd-splash.is-done {
  display: none;
}

.pd-splash-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 80%, rgba(29, 209, 184, 0.28), transparent 42%),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.12), transparent 36%);
  animation: pd-splash-aurora 1.4s ease-in-out both;
  pointer-events: none;
}

.pd-splash-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.pd-splash-rings span {
  position: absolute;
  width: min(72vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  animation: pd-splash-ring 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pd-splash-rings span:nth-child(2) {
  width: min(88vw, 360px);
  animation-delay: 0.22s;
}

.pd-splash-rings span:nth-child(3) {
  width: min(104vw, 440px);
  animation-delay: 0.42s;
}

.pd-splash-stage {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.pd-splash-logo-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  margin-bottom: 0.35rem;
  animation: pd-splash-logo-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pd-splash-logo-wrap .pd-logo-art {
  width: 124px;
  height: 124px;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
  overflow: visible;
}

.pd-splash-logo {
  width: 112px;
  height: 112px;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

/* Animated logo art */
.pd-art-pattern {
  transform-origin: 190px 240px;
  animation: pd-art-pattern-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.pd-art-stitch {
  stroke-dashoffset: 120;
  animation: pd-art-stitch 0.75s ease 0.25s both;
}

.pd-art-blade-l {
  transform-origin: 268px 268px;
  animation: pd-art-cut-l 0.7s cubic-bezier(0.45, 0.05, 0.25, 1) 0.2s both;
}

.pd-art-blade-r {
  transform-origin: 268px 268px;
  animation: pd-art-cut-r 0.7s cubic-bezier(0.45, 0.05, 0.25, 1) 0.2s both;
}

.pd-art-pivot {
  animation: pd-art-pivot 0.7s ease 0.2s both;
}

.pd-art-bill {
  transform-origin: 392px 374px;
  animation: pd-art-bill 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.pd-art-scissors {
  animation: pd-art-scissors-settle 0.45s ease 0.85s both;
}

@keyframes pd-art-pattern-in {
  from { opacity: 0; transform: translate(-18px, 10px) rotate(-8deg) scale(0.86); }
  to { opacity: 1; transform: none; }
}

@keyframes pd-art-stitch {
  from { stroke-dashoffset: 160; opacity: 0.2; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes pd-art-cut-l {
  0% { transform: rotate(18deg); }
  35% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pd-art-cut-r {
  0% { transform: rotate(-18deg); }
  35% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pd-art-pivot {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18); }
}

@keyframes pd-art-bill {
  from { opacity: 0; transform: translate(12px, 28px) scale(0.55) rotate(12deg); }
  70% { opacity: 1; transform: translate(-2px, -4px) scale(1.06) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}

@keyframes pd-art-scissors-settle {
  from { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  40% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.45)); }
  to { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

.pd-splash-shine {
  position: absolute;
  inset: -8%;
  border-radius: 28%;
  background: linear-gradient(
    125deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: pd-splash-shine 1.1s ease 1.05s both;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.pd-splash-name {
  margin: 0;
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f4fffc;
  animation: pd-splash-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.pd-splash-tag {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 255, 251, 0.72);
  animation: pd-splash-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.pd-splash-bar {
  width: min(160px, 42vw);
  height: 3px;
  margin-top: 1rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  animation: pd-splash-rise 0.6s ease 0.65s both;
}

.pd-splash-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ef0df, #ffffff);
  animation: pd-splash-progress 1.05s cubic-bezier(0.4, 0, 0.2, 1) 0.25s both;
}

@keyframes pd-splash-aurora {
  0% { opacity: 0.55; transform: scale(1) translate3d(0, 0, 0); }
  50% { opacity: 1; transform: scale(1.06) translate3d(2%, -1%, 0); }
  100% { opacity: 0.7; transform: scale(1.02) translate3d(-1%, 1%, 0); }
}

@keyframes pd-splash-ring {
  0% { opacity: 0; transform: scale(0.72); }
  35% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes pd-splash-logo-in {
  0% { opacity: 0; transform: scale(0.62) translateY(18px); }
  70% { opacity: 1; transform: scale(1.06) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pd-splash-logo-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes pd-splash-shine {
  0% { transform: translateX(-130%) rotate(12deg); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(130%) rotate(12deg); opacity: 0; }
}

@keyframes pd-splash-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pd-splash-progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-splash-aurora,
  .pd-splash-rings span,
  .pd-splash-logo-wrap,
  .pd-splash-logo,
  .pd-splash-shine,
  .pd-splash-name,
  .pd-splash-tag,
  .pd-splash-bar,
  .pd-splash-bar i,
  .pd-art-pattern,
  .pd-art-stitch,
  .pd-art-blade-l,
  .pd-art-blade-r,
  .pd-art-pivot,
  .pd-art-bill,
  .pd-art-scissors {
    animation: none !important;
  }
  .pd-splash-logo-wrap,
  .pd-splash-name,
  .pd-splash-tag,
  .pd-splash-bar,
  .pd-art-pattern,
  .pd-art-bill {
    opacity: 1;
    transform: none;
  }
  .pd-splash-bar i { width: 100%; }
}
