/* =====================================================
   WHAT?studio v2 — Signature moment: telefono con feed reel
   Mockup telefono in puro CSS (niente immagini/video generati:
   niente problemi di trasparenza, nitido a ogni risoluzione).
   Dentro: feed verticale scrollabile stile Reels/TikTok — il
   reel più visibile fa autoplay muto, gli altri restano cover.
   Parallasse leggero via GSAP in phone-mockup.js.
   ===================================================== */

.phone-section { overflow: hidden; }
.phone-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.phone-copy { max-width: 46ch; }
.phone-copy .overline { position: relative; padding-bottom: var(--space-3); }
.phone-copy .overline::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 48px; height: 2px; background: var(--red);
}
.phone-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-block: var(--space-4) var(--space-4); }

.phone-stage { display: flex; justify-content: center; perspective: 1400px; }

.phone-mockup {
    width: clamp(220px, 22vw, 300px);
    aspect-ratio: 9 / 19.3;
    transform-style: preserve-3d;
    will-change: transform;
    filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .55));
}
.phone-mockup__body {
    position: relative;
    width: 100%; height: 100%;
    padding: 12px;
    border-radius: 44px;
    background: linear-gradient(160deg, #2b2b32, #0a0a0d 65%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), inset 0 0 30px rgba(0, 0, 0, .6);
}
.phone-mockup__screen {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
}
.phone-mockup__notch {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 32%; height: 20px;
    background: #000;
    border-radius: 12px;
    z-index: 6;
}
.phone-mockup__sheen {
    position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, .10) 0%, transparent 26%, transparent 70%, rgba(255, 255, 255, .05) 100%);
}
.phone-mockup__home {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 34%; height: 4px; border-radius: 3px;
    background: rgba(255, 255, 255, .35);
    z-index: 6;
}
.phone-mockup__btn { position: absolute; width: 3px; border-radius: 2px; background: #1a1a1e; }
.phone-mockup__btn--power { right: -3px; top: 118px; height: 58px; }
.phone-mockup__btn--vol1 { left: -3px; top: 96px; height: 32px; }
.phone-mockup__btn--vol2 { left: -3px; top: 138px; height: 32px; }

/* ---------- Feed dentro lo schermo ---------- */
.phone-feed {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.phone-feed::-webkit-scrollbar { display: none; }

.phone-feed__item {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    cursor: pointer;
    border: 0;
    padding: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    color: inherit;
    text-align: left;
}
.phone-feed__item img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity var(--dur) var(--ease);
}
.phone-feed__item::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 45%);
    pointer-events: none;
}
.phone-feed__item.is-previewing .work__player { opacity: 1; }
.phone-feed__item.is-previewing img { opacity: .45; }
.phone-feed__item .work__player iframe { transform: scale(1.4); }

.phone-feed__meta { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 2; color: #fff; }
.phone-feed__meta span {
    display: block;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--red);
    margin-bottom: 2px;
}
.phone-feed__meta strong { font-size: .82rem; }

.phone-feed__hint {
    position: absolute; right: 12px; top: 50%; z-index: 4;
    color: rgba(255, 255, 255, .55);
    animation: phone-hint-bounce 1.8s ease-in-out infinite;
}
@keyframes phone-hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 860px) {
    .phone-section .container { grid-template-columns: 1fr; text-align: center; }
    .phone-copy { max-width: 100%; margin-inline: auto; }
    .phone-stage { margin-top: var(--space-8); }
}
@media (prefers-reduced-motion: reduce) {
    .phone-mockup { transform: none !important; }
    .phone-feed__hint { animation: none; }
}
