/* ─── Splash overlay ─────────────────────────────────────────────────────── */

#splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  /* Left side transparent → 3D queen visible; right side dark → text readable */

  pointer-events: none; /* left (3D) side stays interactive for OrbitControls */
}

/* ─── Exit: staggered fade per text element ──────────────────────────────── */
.splash__title-logo,
.splash-title,
.splash-subtitle,
.splash-buttons,
.splash-indication {
  transition: all 0.3s ease-in-out ;
  transform: translateX(0);
}

#splash-overlay.splash--out .splash-title        { opacity: 0;transform: translateX(50px); transition-delay: 150ms; }
#splash-overlay.splash--out .splash__title-logo  { opacity: 0;transform: translateX(50px); transition-delay: 0ms; }
#splash-overlay.splash--out .splash-subtitle     { opacity: 0;transform: translateX(50px); transition-delay: 300ms; }
#splash-overlay.splash--out .splash-buttons      { opacity: 0;transform: translateX(50px); transition-delay: 450ms; }
#splash-overlay.splash--out .splash-indication   { opacity: 0;transform: translateX(50px); transition-delay: 600ms; }

/* ─── Entrance: staggered fade-up when splash first renders ──────────────── */
/*
   Not `forwards`-filled: `forwards` would permanently pin opacity/transform
   above the exit transition's own values in the cascade, breaking the
   staggered fade-out above. Using `backwards` only holds the pre-start frame
   during the delay so there's no flash back to the resting opacity:1 before
   the animation kicks in — once it finishes, control reverts cleanly to the
   normal (resting) rule below.
*/
.splash-title,
.splash-subtitle,
.splash-buttons,
.splash-indication {
  opacity: 1;
  transform: translateY(0);
}

.splash-title       { animation: splash-fade-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s backwards; }
.splash-subtitle    { animation: splash-fade-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s  backwards; }
.splash-buttons     { animation: splash-fade-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s backwards; }
.splash-indication  { animation: splash-fade-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s  backwards; }

@keyframes splash-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Content column ─────────────────────────────────────────────────────── */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.splash__title-logo {
  width: 43vw;
  position: absolute;
  left: 3vw;
  top: 23vh;
  opacity: 0.8;
}
.splash-content {
  position: absolute;
  top: 50%;
  right: 70px;
  transform: translate(0, -50%);
  width: 36vw;
  max-width: 700px;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ─── Title ──────────────────────────────────────────────────────────────── */

.splash-title {
  width: 70%;
  font-size: clamp(26px, 3vw, 100px);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.1;
}

/* ─── Subtitle ───────────────────────────────────────────────────────────── */

.splash-subtitle {
  font-size: clamp(12px, 0.9vw, 22px);
  line-height: 1.75;
  color: #ffffff;
  font-weight: 500;
  width: 65%;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.splash-buttons {
  display: flex;
}

.splash-btn {
  display: inline-block;
  color: #ffffff;
  font-size: clamp(10px, 0.8vw, 20px);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0;
  cursor: pointer;
  border: none;
  background: transparent;
  text-transform: uppercase;
  transition: opacity 0.15s, transform 0.15s;
  text-align: center;
  letter-spacing: 20%;
}

.splash-btn:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 5vw;
  height: 3px;
  margin-right: 0.5vw;
  background-color: #FC3B6E;
}


.splash-btn:hover:not(:disabled) {
  opacity: 0.85;
  transform: translateY(-2px);
}

.splash-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.splash-btn--primary {
  background: #8b7cf6;
  color: #fff;
}

.splash-btn--secondary {
  background: transparent;
  color: rgba(200, 200, 216, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ─── Indication ─────────────────────────────────────────────────────────── */

.splash-indication {
  font-size: clamp(9px, 0.68vw, 14px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  width: 90%;
}
