/* ==========================================================================
   Password-protected case study: the pill and the locked page
   The pill keeps the cursor label's exact height (37px); it only gets wider.
   ========================================================================== */
.lk-pill {
  --lk-ink: #17171c;
  --lk-soft: rgba(255, 255, 255, .58);
  position: fixed; z-index: 9998;        /* under the dot cursor (9999), so the dot stays visible */
  box-sizing: border-box;
  height: 37px; min-height: 37px; max-height: 37px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 4px 0 18px;
  border-radius: 999px;
  background: var(--lk-ink); color: #fff;
  font: 500 14px/1 "Geist", "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.1px;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5);
  overflow: hidden;
  transition: width .55s cubic-bezier(.34, 1.4, .64, 1), left .55s cubic-bezier(.34, 1.4, .64, 1), opacity .25s ease;
}
.lk-pill--float { transform: translate(-50%, -50%); }
.lk-pill--sheet { left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
.lk-pill--inline { position: relative; z-index: auto; width: min(440px, 100%); transition: none; }
.lk-pill.is-closing { opacity: 0; }

.lk-pill__label { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; transition: opacity .18s ease; pointer-events: none; }
.lk-pill.is-open .lk-pill__label { opacity: 0; }

.lk-pill__in, .lk-pill__swap, .lk-pill__go { opacity: 0; transition: opacity .25s ease .18s; }
.lk-pill.is-open .lk-pill__in, .lk-pill.is-open .lk-pill__swap, .lk-pill.is-open .lk-pill__go { opacity: 1; }
.lk-pill:not(.is-open) .lk-pill__in, .lk-pill:not(.is-open) .lk-pill__swap, .lk-pill:not(.is-open) .lk-pill__go { pointer-events: none; transition-delay: 0s; }

.lk-pill__in {
  flex: 1 1 auto; min-width: 0; height: 100%;
  margin: 0; padding: 0; border: 0; outline: 0; background: none;
  color: #fff; font: inherit; letter-spacing: inherit;
}
.lk-pill__in::placeholder { color: var(--lk-soft); opacity: 1; }
.lk-pill__swap {
  flex: none; margin: 0; padding: 0 6px; border: 0; background: none;
  color: var(--lk-soft); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer;
}
.lk-pill__swap:hover, .lk-pill__swap:focus-visible { color: #fff; outline: 0; }
.lk-pill__go {
  flex: none; width: 29px; height: 29px; margin: 0; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #fff; color: var(--lk-ink); cursor: pointer;
}
.lk-pill__go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.lk-pill__go:hover svg { transform: translateX(1px); }
.lk-pill__go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lk-pill__msg {
  position: absolute; left: 18px; right: 18px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.lk-pill.is-msg .lk-pill__msg { opacity: 1; }
.lk-pill.is-msg .lk-pill__in, .lk-pill.is-msg .lk-pill__swap, .lk-pill.is-msg .lk-pill__go { opacity: 0; pointer-events: none; transition-delay: 0s; }

.lk-pill.is-shake { animation: lk-shake .42s ease; }
@keyframes lk-shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -7px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; }
}

/* while the pill is open, the cursor goes back to a plain dot */
html.lk-open .cursor .cursor__label { opacity: 0 !important; transform: translate(-50%, -50%) scale(.3) !important; transition: none !important; }
html.lk-open .cursor.is-label .cursor__dot { transform: scale(1); }
html.has-cursor .lk-pill__in { cursor: text !important; }

@media (prefers-reduced-motion: reduce) {
  .lk-pill { transition: opacity .2s ease; }
  .lk-pill.is-shake { animation: none; }
}

/* ---------- the locked page ---------- */
html.lk-try body { visibility: hidden; }
.lk-page {
  margin: 0; min-height: 100vh;
  background: #fafafa; color: #17171c;
  font-family: "Geist", "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lk-gate { position: relative; min-height: 100vh; box-sizing: border-box; display: grid; place-items: center; padding: 96px 20px 72px; }
.lk-back { position: absolute; top: 24px; left: 24px; display: inline-flex; gap: 8px; color: #17171c; text-decoration: none; font-size: 14px; }
.lk-back:hover span { transform: translateX(-4px); }
.lk-back span { display: inline-block; transition: transform .3s ease; }
.lk-gate__body { width: 100%; max-width: 660px; text-align: center; }
.lk-gate__img { display: block; width: 120px; height: auto; margin: 0 auto 26px; transform: rotate(-4deg); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .16)); }
.lk-gate__title { margin: 0; font-family: "Libre Baskerville", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(34px, 6vw, 60px); line-height: 1.1; text-wrap: balance; }
.lk-gate__lede { margin: 18px auto 30px; max-width: 470px; font-size: 17px; line-height: 1.6; color: #4b4d55; text-wrap: pretty; }
.lk-slot { display: flex; justify-content: center; }
