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

html, body {
  height: 100%;
  background: #000;
}

.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  --spd: 1;
  --den: 1;
}

/* the mark */
.mark {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 1400px;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, .18));
  animation:
    rise-in 2.4s cubic-bezier(.2, .7, .2, 1) .4s both,
    flicker calc(11s * var(--spd)) steps(1, end) 3s infinite;
}

/* low fog: streaky smoke texture (SVG noise), capped in height, dense at the floor */
.fog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 22%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 22%, transparent 100%);
}
.fog svg {
  display: block;
  width: 3200px;
  height: 100%;
  will-change: transform;
}
.f-back { z-index: 1; height: 340px; filter: blur(3px); opacity: calc(.50 * var(--den)); }
.f-back svg { animation: driftL calc(150s * var(--spd)) linear infinite; }
.f-mid { z-index: 1; height: 270px; filter: blur(2px); opacity: calc(.62 * var(--den)); }
.f-mid svg { animation: driftR calc(100s * var(--spd)) linear infinite; }
.f-front { z-index: 3; height: 200px; filter: blur(1.2px); opacity: calc(.70 * var(--den)); }
.f-front svg { animation: driftL calc(62s * var(--spd)) linear infinite; }

/* small curls of smoke that lift only a little off the fog */
.wisps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  z-index: 3;
  pointer-events: none;
  opacity: var(--den);
}
.wisp {
  position: absolute;
  bottom: 90px;
  width: 220px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 68%);
  filter: blur(5px);
  opacity: 0;
  animation: climb calc(var(--t) * var(--spd)) ease-in-out var(--d) infinite;
}

/* ground glow, vignette, grain */
.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 1;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255, 255, 255, .08), transparent 70%);
  pointer-events: none;
}
.vig {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 58%, transparent 35%, rgba(0, 0, 0, .6) 75%, #000 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 30%);
}
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: screen;
}

@keyframes driftL { from { transform: translateX(0); } to { transform: translateX(-1600px); } }
@keyframes driftR { from { transform: translateX(-1600px); } to { transform: translateX(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes climb {
  0% { opacity: 0; transform: translate(0, 0) scale(.8); }
  35% { opacity: .5; }
  100% { opacity: 0; transform: translate(var(--dx), -70px) scale(1.3); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  91% { opacity: .55; }
  91.6% { opacity: 1; }
  93% { opacity: .78; }
  93.4% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mark, .fog svg, .wisp { animation: none !important; }
  .wisp { opacity: .2; }
}
