* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

#logo_glimmer {
	width: 120px;
  display: block;
}

body {
position: relative;
  z-index: 0;
  min-height: 100vh;
  width: 100%;
}
.loading .header {
  opacity: 0;
  transform: translateY(20px);
}

/* Fade in animation */
.show-content .header {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

/* Background Video */

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}

.video-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh; /* mobile-safe viewport */
  overflow: hidden;
  z-index: -1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 28px 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  color: white;
}

/* Menu */
.menu-container {
  position: relative;
}

#menu-btn {
  --menu-icon-length: 60px;
  --menu-icon-thickness: 1.5px;
  --menu-icon-gap: 5px;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  color: white;
  width: 70px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#menu-btn img {
  width: 30px;
  object-fit: contain;
}

#menu-btn:focus,
#menu-btn:active {
  outline: none;
  box-shadow: none;
}

.menu-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--menu-icon-length);
  height: calc(var(--menu-icon-gap) * 2 + var(--menu-icon-thickness));
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
  animation: menu-icon-fade-in 1s ease both;
}

.menu-icon span {
  position: absolute;
  left: 50%;
  width: var(--menu-icon-length);
  height: var(--menu-icon-thickness);
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
}

.menu-icon--open span:first-child {
  transform: translate(-50%, calc(-1 * var(--menu-icon-gap)));
}

.menu-icon--open span:last-child {
  transform: translate(-50%, var(--menu-icon-gap));
}

.menu-icon--close span:first-child {
  transform: translate(-50%, 0) rotate(12deg) scaleX(0.88);
}

.menu-icon--close span:last-child {
  transform: translate(-50%, 0) rotate(-12deg) scaleX(0.88);
}

.menu-icon--close {
  width: calc(var(--menu-icon-length) * 1.5);
  height: calc((var(--menu-icon-gap) * 2 + var(--menu-icon-thickness)) * 0.5);
}

.menu-icon--close span {
  width: calc(var(--menu-icon-length) * 1.5);
}

@keyframes menu-icon-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.logo-wrapper {
  position: relative;
}

#menu {
  position: absolute;
  top: 45px;
  left: 0px;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 1s ease, opacity 1s ease;
  pointer-events: none;
}

.header.menu-active #menu {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

#menu a {
  text-align: left;
  text-decoration: none;
  display: block;
  padding: 10px 0px;
  color: white;
  font-size: 14px;
  position: relative;
  width: fit-content;
}

#menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

#menu a:hover::after {
  transform: scaleX(1);
}

/* #menu a:hover {
  background: rgba(255, 255, 255, 0.15);
} */

/* Logo */
.logo {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}

.header.menu-active .logo {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
	#logo_glimmer {
	width: 80px;
}
  /*video {
    height: 100%;
  }*/

  #menu-btn {
    --menu-icon-length: 30px;
    --menu-icon-thickness: 1px;
    --menu-icon-gap: 2.5px;
    width: 35px;
    height: 13px;
  }

  /* #menu-btn img {
    width: 50px;
  } */

  #menu a {
    font-size: 16px;
    padding: 5px 0px;
    margin-bottom: 5px;
  }

  .header {
    padding: 22px 40px;
  }

  #menu-btn {
    padding: 0;
  }

  #menu {
    top: 25px;
    left: 0px;
  }

  .logo {
    font-size: 19px;
  }
}

/* PC + iPad: menu and logo visible on load; same max-height/opacity transition when opening on SP only */
@media (min-width: 768px) {
  #menu {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .logo {
    opacity: 1;
    visibility: visible;
  }

  .menu-container {
    display: none;
  }
}