:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0e12;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button {
  color: inherit;
  font: inherit;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0a0e12;
}

.slideshow,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 6s ease, visibility 900ms;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

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

.headline {
  position: absolute;
  z-index: 3;
  top: clamp(1.25rem, 5vh, 3.5rem);
  left: 50%;
  width: min(92vw, 72rem);
  transform: translateX(-50%);
  text-align: center;
  text-wrap: balance;
}

.label {
  margin: 0;
  color: #fff;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.status {
  position: absolute;
  z-index: 3;
  bottom: clamp(1.25rem, 4.5vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: clamp(0.7rem, 1.6vh, 1rem);
}

.status .label {
  white-space: nowrap;
}

.dots {
  display: flex;
  gap: 0.55rem;
}

.dot {
  width: 1.9rem;
  height: 1rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  cursor: pointer;
}

.dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: background-color 180ms ease, transform 180ms ease;
}

.dot.is-active::after {
  background: #fff;
  transform: scaleY(1.5);
}

.arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.arrow:hover,
.arrow:focus-visible {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.42);
  outline: none;
}

.arrow--previous {
  left: clamp(0.75rem, 2.5vw, 2rem);
}

.arrow--next {
  right: clamp(0.75rem, 2.5vw, 2rem);
}

@media (max-width: 36rem) {
  .headline {
    top: 1.25rem;
  }

  .arrow {
    top: auto;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    transform: none;
  }

  .status {
    bottom: 1.15rem;
  }

  .status .dots {
    display: none;
  }
}

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