:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Background video layer ---------- */

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
  will-change: opacity;
}

.bg-video.is-active {
  opacity: 1;
}

/* Vignette: deepen the edges so the frame always reads dark and mysterious,
   regardless of which clip is playing */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
}

/* Subtle film grain for texture */
.grain {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Foreground ---------- */

.stage {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw;
}

.logo {
  width: min(34vw, 420px);
  min-width: 180px;
  opacity: 0;
  transform: scale(0.97);
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.55));
  animation: reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .logo {
    width: min(60vw, 320px);
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .bg-video {
    transition: none;
  }
}
