.hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.35fr);
  gap: 0;
  align-items: center;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  padding-right: 1rem;
  /* Space so text sits cleanly; photo slides under by ~3cm */
  margin-right: -3cm;
}

.hero-location {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  left: auto;
  z-index: 4;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 0.45rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(18, 16, 12, 0.42);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-pager {
  display: flex;
  gap: 0.85rem;
  margin-top: 2.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-pager button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.15rem 0.1rem;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  letter-spacing: inherit;
}

.hero-pager .is-on {
  color: var(--ink);
}

.hero-media {
  position: relative;
  z-index: 1;
  margin: 0;
  /* Pull photo left under the text ~3cm */
  margin-left: -3cm;
  isolation: isolate;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: clamp(360px, 52vw, 640px);
  background: #e8e8e8;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
}

.hero-media img,
.hero-media .hero-slide {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 52vw, 640px);
  object-fit: cover;
  object-position: 58% 42%;
  transform: scale(1.06);
  filter: saturate(0.92) contrast(0.96) brightness(1.02) sepia(0.06);
}

.hero-media .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  animation: none;
  will-change: opacity;
}

.hero-media .hero-slide.is-on {
  opacity: 1;
  z-index: 0;
  animation: hero-live 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes hero-live {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, -0.6%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-media .hero-slide {
    animation: none;
  }
}

/* Soft natural blend under text (~3cm+ fade) */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(48%, 3cm + 9rem);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 70%, transparent) 38%,
    color-mix(in srgb, var(--bg) 25%, transparent) 68%,
    transparent 100%
  );
}

html[data-theme="light"] .hero-media::before {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.88) 32%,
    rgba(255, 255, 255, 0.35) 62%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Warm dusk wash + soft vignette + light grain — feels less like a flat photo print */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 35%, rgba(255, 210, 140, 0.14), transparent 55%),
    radial-gradient(90% 80% at 50% 100%, rgba(20, 18, 14, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(30, 24, 16, 0.1));
  mix-blend-mode: soft-light;
  opacity: 0.95;
}

.hero-media .hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero-badge {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 15rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.hero-badge-icon {
  flex: 0 0 auto;
  color: var(--accent);
}

.hero-badge strong,
.hero-badge span span {
  display: block;
}

.hero-badge strong {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-badge span span {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-copy {
    margin-right: 0;
    padding-right: 0;
  }

  .hero-media {
    order: -1;
    margin-left: 0;
    min-height: clamp(280px, 62vw, 420px);
  }

  .hero-media img,
  .hero-media .hero-slide {
    min-height: clamp(280px, 62vw, 420px);
  }

  .hero-media::before {
    width: 100%;
    height: 38%;
    inset: auto 0 0 0;
    background: linear-gradient(0deg, var(--bg), transparent);
  }

  html[data-theme="light"] .hero-media::before {
    background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
  }
}
