/* hero.css — cinematic full-viewport hero with parallax media + kinetic title */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Parallax media layer (scaled/translated by motion.js) */
.hero-media {
  position: absolute;
  inset: -8% 0 -8% 0;   /* small bleed for parallax; kept short so `cover` scales
                           the image to the viewport width = maximum zoom-out */
  z-index: 0;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;   /* favours the lower half — trims sky off the top */
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(30, 26, 22, 0.26) 0%, rgba(30, 26, 22, 0) 34%),
    linear-gradient(0deg, rgba(30, 26, 22, 0.5) 0%, rgba(30, 26, 22, 0.02) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem clamp(4rem, 12vh, 8rem);
  width: 100%;
}

.hero-place {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
}

/* Kinetic per-letter reveal (spans injected by motion.js) */
.hero-title .char {
  display: inline-block;
  will-change: transform;
}
.hero-title .space { display: inline-block; width: 0.28em; }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 1.6rem;
  opacity: 0.88;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* Thin decorative rule under subtitle */
.hero-rule {
  width: 1px;
  height: clamp(2.5rem, 7vh, 4.5rem);
  margin: 2.2rem auto 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  transform-origin: top;
}

@media (max-width: 560px) {
  .hero-media img { object-position: center 50%; }
}

/* extra hero images only appear (stacked) on mobile */
.hero-extra { display: none; }

/* Mobile: three images fill the start screen; the title sits centered on the
   middle (central) image. Each image takes a third of the viewport. */
@media (max-width: 640px) {
  .hero { height: 100vh; min-height: 0; display: block; position: relative; }
  .hero-media { position: static; inset: auto; height: 33.34vh; will-change: auto; }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; }
  .hero-extra {
    display: block; width: 100%; height: 33.33vh;
    object-fit: cover; object-position: center;
  }
  .hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(30,26,22,0.52) 0%, rgba(30,26,22,0.12) 55%, rgba(30,26,22,0) 78%);
  }
  .hero-content {
    position: absolute; top: 50%; left: 0; right: 0; bottom: auto;
    transform: translateY(-50%);
    padding: 0 1rem;
  }
  .hero-place { margin-bottom: 0.6rem; font-size: 0.62rem; letter-spacing: 0.34em; }
  .hero-title { font-size: clamp(2.4rem, 13vw, 3.6rem); text-shadow: 0 3px 22px rgba(0,0,0,0.55); }
  .hero-subtitle { margin-top: 0.7rem; font-size: 0.7rem; }
  .hero-rule { display: none; }
}
