/* ============================================
   HERO — Full-screen cinematic crossfade
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 60px;
}

/* --- Slideshow container --- */
.hero__slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  will-change: opacity, transform;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ken Burns — each slide gets a slightly different motion */
.hero__slide:nth-child(1) img { animation: kenBurns1 7s ease-in-out forwards; }
.hero__slide:nth-child(2) img { animation: kenBurns2 7s ease-in-out forwards; }
.hero__slide:nth-child(3) img { animation: kenBurns3 7s ease-in-out forwards; }
.hero__slide:nth-child(4) img { animation: kenBurns4 7s ease-in-out forwards; }

/* Paused by default, play only when active */
.hero__slide img {
  animation-play-state: paused;
}

.hero__slide.is-active img {
  animation-play-state: running;
}

@keyframes kenBurns1 {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

@keyframes kenBurns2 {
  0%   { transform: scale(1.05) translate(1%, 0); }
  100% { transform: scale(1) translate(-0.5%, -1%); }
}

@keyframes kenBurns3 {
  0%   { transform: scale(1) translate(0, 1%); }
  100% { transform: scale(1.1) translate(0.5%, -0.5%); }
}

@keyframes kenBurns4 {
  0%   { transform: scale(1.08) translate(-1%, 0.5%); }
  100% { transform: scale(1) translate(0, 0); }
}

/* --- Overlay --- */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(26, 24, 22, 0.7) 0%,
    rgba(26, 24, 22, 0.2) 50%,
    rgba(26, 24, 22, 0.05) 100%
  );
  z-index: 1;
}


/* --- Content --- */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--warm-ivory);
  padding: 0 var(--side-pad);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.7);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--warm-ivory);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 235, 0.7);
  margin-bottom: 32px;
}

/* --- Scroll indicator --- */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.5);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245, 240, 235, 0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Desktop */
@media (min-width: 768px) {
  .hero {
    padding-bottom: 80px;
  }

  .hero__eyebrow {
    font-size: 12px;
    margin-bottom: 24px;
  }

  .hero__title {
    font-size: 96px;
  }

  .hero__subtitle {
    font-size: 22px;
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 112px;
  }
}
