html,
body {
  margin: 0;
  height: 100%;
  background: #0c1812;
  overflow: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.forest {
  display: block;
  width: 100%;
  height: 100%;
}

.cloud {
  opacity: 0.35;
}

.firefly {
  opacity: 0.75;
}

.forest-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: transparent;
  pointer-events: none;
}

.quiet {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #f4f7f2;
  background: #0e1c16;
}

.cloud-a { animation: cloud-a 90s linear infinite; }
.cloud-b { animation: cloud-b 110s linear infinite; }
.cloud-c { animation: cloud-c 80s linear infinite; }
.layer-far { animation: drift 70s ease-in-out infinite alternate; }
.layer-mid { animation: drift 50s ease-in-out infinite alternate; }
.deer { animation: bob 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fox { animation: step 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.owl-eye { animation: blink 7s step-end infinite; }
.f1 { animation: glow 4.5s ease-in-out infinite; }
.f2 { animation: glow 5.5s ease-in-out infinite 0.8s; }
.f3 { animation: glow 4s ease-in-out infinite 1.2s; }
.f4 { animation: glow 6s ease-in-out infinite 0.4s; }

@keyframes cloud-a {
  from { transform: translateX(0); }
  to { transform: translateX(80px); }
}

@keyframes cloud-b {
  from { transform: translateX(0); }
  to { transform: translateX(-70px); }
}

@keyframes cloud-c {
  from { transform: translateX(0); }
  to { transform: translateX(50px); }
}

@keyframes drift {
  from { transform: translateX(-12px); }
  to { transform: translateX(12px); }
}

@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

@keyframes step {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@keyframes blink {
  0%, 88%, 100% { opacity: 1; }
  92%, 96% { opacity: 0.15; }
}

@keyframes glow {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.95; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-a,
  .cloud-b,
  .cloud-c,
  .layer-far,
  .layer-mid,
  .deer,
  .fox,
  .owl-eye,
  .f1,
  .f2,
  .f3,
  .f4,
  .forest-video {
    animation: none;
  }

  .firefly {
    opacity: 0.8;
  }
}

@media (max-width: 375px) {
  .quiet {
    font-size: 1.15rem;
    padding-bottom: 1rem;
  }
}
