@import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap");
@font-face {
  font-family: "PPSupplyMono";
  src: url("https://assets.codepen.io/7558/PPSupplyMono-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --color--background: rgb(60, 60, 60);
  --color--foreground: #c4d5bc;
  --font-primary: "PPSupplyMono", "Courier New", monospace;
  --font-secondary: "Exo 2", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-primary);
  background: radial-gradient(
    circle at 10% 20%,
    rgb(230, 230, 230) 0%,
    rgb(180, 180, 180) 45%,
    rgb(100, 100, 100) 90%
  );
  color: var(--color--foreground);
  letter-spacing: -0.03em;
  position: relative;
  overflow: hidden;
}

body.loading-active {
  overflow: hidden !important;
}

body::before {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: transparent url("https://assets.codepen.io/7558/noise.png") repeat 0 0;
  background-size: 300px 300px;
  animation: noise-animation 0.3s steps(5) infinite;
  opacity: 0.9;
  pointer-events: none;
  z-index: 100;
}

@keyframes noise-animation {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-3%, 4%);
  }

  50% {
    transform: translate(2%, -5%);
  }

  75% {
    transform: translate(-4%, -2%);
  }

  100% {
    transform: translate(1%, 0);
  }
}

.intro-screen {
  position: fixed;
  inset: 0;
  background: #131313;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  display: none;
  align-items: center;
  justify-content: center;
}

.preloader svg,
.preloader canvas {
  width: 100% !important;
  height: 100% !important;
}

.enable-button {
  border: 1px solid #c4d5bc;
  background: transparent;
  color: #c4d5bc;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enable-button:hover {
  background: #c4d5bc;
  color: #0a0a0a;
}

.visit-button {
  min-width: 160px;
}

.visit-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.visit-button.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.page-content {
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.page-content.active {
  opacity: 1;
  pointer-events: auto;
}

.fallback-bg {
  position: fixed;
  inset: 0;
  background-image: url("images/home-bg.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.logo-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: min(90vw, 1200px);
  margin: 0 auto;
  padding: 4rem 0;
  height: 100vh;
}

.intro-logo {
  width: 50vw;
  max-width: 560px;
  height: auto;
}

.text-element {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color--foreground);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  color: var(--color--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  height: 100%;
  background: var(--color--foreground);
  z-index: -1;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #1a1a1a;
}

.error-message {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 0, 0, 0.8);
  color: #fff;
  padding: 10px;
  font-size: 12px;
  display: none;
  z-index: 3000;
}

@media (max-width: 900px) {
  .logo-container {
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
  }

  .intro-logo {
    width: 70vw;
  }

  .nav-links {
    align-items: center;
  }

  .text-element {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .intro-logo {
    width: 80vw;
  }

  .text-element {
    font-size: 1.5rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-links a:hover::after {
    width: 0;
  }

  .nav-links a:active::after {
    width: 100%;
  }

  .enable-button:hover {
    background: transparent;
    color: #c4d5bc;
  }

  .enable-button:active {
    background: #c4d5bc;
    color: #0a0a0a;
  }
}
