:root {
  --bg-cream: #fcf4ee;
  --bg-cream-edge: #f5e6de;
  --plum-deep: #602460;
  --plum-mid: #782868;
  --berry: #a82460;
  --rose-mid: #b44874;
  --mauve-soft: #b889a0;
  --font-display: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-cream);
  color: var(--plum-deep);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-color: var(--bg-cream);
  background-image: radial-gradient(
    ellipse 72% 72% at 50% 50%,
    var(--bg-cream) 0%,
    var(--bg-cream) 58%,
    var(--bg-cream-edge) 100%
  );
  isolation: isolate;
}

.word-universe {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.floating-word {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.1;
  font-family: var(--font-display);
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -0.015em;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
  opacity: 0;
}

.floating-word--far {
  letter-spacing: 0.012em;
}

.floating-word--mid {
  letter-spacing: -0.005em;
}

.floating-word--near {
  letter-spacing: -0.02em;
}

.logo-anchor {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  animation: logoEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Soft seamless aura strictly matching logo.jpg (#fcf4ee) for clean visual hierarchy */
.logo-anchor::before {
  content: "";
  position: absolute;
  inset: -14% -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    var(--bg-cream) 50%,
    rgba(252, 244, 238, 0.92) 70%,
    rgba(252, 244, 238, 0) 100%
  );
  pointer-events: none;
}

/* Subtle feathered edge overlay so the outer edges of logo.jpg melt seamlessly into --bg-cream */
.logo-anchor::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 14px 6px var(--bg-cream);
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: clamp(260px, 40vmin, 470px);
  height: auto;
  aspect-ratio: 100 / 82;
  object-fit: cover;
  object-position: 50% 51%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: scale(0.982);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .brand-logo {
    width: clamp(245px, 46vmin, 390px);
  }
}

@media (max-width: 600px) {
  .brand-logo {
    width: min(84vw, 330px);
  }
}

@media (max-height: 520px) {
  .brand-logo {
    width: clamp(210px, 58vh, 330px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-anchor {
    animation: none;
  }
}
