:root { --nav-h: 56px; }

.hero {
  position: relative;
  min-height: clamp(240px, 28vw, 420px);
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}

.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
              rgba(0,0,0,0.35) 0%,
              rgba(0,0,0,0.35) 40%,
              rgba(0,0,0,0.15) 70%,
              rgba(0,0,0,0.00) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: calc(1.5rem + var(--nav-h)) 1.5rem 1.5rem;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
}

header { position: relative; }
header nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 20;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(150%) blur(6px);
  -webkit-backdrop-filter: saturate(150%) blur(6px);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header + main { margin-top: 0.5rem; }

@media (max-width: 540px) {
  :root { --nav-h: 84px; }
}

@media (prefers-color-scheme: dark) {
  .hero-overlay {
    background: linear-gradient(90deg,
                rgba(0,0,0,0.55) 0%,
                rgba(0,0,0,0.55) 40%,
                rgba(0,0,0,0.25) 70%,
                rgba(0,0,0,0.00) 100%);
  }
  header nav { background: rgba(0, 0, 0, 0.5); }
}
