* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* ---- background layers: color (body) > image > video > overlay ---- */
.bg {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-image,
.bg-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bg-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}
.bg-video.is-playing { opacity: 1; }
.bg-vid { opacity: 0; z-index: 0; }
.bg-vid.is-back { opacity: 1; z-index: 1; }
.bg-vid.is-front {
  opacity: 1;
  z-index: 2;
  transition: opacity var(--fade-ms, 0ms) linear;
}
.bg-overlay { position: absolute; inset: 0; }

/* ---- foreground ---- */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.placeholder {
  margin: 0;
  font-size: clamp(40px, 12vw, 220px);
  letter-spacing: 0.1em;
  font-weight: 700;
}
