@font-face {
  font-family: "Modesto Open";
  src: url("https://ik.imagekit.io/flowdose/fonts/modesto-open-inline-fill/ModestoOpenInlineFill.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Freight Sans Pro";
  src: url("https://ik.imagekit.io/flowdose/fonts/freight-sans-pro/FreightSansProBook-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Freight Sans Pro";
  src: url("https://ik.imagekit.io/flowdose/fonts/freight-sans-pro/FreightSansProMedium-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Freight Sans Pro";
  src: url("https://ik.imagekit.io/flowdose/fonts/freight-sans-pro/FreightSansProSemibold-Regular.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Freight Sans Pro";
  src: url("https://ik.imagekit.io/flowdose/fonts/freight-sans-pro/FreightSansProBold-Regular.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1520;
  --ink-soft: #2a2035;
  --mist: rgba(255, 254, 253, 0.78);
  --mist-border: rgba(255, 255, 255, 0.45);
  --text: #3a3540;
  --text-soft: #6a6570;
  --peach: #ffae62;
  --sky: #90e5ff;
  --mint: #65cd97;
  --lilac: #e5d4ff;
  --white: #fffefd;
  --radius: 22px;
  --display: "Modesto Open", "Times New Roman", Georgia, serif;
  --ui: "Freight Sans Pro", "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-slow: 780ms;
}

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

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

body {
  background: #c6d8e8;
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 64px) 20px;
  overflow: hidden;
}

.gate__bg {
  position: absolute;
  inset: -4%;
  background:
    url("hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.gate__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(26, 21, 32, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(26, 21, 32, 0.28) 0%, rgba(26, 21, 32, 0.12) 45%, rgba(26, 21, 32, 0.35) 100%);
  pointer-events: none;
}

.gate__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate__logo {
  display: block;
  width: min(220px, 62vw);
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 18px rgba(26, 21, 32, 0.2));
}

.gate__card {
  width: 100%;
  padding: clamp(28px, 5vw, 36px) clamp(22px, 4vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--mist-border);
  background: var(--mist);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 24px 60px rgba(26, 21, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.gate__eyebrow {
  margin: 0 0 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.gate__headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.gate__headline em {
  font-style: normal;
  background: linear-gradient(120deg, #ffae62 0%, #f2ff91 45%, #90e5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate__question {
  margin: 12px 0 26px;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
}

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

.btn-yes {
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  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: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 21, 32, 0.28);
}

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

.link-no,
.btn-leave {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(26, 21, 32, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.link-no:hover,
.btn-leave:hover {
  border-color: rgba(26, 21, 32, 0.35);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.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.85rem;
  font-weight: 400;
  color: var(--ink);
}

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

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

body.is-denied .gate__eyebrow,
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;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(145deg, #90e5ff 0%, #ffd192 45%, #ffe5f7 100%);
  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: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.enter-veil__sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 21, 32, 0.55);
}

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

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

  @keyframes drift {
    from { transform: scale(1.04) translate3d(-1%, 0, 0); }
    to { transform: scale(1.08) translate3d(1.5%, -1%, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate__bg { animation: none; }
}
