/* ============================================================
                            BODY
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: url('images/cursor.png') 0 0, auto;
}

a, button, .nav-item, .nav-item > a {
  cursor: url('images/cursor_hover.png') 0 0, pointer !important;
}

/* ============================================================
                            FONTS
============================================================ */

@font-face {
  font-family: 'BianzhidaiMessy';
  src: url('fonts/bianzhidai_noBG-Messy.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BianzhidaiPearl';
  src: url('fonts/bianzhidai_noBG-Pearl.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
                BACKGROUND VIDEO + IMAGE
============================================================ */

.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; 
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-video.is-playing {
  opacity: 1;
}

.hero-mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image {
  padding-top: 6vh;
  position: relative;
  z-index: 1;
  max-width: 70vw;
  max-height: 70vh;
  height: auto;
  pointer-events: none;
}

.scroll-arrow {
  margin-top: 2vh;
  padding: 0;
  border: none;
  background: none;
  font-family: 'BianzhidaiPearl', sans-serif;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  user-select: none;
  transition: opacity 0.35s ease;
}

.scroll-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
                            MENU
============================================================ */

.topnav {
  background-color: rgba(255, 255, 255, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4vw;
  width: min(680px, calc(100vw - 1.5rem));
  height: 6vh;
  min-height: 44px;
  position: fixed;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  white-space: nowrap;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-item {
  height: 100%;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item > a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  text-align: center;
  font-family: 'BianzhidaiPearl', sans-serif;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(9px, 2vw, 18px);
  position: relative;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.nav-item > a::after {
  content: attr(data-text);
  font-family: 'BianzhidaiMessy', sans-serif;
  font-size: clamp(7px, 1.8vw, 14px);
  color: #463838;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.topnav:hover .nav-item > a:hover {
  color: transparent;
}

.topnav:hover .nav-item > a:hover::after {
  opacity: 1;
}

/* ============================================================
                          RESPONSIVE
============================================================ */

@media (max-width: 600px) {
  .hero-image {
    max-width: 88vw;
    max-height: 46vh;
    padding-top: 2vh;
  }

  .scroll-arrow {
    font-size: clamp(36px, 12vw, 56px);
  }

  .topnav {
    bottom: 1rem;
    height: auto;
  }

  .nav-item > a {
    font-size: clamp(7px, 2.35vw, 13px);
  }

  .nav-item > a::after {
    font-size: clamp(7px, 2.3vw, 11px);
  }
}

@media (hover: none) {
  .topnav {
    background-color: #ffffff;
    box-shadow: 0px 0px 10px 10px #ffffff;
  }
  .nav-item > a {
    color: #463838;
    text-shadow: none;
  }
}