/* Hero crop fix for Lexi's portrait-oriented source image.
   Desktop uses an editorial split so the portrait is not aggressively zoomed.
   Mobile returns to a full-bleed crop with a separate focal point. */

.hero {
  background: #2d1c17;
}

.hero-image {
  inset: 0 0 0 auto;
  width: 50%;
  background-image: url("assets/lexi-home.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 32%;
  transform: none;
}

.hero-wash {
  background:
    linear-gradient(90deg,
      rgba(32,18,14,.98) 0%,
      rgba(32,18,14,.96) 34%,
      rgba(32,18,14,.84) 48%,
      rgba(32,18,14,.40) 64%,
      rgba(32,18,14,.14) 82%,
      rgba(32,18,14,.08) 100%),
    linear-gradient(0deg, rgba(20,11,8,.38), transparent 52%);
}

/* Keep the copy visually centred inside the brown half instead of hugging the image split. */
.hero-content {
  width: min(720px, 46vw);
  margin-left: max(4vw, calc((100vw - var(--max))/2 - 3vw));
}

@media (max-width: 900px) {
  .hero-image {
    width: 56%;
    background-position: 58% 34%;
  }

  .hero-content {
    width: min(620px, 54vw);
    margin-left: 5vw;
  }
}

@media (max-width: 640px) {
  .hero-image {
    inset: 0;
    width: 100%;
    background-size: cover;
    background-position: 68% center;
    transform: none;
  }

  .hero-content {
    width: 100%;
    margin-left: 0;
  }

  .hero-wash {
    background:
      linear-gradient(180deg,
        rgba(32,18,14,.12) 0%,
        rgba(32,18,14,.22) 34%,
        rgba(32,18,14,.62) 65%,
        rgba(32,18,14,.93) 86%,
        rgba(32,18,14,.98) 100%),
      linear-gradient(90deg, rgba(32,18,14,.36), rgba(32,18,14,.06));
  }
}
