/* Homepage art direction. The illustration is decorative; headings and CTAs
   stay in the DOM. Legacy hero.webp is still used by About/local spotlight. */
.hero { background: #031b1c; }
.hero-art {
  --hero-image: url('assets/hero-emerald-desktop.webp');
  inset: 0;
  height: auto;
  background: #031b1c;
}
/* Fit the landscape to hero height without stretching it. Fading the image
   edge rather than the whole viewport avoids a hard seam at wide widths. */
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0 max(0px,calc((100vw - 1760px)/2)) 0 auto;
  height: 100%;
  aspect-ratio: 1648 / 927;
  background: var(--hero-image) center / cover no-repeat;
  mask-image: linear-gradient(90deg,transparent,#000 19%);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#031b1c 0%,#031b1c66 36%,transparent 63%),
              linear-gradient(0deg,var(--bg) 0%,transparent 12%);
}
@media (min-width: 1761px) {
  .hero-art::before {
    mask-image: linear-gradient(90deg,transparent,#000 19%,#000 90%,transparent);
  }
}
.hero-inner {
  min-height: clamp(440px,36vw,620px);
  padding-block: 42px 76px;
}
.hero-content {
  max-width: min(610px,49%);
  min-width: 0;
}
.hero h1 { overflow-wrap: anywhere; }
.hero h1 span { white-space: normal; }

/* Tablet: text above the landscape, with the subjects kept in view. */
@media (max-width: 900px) {
  .hero-art {
    inset: auto 0 0;
    height: clamp(290px,51vw,445px);
  }
  .hero-art::before {
    inset: 0 0 0 auto;
    mask-image: linear-gradient(90deg,transparent,#000 13%);
  }
  .hero-art::after {
    background: linear-gradient(180deg,#031b1c 0%,#031b1c88 10%,transparent 36%),
                linear-gradient(0deg,var(--bg) 0%,transparent 12%);
  }
  .hero-inner {
    min-height: 0;
    padding-block: 36px clamp(270px,48vw,420px);
    align-items: flex-start;
  }
  .hero-content { max-width: min(100%,640px); }
}

/* Phone: use portrait art with its own negative space above the subjects.
   Extra CMS copy expands the section instead of hiding the illustration. */
@media (max-width: 480px) {
  .hero-art {
    --hero-image: url('assets/hero-emerald-mobile.webp');
    inset: 0;
    height: auto;
  }
  .hero-art::before {
    inset: 0;
    aspect-ratio: auto;
    background-position: center bottom;
    mask-image: none;
  }
  .hero-art::after {
    background: linear-gradient(0deg,var(--bg) 0%,transparent 10%);
  }
  .hero-inner {
    min-height: clamp(560px,155vw,760px);
    padding-block: 28px clamp(310px,88vw,422px);
  }
  .hero-content { max-width: 100%; }
  .hero-actions { gap: 9px; }
}
