/* Playful, self-contained project illustrations. */
#home .pj { scroll-margin-top: 88px; width: 100%; min-width: 0; box-sizing: border-box; }
.pj-stage { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; background: #fde7e3; isolation: isolate; touch-action: pan-y; }
.pj-stage svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.pj-stage svg.scene[hidden] { display: none; }
.pj-stage .drag { cursor: grab; touch-action: none; }
.pj-stage .drag.held { cursor: grabbing; }
.pj .scene-piece-art { transform-box: fill-box; transform-origin: center; }
.pj .scene-piece-art.react { animation: pj-toy-pop .48s cubic-bezier(.3,1.6,.5,1); filter: brightness(1.12); }
@keyframes pj-toy-pop { 0%,100% { transform: scale(1) rotate(0deg); } 30% { transform: scale(1.1,.92) rotate(-5deg); } 65% { transform: scale(.97,1.05) rotate(3deg); } }
.pj-stage::after { content: ''; position: absolute; inset: 0; background: #fffef5; opacity: 0; pointer-events: none; z-index: 1; }
.pj.camera-flash .pj-stage::after { animation: pj-camera-flash .3s ease-out; }
@keyframes pj-camera-flash { 15% { opacity: .45; } 100% { opacity: 0; } }
.pj-hint { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: 'DM Sans', Arial, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.2; color: #2a1219; background: #fffef5ed; border-radius: 999px; padding: 9px 12px; pointer-events: none; transition: opacity .25s; }
.pj.played .pj-hint { opacity: 0; }
.pj-reset, .pj-pause { all: unset; position: absolute; top: 10px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; background: #fffef5ed; color: #2a1219; border-radius: 50%; cursor: pointer; }
.pj-reset { right: 10px; } .pj-pause { right: 56px; }
.pj-reset svg, .pj-pause svg { display: block; width: 18px; height: 18px; }
.pj-reset:hover, .pj-pause:hover { background: #fff; }
.pj-reset:focus-visible, .pj-pause:focus-visible { outline: 3px solid #fffef5; outline-offset: 3px; box-shadow: 0 0 0 5px #6b022b; }
.pj-pause[aria-pressed="true"] svg { visibility: hidden; }
.pj-pause[aria-pressed="true"]::after { content: ''; position: absolute; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #2a1219; margin-left: 3px; }
.pj.is-paused svg.scene *, .pj.is-offscreen svg.scene *, .pj svg.scene[hidden] * { animation-play-state: paused !important; }
#home .pj .pj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#home .pj .pj-chips button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; min-height: 36px; background: #fff; border: 1.5px solid #e4d6cf; border-radius: 999px; color: #2a1219; font-size: 13px; font-weight: 700; cursor: pointer; }
#home .pj .pj-chips button[aria-pressed="true"] { color: #fffef5; background: #2a1219; border-color: #2a1219; }
#home .pj .pj-chips button:hover { border-color: #6b022b; }
#home .pj .pj-chips button:focus-visible { outline: 3px solid #6b022b; outline-offset: 3px; }
#home .pj .pj-text { font-size: 18px; line-height: 1.45; margin-top: 18px; }
@media (max-width: 700px) {
  #home .pj { padding: 20px; }
  #home .pj .pj-chips { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #home .pj .pj-chips button { font-size: 12px; padding: 4px 8px; }
  #home .pj .pj-text { font-size: 16px; }
  .pj-hint { left: 8px; top: 8px; font-size: 10px; padding: 8px 9px; }
  .pj-reset, .pj-pause { top: 6px; width: 36px; height: 36px; }
  .pj-reset { right: 6px; } .pj-pause { right: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-stage *, .pj-stage::after { animation: none !important; transition: none !important; }
  .pj-pause { display: none; }
}
