
:root {
  color-scheme: dark;
  --page-background: #000;
  --page-foreground: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--page-background);
}

body {
  overflow: hidden;
  color: var(--page-foreground);
  font-family: Arial, Helvetica, sans-serif;
}

.landing {
  position: fixed;
  inset: 0;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.visual-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, calc(100svh * 1464 / 1066));
  aspect-ratio: 1464 / 1066;
  overflow: hidden;
  transform: translate(-50%, -50%);
  transform-origin: center;
  background: #000 url('/media/hubing-desktop-poster.webp') center / cover no-repeat;
}

.background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.brand {
  position: absolute;
  z-index: 1;
  top: max(14.63%, calc((100% - 100svh) / 2 + 3svh));
  left: 50%;
  width: clamp(10rem, 13.66%, 13.75rem);
  margin: 0;
  transform: translateX(-50%);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.event-label {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: max(6.85%, calc((100% - 100svh) / 2 + 4svh));
  left: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(0.6875rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 768px) and (min-aspect-ratio: 3 / 2) {
  .visual-stage {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none;
    background-image: url('/media/hubing-wide-poster.webp');
  }

  .brand {
    top: 14.63%;
  }

  .event-label {
    bottom: 6.85%;
  }
}

@media (max-width: 767px) {
  .visual-stage {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none;
    background-image: url('/media/hubing-mobile-poster.webp');
    background-size: contain;
  }

  .background-video {
    object-fit: contain;
  }

  .brand {
    top: clamp(4.25rem, 10.75svh, 6.5rem);
    width: clamp(9.625rem, 34vw, 11.875rem);
  }

  .event-label {
    bottom: max(2.75rem, 7.5svh);
    font-size: clamp(0.625rem, 2.2vw, 0.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-video {
    display: none;
  }
}
