@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Bitcount+Grid+Single:wght@300&display=swap');

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

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

body {
  font-family: 'DotGothic16', monospace;
  letter-spacing: 0.08em;
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 300ms ease-out;
}

body.fading-out {
  opacity: 0 !important;
  transition: opacity 300ms ease-out;
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  cursor: pointer;
}

.bg-img,
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 10;
  pointer-events: none;
}

.nav span, .nav a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
  pointer-events: auto;
}

.nav a:hover {
  opacity: 0.7;
}

.hint {
  position: absolute;
  bottom: 24px;
  right: 32px;
  color: #fff;
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 0.1em;
  z-index: 10;
}

/* Home page big clickable title */
.home-title {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 495px;
  height: 137px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bitcount Grid Single', monospace;
  font-weight: 300;
  font-size: 108px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(0,0,0,0.6);
  transition: opacity 200ms ease-out;
}

.home-title:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .nav { top: 16px; padding: 0 18px; }
  .nav span, .nav a { font-size: 11px; }
  .hint { bottom: 16px; right: 18px; font-size: 10px; }
  .home-title { transform: translate(-50%, -50%) scale(0.55); }
}
