/* ---------- shell ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  isolation:isolate;
  overflow:hidden;
  background-color:var(--forest-deep);
}
/* media layer — video with the still as poster/fallback. Cover, never tiled, never stretched. */
.hero-media{
  position:absolute;inset:0;z-index:-2;
  overflow:hidden;
  background-color:var(--forest-deep);
  background-image:url("../../img/hero-poster.png");
  background-size:cover;
  background-position:50% 50%;
  background-repeat:no-repeat;
}
.hero-media video{
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  object-position:50% 50%;
  opacity:0;
  transition:opacity .8s ease;
}
/* only revealed once real frames exist — until then the still above shows */
.hero-media video.is-playing{opacity:1}
@media (prefers-reduced-motion:reduce){
  .hero-media video{display:none}
}
/* legibility scrim */
.hero::after{
  content:"";
  position:absolute;inset:0;z-index:-1;
  background:
    /* Localised darkening behind the copy only. The white text was crossing
       fog, trees and sky, so some lines held and others vanished; this keeps
       the left column on a consistent ground and leaves the right of the
       frame open. */
    linear-gradient(90deg,
      rgba(8,22,17,.68) 0%,
      rgba(8,22,17,.48) 36%,
      rgba(8,22,17,.12) 62%,
      rgba(8,22,17,0) 78%),
    linear-gradient(180deg,rgba(6,20,13,.62) 0%,rgba(6,20,13,.50) 32%,rgba(6,20,13,.34) 62%,rgba(6,20,13,.14) 84%,rgba(6,20,13,0) 100%) top/100% 420px no-repeat,
    radial-gradient(74% 64% at 108% -8%,rgba(6,20,13,.76) 0%,rgba(6,20,13,.60) 38%,rgba(6,20,13,.40) 66%,rgba(6,20,13,.14) 86%,rgba(6,20,13,0) 100%),
    radial-gradient(125% 90% at -14% 66%,rgba(6,20,13,.90) 0%,rgba(6,20,13,.70) 26%,rgba(6,20,13,.48) 52%,rgba(6,20,13,.20) 72%,rgba(6,20,13,0) 90%),
    linear-gradient(180deg,rgba(6,20,13,0) 0%,rgba(6,20,13,0) 18%,rgba(6,20,13,.18) 55%,rgba(6,20,13,.46) 100%);
}
/* ---------- header ---------- */
