/* Password gate for the case studies. Rendered over the page until unlocked. */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg, #FBFBFC);
}
.gate-inner {
  width: 100%;
  max-width: 380px;
  text-align: left;
}
.gate .mark {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--black, #111214);
  margin-bottom: 22px;
}
.gate h1 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black, #111214);
  margin-bottom: 6px;
}
.gate p {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray, #74777D);
  margin-bottom: 22px;
}
.gate form { display: flex; gap: 8px; }
.gate input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 15px;
  color: var(--black, #111214);
  background: #FFFFFF;
  border: 1px solid var(--border, #E3E5E9);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}
.gate input:focus { border-color: var(--black, #111214); }
.gate button {
  height: 44px;
  padding: 0 20px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--bg, #FBFBFC);
  background: var(--black, #111214);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.gate button:hover { opacity: 0.85; }
.gate .err {
  margin: 12px 0 0;
  font-size: 13px;
  color: #B92E15;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gate .err.show { opacity: 1; }
.gate .back-home {
  display: inline-block;
  margin-top: 26px;
  font-size: 13px;
  color: var(--gray, #74777D);
  text-decoration: none;
}
.gate .back-home:hover { color: var(--black, #111214); }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.gate form.shake { animation: gateShake 0.32s ease; }
