*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Segoe UI", Tahoma, sans-serif;
  background: #0f172a;
  color: #f3f4f6;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

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

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgb(15 23 42 / 0.15) 0%,
    rgb(15 23 42 / 0.35) 45%,
    rgb(15 23 42 / 0.55) 100%
  );
  pointer-events: none;
}

.hero__caption {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(2.25rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  color: #f3f4f6;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.45);
  user-select: none;
}

.hero__dots {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.hero__dot {
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: #f1f5f9;
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero__dot:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

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

.hero__dot:focus-visible {
  outline: 2px solid #f8fafc;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
