/* Password gate (see gate.js) */
html[data-gate-locked] body > :not(dialog) { visibility: hidden; }
html[data-gate-locked] body { background: #f6f1f7; }

.gate { margin: auto; inset: 0; padding: 0; border: 0; background: none; max-width: calc(100vw - 32px); overflow: visible; }
.gate::backdrop { background: rgba(32, 12, 38, .45); backdrop-filter: blur(6px); }
.gate--page::backdrop { background: #f6f1f7; backdrop-filter: none; }
.gate__card {
  position: relative; display: grid; justify-items: center; gap: 10px; width: min(420px, calc(100vw - 32px)); padding: 34px 30px 26px;
  border-radius: 26px; background: #fff; color: #1d1a20; text-align: center; font-family: "DM Sans", system-ui, sans-serif;
  box-shadow: 0 30px 80px rgba(40, 10, 50, .25);
}
.gate__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #47154f; color: #f0a6ff; margin-bottom: 4px; }
.gate__icon svg { width: 26px; height: 26px; }
.gate h2 { margin: 0; font: 600 21px/1.25 Figtree, "DM Sans", sans-serif; letter-spacing: -.01em; }
.gate p { margin: 0; font-size: 15px; line-height: 1.5; color: #5a5360; }
.gate__field { width: 100%; margin-top: 8px; }
.gate__field input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #ddd3e0; background: #faf7fb;
  font: 500 16px/1 "DM Sans", sans-serif; color: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.gate__field input:focus { border-color: #8e3aa0; box-shadow: 0 0 0 4px rgba(142, 58, 160, .14); }
.gate .gate__err { min-height: 1.2em; font-size: 13.5px; color: #c0305a; }
.gate__go { width: 100%; height: 48px; border: 0; border-radius: 999px; background: #47154f; color: #fff; font: 600 15.5px/1 "DM Sans", sans-serif; cursor: pointer; transition: background .2s; }
.gate__go:hover { background: #5d1d68; }
.gate__ask, .gate__back { font-size: 14px; color: #8e3aa0; text-decoration: underline; text-underline-offset: 3px; }
.gate__ask, .gate__copy { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.gate__ask { font: 500 14px/1.4 "DM Sans", sans-serif; }
.gate__field textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1.5px solid #ddd3e0; background: #faf7fb;
  font: 400 15px/1.45 "DM Sans", sans-serif; color: inherit; resize: vertical; outline: none; transition: border-color .2s, box-shadow .2s; }
.gate__field textarea:focus { border-color: #8e3aa0; box-shadow: 0 0 0 4px rgba(142, 58, 160, .14); }
a.gate__send { display: grid; place-items: center; margin-top: 6px; text-decoration: none; }
.gate .gate__to { font-size: 13px; color: #7a7280; }
.gate__to b { font-weight: 600; color: #47154f; }
.gate__copy { color: #8e3aa0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.gate__back { color: #5a5360; }
.gate__x { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3eef5; color: #47154f; font-size: 22px; line-height: 1; cursor: pointer; }
.gate .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* The hover signal on locked project cards */
.lockpill {
  position: absolute; z-index: 2; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px;
  border-radius: 999px; background: rgba(29, 18, 34, .78); color: #fff; font: 600 15px/1 "DM Sans", sans-serif; white-space: nowrap;
  backdrop-filter: blur(6px); translate: -50% -50%; opacity: 0; scale: .9; pointer-events: none; transition: opacity .3s ease, scale .45s cubic-bezier(.34, 1.56, .64, 1);
}
.lockpill i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f0a6ff; color: #47154f; }
.lockpill svg { width: 17px; height: 17px; }
[data-locked]:hover .lockpill, [data-locked]:focus-visible .lockpill { opacity: 1; scale: 1; }
[data-locked] :is(.pcard__media, .ncard__media) > :is(img, video) { transition: filter .45s ease, scale .8s cubic-bezier(.22, 1, .36, 1); }
[data-locked]:hover :is(.pcard__media, .ncard__media) > :is(img, video) { filter: blur(7px) brightness(.85); }
@media (hover: none) {
  .lockpill { left: 12px; top: auto; bottom: 12px; translate: 0 0; opacity: 1; scale: .85; transform-origin: left bottom; }
}
