.gate {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px 16px;
}

.gate__inner {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate__eyes {
  width: clamp(150px, 34vw, 220px);
  margin-bottom: 40px;
  animation: rise 1s var(--ease-out) both;
}

.gate__label { color: var(--muted); animation: rise 1s 0.1s var(--ease-out) both; }

.gate__title {
  display: grid;
  font-size: clamp(44px, 9vw, 76px);
  line-height: 0.92;
  font-weight: 400;
  margin: 20px 0 18px;
  animation: rise 1s 0.18s var(--ease-out) both;
}
.gate__title .it { font-size: 1.08em; }

.gate__copy {
  font-size: 17px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 30ch;
  animation: rise 1s 0.26s var(--ease-out) both;
}

.gate__form {
  margin-top: 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise 1s 0.34s var(--ease-out) both;
}

.gate__field {
  display: flex;
  align-items: center;
  width: min(100%, 380px);
  height: 56px;
  padding: 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: box-shadow 0.3s var(--ease-out);
}
.gate__field:focus-within { box-shadow: inset 0 0 0 1px var(--ink); }

.gate__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 20px;
  background: none;
  border: 0;
  outline: none;
  font-size: 16px;
}
.gate__field input::placeholder { color: var(--muted); }
.gate__field .pill { height: 100%; }

.gate__msg { min-height: 1.4em; color: var(--muted); }
.gate__msg.is-error { color: var(--orange); }

.gate__form.is-wrong .gate__field { animation: shake 0.45s var(--ease-soft); }
.gate__form.is-busy { pointer-events: none; opacity: 0.6; }

.iris {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--blue);
  clip-path: circle(0 at var(--x, 50%) var(--y, 30%));
  pointer-events: none;
}
.iris.is-open {
  clip-path: circle(150% at var(--x, 50%) var(--y, 30%));
  transition: clip-path 1s var(--ease-soft);
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
