/* ── PASSWORD LOCK SCREEN ── */
/* Include this in any case study page that needs protection */

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Lenticular glass + dot grid background */
.lock-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(250, 248, 244, 0.3);
  background-image: radial-gradient(circle, #d0d0d0 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  backdrop-filter: blur(24px) saturate(160%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(160%) brightness(1.05);
}

/* Lenticular shimmer layers */
.lock-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 117, 31, 0.04) 0%,
    rgba(100, 200, 255, 0.06) 25%,
    rgba(200, 100, 255, 0.04) 50%,
    rgba(255, 220, 100, 0.05) 75%,
    rgba(100, 255, 180, 0.04) 100%
  );
  animation: lenticularShift 8s ease-in-out infinite alternate;
}

.lock-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(255,255,255,0.12) 0%,
    transparent 60%
  ),
  radial-gradient(
    ellipse at 70% 60%,
    rgba(255,117,31,0.06) 0%,
    transparent 50%
  );
}

@keyframes lenticularShift {
  0%   { opacity: 0.4; transform: skewX(-1deg); }
  50%  { opacity: 0.7; transform: skewX(0deg); }
  100% { opacity: 0.4; transform: skewX(1deg); }
}

/* Lock card */
.lock-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 52px 48px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(255,255,255,0.2);
  animation: lockCardIn 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes lockCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Lock icon */
.lock-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Copy */
.lock-title {
  font-family: 'Anybody', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.lock-title em { color: #ff751f; font-style: italic; }

.lock-subtitle {
  font-size: 13px;
  color: #888;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* Password input */
.lock-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.lock-input {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 14px 48px 14px 18px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
  letter-spacing: 0.08em;
}
.lock-input::placeholder { color: #bbb; letter-spacing: 0; }
.lock-input:focus {
  border-color: #ff751f;
  box-shadow: 0 0 0 3px rgba(255,117,31,0.12), inset 0 1px 3px rgba(0,0,0,0.04);
}
.lock-input.error {
  border-color: #e53e3e;
  animation: shake 0.4s cubic-bezier(0.36,0.07,0.19,0.97);
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}

.lock-toggle-pw {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 16px; color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
}
.lock-toggle-pw:hover { color: #ff751f; }

/* Error message */
.lock-error {
  font-size: 12px;
  color: #e53e3e;
  margin-bottom: 14px;
  min-height: 18px;
  transition: opacity 0.2s;
}

/* Unlock button */
.lock-btn {
  width: 100%;
  background: #ff751f;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  box-shadow: 0 2px 16px rgba(255,117,31,0.3);
  margin-bottom: 20px;
}
.lock-btn:hover {
  background: #cc4a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,117,31,0.35);
}

/* Divider */
.lock-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; color: #ccc; font-size: 11px;
}
.lock-divider::before,
.lock-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(0,0,0,0.08);
}

/* Action links */
.lock-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lock-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 9px 18px; border-radius: 100px;
  transition: all 0.25s;
}
.lock-action-btn.home {
  background: transparent;
  color: #666;
  border: 1px solid rgba(0,0,0,0.1);
}
.lock-action-btn.home:hover {
  border-color: #ccc;
  color: #1a1a1a;
  transform: translateX(-2px);
}
.lock-action-btn.contact {
  background: #1a1a1a;
  color: #fff;
  border: none;
}
.lock-action-btn.contact:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Hint */
.lock-hint {
  font-size: 11px;
  color: #ccc;
  margin-top: 20px;
}
.lock-hint strong { color: #ff751f; }

/* ── CONFIDENTIAL TAPE ── */
.tape-strip {
  position: absolute;
  width: 120%;
  left: -10%;
  top: 42%;
  transform: translateY(-50%) rotate(-4deg);
  display: flex;
  flex-direction: column;
  z-index: 1;
  pointer-events: none;
  animation: tapeSlide 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes tapeSlide {
  from { transform: translateY(-50%) rotate(-4deg) translateX(-60%); opacity: 0; }
  to   { transform: translateY(-50%) rotate(-4deg) translateX(0);    opacity: 1; }
}
.tape-hazard {
  height: 38px;
  background: repeating-linear-gradient(
    -45deg,
    #f5c518 0px, #f5c518 20px,
    #1a1a1a     20px, #1a1a1a 40px
  );
  background-size: 56px 56px;
  animation: stripeScroll 3s linear infinite;
}
@keyframes stripeScroll {
  from { background-position: 0 0; }
  to   { background-position: 56px 0; }
}
.tape-text-bar {
  height: 36px;
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.tape-text-inner {
  display: flex;
  white-space: nowrap;
  animation: textScroll 14s linear infinite;
}
@keyframes textScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tape-word {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5c518;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tape-word::after {
  content: '✕';
  font-size: 9px;
  opacity: 0.5;
}
.tape-lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 3px solid #f5c518;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 0 6px rgba(245,197,24,0.15), 0 4px 20px rgba(0,0,0,0.5);
  animation: lockPulse 2s ease-in-out infinite;
  z-index: 3;
}
@keyframes lockPulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(245,197,24,0.15), 0 4px 20px rgba(0,0,0,0.4); }
  50%      { box-shadow: 0 0 0 14px rgba(245,197,24,0.06), 0 4px 20px rgba(0,0,0,0.4); }
}
