/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Canvas ===== */
canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Header top, Footer bottom */
  align-items: center;
  padding: 60px 20px;
}

.overlay header {
  text-align: center;
}

.overlay h1 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
  opacity: 0;
  animation: fadeSlideIn 1.8s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
  margin-bottom: 8px;
}

.overlay .subtitle {
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #555555;
  opacity: 0;
  animation: fadeSlideIn 1.8s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
}

.overlay footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* Removed animation/opacity from container to avoid containing block for abs-pos children */
}

.overlay .hint {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #bbbbbb;
  transition: opacity 0.6s ease;
  opacity: 0;
  animation: fadeSlideIn 2s cubic-bezier(0.23, 1, 0.32, 1) 2s forwards;
}

.overlay .copyright {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  letter-spacing: 0.1em;
  color: #111111;
  opacity: 0;
  font-family: 'Inter', sans-serif;
  animation: fadeSlideIn 2s cubic-bezier(0.23, 1, 0.32, 1) 2.2s forwards;
}

/* ===== Animations ===== */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Contact Button ===== */
.contact-btn {
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 2px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeSlideIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
  pointer-events: auto;
}

.contact-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Desktop: Top Right Fixed */
@media (min-width: 768px) {
  .contact-btn {
    position: absolute;
    top: 40px;
    right: 40px;
  }
}

/* Mobile: In Flow (Centered in Footer) */
@media (max-width: 767px) {
  .contact-btn {
    position: relative;
    margin: 8px 0;
    display: inline-block;
  }
}