@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap');

:root {
  --overlay: #919191;
  --card: #ffffff;
  --ink: #151616;
  --btn: #333333;
  --display: "Montserrat", sans-serif;
  --ui: "Source Sans Pro", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-slow: 720ms;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--overlay);
  color: #000;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.gate__card {
  width: min(500px, 100%);
  padding: 20px 20px 28px;
  background: var(--card);
  text-align: center;
}

.gate__logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 8px;
}

.gate__headline {
  margin: 18px 0 16px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.gate__question {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 400;
  color: #000;
}

.gate__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn-yes,
.link-no,
.btn-leave {
  appearance: none;
  min-width: 66px;
  min-height: 34px;
  padding: 8px 17px;
  border: none;
  border-radius: 3px;
  background: var(--btn);
  color: #fff;
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.btn-yes:hover,
.link-no:hover,
.btn-leave:hover {
  background: #1a1a1a;
}

.gate__denied {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gate__denied h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.gate__denied p {
  margin: 0;
  max-width: 32ch;
  font-size: 17px;
}

.gate__denied .btn-leave {
  margin-top: 4px;
}

.back-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body.is-denied .gate__headline,
body.is-denied .gate__question,
body.is-denied .gate__actions { display: none; }

body.is-denied .gate__denied { display: flex; }

.enter-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.enter-veil.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.enter-veil__text {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .enter-veil { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 520ms var(--ease-out) both; }
  .reveal.d1 { animation-delay: 40ms; }
  .reveal.d2 { animation-delay: 120ms; }
  .reveal.d3 { animation-delay: 200ms; }
  .reveal.d4 { animation-delay: 280ms; }

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