.hero {
  --hero-ground: 16 43 35;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(460px, 37.5vw, 585px);
  background: rgb(var(--hero-ground));
  color: #fffaf1;
}

.hero-frame {
  position: relative;
  z-index: 1;
  padding-block: clamp(36px, 5.2vw, 76px);
}

.hero-text { max-width: min(55%, 640px); }
.hero .eyebrow { color: #ffdbb6; }
.hero h1 { font-size: clamp(39px, 5.1vw, 72px); overflow-wrap: anywhere; }
.hero .lead {
  max-width: 49ch;
  margin: 18px 0 23px;
  color: #f2eee5;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
}
.hero .sales-assurances, .hero .check-offline { color: #f0ece1; }
.hero .sales-assurances li::before { color: #ffe1b9; }
.hero .cta:focus-visible { outline-color: #ffe1b9; color: #fff; }

.hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}
.hero-art img[data-focus="right"] { object-position: 74% 57%; }
.hero-art img[data-focus="far-right"] { object-position: 90% 55%; }
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgb(var(--hero-ground) / .99) 0%, rgb(var(--hero-ground) / .96) 25%,
    rgb(var(--hero-ground) / .89) 41%, rgb(var(--hero-ground) / .74) 53%,
    rgb(var(--hero-ground) / .25) 72%, rgb(var(--hero-ground) / .04) 100%);
}
.hero-credit {
  position: absolute;
  z-index: 1;
  right: clamp(10px, 2vw, 24px);
  bottom: clamp(10px, 1.5vw, 20px);
  padding: 3px 8px;
  border-radius: 5px;
  background: #142820e8;
  color: #fffaf1;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.hero-legal { min-height: clamp(220px, 21vw, 285px); }
.hero-legal h1 { font-size: clamp(32px, 4.3vw, 55px); }
.hero-legal .hero-frame { padding-block: 34px 46px; }

@media (max-width: 900px) {
  .hero:not(.hero-legal) h1 { font-size: clamp(36px, 5.5vw, 50px); }
}

@media (max-width: 740px) {
  .hero:not(.hero-legal) { min-height: 0; align-items: stretch; }
  .hero:not(.hero-legal) .hero-frame { grid-row: 1; padding-block: 25px 12px; }
  .hero:not(.hero-legal) .hero-text { max-width: 34rem; }
  .hero:not(.hero-legal) h1 { font-size: clamp(33px, 8.8vw, 52px); text-wrap: pretty; }
  .hero .lead { margin-block: 12px 15px; }
  .hero:not(.hero-legal) .hero-art {
    position: relative;
    grid-row: 2;
    height: clamp(205px, 54vw, 330px);
  }
  .hero:not(.hero-legal) .hero-art::after {
    background: linear-gradient(180deg,
      rgb(var(--hero-ground)) 0%, rgb(var(--hero-ground) / .24) 32%, transparent 57%);
  }
  .hero-legal { min-height: 213px; }
  .hero-legal .hero-text { max-width: 90%; }
  .hero-legal h1 {
    font-size: clamp(23px, 6.7vw, 32px);
    text-wrap: wrap;
  }
  .hero-legal .hero-art::after {
    background: linear-gradient(90deg,
      rgb(var(--hero-ground) / .98) 0%, rgb(var(--hero-ground) / .93) 29%,
      rgb(var(--hero-ground) / .77) 66%, rgb(var(--hero-ground) / .23) 100%);
  }
}
