:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.82);

  --glow: rgba(255, 255, 255, 0.25);
  --sheen-1: rgba(255, 255, 255, 0.06);
  --sheen-2: rgba(255, 255, 255, 0.02);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;

  display: grid;
  place-items: center;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  position: relative;
  text-align: center;
  padding: clamp(24px, 6vw, 56px);
  isolation: isolate;
}

/* Subtle moving sheen + soft vignette */
.wrap::before {
  content: "";
  position: absolute;
  inset: -40vh -40vw;
  z-index: -2;

  background:
    radial-gradient(60vw 40vw at 20% 20%, var(--sheen-1), transparent 60%),
    radial-gradient(60vw 40vw at 80% 70%, var(--sheen-2), transparent 55%),
    radial-gradient(90vw 70vw at 50% 50%, rgba(255, 255, 255, 0.04), transparent 65%);

  filter: blur(12px);
  transform: translate3d(0, 0, 0);
  animation: drift 12s ease-in-out infinite alternate;
}

.wrap::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  /* vignette */
  background: radial-gradient(circle at 50% 35%, transparent 0 45%, rgba(0, 0, 0, 0.85) 85%);

  pointer-events: none;
}

.logo {
  margin: 0;
  line-height: 1;

  font-family: "Molle", cursive;
  font-style: italic;
  font-weight: 400;

  font-size: clamp(72px, 12vw, 160px);
  letter-spacing: 0.02em;

  text-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 40px var(--glow);

  transform-origin: 50% 60%;
  animation:
    rise-in 900ms cubic-bezier(0.2, 0.9, 0.2, 1) 80ms both,
    float 4.5s ease-in-out 1.0s infinite;
}

.sub {
  margin: clamp(10px, 1.6vw, 18px) 0 0;

  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 44px);
  color: var(--muted);

  letter-spacing: 0.01em;

  animation: fade-up 700ms ease 420ms both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(2%, 1%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wrap::before,
  .logo,
  .sub {
    animation: none !important;
  }
}
