/* ═══ PROJECTS PAGE SPECIFIC ═══ */

/* Page Header */
.page-header {
    min-height: 42vh;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
}

.ph-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.ph-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(10,143,120,.12);
    top: -30%;
    right: -5%;
}

.ph-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(108,43,217,.1);
    bottom: -20%;
    left: 5%;
}

.ph-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(108,43,217,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(108,43,217,.04) 1px,transparent 1px);
    background-size: 60px 60px;
}

#ph-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 110px;
    pointer-events: none;
    opacity: .7;
}

.ph-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 3rem 4%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: flex-end;
}

.ph-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.2rem;
    animation: fadeUp .7s var(--ease) both;
}

    .ph-breadcrumb a {
        color: var(--muted);
        text-decoration: none;
        transition: color .2s;
    }

        .ph-breadcrumb a:hover {
            color: var(--purple-3);
        }

.ph-breadcrumb-sep {
    color: var(--border-2);
}

.ph-breadcrumb-cur {
    color: var(--gold-2);
}

.ph-num {
    font-family: var(--fm);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--purple-3);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: fadeUp .7s .05s var(--ease) both;
}

    .ph-num::before {
        content: '';
        width: 18px;
        height: 1px;
        background: var(--purple-3);
    }

.ph-title {
    font-family: var(--fd);
    font-size: clamp(3rem,6vw,5.5rem);
    letter-spacing: .04em;
    line-height: .95;
    animation: fadeUp .8s .1s var(--ease) both;
}

    .ph-title em {
        font-family: var(--fb);
        font-style: italic;
        background: var(--g-gold);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.ph-desc {
    font-size: .9rem;
    font-weight: 300;
    color: rgba(240,238,255,.45);
    line-height: 1.7;
    max-width: 480px;
    margin-top: .9rem;
    animation: fadeUp .8s .18s var(--ease) both;
}

.ph-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    animation: fadeUp .8s .22s var(--ease) both;
}

.ph-tag {
    padding: .28rem .75rem;
    border-radius: 3px;
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .05em;
}

.ph-tag-active {
    background: rgba(10,200,130,.1);
    color: #0ac882;
    border: 1px solid rgba(10,200,130,.25);
}

.ph-tag-done {
    background: rgba(108,43,217,.12);
    color: var(--purple-3);
    border: 1px solid rgba(108,43,217,.25);
}

/* Kinematic Scene */
#scene-proj-track {
    height: 320vh;
}

#scene-proj {
    background: var(--black-2);
}

.sc-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(108,43,217,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(108,43,217,.04) 1px,transparent 1px);
    background-size: 55px 55px;
}

.sc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.sc-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(10,143,120,.12);
    top: -20%;
    right: -10%;
}

.sc-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(108,43,217,.1);
    bottom: -15%;
    left: -5%;
}

#sc-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
}

.sc-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 4%;
    max-width: 1000px;
}

.sc-bgword {
    font-family: var(--fd);
    font-size: clamp(6rem,16vw,16rem);
    letter-spacing: .08em;
    line-height: .85;
    background: linear-gradient(135deg,rgba(10,143,120,.2),rgba(108,43,217,.12));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
}

.sc-tag {
    font-family: var(--fm);
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
}

    .sc-tag::before, .sc-tag::after {
        content: '';
        width: 22px;
        height: 1px;
        background: var(--gold-2);
    }

.sc-quote {
    font-family: var(--fb);
    font-style: italic;
    font-size: clamp(1.4rem,3vw,2.6rem);
    color: var(--white);
    line-height: 1.4;
    max-width: 780px;
    margin: 0 auto;
}

    .sc-quote em {
        color: var(--gold-2);
        font-style: normal;
    }

.sc-line {
    height: 1px;
    background: linear-gradient(90deg,transparent,var(--gold),transparent);
    margin: 1.4rem auto 0;
    width: 0;
}

/* Projects Body */
.proj-section {
    position: relative;
    z-index: 2;
    padding: 8rem 4%;
}

.proj-inner {
    max-width: 1260px;
    margin: 0 auto;
}

.sec-label {
    font-family: var(--fm);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--purple-3);
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .sec-label::before {
        content: '';
        width: 18px;
        height: 1px;
        background: var(--purple-3);
    }

.sec-heading {
    font-family: var(--fd);
    font-size: clamp(2.2rem,4vw,3.5rem);
    letter-spacing: .04em;
    line-height: 1;
    margin-bottom: 2.5rem;
}

    .sec-heading em {
        font-family: var(--fb);
        font-style: italic;
        background: var(--g-gold);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

/* Featured Project */
.proj-featured {
    background: var(--black-2);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    padding: 2.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.4rem;
    transition: border-color .3s, transform .3s var(--ease);
}

    .proj-featured:hover {
        border-color: var(--purple-2);
        transform: translateY(-4px);
    }

    .proj-featured::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--g-full);
    }

    .proj-featured::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 30%,rgba(108,43,217,.08),transparent 60%);
        pointer-events: none;
    }

.pf-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .28rem .75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.st-active {
    background: rgba(10,200,130,.1);
    color: #0ac882;
    border: 1px solid rgba(10,200,130,.25);
}

.st-done {
    background: rgba(108,43,217,.1);
    color: var(--purple-3);
    border: 1px solid rgba(108,43,217,.22);
}

.pf-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0ac882;
    animation: aPulse 2s infinite;
}

@keyframes aPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(10,200,130,.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(10,200,130,0);
    }
}

.pf-title {
    font-family: var(--fd);
    font-size: clamp(1.6rem,3vw,2.4rem);
    letter-spacing: .04em;
    line-height: 1.05;
    margin-bottom: .8rem;
}

.pf-desc {
    font-size: .92rem;
    font-weight: 300;
    color: rgba(240,238,255,.52);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.pf-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.4rem;
}

.stag {
    padding: .25rem .65rem;
    border-radius: 3px;
    font-family: var(--fm);
    font-size: .65rem;
}

.st-p {
    background: rgba(108,43,217,.15);
    color: var(--purple-3);
    border: 1px solid rgba(108,43,217,.25);
}

.st-b {
    background: rgba(26,107,255,.13);
    color: var(--blue-2);
    border: 1px solid rgba(26,107,255,.22);
}

.st-g {
    background: rgba(212,160,23,.12);
    color: var(--gold-2);
    border: 1px solid rgba(212,160,23,.22);
}

.pf-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--fm);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-2);
    border: 1px solid rgba(212,160,23,.3);
    padding: .4rem 1rem;
    border-radius: 3px;
    text-decoration: none;
    transition: background .2s;
    cursor: none;
}

    .pf-link:hover {
        background: rgba(212,160,23,.1);
    }

.pf-visual {
    height: 220px;
    border-radius: 10px;
    background: linear-gradient(135deg,#120820,#2d0f5a,#6c2bd9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.pf-visual-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
    background-size: 24px 24px;
}

.pf-visual-icon {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(108,43,217,.8));
    animation: iconBob 3s ease-in-out infinite;
}

@keyframes iconBob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Project Grid */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

.proj-card {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
    cursor: none;
}

    .proj-card:hover {
        border-color: var(--purple-2);
        transform: translateY(-5px);
        box-shadow: 0 20px 60px rgba(0,0,0,.5);
    }

    .proj-card::after {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity .4s;
        pointer-events: none;
    }

    .proj-card:hover::after {
        opacity: 1;
    }

.pc-glow-p::after {
    background: radial-gradient(circle at 70% 20%,rgba(108,43,217,.1),transparent 65%);
}

.pc-glow-b::after {
    background: radial-gradient(circle at 70% 20%,rgba(26,107,255,.09),transparent 65%);
}

.pc-glow-g::after {
    background: radial-gradient(circle at 70% 20%,rgba(212,160,23,.09),transparent 65%);
}

.proj-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.proj-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pi-p {
    background: rgba(108,43,217,.15);
    border: 1px solid rgba(108,43,217,.25);
}

.pi-b {
    background: rgba(26,107,255,.12);
    border: 1px solid rgba(26,107,255,.22);
}

.pi-g {
    background: rgba(212,160,23,.12);
    border: 1px solid rgba(212,160,23,.22);
}

.proj-arrow {
    color: var(--muted);
    font-size: 1rem;
    transition: color .2s, transform .2s;
}

.proj-card:hover .proj-arrow {
    color: var(--gold-2);
    transform: translate(3px,-3px);
}

.proj-title {
    font-family: var(--fd);
    font-size: 1.1rem;
    letter-spacing: .04em;
    margin-bottom: .6rem;
}

.proj-desc {
    font-size: .85rem;
    font-weight: 300;
    color: rgba(240,238,255,.48);
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.proj-period {
    font-family: var(--fm);
    font-size: .65rem;
    color: var(--muted);
    margin-top: .8rem;
}

/* Projects Responsive */
@media(max-width:900px) {
    .proj-featured {
        grid-template-columns: 1fr;
    }

    .pf-visual {
        height: 160px;
    }

    .proj-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    .ph-inner {
        grid-template-columns: 1fr;
    }

    .ph-tags {
        display: none;
    }
}