* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #050505;
}

.stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  filter: saturate(0.95) contrast(1.04);
  animation: video-settle 1400ms ease-out both;
  z-index: -2;
}

.stage__label {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 1;
  max-width: min(52vw, 760px);
  color: #fff8ef;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 8.4vw, 7.4rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.76);
}

.stage:focus-visible {
  outline: 4px solid #e9c46a;
  outline-offset: -12px;
}

.stage:hover .stage__video {
  transform: scale(1.035);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes video-settle {
  from {
    opacity: 0;
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@media (max-width: 720px) {
  .stage {
    align-items: center;
    justify-items: center;
  }

  .stage__video {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(100vw, calc(100svh * 1.1));
    height: min(100svh, calc(100vw / 1.1));
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%) scale(1.015);
    animation-name: mobile-video-settle;
  }

  .stage:hover .stage__video {
    transform: translate(-50%, -50%) scale(1.035);
  }

  .stage__label {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: 54vw;
    font-size: clamp(1.8rem, 11vw, 3rem);
  }
}

@keyframes mobile-video-settle {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
