#scene-backdrops {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #f0ebe4;
}

.scene-backdrop-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.scene-backdrop-wrap.active {
  opacity: 1;
}

#navbar {
  background: rgba(253,253,253,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.dark #navbar {
  background: rgba(10,10,18,0.7);
}

.scene-backdrop-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scene-backdrop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scene-section {
  position: relative;
  z-index: 1;
}

.scene-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-section::before {
  background: linear-gradient(
    180deg,
    rgba(240,235,228,0.3) 0%,
    rgba(240,235,228,0.1) 30%,
    rgba(240,235,228,0.15) 70%,
    rgba(240,235,228,0.35) 100%
  );
}

html.dark .scene-section::before {
  background: linear-gradient(
    180deg,
    rgba(10,10,18,0.45) 0%,
    rgba(10,10,18,0.2) 30%,
    rgba(10,10,18,0.3) 70%,
    rgba(10,10,18,0.5) 100%
  );
}

.scene-section > *:not(#scene-backdrops) {
  position: relative;
  z-index: 1;
}

#hero.scene-section::before {
  background: linear-gradient(
    180deg,
    rgba(240,235,228,0.15) 0%,
    rgba(240,235,228,0.05) 40%,
    rgba(240,235,228,0.2) 80%,
    rgba(240,235,228,0.3) 100%
  );
}

html.dark #hero.scene-section::before {
  background: linear-gradient(
    180deg,
    rgba(10,10,18,0.2) 0%,
    rgba(10,10,18,0.08) 40%,
    rgba(10,10,18,0.25) 80%,
    rgba(10,10,18,0.4) 100%
  );
}

.scene-section h1,
.scene-section h2,
.scene-section h3 {
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 4px 8px rgba(0,0,0,0.3);
}

.scene-section p,
.scene-section span {
  text-shadow: 0 1px 16px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.2);
}

@media (prefers-reduced-motion: reduce) {
  .scene-backdrop-video { display: none; }
}

@media (max-width: 860px) {
  #scene-backdrops {
    height: 100dvh;
  }
  .scene-section::before {
    background: linear-gradient(
      180deg,
    rgba(240,235,228,0.35) 0%,
    rgba(240,235,228,0.15) 40%,
    rgba(240,235,228,0.25) 100%
    );
  }
  .scene-backdrop-video {
    object-fit: cover;
    width: 100%;
    height: 100dvh;
  }
}
