/* ==========================================================================
   Uncle George Bottling Company — Private preview landing page
   The home page's living water, with one password field.
   Built by Aniwene Solutions International · © 2026
   ========================================================================== */

.gate-body { background: var(--abyss); }

.gate__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; pointer-events: none;
}
.gate__logo { height: 56px; }
.gate .logo-pair .logo-on-dark { opacity: 1; position: static; }
.gate__tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mineral);
}
.gate__tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--aqua, #7fdcff); box-shadow: 0 0 0 0 rgba(var(--aqua-rgb), 0.6);
  animation: gate-pulse 2.4s var(--ease) infinite;
}
@keyframes gate-pulse { to { box-shadow: 0 0 0 10px rgba(var(--aqua-rgb), 0); } }

/* --- the form ----------------------------------------------------------- */
.gate__form { pointer-events: auto; max-width: 480px; margin: 0; }
.gate__field {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px;
  background: rgba(238, 246, 251, 0.07);
  border: 1px solid rgba(238, 246, 251, 0.22);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 20px 50px -24px rgba(0,0,0,0.6);
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease), background 400ms var(--ease);
}
.gate__field:focus-within {
  border-color: rgba(var(--aqua-rgb), 0.75);
  background: rgba(238, 246, 251, 0.1);
  box-shadow: 0 0 0 4px rgba(var(--aqua-rgb), 0.14), 0 20px 50px -24px rgba(0,0,0,0.6);
}
.gate__field input {
  flex: 1; min-width: 0; height: 52px; padding: 0 20px;
  background: none; border: 0; outline: 0;
  color: var(--glacier); font: inherit; font-size: 1rem; letter-spacing: 0.04em;
}
.gate__field input::placeholder { color: rgba(238, 246, 251, 0.5); letter-spacing: 0.01em; }
.gate__field .btn { flex: none; }
.gate__msg { min-height: 1.6em; margin: 14px 0 0 22px; font-size: var(--fs-small); color: var(--mineral); }

.gate__form.is-busy .btn { opacity: 0.7; pointer-events: none; }
.gate__form.is-wrong .gate__field { animation: gate-shake 520ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; border-color: rgba(255, 150, 130, 0.7); }
.gate__form.is-wrong .gate__msg { color: #ffb8aa; }
@keyframes gate-shake {
  15% { transform: translateX(-9px); } 30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); } 60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); } 100% { transform: none; }
}

/* --- footer line: credit left, hint right ------------------------------- */
.gate__foot { justify-content: space-between; align-items: center; }
.gate__foot .hero__hint { position: static; }
.gate__credit { margin: 0; font-size: var(--fs-small); color: var(--mineral); pointer-events: auto; }
.gate__credit a { color: var(--glacier); text-decoration: underline; text-decoration-color: rgba(238,246,251,0.35); text-underline-offset: 4px; }
.gate__credit a:hover { text-decoration-color: currentColor; }

/* --- arrival: the words surface one by one ------------------------------ */
.gate__copy > *, .gate__top { animation: gate-rise 1100ms var(--ease) both; }
.gate__top { animation-delay: 0.1s; }
.gate__copy > :nth-child(1) { animation-delay: 0.25s; }
.gate__copy > :nth-child(2) { animation-delay: 0.4s; }
.gate__copy > :nth-child(3) { animation-delay: 0.6s; }
.gate__copy > :nth-child(4) { animation-delay: 0.8s; }
@keyframes gate-rise { from { opacity: 0; transform: translateY(22px); } }

/* --- the right password: everything sinks into the water ---------------- */
.gate-open .gate__copy, .gate-open .gate__top, .gate-open .gate__foot {
  opacity: 0; transform: translateY(-26px);
  transition: opacity 700ms var(--ease), transform 900ms var(--ease);
}
.gate__flood {
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(var(--aqua-rgb), 0.35), var(--abyss) 60%);
  opacity: 0; transition: opacity 900ms var(--ease) 250ms;
}
.gate-open .gate__flood { opacity: 1; }

@media (max-width: 767px) {
  .gate__logo { height: 44px; }
  .gate__top { padding-top: 16px; }
  .gate__field .btn { padding: 0 20px; }
  .gate__foot { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gate__copy > *, .gate__top { animation: none; }
  .gate__tag::before { animation: none; }
}
