/* ===========================================================
   PASSWORD GATE STEP 7/7 — delete this whole file when ready
   to launch (paired with assets/js/gate.js and the gate markup
   + script/link tags in index.html — see comments there).
   Styled to match the site: black specimen plate, Nohemi,
   chartreuse + red accents.
=========================================================== */

html.is-locked body {
  overflow: hidden;
}

#site-gate {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  overflow: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
html:not(.is-locked) #site-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* floating shapes, echoing the intro slide */
#site-gate::before {
  content: "";
  position: absolute;
  top: 16%;
  right: 16%;
  width: 14vmin;
  height: 14vmin;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
#site-gate::after {
  content: "";
  position: absolute;
  bottom: 22%;
  left: 13%;
  width: 3.6vmin;
  height: 3.6vmin;
  border-radius: 50%;
  background: var(--red, #D93425);
}

.gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.gate-card.is-shaking {
  animation: gateShake 0.4s;
}
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* big plate title, like the specimen cover */
.gate-card::before {
  content: "PORTFOLIO";
  display: block;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 2.2rem;
}

.gate-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.75rem;
}

.gate-form {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.75rem;
  transition: border-color 0.3s var(--ease);
}
.gate-form:focus-within {
  border-color: var(--accent);
}
.gate-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
}
.gate-input::placeholder {
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.gate-submit {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
}
.gate-submit:hover {
  color: var(--accent);
}

.gate-error {
  margin-top: 1rem;
  min-height: 1em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red, #D93425);
}
