.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #3b4a5f 0%, #2a3647 45%, #1d2635 100%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* A low vertical value keeps the island in the lower part of the frame on wide screens,
     leaving sky at the top right for the stat card. */
  object-position: var(--hero-focus);
}

/* Legibility: darken the left (headline) and bottom (email bar) only; the island stays bright. */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(16 22 34 / 0.62) 0%, rgb(16 22 34 / 0.28) 34%, transparent 55%),
    linear-gradient(0deg, rgb(16 22 34 / 0.55) 0%, rgb(16 22 34 / 0.12) 30%, transparent 45%);
}

/* Compact card anchored near the top right, over the sky and clear of the cottage. */
.stat-card {
  grid-area: stats;
  align-self: start;
  margin: calc(-1 * clamp(16px, 6vw, 88px)) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px 16px;
}

.stat-card div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 10px 12px;
}

.stat-card div:nth-child(odd) {
  border-right: 1px solid var(--rule);
}

.stat-card div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--rule);
}

.stat-card dd {
  margin: 0;
  min-height: 1.1em;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--mint);
}

.stat-card dt {
  font-size: 0.95rem;
  line-height: 1.25;
}

@media (max-width: 860px) {
  /* Portrait: a shorter band keeps the windmill and cottage in frame, fading into the page. */
  .hero-art {
    bottom: auto;
    height: min(62svh, 500px);
    background: none;
    mask-image: linear-gradient(180deg, #000 55%, transparent);
  }

  .hero-art img {
    object-position: 72% 45%;
  }

  /* Stronger scrim so the headline, subtitle and support line read over the roof and windmill. */
  .hero-art::after {
    background: linear-gradient(
      180deg,
      rgb(16 22 34 / 0.78) 0%,
      rgb(16 22 34 / 0.62) 55%,
      rgb(16 22 34 / 0.45) 100%
    );
  }

  .hero-copy p {
    text-shadow: 0 1px 12px rgb(10 14 22 / 0.8);
  }

  .stat-card {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 1.15rem;
  }

  .brand-mark {
    width: 32px;
    height: 23px;
  }

  .pill {
    padding: 6px 14px;
    font-size: 0.88rem;
  }
}
