@media (max-width:920px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 58px;
        padding-top: 22px;
        min-height: 0
    }

    .status {
        display: flex;
        font-size: 0.52rem !important;
        padding: 5px 10px !important;
        letter-spacing: 0.1em !important;
        gap: 6px !important;
        white-space: nowrap;
    }

    .stat {
        padding: 0 18px
    }

    .creds-grid {
        grid-template-columns: 1fr;
        gap: 34px
    }

    .p-row {
        grid-template-columns: 1fr auto; /* Details on left, QR on right */
        gap: 16px;
    }

    .p-num {
        display: none !important; /* Force hide huge number on mobile to save space */
    }

    .p-arrow {
        display: none
    }

    .sec-count {
        display: none
    }
}

@media (max-width:768px) {
    /* Section padding */
    .section {
        padding: 40px 20px 10px !important;
    }
    
    .nav {
        padding: 16px 20px !important;
        justify-content: space-between !important;
    }
    
    .hero {
        padding: 30px 20px 20px !important;
    }

    /* Fix card overflow */
    .card-zone::before {
        width: 320px !important;
        height: 320px !important;
    }

    .orbit {
        width: min(340px, 100vw) !important;
    }

    .card {
        aspect-ratio: auto !important;
        min-height: 500px !important; /* Allow card to grow vertically to fit contents on mobile */
    }

    /* Mobile Typography Scaling */
    h1 { font-size: 2.2rem !important; }
    .kicker { font-size: 0.65rem !important; }
    .role-line { font-size: 0.9rem !important; }
    .bio { font-size: 0.9rem !important; line-height: 1.5; }
    .chip { font-size: 0.58rem !important; padding: 6px 10px !important; }
    .btn { font-size: 0.82rem !important; padding: 12px 20px !important; }
    .sec-title { font-size: 1.3rem !important; }
    
    /* Project List Typography Scaling */
    .p-top h3 { font-size: 1rem !important; }
    .p-badge { font-size: 0.52rem !important; padding: 4px 8px !important; }
    .p-desc { font-size: 0.85rem !important; line-height: 1.5 !important; }
    .p-tags span { font-size: 0.52rem !important; padding: 3px 7px !important; }

    /* Fix Tags/Buttons overlapping in Hero */
    .chips {
        margin-bottom: 24px !important;
    }

    .actions {
        margin-bottom: 30px !important;
    }

    /* Footer stacking */
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 30px 20px !important;
    }
}

@media (max-width:560px) {
    .tag {
        display: none
    }

    .orbit {
        opacity: .25
    }


    
    /* Project row QR stacking on tiny screens */
    .p-row {
        grid-template-columns: 1fr !important;
    }
    
    .p-row > div:last-child {
        justify-content: flex-start !important;
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    .hero .left>*,
    .card-zone,
    .reveal {
        opacity: 1;
        transform: none
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: .8s cubic-bezier(.22, 1, .36, 1)
}

.reveal.in {
    opacity: 1;
    transform: none
}