/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Roboto Mono', monospace;
  color: #D9D9D9;
}

/* Full-bleed, stacked videos with crossfade */
.bg-video {
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; */
  width: 100vw;             /* force viewport sizing (prevents letterboxing) */
  height: 100vh;
  object-fit: cover;        /* always fill, maintain aspect */
  z-index: 1;
  opacity: 0;
  transition: opacity 3s ease;
  pointer-events: none;     /* keep page interactive */
  background: #000;         /* avoid flashes while loading */
}
.bg-video.active { opacity: 1; }

/* Loader */
#loader {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 10px;
  background: rgba(255,255,255,0.2);
  z-index: 3;
}
#progress {
  width: 0%;
  height: 100%;
  background: #D9D9D9;
  transition: width 0.3s;
}
#percent {
  position: absolute;
  top: -25px; left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #D9D9D9;
}

/* Overlay */
#overlay {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -65%); /* your +15% upward shift */
  text-align: center;
  z-index: 2;
  opacity: 1; /* child elements fade individually */
}

/* Logo (50% larger) */
#overlay img {
  width: 600px;
  max-width: 120%;
  opacity: 0;
  transition: opacity 3s ease;
}
#overlay img.show { opacity: 0.5; }

/* Tagline "BY DESIGN." (fades in over 2s when .show is added) */
#overlay .tagline {
  margin-top: 20px;
  font-size: 18px;
  color: #D9D9D9;
  text-decoration: none;
  display: block;
  opacity: 0;                        /* start hidden */
  transition: opacity 2s ease;
  transform: translateY(100%);        /* moved lower by 100% */
}
#overlay .tagline.show { opacity: 0.5; }

/* Email (fades in over 2s when .show is added) */
#overlay .email {
  margin-top: 20px;
    font-family: 'Roboto Mono', monospace ;
    font-size: 12px;
  color: #D9D9D9;
  text-decoration: none;
  display: block;
  opacity: 0;                        /* start hidden */
  transition: opacity 2s ease;
  transform: translateY(1300%);        /* moved lower by 1300% */
}
#overlay .email.show { opacity: 0.5; }
