/* =================== PROJECT THEMES =================== */

/* ---------- Witch / "Which Loves Which?" ---------- */
html[data-theme="witch"] {
  --bg: #0c0612; --card: #180c24; --card2: #221333; --line: #3b1f57; --ink: #fbf1ff; --mute: #b39cc9;
  --accent: #ff8a1f; --accent2: #ffb36b; --accent-ink: #1b0b00; --none: #2a1838;
}
html[data-theme="witch"] .btn.primary { box-shadow: 3px 3px 0 #5b1f8a; }
html[data-theme="witch"] .ptab.on { box-shadow: 3px 3px 0 #5b1f8a; }

.ph-witch { background: #0c0612; }
.ph-witch .wlw-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ph-witch .ph-kicker { color: #ffb36b; text-shadow: 0 0 10px rgba(255,138,31,.6); }
.ph-witch .ph-title { font-family: 'Creepster', 'Chiller', Impact, sans-serif; font-weight: 400; letter-spacing: .04em; color: #ff9a2e;
  text-shadow: 0 0 6px rgba(255,120,20,.9), 0 0 22px rgba(165,44,240,.8), 0 3px 0 #3a0d55; animation: wlwFlicker 6s infinite; }
.ph-witch .ph-sub { color: #f0dcff; text-shadow: 0 1px 6px #000; }
.ph-witch .ph-dates { color: #e0c8f5; text-shadow: 0 1px 6px #000; }
@keyframes wlwFlicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }

.wlw-star { animation: wlwTwinkle 3s ease-in-out infinite; }
@keyframes wlwTwinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.wlw-bat { animation: wlwFly 14s linear infinite; }
.wlw-bat.b2 { animation-duration: 19s; animation-delay: -6s; }
.wlw-bat.b3 { animation-duration: 24s; animation-delay: -13s; }
@keyframes wlwFly { 0% { transform: translate(-80px, 90px); } 25% { transform: translate(220px, 40px); } 50% { transform: translate(480px, 85px); } 75% { transform: translate(720px, 30px); } 100% { transform: translate(980px, 70px); } }
.wlw-wing { transform-box: fill-box; transform-origin: center; animation: wlwFlap .28s ease-in-out infinite alternate; }
@keyframes wlwFlap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.wlw-moon { transform: translate(835px, 92px); }
.wlw-girl { transform: translate(835px, 128px); }
.wlw-cam { transform: translate(62px, 126px) scale(.88); }
.wlw-camglow { filter: drop-shadow(0 0 6px rgba(255,138,31,.8)); }
.wlw-reel { transform-box: fill-box; transform-origin: center; animation: wlwSpin 2.6s linear infinite; }
.wlw-rec { animation: wlwGlow .8s steps(2) infinite alternate; }
@keyframes wlwSpin { to { transform: rotate(360deg); } }
.wlw-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: wlwSway 5s ease-in-out infinite; }
@keyframes wlwSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.wlw-hat { filter: drop-shadow(0 0 6px rgba(193,60,255,.9)); transform-box: fill-box; transform-origin: 50% 100%; animation: wlwTip 3.2s ease-in-out infinite; }
@keyframes wlwTip { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(4deg) translateY(-3px); } }
.wlw-eyes { transform-box: fill-box; transform-origin: center; animation: wlwBlink 4.5s infinite; }
@keyframes wlwBlink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.wlw-face { animation: wlwGlow 1.8s ease-in-out infinite alternate; }
@keyframes wlwGlow { from { opacity: .65; } to { opacity: 1; } }
.wlw-fog { animation: wlwFog 18s ease-in-out infinite alternate; }
@keyframes wlwFog { from { transform: translateX(-40px); } to { transform: translateX(40px); } }

@media (max-width: 600px) {
  .wlw-moon { transform: translate(640px, 70px) scale(.6); }
  .wlw-girl { transform: translate(625px, 112px) scale(.62); }
  .wlw-cam { transform: translate(262px, 150px) scale(.5); }
}
/* project-card thumbnails: fixed positions (ignore the mobile layout) */
.th-witch .wlw-moon { transform: translate(835px, 92px) !important; }
.th-witch .wlw-girl { transform: translate(835px, 128px) !important; }
