/* The photograph and the type share a single canvas, including the first paint. */
#top { --cover-field: #14181c; }
#top .hero-picture { --cover-backdrop: var(--cover-field); }
#top .hero, #top .hero-picture, #top .hero-picture picture {
  background: var(--cover-field);
}
#top .hero-picture:has(img[src^="data:image/svg+xml"])::after { background: none; }
#top .hero-picture img[src^="data:image/svg+xml"] { visibility: hidden; }

@media (min-width: 901px), (min-width: 701px) and (orientation: landscape),
       (max-width: 700px) and (max-height: 600px) and (orientation: landscape) {
  #top { --cover-field: #b8c0ca; }
  #top .hero-picture {
    inset: 0;
    width: 100%;
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  #top .hero-picture picture { position: relative; display: block; width: 100%; height: 100%; }
  #top .hero-picture::after { background: none; }
  #top .hero-picture img {
    --picture-fit: cover;
    --picture-position: 35% 40%;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: var(--picture-fit);
    object-position: var(--picture-position);
    -webkit-mask: url("assets/cover-field.svg") var(--picture-position) / var(--picture-fit) no-repeat;
    mask: url("assets/cover-field.svg") var(--picture-position) / var(--picture-fit) no-repeat;
    transform: translateX(-12%) scale(1.025);
  }
}
@media (min-width: 901px) and (max-aspect-ratio: 5/4) {
  #top .hero-picture img {
    --picture-position: 30% bottom;
    inset: auto 0 0;
    height: min(100%, 88vw);
  }
}
@media (min-width: 1101px) and (min-aspect-ratio: 2/1) {
  #top .hero-picture img {
    --picture-fit: contain;
    --picture-position: left bottom;
    transform: translateX(-4%) scale(1.025);
    transform-origin: left bottom;
  }
}
