/* Woods: real footage behind the home page that changes with the story. Scouting plays a walk down
   a green summer trail, the walk-in chapters a walk through fall hardwoods, and the buck chapters two
   deer in the leaves. Clips are from Pexels (videos 15211027, 10255971 and 10194131), free to use
   under the Pexels license. Darkened and tinted with the page's time-of-day colors so the text stays
   readable. woods.js adds it, loops each clip with a crossfade and swaps clips between chapters. */
.woods { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #0b1208; }
.woods .scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.woods .scene.on { opacity: 1; }
.woods video, .woods .still { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover;
  filter: brightness(.78) saturate(.95) contrast(1.05) blur(1px); transition: opacity 1.2s linear; }
.woods .still { background: center / cover no-repeat; }
/* time-of-day tint from the story's sky colors */
.woods .tint { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .5;
  background: linear-gradient(180deg, var(--sky-a), var(--sky-b)); }
.woods .glow { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .6;
  background: radial-gradient(900px 600px at 70% 20%, var(--glow), transparent 70%); }
/* keep text readable where it sits over the footage */
.woods .shade { position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, rgba(6,10,5,.38) 0%, rgba(6,10,5,.62) 100%),
              linear-gradient(0deg, rgba(6,10,5,.5), transparent 35%),
              linear-gradient(180deg, rgba(6,10,5,.55), transparent 30%); }
/* The still frames drift slowly, so the background moves even when a phone won't autoplay video
   (iPhone Low Power Mode, for one). Once a clip plays it covers the still. */
.woods .scene.on .still { animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }
/* Phones: skip the blur, blend modes and color filter on the full-screen video, which made the
   phone redraw the whole background every frame and slowed the scroll animations. Plain
   see-through layers give nearly the same look. */
@media (max-width: 860px) {
  .woods video, .woods .still { filter: none; }
  .woods .tint { mix-blend-mode: normal; opacity: .32; }
  .woods .glow { mix-blend-mode: normal; opacity: .35; }
  .woods .shade { background: radial-gradient(120% 90% at 50% 45%, rgba(6,10,5,.5) 0%, rgba(6,10,5,.72) 100%),
    linear-gradient(0deg, rgba(6,10,5,.5), transparent 35%), linear-gradient(180deg, rgba(6,10,5,.55), transparent 30%); }
}
@media (prefers-reduced-motion: reduce) { .woods .scene.on .still { animation: none; } }
