body {
  margin: 0;
  font-family: "Times New Roman", serif;
  color: #000;

  transition: background-color 0.8ms ease-in-out;
}

/* Background video */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background: black;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.bg-video.playing {
  opacity: 1;
}

/* Overlay for interactions */
.overlay {
  position: relative;
  min-height: 100vh;
  padding-top: 60px;
  padding-left: 80px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* FIXED TITLE TOP LEFT */
.site-header {
  margin-bottom: 30px;
}

.title {
  font-size: 24px;
  font-weight: 400;
  opacity: 0;
  cursor: pointer;
  transition: opacity 300ms ease;
  color: inherit;
  margin: 0;
  letter-spacing: 1.5px;
}

.title.visible {
  opacity: 1;
}

/* LAYOUT BELOW TITLE (FLOW) */
.layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* MENU */
.menu {
  display: none;
  flex-direction: row;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 250ms ease;
  color: inherit;
  letter-spacing: 1.5px;
  padding-left: 65px;
}

.menu.visible {
  display: flex;
  opacity: 1;
}

.menu a {
  color: inherit;
  text-decoration: none;
  font-size: 24px;
  text-transform: uppercase;
}

/* CONTENT */
.content {
  padding: 5px 145px 0 65px;
  opacity: 0;
  transition:
    opacity 250ms ease,
    transform 250ms ease;
  color: inherit;
  font-size: 20px;
}

.content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Menu active mode (white background) */
body.menu-active {
  background: white;
}

body.menu-active .title,
body.menu-active .menu,
body.menu-active .content {
  color: #000;
}

body.menu-active .bg-video {
  /* display: none; */
  opacity: 0;
}

/* MOBILE VERSION */
@media (max-width: 768px) {
  .overlay {
    padding: 40px 45px;
  }

  .site-header {
    margin-bottom: 20px;
  }

  .title {
    font-size: 20px;
  }

  .menu {
    flex-direction: column;
    gap: 1rem;
    padding: 20px 0;
  }

  .menu a {
    font-size: 20px;
  }

  .content {
    padding: 0;
    font-size: 18px;
    line-height: 1.5;
  }

  .bg-video {
    object-fit: cover;
  }
}
