@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg2: #f6f6f4;
  --yellow: #f6db7b;
  --yellow-hi: #ffe27a;
  --ink: #000000;
  --text: #000000;
  --text2: #555555;
  --text3: #888888;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.16);
  --radius: 8px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", 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(--bg);
  color: var(--text2);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.promo-strip {
  background: var(--ink);
  color: var(--yellow);
  text-align: center;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

.gate {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - 36px);
}

.gate__media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px);
  background: var(--yellow);
}

.gate__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

.gate__brand {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  animation: brandIn 800ms var(--ease-out) both;
}

.gate__logo {
  display: block;
  width: 100%;
  height: auto;
}

.gate__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.4vw, 68px);
  background: var(--bg);
}

.gate__inner {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.gate__eyebrow {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7d12;
}

.gate__headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.gate__headline em {
  font-style: italic;
  font-weight: 700;
  color: #000;
}

.gate__question {
  margin: 20px 0 32px;
  max-width: 42ch;
  font-size: 0.95rem;
  color: var(--text2);
}

.gate__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.btn-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.btn-yes:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

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

.btn-yes svg { flex-shrink: 0; }

.link-no {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border2);
  transition: color var(--dur-fast) var(--ease-out);
}

.link-no:hover { color: var(--text2); }

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

.gate__denied h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.gate__denied p {
  margin: 0;
  max-width: 38ch;
  font-size: 0.95rem;
  color: var(--text2);
}

.btn-leave {
  appearance: none;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  background: transparent;
  padding: 0.8rem 1.5rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

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

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

.back-link:hover { color: var(--text2); }

body.is-denied .gate__actions,
body.is-denied .gate__question { 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: 12px;
  background: var(--yellow);
  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-weight: 800;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
}

.enter-veil__sub {
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 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: 110ms; }
  .reveal.d3 { animation-delay: 190ms; }
  .reveal.d4 { animation-delay: 270ms; }

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

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

@media (max-width: 860px) {
  .gate {
    grid-template-columns: 1fr;
    grid-template-rows: 32vh 1fr;
    min-height: calc(100vh - 36px);
    height: calc(100vh - 36px);
  }

  .gate__media {
    height: 32vh;
    padding: 24px;
  }

  .gate__brand { max-width: 220px; }

  .gate__panel {
    padding: 28px 22px 36px;
    overflow-y: auto;
  }

  .gate__actions { width: 100%; align-items: stretch; }
  .btn-yes { width: 100%; }
  .link-no { align-self: center; }
}
