/* Own — hero background (ownvault.ai)
   Files live next to this CSS in /web. Put the page copy in the dark left area
   (desktop) or the dark top area (mobile).
   --own-navy is the brand navy (fallback while the image loads).
   --own-photo-navy is the exact flat navy inside the photo: use it for sections that
   sit flush against the hero if you want a seamless join. */
:root {
  --own-navy: #0B1020;
  --own-photo-navy: #090F1D;
}

.own-hero {
  min-height: 100vh;
  min-height: 100svh;
  background-color: #0B1020;               /* fallback */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 70% 50%;            /* keeps the planet in frame on narrower desktops */
  background-image: url("hero-1920x1080.jpg");  /* oldest browsers */
  background-image: image-set(
    url("hero-1920x1080.webp") type("image/webp") 1x,
    url("hero-3840x2160.webp") type("image/webp") 2x,
    url("hero-1920x1080.jpg") type("image/jpeg") 1x,
    url("hero-3840x2160.jpg") type("image/jpeg") 2x
  );
}

/* Large / QHD desktop screens */
@media (min-width: 1921px) {
  .own-hero {
    background-image: url("hero-2560x1440.jpg");
    background-image: image-set(
      url("hero-2560x1440.webp") type("image/webp") 1x,
      url("hero-3840x2160.webp") type("image/webp") 2x,
      url("hero-2560x1440.jpg") type("image/jpeg") 1x,
      url("hero-3840x2160.jpg") type("image/jpeg") 2x
    );
  }
}
@media (min-width: 2561px) {
  .own-hero {
    background-image: url("hero-3840x2160.jpg");
    background-image: image-set(
      url("hero-3840x2160.webp") type("image/webp"),
      url("hero-3840x2160.jpg") type("image/jpeg")
    );
  }
}

/* Portrait phones and tablets: planet in the lower half, dark space above for text */
@media (orientation: portrait) and (max-width: 1024px) {
  .own-hero {
    background-position: 50% 100%;
    background-image: url("hero-mobile-828x1792.jpg");
    background-image: image-set(
      url("hero-mobile-828x1792.webp") type("image/webp") 1x,
      url("hero-mobile-1170x2532.webp") type("image/webp") 2x,
      url("hero-mobile-828x1792.jpg") type("image/jpeg") 1x,
      url("hero-mobile-1170x2532.jpg") type("image/jpeg") 2x
    );
  }
}

/* Older Safari (< 17) only understands the prefixed form without type() */
@supports not (background-image: image-set(url("a.webp") type("image/webp") 1x)) {
  .own-hero { background-image: -webkit-image-set(url("hero-1920x1080.jpg") 1x, url("hero-3840x2160.jpg") 2x); }
  @media (orientation: portrait) and (max-width: 1024px) {
    .own-hero { background-image: -webkit-image-set(url("hero-mobile-828x1792.jpg") 1x, url("hero-mobile-1170x2532.jpg") 2x); }
  }
}
