diff --git a/apps/website/components/HeroSection.vue b/apps/website/components/HeroSection.vue index 9cf8d9f..f8d195f 100644 --- a/apps/website/components/HeroSection.vue +++ b/apps/website/components/HeroSection.vue @@ -175,40 +175,16 @@ onMounted(() => { /* Hero video container positioned absolutely behind content */ .hero-video-container { position: fixed; - top: 0; + top: env(safe-area-inset-top, 0); /* Start at safe area boundary */ left: 0; width: 100vw; - height: 100vh; + height: calc(100vh + env(safe-area-inset-top, 0)); /* Extend height to cover full screen */ z-index: 1; + transform: translateY(calc(-1 * env(safe-area-inset-top, 0))); /* Move up into notch/Dynamic Island */ pointer-events: none; background: #ffffff; /* White fallback */ } -/* iOS-specific: Extend video into safe area */ -@supports (-webkit-touch-callout: none) { - @media (max-width: 768px) { - .hero-video-container { - /* Extend beyond safe area on iOS to ensure coverage */ - top: calc(-1 * env(safe-area-inset-top, 0)); - height: calc(100vh + env(safe-area-inset-top, 0)); - } - - /* Support for dynamic viewport height */ - @supports (height: 100dvh) { - .hero-video-container { - height: calc(100dvh + env(safe-area-inset-top, 0)); - } - } - - /* Support for large viewport height (iOS 15+) */ - @supports (height: 100lvh) { - .hero-video-container { - height: calc(100lvh + env(safe-area-inset-top, 0)); - } - } - } -} - /* Video fade-in transition to prevent flash */ .hero-video { opacity: 0;