/* Inspector hero v0.9 — continuous decorative background, no text backplates.
   Existing typography, copy, controls and access are preserved. */
.ins-hero-opening {
  position: relative;
  isolation: isolate;
}
.ins-hero-opening::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -72px;
  bottom: -180px;
  left: 50%;
  width: calc(100vw - 32px);
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at 88% 54%, #f1f7fc 0, #f9fcfe 34%, #fff 72%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 72%, transparent);
}
.ins-hero-reading {
  position: relative;
  z-index: 1;
}
.ins-hero-context {
  position: relative;
  display: flow-root;
}

/* The illustration is out of flow at EVERY width. Its vertical reference
   follows the end of the actual heading, including EN/ES and font changes. */
.ins-hero-art {
  position: absolute;
  z-index: 0;
  top: -170px;
  left: 50%;
  width: calc(100vw - 32px);
  height: 620px;
  margin: 0;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: paint;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
}
.ins-hero-art::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% + 400px);
  height: 100%;
  aspect-ratio: 2062 / 763;
  transform: translateX(-61%);
  background: url("./hero-walkaround-2062.webp") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 94%, transparent);
}

/* Real HTML text remains above the faint continuous artwork.
   No white plates, halos, or generated surfaces behind the content. */
.ins-hero-reading > .ins-eyebrow,
.ins-hero-reading > h1,
.ins-hero-context > .ins-intro,
.ins-hero-context > .ins-actions {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

/* Compact screens retain one continuous hero, with a lower corner reserved
   inside it. The art never becomes a separate card or a normal-flow image. */
@media (max-width: 1199px) {
  .ins-hero-context {
    --ins-art-height: clamp(290px, 80vw, 380px);
    padding-bottom: calc(var(--ins-art-height) * .68 + 48px);
  }
  .ins-hero-opening::before {
    bottom: -32px;
    background: radial-gradient(ellipse at 85% 72%, #f0f7fc 0, #fafcfe 48%, #fff 88%);
  }
  .ins-hero-art {
    top: -100px;
    bottom: 0;
    width: calc(100vw - 16px);
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 95%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 95%, transparent);
  }
  .ins-hero-art::before {
    top: auto;
    bottom: 0;
    left: 50%;
    height: var(--ins-art-height);
    transform: translateX(-79%);
    background-image: url("./hero-walkaround-1440.webp");
  }
}

@media print, (forced-colors: active) {
  .ins-hero-context { padding-bottom: 0; }
  .ins-hero-art,
  .ins-hero-opening::before { display: none; }
}
