/* ─── PROJECT PAGE SHARED STYLES ────────────────────────────── */

.project-hero {
    padding: 4rem 1rem 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.project-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    animation: scan-h 6s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.project-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.project-back {
    margin-bottom: 2rem;
}

.project-back a {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--white);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.project-back a:hover {
    opacity: 1;
}

.project-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-id-lg {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    opacity: 0.4;
}

.project-status-lg {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--white);
}

.project-status-lg.status-active {
    background: var(--white);
    color: var(--black);
    animation: pulse-border 2.5s ease-in-out infinite;
}

.project-status-lg.status-pending {
    background: transparent;
    color: var(--white);
    opacity: 0.7;
}

.project-status-lg.status-closed {
    background: transparent;
    color: var(--white);
    opacity: 0.3;
    border-style: dashed;
}

.project-title {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 7vw, 4.5rem);
    font-weight: bold;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.project-subtitle {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.6;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.project-stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.2);
    width: fit-content;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-block:last-child {
    border-right: none;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    opacity: 0.4;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* ─── PHASE LIST ─────────────────────────────────────────────── */

.phase-list {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.18);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.phase-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    opacity: 0.4;
    transition: background 0.2s;
}

.phase-item:last-child {
    border-bottom: none;
}

.phase-item.completed,
.phase-item.current {
    opacity: 1;
}

.phase-item.current {
    background: rgba(255,255,255,0.025);
}

.phase-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    width: 2.5rem;
    line-height: 1;
}

.phase-item.current .phase-num {
    color: var(--white);
}

.phase-body {
    flex: 1;
}

.phase-body strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.4rem;
}

.phase-body p {
    font-size: 0.87rem;
    line-height: 1.75;
    opacity: 0.7;
}

.phase-tag {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 2px;
    opacity: 0.5;
}

.active-tag {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    opacity: 1;
    animation: pulse-border 2.5s ease-in-out infinite;
}

.pending-tag {
    opacity: 0.35;
}

/* ─── PROJECT CONTENT ────────────────────────────────────────── */

.project-content.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .project-content.two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-stats {
        width: 100%;
    }

    .stat-block {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 1rem;
    }

    .phase-item {
        gap: 1rem;
        padding: 1.25rem;
    }
}
