/* Member web preload — matches landing site-splash (Valentina Rexhaj Akademi) */
:root {
  --deep: #5e5ba8;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-silk: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-swift: cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
  margin: 0;
  height: 100%;
  background:
    radial-gradient(1200px 620px at 50% 14%, rgba(255, 255, 255, 0.98), rgba(245, 246, 254, 0.92) 46%, rgba(236, 238, 249, 0.94) 100%),
    linear-gradient(180deg, rgba(240, 242, 252, 0.9), rgba(246, 247, 255, 0.94));
}

body.splash-active {
  overflow: hidden;
}

.site-splash {
  --splash-p: 0;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 620px at 50% 14%, rgba(255, 255, 255, 0.98), rgba(245, 246, 254, 0.92) 46%, rgba(236, 238, 249, 0.94) 100%),
    linear-gradient(180deg, rgba(240, 242, 252, 0.9), rgba(246, 247, 255, 0.94));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.72s var(--ease-premium), visibility 0.72s var(--ease-premium);
  will-change: opacity;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 260px at 50% 42%, rgba(185, 168, 255, 0.22), rgba(255, 255, 255, 0) 68%),
    radial-gradient(900px 420px at 50% 78%, rgba(112, 108, 189, 0.12), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28));
}

.site-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(72% 72% at 50% 46%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  opacity: 0;
  transition: opacity 0.24s var(--ease-swift);
}

.site-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-splash.light-wash::after {
  opacity: 0;
  animation: splashSunriseMerge 0.98s var(--ease-premium) forwards;
}

.site-splash.is-transitioning .splash-aura {
  animation: splashAuraReleaseSoft 1.05s var(--ease-premium) forwards;
}

.site-splash.is-transitioning::before {
  opacity: 0.08;
  transition: opacity 0.5s var(--ease-swift);
}

.site-splash.text-fade .splash-wordmark {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-swift), transform 0.4s var(--ease-swift);
}

.site-splash.text-fade .splash-progress {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s var(--ease-swift), transform 0.28s var(--ease-swift);
}

.splash-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    linear-gradient(90deg, rgba(109, 105, 181, 0.08) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(180deg, rgba(109, 105, 181, 0.08) 1px, transparent 1px) 0 0 / 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 26%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 40%, black 26%, transparent 74%);
}

.splash-scene {
  position: relative;
  width: min(88vw, 640px);
  min-height: 440px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.splash-aura {
  position: relative;
  width: min(68vw, 420px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  filter: saturate(1.02);
  will-change: transform, opacity, filter;
  animation: splashAuraFieldDrift 8.6s ease-in-out infinite;
}

.splash-aura-layer,
.splash-aura-flare {
  position: absolute;
  inset: 0;
  border-radius: 56% 44% 52% 48% / 47% 55% 45% 53%;
  pointer-events: none;
}

.splash-aura-layer--1 {
  background:
    radial-gradient(54% 50% at 49% 46%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 58%),
    radial-gradient(66% 62% at 52% 50%, rgba(124, 119, 205, 0.22), rgba(255, 255, 255, 0) 76%);
  filter: blur(5px);
  opacity: 0.94;
  transform: translate3d(-1px, 1px, 0);
  animation: splashAuraBreathOne 7.2s ease-in-out infinite;
}

.splash-aura-layer--2 {
  inset: 8%;
  border-radius: 50% 50% 46% 54% / 58% 43% 57% 42%;
  background:
    radial-gradient(72% 66% at 43% 49%, rgba(185, 168, 255, 0.22), rgba(255, 255, 255, 0) 72%),
    radial-gradient(70% 68% at 58% 55%, rgba(198, 231, 255, 0.16), rgba(255, 255, 255, 0) 74%);
  filter: blur(12px);
  opacity: 0.7;
  transform: translate3d(2px, -2px, 0);
  animation: splashAuraBreathTwo 8.8s ease-in-out infinite;
}

.splash-aura-layer--3 {
  inset: -8%;
  border-radius: 62% 38% 50% 50% / 44% 62% 38% 56%;
  background:
    radial-gradient(78% 72% at 52% 58%, rgba(156, 149, 232, 0.16), rgba(255, 255, 255, 0) 78%),
    radial-gradient(66% 64% at 46% 42%, rgba(255, 230, 242, 0.16), rgba(255, 255, 255, 0) 78%);
  filter: blur(19px);
  opacity: 0.5;
  transform: translate3d(-2px, 2px, 0);
  animation: splashAuraBreathThree 9.8s ease-in-out infinite;
}

.splash-aura-flare {
  inset: 33%;
  border-radius: 58% 42% 51% 49% / 49% 58% 42% 51%;
  background:
    radial-gradient(58% 54% at 48% 44%, rgba(255, 255, 255, 0.98), rgba(204, 206, 243, 0.4) 62%, rgba(255, 255, 255, 0) 84%);
  filter: blur(0.7px);
  opacity: 0.95;
  animation: splashAuraFlareBreath 6.8s ease-in-out infinite;
}

.splash-wordmark {
  margin-top: 44px;
  text-align: center;
  display: grid;
  gap: 12px;
  transform: translateY(0);
  animation: splashWordRise 1.2s var(--ease-premium) both 0.2s;
}

.splash-wordmark strong,
.splash-wordmark .splash-letter {
  color: #2d2a6e;
}

.splash-wordmark .splash-type {
  position: relative;
  display: inline-block;
  min-height: 1.35em;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.28rem, 2.9vw, 2.18rem);
  letter-spacing: 0.005em;
  font-weight: 700;
  text-shadow: 0 10px 34px rgba(91, 86, 164, 0.12);
}

.splash-wordmark .splash-type .splash-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  filter: blur(2px);
  transition:
    opacity 0.36s var(--ease-silk),
    transform 0.42s var(--ease-premium),
    filter 0.42s var(--ease-silk);
}

.splash-wordmark .splash-type .splash-letter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.splash-progress {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(146, 139, 226, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 247, 255, 0.8));
  box-shadow: 0 10px 26px rgba(113, 108, 190, 0.12);
  color: rgba(85, 82, 138, 0.9);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.84rem;
  opacity: 0;
  animation: splashWordRise 0.9s var(--ease-premium) both 0.34s;
}

.splash-progress::after {
  content: "";
  width: 84px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(142, 135, 224, 0.2), rgba(142, 135, 224, 0.95));
  transform-origin: left center;
  transform: scaleX(var(--splash-p));
}

.splash-progress-label {
  flex: 1;
}

.splash-progress-value {
  min-width: 46px;
  text-align: right;
  font-weight: 800;
  color: rgba(94, 91, 168, 0.96);
}

@keyframes splashWordRise {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes splashAuraFieldDrift {
  0%, 100% { transform: translate3d(-2px, 2px, 0) scale(0.985); }
  50% { transform: translate3d(3px, -4px, 0) scale(1.015); }
}

@keyframes splashAuraBreathOne {
  0% { opacity: 0.86; transform: translate3d(-3px, 1px, 0) scale(0.96); }
  100% { opacity: 1; transform: translate3d(2px, -3px, 0) scale(1.06); }
}

@keyframes splashAuraBreathTwo {
  0% { opacity: 0.6; transform: translate3d(2px, -1px, 0) scale(0.94); }
  100% { opacity: 0.78; transform: translate3d(-3px, 4px, 0) scale(1.04); }
}

@keyframes splashAuraBreathThree {
  0% { opacity: 0.46; transform: translate3d(-1px, 2px, 0) scale(0.95); }
  100% { opacity: 0.64; transform: translate3d(3px, -4px, 0) scale(1.05); }
}

@keyframes splashAuraFlareBreath {
  0% { opacity: 0.74; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.08); }
}

@keyframes splashAuraReleaseSoft {
  0% { transform: scale(1); opacity: 1; filter: blur(0); }
  55% { transform: scale(1.18); opacity: 0.82; filter: blur(2px); }
  100% { transform: scale(1.46); opacity: 0; filter: blur(8px); }
}

@keyframes splashSunriseMerge {
  0% {
    opacity: 0.72;
    transform: scale(0.38);
    filter: blur(0.8px);
  }
  58% {
    opacity: 0.6;
    transform: scale(1.08);
    filter: blur(0.2px);
  }
  100% {
    opacity: 0;
    transform: scale(1.46);
    filter: blur(0.6px);
  }
}

@media (max-width: 860px) {
  .splash-scene {
    min-height: 360px;
  }
  .splash-aura {
    width: min(78vw, 350px);
  }
  .splash-wordmark {
    margin-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-aura,
  .splash-aura-layer,
  .splash-aura-flare,
  .splash-wordmark,
  .splash-progress {
    animation: none !important;
  }
  .splash-wordmark .splash-type .splash-letter {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
