/* ===== fennir.ch cinematic layer: hero video + smooth scroll + section flow ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.hero-video-wrap {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: #06060a;
}
.hero-video-wrap video, .hero-video-wrap .hero-poster img {
  position: absolute; inset: -6%; width: 112%; height: 112%;
  object-fit: cover; filter: saturate(1.1) contrast(1.04);
  will-change: transform, opacity;
}
.hero-video-wrap video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video-wrap.is-playing video { opacity: 1; }
.hero-video-wrap .hero-poster img { transform: scale(1.02); }
.hero-video-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 30% 40%, rgba(6,6,10,0) 0%, rgba(6,6,10,.45) 70%, rgba(6,6,10,.85) 100%),
    linear-gradient(180deg, rgba(6,6,10,.55) 0%, rgba(6,6,10,.25) 35%, rgba(6,6,10,.35) 70%, #06060a 100%);
}
.hero-video-veil::after {
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: screen;
  background: radial-gradient(ellipse 45% 40% at 78% 35%, rgba(249,115,22,.35) 0%, transparent 70%);
}
#hero { isolation: isolate; }

/* section flow: soft parallax band between sections */
section:not(#hero) { position: relative; }
.flow-seam {
  position: absolute; left: 0; right: 0; top: -1px; height: 140px; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, #06060a 0%, rgba(6,6,10,0) 100%);
}

@media (max-width: 768px) {
  .hero-video-wrap video { inset: -10%; width: 120%; height: 120%; }
  .hero-video-veil { background: linear-gradient(180deg, rgba(6,6,10,.7) 0%, rgba(6,6,10,.5) 50%, #06060a 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap { display: none; }
}

/* real-time GPU hero */
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; will-change: opacity; }
.hero-video-wrap.is-gl .hero-gl { opacity: 1; }
.hero-video-wrap.is-gl .hero-poster { opacity: 0; transition: opacity 1.4s ease; }
.hero-video-wrap.is-gl .hero-video-veil { background: linear-gradient(180deg, rgba(6,6,10,.35) 0%, rgba(6,6,10,.05) 40%, rgba(6,6,10,.25) 75%, #06060a 100%); }
.hero-video-wrap.is-gl .hero-video-veil::after { opacity: .18; }
#nav.nav-compact{backdrop-filter:blur(22px) saturate(1.5);-webkit-backdrop-filter:blur(22px) saturate(1.5)}
