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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  position: relative;
  font-family: Helvetica, Arial, sans-serif;
  color: white;
}

/* CANVAS */
#canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

#canvas-container canvas {
  display: block;
}

/* MENU BAR */
.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 24px;
  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  mix-blend-mode: difference;
  color: white;
}

.menu-left {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* EDIT THIS to change space between logo and left text block */
}

.logo-box {
  width: 40px;
  height: 40px;
  background: white;
  flex-shrink: 0;
}

.name-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-transform: uppercase;
}

.site-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 2px 0;
  color: white;
}

.site-role {
  font-size: 14px;
  line-height: 1.1;
  color: white;
}

/* RIGHT SIDE: vertical and left aligned */
.menu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* keeps Works and Exploration left aligned */
  gap: 2px; /* space between Works and Exploration */
}

.menu-link {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.1;
  color: white;
  transition: color 0.2s ease;
}

.menu-link:hover,
.site-name:hover,
.site-role:hover {
  color: red;
}

/* HOVER TEXT */
#hover-container {
  position: fixed;
  left: 48px;
  bottom: 36px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 120;
  color: white;
  max-width: min(520px, calc(100vw - 96px));
}

#main-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 4px;
}

#sub-title {
  font-family: "Courier New", monospace;
  font-size: clamp(15px, 2vw, 20px);
  text-transform: uppercase;
  line-height: 1.2;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-bar {
    padding: 16px 18px;
  }

  .menu-left {
    gap: 14px; /* mobile spacing between logo and left text block */
  }

  .logo-box {
    width: 32px;
    height: 32px;
  }

  .site-name,
  .site-role,
  .menu-link {
    font-size: 12px;
  }

  .menu-right {
    gap: 2px;
  }

  #hover-container {
    left: 24px;
    bottom: 24px;
    max-width: calc(100vw - 48px);
  }
}