/* First screen picture: the sync film (Remotion ForthTap-Montage-Widget-Stand-Loop), Lightroom Classic with the
   ForthTap widget, drawn on the page's own background colour. The poster is a picture of its own on top of the
   video (the film's first frame) and leaves only when the video has painted a frame (js/hero-video.js).
   A round Play in the middle whenever the film is not playing; no shade, so the poster stays clear. */
.hv { margin-top: 56px; }
.hv-stage {
  position: relative; overflow: hidden; border-radius: 18px;
  aspect-ratio: 16 / 9; background: #f6f7f9;
}
.hv-video, .hv-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hv-poster { z-index: 1; }
.hv-poster[hidden] { display: none; }
.hv-stage[data-state="playing"] .hv-video { cursor: pointer; }

.hv-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; transform: translate(-50%, -50%);
  background: rgba(23, 33, 46, 0.82); color: #fff; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: background-color 150ms ease, opacity 300ms ease;
}
.hv-play:hover { background: rgba(23, 33, 46, 0.94); }
.hv-play svg { width: 24px; height: 24px; fill: currentColor; }
.hv-play[data-icon="play"] svg { margin-left: 4px; }
.hv-play[data-icon="play"] .hv-i-pause, .hv-play[data-icon="pause"] .hv-i-play { display: none; }
.hv-play[hidden] { display: none; }
/* while the film plays the button rests out of sight; the keyboard still finds it, as Pause */
.hv-stage[data-state="playing"] .hv-play { opacity: 0; pointer-events: none; }
.hv-stage[data-state="playing"] .hv-play:focus-visible { opacity: 1; pointer-events: auto; }
.hv-caption { margin-top: 14px; }

@media (max-width: 760px) {
  .hv { margin-top: 40px; }
  .hv-stage { border-radius: 14px; }
  .hv-play { width: 56px; height: 56px; }
  .hv-play svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-play { transition: none; }
}

/* the first screen's headline is a sentence now, not two short words: a size that keeps it to two lines */
.hero h1 { max-width: 1060px; font-size: clamp(38px, 4.9vw, 66px); line-height: 1.08; text-wrap: balance; }
.hero .lead { max-width: 700px; }
@media (max-width: 760px) { .hero h1 { font-size: 34px; } }
