@font-face {
  font-family: 'FixedSys';
  src: url('../fonts/FixedSys.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  font-family: 'FixedSys', 'Courier New', monospace;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: none;
  text-rendering: optimizeSpeed;
}

.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 0;
}

.overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding: 8vh 6vw 6vh;
  text-align: center;
}

.title {
  font-size: clamp(1.75rem, 10.4vw, 7.8rem);
  line-height: 1;
  font-weight: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.2rem, 4.68vw, 3.276rem);
  font-weight: normal;
  letter-spacing: 0.05em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  gap: 1.5rem 4rem;
}

.links a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.2rem, 3.744vw, 2.34rem);
  letter-spacing: 0.05em;
  transition: opacity 0.15s ease;
}

.links a:hover,
.links a:focus {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .overlay {
    gap: 3.5rem;
    padding: 6vh 6vw;
  }
}

@media (max-width: 480px) {
  .overlay {
    gap: 2.25rem;
    padding: 5vh 6vw;
  }

  .title {
    letter-spacing: 0;
  }

  .subtitle {
    margin-top: 1rem;
  }

  .links {
    gap: 1rem 2.5rem;
  }
}

@media (max-width: 340px) {
  .title {
    white-space: normal;
  }
}
