.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h, 68px));
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: row;
  padding: 0;
  border-bottom: none;
  overflow: hidden;
}

.hero-invitation {
  flex: 0 0 42%;
  max-width: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 1.5rem 2.5rem;
  overflow: hidden;
}

.hero-photo {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.hero-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-carousel-dot.is-active {
  background: #fff;
}

.scroll-chevron {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  opacity: 0.85;
  animation: bounce 2s infinite;
  text-decoration: none;
  font-size: 1.75rem;
  line-height: 1;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero-invitation {
    flex: 0 0 auto;
    max-width: 100%;
    order: 2;
    padding: 2.5rem 1.5rem;
    overflow-y: visible;
  }

  .hero-photo {
    flex: 0 0 42vh;
    order: 1;
  }

  .scroll-chevron {
    display: none;
  }
}
