/* The films and the entrance to the valley flight share the opening screen. */
.home-redesign .expedition-stage{height:100svh;min-height:540px}
.home-redesign .hero-content h1{top:17%!important;transform:none!important}
.home-redesign .hero-title-line{font-size:clamp(64px,8vw,118px)!important}
.home-redesign .home-film{
  position:absolute;z-index:5;left:50%;top:53%;bottom:auto;right:auto;
  width:min(580px,calc(100vw - 48px),64svh);max-width:none;margin:0;
  transform:translate(-50%,-50%)!important;
}
.home-film video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid #f6f3e84d;border-radius:3px;background:#192e25;box-shadow:0 24px 80px #0b201b4d}
.home-film figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:12px;color:#fff9eb;text-shadow:0 1px 10px #102c20;font:18px/1.3 var(--serif)}
.home-film figcaption small{font:9px/1.6 var(--sans);color:#f2eedbcc}
/* The films of the place: the main one first; the pressed one plays in the player above. */
.home-film-choice{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;text-shadow:none}
.home-film-choice button{display:inline-flex;align-items:baseline;gap:6px;min-height:32px;padding:8px 12px;border:1px solid #f6f3e870;border-radius:2px;background:#10251c73;color:#fff9eb;font:600 11px/1.2 var(--sans);letter-spacing:.01em;cursor:pointer;backdrop-filter:blur(6px);transition:background .2s,color .2s,border-color .2s}
.home-film-choice button small{font:500 10px/1.2 var(--sans);color:inherit;opacity:.72}
.home-film-choice button:hover{border-color:#fff9eb}
.home-film-choice button[aria-pressed=true]{background:#f3efdf;border-color:#f3efdf;color:#243d2e}
.home-film-choice button:focus-visible{outline:2px solid #fff9eb;outline-offset:2px}
.home-redesign .horizon-after{display:none}
.home-redesign .hero-footer{display:flex!important;justify-content:center;left:var(--gutter);right:var(--gutter);width:auto;height:auto;bottom:36px;pointer-events:none}
.home-flight-entry{display:inline-flex;align-items:center;justify-content:space-between;gap:50px;min-height:54px;padding:14px 26px;font-size:13px;pointer-events:auto}
.home-flight-entry>span{font-size:20px}
.home-redesign .hero-footer .scene-source{position:absolute;left:0;font-size:8px;letter-spacing:.12em}
.home-redesign .scene-tools{display:block;left:auto;bottom:38px}
@media(max-width:760px),(max-aspect-ratio:9/10){
  .home-redesign .hero-content h1{top:20%!important}
  .home-redesign .hero-title-line{font-size:clamp(66px,16vw,100px)!important}
  .home-redesign .home-film{top:51%;width:min(580px,calc(100vw - 36px))}
  .home-film figcaption{display:block;text-align:center;font-size:19px}
  .home-film figcaption small{display:block;margin-top:6px;font-size:9px}
  .home-film-choice{justify-content:center;margin-top:10px}
  .home-film-choice button small{display:inline;margin:0}
  .home-redesign .hero-footer{bottom:calc(38px + env(safe-area-inset-bottom))}
  .home-redesign .hero-footer .scene-source{display:none}
  .home-redesign .scene-tools{display:none}
}
@media(max-height:600px) and (min-aspect-ratio:1001/1000){
  .home-redesign .expedition-stage{min-height:0}
  /* This side-by-side composition places the word over the foreground slope. Keep it in front of the ridge,
     with light ink, instead of applying the central sky title's mountain mask to it. */
  .home-redesign .hero-content{clip-path:none!important;color:#fff9eb!important;text-shadow:0 2px 24px #0b201b80}
  .home-redesign .hero-content h1{top:26%!important;left:4%;width:30%}
  .home-redesign .hero-title-line{font-size:clamp(54px,8vw,90px)!important}
  /* In the middle of the scene: the word stands to its left (its right edge is about 28vw), so the film is as wide as
     the room between them allows, and low enough to keep clear of the header, and the button. */
  .home-redesign .home-film{left:50%;top:55%;width:min(calc(44vw - 24px),62svh)}
  .home-film figcaption{font-size:14px}.home-film figcaption small{font-size:8px}
  .home-redesign .hero-footer{bottom:18px}
  .home-flight-entry{min-height:44px;padding:10px 22px}
}
@media(max-height:420px) and (min-aspect-ratio:1001/1000){
  .home-film figcaption small{display:none}
  /* No room for the line under a low film: the choice of films stays, the motto goes. */
  .home-film figcaption>span:first-child{display:none}
  .home-film figcaption{margin-top:8px}
  /* One line, a little wider than the low film if need be, centred under it; the player shows the length. */
  .home-film-choice{flex-wrap:nowrap;justify-content:center;width:max-content;max-width:calc(100vw - 24px);margin-left:50%;transform:translateX(-50%)}
  .home-film-choice button{min-height:28px;padding:6px 9px;font-size:10px;white-space:nowrap}
  .home-film-choice button small{display:none}
}
@media(max-height:540px) and (max-aspect-ratio:1/1){
  .home-redesign .expedition-stage{min-height:0}
  .home-redesign .hero-content h1{top:18%!important}
  .home-redesign .hero-title-line{font-size:clamp(48px,13vw,60px)!important}
  .home-redesign .home-film{top:56%;width:min(calc(100vw - 36px),60svh)}
  .home-film figcaption{font-size:16px}
  .home-redesign .hero-footer{bottom:calc(20px + env(safe-area-inset-bottom))}
  .home-flight-entry{min-height:44px;padding:10px 22px}
}

/* Plots lit on the drawn plan, by the pointer and by themselves: amber on the plan's pale greens. A self-lit plot
   swells in, breathes twice and fades (plot-attention.mjs, the same 1.8 s). */
.sp-plan .sp-attention{fill:#eea63a;fill-opacity:.85;stroke:#8c5a12;stroke-width:1.6;vector-effect:non-scaling-stroke}
.sp-attention[data-source=idle]{animation:sp-attention 1.8s ease-in-out both;filter:drop-shadow(0 0 5px #f7cf73)}
@keyframes sp-attention{0%{opacity:0}12%{opacity:1}39%{opacity:.62}64%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.sp-attention[data-source=idle]{animation:none}}
