@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

:root {
  --ink: #111111;
  --cream: #f9f5eb;
  --cream-deep: #efe8de;
  --gold: #b79c6d;
  --gold-deep: #9a8158;
  --text: #5f5a54;
  --text-dim: #9f9d9d;
  --border: rgba(183, 156, 109, 0.28);
  --radius: 2px;
  --display: "Cinzel", Georgia, serif;
  --ui: "Satoshi", system-ui, 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(--cream);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px) 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(183, 156, 109, 0.14), transparent 55%),
    linear-gradient(180deg, #f9f5eb 0%, #ffffff 100%);
}

.gate__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(36px, 5vw, 48px) clamp(24px, 4vw, 36px) 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.08);
}

.gate__logo {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* optical center with letter-spacing */
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}

.gate__eyebrow {
  margin: 0 0 10px;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.gate__headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.gate__question {
  margin: 14px 0 28px;
  max-width: 34ch;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--ui);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: var(--ink);
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.btn-yes:hover {
  background: #222;
  transform: translateY(-1px);
}

.btn-yes:active { transform: scale(0.98); }

.link-no {
  appearance: none;
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8d0c4;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--ui);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.link-no:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.gate__denied {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.gate__denied h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.gate__denied p {
  margin: 0;
  max-width: 30ch;
  font-size: 0.92rem;
  color: var(--text);
}

.btn-leave {
  appearance: none;
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8d0c4;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--ui);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.btn-leave:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.back-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate__note {
  margin: 20px 0 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 36ch;
}

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

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

.enter-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.enter-veil.show {
  transform: translateY(0);
  pointer-events: auto;
}

.enter-veil__text {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.enter-veil__sub {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 560ms var(--ease-out) both; }
  .reveal.d1 { animation-delay: 40ms; }
  .reveal.d2 { animation-delay: 140ms; }

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