/* =============================================================================
   HEMZO — Password Gate overlay
   Full-viewport modal that blocks the site until the correct password
   is entered.  Palette matches the site (gold / charcoal).
   ========================================================================== */

#hemzo-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /* Fully opaque background — no website shows through, not even a tint. */
  background: #1a1a1a;
  /* Safety net: if any browser fails to render the opaque bg, blur heavily. */
  backdrop-filter: blur(40px) saturate(0);
  -webkit-backdrop-filter: blur(40px) saturate(0);
  animation: hemzo-gate-fade 0.4s ease;
}

#hemzo-gate.hemzo-gate--unlocked {
  animation: hemzo-gate-out 0.35s ease forwards;
}

@keyframes hemzo-gate-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hemzo-gate-out {
  from { opacity: 1; }
  to   { opacity: 0; transform: scale(1.02); }
}

.hemzo-gate__box {
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid rgba(203, 179, 135, 0.25);
  border-radius: 8px;
  padding: 2.5rem 2rem 2.25rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(203, 179, 135, 0.08) inset;
  animation: hemzo-gate-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hemzo-gate-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hemzo-gate__logo {
  display: block;
  margin: 0 auto 1.75rem;
  filter: brightness(1.25) sepia(0.18) saturate(1.5) hue-rotate(-5deg);
}

.hemzo-gate__title {
  margin: 0 0 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: #cbb387;
}

.hemzo-gate__subtitle {
  margin: 0 0 1.75rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.hemzo-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hemzo-gate__input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  color: #faf8f5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(203, 179, 135, 0.3);
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0.08em;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.hemzo-gate__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
}
.hemzo-gate__input:focus {
  outline: none;
  border-color: #cbb387;
  background: rgba(203, 179, 135, 0.06);
  box-shadow: 0 0 0 3px rgba(203, 179, 135, 0.12);
}

.hemzo-gate__btn {
  padding: 0.9rem 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #cbb387;
  border: 1px solid #cbb387;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.hemzo-gate__btn:hover {
  background: #d9c9a5;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(203, 179, 135, 0.5);
}
.hemzo-gate__btn:active {
  transform: translateY(0);
}

.hemzo-gate__error {
  margin: 0.75rem 0 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8125rem;
  color: #e08585;
}

@media (max-width: 480px) {
  .hemzo-gate__box { padding: 2rem 1.5rem; }
  .hemzo-gate__title { font-size: 1.5rem; }
}