/* Full-viewport responsive hero: image scales and crops to cover any screen size. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  color: #f4f7f3;
  background: #0d120f;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: min(6vw, 3rem);
  padding-bottom: max(min(6vw, 3rem), env(safe-area-inset-bottom, 0));
  padding-left: max(min(6vw, 3rem), env(safe-area-inset-left, 0));
  padding-right: max(min(6vw, 3rem), env(safe-area-inset-right, 0));
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  pointer-events: none;
}

/* Tweak focal point on very wide or very tall viewports so the main subject stays in frame */
@media (min-aspect-ratio: 2/1) {
  .hero__image {
    object-position: 50% 35%;
  }
}

@media (max-aspect-ratio: 2/3) {
  .hero__image {
    object-position: 50% 45%;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(5, 10, 8, 0.75) 0%,
    rgba(5, 10, 8, 0.2) 45%,
    rgba(5, 10, 8, 0) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero__title {
  margin: 0 0 0.35em;
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero__lede {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .hero__image {
    transition: none;
  }
}
