.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  overflow: hidden;
  cursor: pointer;
  transition: opacity var(--transition-med), visibility var(--transition-med);
}

.gate.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate__bg {
  position: absolute;
  inset: -2%;
  background: var(--color-bg) url("../assets/background.webp") 75% center / cover no-repeat;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.gate__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 6, 19, 0.75) 0%, rgba(10, 6, 19, 0.55) 35%, rgba(10, 6, 19, 0.15) 60%, transparent 80%);
}

.gate__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  animation: gate-rise 0.8s ease both;
}

@keyframes gate-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate__title {
  margin-top: 28px;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate__subtitle {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn--enter {
  position: relative;
  margin-top: 40px;
  padding-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), letter-spacing var(--transition-fast);
}

.btn--enter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-brand);
  transform: translateX(-50%);
  transition: width var(--transition-med);
}

.btn--enter:hover {
  color: #fff;
  letter-spacing: 0.28em;
}

.btn--enter:hover::after {
  width: 100%;
}

.gate__footer {
  position: absolute;
  bottom: 28px;
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
