body.landing {padding-top:0;background:#070a09}
body.landing main#main {position:relative;isolation:isolate;display:grid;place-items:center;width:100%;max-width:none;height:100vh;height:100svh;margin:0;padding:0;overflow:hidden;background:#070a09}
.landing-film {position:absolute;inset:0;z-index:-1}
.landing-film :is(img,video) {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.landing-film video {opacity:0}
.landing-film.is-playing video {opacity:1}
.landing-signature {width:min(94%,1280px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:2.4vw;text-align:center}
.landing-signature img {display:block;width:clamp(220px,28vw,390px);height:auto;filter:drop-shadow(0 1px 4px rgb(0 0 0 / 42%))}
.landing-signature :is(h1,p) {font:400 clamp(16px,2vw,28px)/1.5 Georgia,serif;letter-spacing:.07em;text-transform:uppercase;color:#ecece9;margin:0;text-shadow:0 1px 3px rgb(0 0 0 / 50%),0 0 8px rgb(0 0 0 / 32%)}
/* Shift one prepainted texture. The extra pixels cover every offset. */
.landing-hero::after {content:"";pointer-events:none;position:absolute;inset:-22px;background:url(home-grain.png?v=tile2) repeat;z-index:1}
.landing-signature {position:relative;z-index:0}
.landing-hero:has(.is-playing)::after {animation:film-grain .3s steps(1,end) infinite}
@keyframes film-grain {
  0%,100% {transform:translate(0,0)}
  10% {transform:translate(-19px,14px)}
  20% {transform:translate(16px,-12px)}
  30% {transform:translate(-8px,-18px)}
  40% {transform:translate(19px,7px)}
  50% {transform:translate(-15px,1px)}
  60% {transform:translate(7px,20px)}
  70% {transform:translate(1px,-15px)}
  80% {transform:translate(-20px,-6px)}
  90% {transform:translate(17px,17px)}
}
@media(max-width:767px){
  /* Match the browser tint at the visible edges of the mobile hero. */
  html:has(> body.landing) {
    --film-height:max(100lvh,calc(100dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    height:100dvh;
    overflow-y:visible;
    overscroll-behavior-y:auto;
    background:#080a09;
  }
  html:not(.gfa-menu-locked) > body.landing {--home-top-depth:19%}
  body.landing {position:relative;height:100dvh;min-height:0;overflow:visible;background:transparent}
  body.landing > header:not(.drawer-open) {position:absolute;transform:none;backface-visibility:visible}
  body.landing main#main {
    position:absolute;
    inset:0;
    height:100%;
    background:#080a09;
    --edge-depth:min(96px,13dvh);
  }
  .landing-film {
    top:calc((100dvh - var(--film-height)) / 2);
    bottom:auto;
    height:var(--film-height);
  }
  .landing-hero::before {
    content:"";
    pointer-events:none;
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(to bottom,var(--closed-top-stops,#080a09 0%,rgba(8,10,9,.88) 18%,rgba(8,10,9,.43) 52%,rgba(8,10,9,.10) 80%,transparent 100%)) center top,
               linear-gradient(to top,#080a09,transparent) center bottom;
    background-size:100% var(--home-top-depth,16%),100% 20%;
    background-repeat:no-repeat;
  }
  .landing-film {z-index:-2}
  .landing-hero::after {
    mask-image:linear-gradient(to bottom,transparent 42px,#000 calc(42px + var(--edge-depth)),#000 calc(100% - 42px - var(--edge-depth)),transparent calc(100% - 42px));
  }
  .landing-signature {grid-template-columns:1fr;justify-items:center;gap:14px}
  .landing-signature img {width:min(68vw,320px);filter:drop-shadow(0 1px 4px rgb(0 0 0 / 40%)) drop-shadow(0 0 9px rgb(0 0 0 / 32%))}
  .landing-signature :is(h1,p) {font-size:clamp(15px,4.85vw,23px);text-shadow:0 1px 3px rgb(0 0 0 / 55%),0 0 9px rgb(0 0 0 / 40%)}
}
