/* ============================================================
   LIBERATED WAVEFORMS — SHARED PARTS  (assets/css/parts.css)
   COPIED VERBATIM from index.html (the hand-made tool wall).
   Every page that shows tools or packs uses these parts.
   The only addition: .phone.cover — the same frame, square,
   because pack covers are square art and must show WHOLE
   (object-fit: contain, never crop).
   ============================================================ */
@keyframes card-rise { from{opacity:0;transform:translateY(50px) scale(.97)} to{opacity:1;transform:none} }
    @keyframes ring-out {
      0%  {transform:scale(1);   opacity:.7}
      100%{transform:scale(2.6); opacity:0}
    }
    .wall {
      display: flex; flex-wrap: wrap;
      gap: clamp(24px,4vw,52px);
      padding: 2.5rem 5rem 2rem;
      position: relative; z-index: 2;
      perspective: 1400px;
    }
    .tool {
      display: flex; flex-direction: column; align-items: center; gap: 14px;
      animation: card-rise .8s cubic-bezier(.2,.8,.2,1) both;
    }
    .tool:nth-child(1){ animation-delay:.4s }
    .tool:nth-child(2){ animation-delay:.6s }

    .phone {
      position: relative; display: block;
      width: min(72vw,300px); aspect-ratio: 360/740;
      border-radius: 28px; overflow: hidden;
      border: 1.5px solid rgba(245,245,220,0.12);
      box-shadow: 0 0 0 6px #050505, 0 28px 80px rgba(0,0,0,.7);
      transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .35s;
      -webkit-tap-highlight-color: transparent;
      transform-style: preserve-3d;
    }
    .phone img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
    .phone::after {
      content:''; position:absolute; inset:0; pointer-events:none;
      background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,.1) 2px,rgba(0,0,0,.1) 4px);
    }
    /* scan sweep on card */
    .phone::before {
      content:''; position:absolute; inset:0; pointer-events:none; z-index:3;
      background:linear-gradient(180deg,transparent 0%,rgba(163,255,18,.06) 50%,transparent 100%);
      background-size:100% 200%;
      animation:scan-sweep 3s linear infinite;
      background-position:0 -100%;
    }
    @keyframes scan-sweep {
      0%  {background-position:0 -100%}
      100%{background-position:0  200%}
    }

    .tool:hover .phone {
      transform: translateY(-14px) scale(1.035) rotateY(-4deg);
      border-color: var(--lime);
      box-shadow:
        0 0 0 6px #050505,
        0 0 70px rgba(163,255,18,.32),
        -18px 10px 50px rgba(182,18,229,.18),
        0 40px 100px rgba(0,0,0,.5);
    }

    /* multiple pulsing rings */
    .play {
      position:absolute; inset:0; display:flex;
      align-items:center; justify-content:center;
      pointer-events:none; transition:opacity .3s;
    }
    .play-wrap { position:relative; width:70px; height:70px; }
    .ring {
      position:absolute; inset:0; border-radius:50%;
      border:2px solid var(--lime); opacity:0;
      animation: ring-out 2.4s ease-out infinite;
    }
    .ring:nth-child(1){ animation-delay:0s }
    .ring:nth-child(2){ animation-delay:.8s }
    .ring:nth-child(3){ animation-delay:1.6s }
    .play-btn {
      position:absolute; inset:0; border-radius:50%;
      background:rgba(0,0,0,.45); border:2px solid var(--lime);
      display:flex; align-items:center; justify-content:center;
      backdrop-filter:blur(4px);
    }
    .play-btn svg { width:22px; height:22px; fill:var(--lime); margin-left:3px; }
    .tool:hover .play { opacity:0; }

    .cap {
      font-family:var(--mono); font-size:.65rem; letter-spacing:.34em;
      text-transform:uppercase; color:var(--dim); transition:color .3s;
    }
    .cap::before { content:'> '; color:var(--red); }
    .tool:hover .cap { color:var(--lime); }
    /* ── CARD SCANLINES ── */
    .phone { position:relative; }
    .phone::after {
      content:''; position:absolute; inset:0; pointer-events:none; z-index:3;
      border-radius:inherit;
      background:repeating-linear-gradient(
        0deg,transparent,transparent 3px,
        rgba(0,0,0,.09) 3px,rgba(0,0,0,.09) 4px
      );
    }
@media(max-width:640px){ .wall { padding:2rem 1.5rem; } }
@media(prefers-reduced-motion:reduce){ .ring { display:none; } }

/* ── pack variant: same frame, square, whole cover ── */
.phone.cover { aspect-ratio: 1; width: min(72vw,300px); }
.phone.cover img { object-fit: contain; object-position: center; background: #000; }
