/*
 * Splash screen in the approved UI: the Yaamo wordmark on the cream page with the soft honey and sage glows.
 * script.js plays the bell when the wordmark finishes arriving, then moves on after 2.5 seconds.
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  background: #f5f2e9;
  color: #252b26;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

body::before {
  width: 760px;
  height: 760px;
  top: -380px;
  right: 2%;
  background: radial-gradient(closest-side, rgba(237, 199, 100, 0.42), rgba(237, 199, 100, 0));
}

body::after {
  width: 700px;
  height: 700px;
  left: -420px;
  bottom: -300px;
  background: radial-gradient(closest-side, rgba(184, 199, 168, 0.4), rgba(184, 199, 168, 0));
}

.splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.logo {
  line-height: 0;
}

.logo svg {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  aspect-ratio: 390 / 240;
  fill: none;
  stroke: none;
  overflow: visible;
  opacity: 0;
  animation: logoArrive 1s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.splash-line {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #687064;
  opacity: 0;
  animation: lineFade 0.6s ease-out 0.9s forwards;
}

@keyframes logoArrive {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lineFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo svg,
  .splash-line {
    animation: none;
    opacity: 1;
  }
}
