/* assets/css/homepage.css */
.homepage {
  overflow: hidden;
  height: 100vh;
}

/* Video layer — pointer-events: none so mouse events pass through to cursor tracking */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}

.video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    transparent 20%,
    transparent 75%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

.video-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.video-slot.active { opacity: 1; }

/* Cover entire viewport regardless of viewport aspect ratio */
.video-slot iframe {
  border: none;
  position: absolute;
  top: 50%; left: 50%;
  /* 16:9 cover formula: width = 177.78vh, height = 56.25vw, take the larger */
  width: 177.78vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Homepage header — transparent bg over dark video, nav stays white */
.homepage .site-header {
  background: transparent;
}
.homepage .logo-link {
  visibility: hidden;
}
.homepage .site-nav a { color: rgba(255,255,255,0.55); }
.homepage .site-nav a:hover,
.homepage .site-nav a.active { color: rgba(255,255,255,0.95); }

/* Logo lockup — dead center */
.home-logo {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.home-logo img {
  width: clamp(200px, 24vw, 320px);
  height: auto;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.6));
}

/* Video indicators */
.video-indicators {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
  align-items: center;
}

.indicator {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  transition: background 0.4s, width 0.4s;
  cursor: pointer;
}

.indicator.active {
  background: rgba(255,255,255,0.85);
  width: 44px;
}
