.portfolio-section {
    padding: 8vw 12vw;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 28vw);
    grid-template-rows: auto auto;
    gap: 3vw;
    width: calc(28vw * 3 + 3vw * 2); /* Matches How Yane Works grid width */
}

/* Row 1: Title block spans 2 columns, Card 01 takes column 3 */
.portfolio-header-block {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align title/subtitle to the bottom of row 1 */
    padding-bottom: 1vw;
}

.portfolio-title {
    font-family: 'Arsenica Trial', serif;
    font-weight: 700;
    font-size: 8vw;
    color: #ffffff;
    line-height: 0.95;
    margin: 0;
    text-align: left;
    text-transform: uppercase;
}

.portfolio-subtitle {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(11px, 1.1vw, 18px);
    color: #ffffff;
    margin: 1.5vw 0 0 0;
    text-transform: none; /* "Built by us. Backed by us." is not all caps in screenshot */
    letter-spacing: 0.05em;
}

/* Reuse glass card logic from how-it-works.css but with portfolio content */
/* Note: Using same class names where possible or mirroring the styles */

.portfolio-card {
    width: 28vw;
    height: 28vw; /* Matches vision section height for consistency */
    border-radius: 4vw;
    padding: 3vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    border: none;
    overflow: hidden;
    
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px) saturate(100%) contrast(110%);
    -webkit-backdrop-filter: blur(20px) saturate(100%) contrast(110%);

    box-shadow:
        0 0 80px rgba(0, 0, 0, 0.15),
        0 8px 32px 0 rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}



.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.35) 70%,
        rgba(255, 255, 255, 0.5) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.portfolio-card:hover {
    transform: translateY(-0.5vw);
    box-shadow:
        0 15px 45px 0 rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.port-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3.5vw;
    color: transparent;
    -webkit-text-stroke: 0.08vw #ffffff;
    line-height: 1;
    margin-bottom: 1vw;
}

.port-heading {
    font-family: 'Abril Fatface', serif;
    font-size: 3vw;
    color: #ffffff;
    margin: 0 0 1.2vw 0;
    line-height: 1;
    opacity: 0.8;
}

.port-text {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(9px, 1.1vw, 18px);
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    text-transform: uppercase;
}

/* ---- Mobile: stack cards vertically ---- */
@media (max-width: 768px) {
    .portfolio-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }
    .portfolio-header-block {
        width: 80vw;
        padding-bottom: 20px;
    }
    .portfolio-title {
        font-size: 8vw;
    }
    .portfolio-card {
        width: 80vw;
        height: 80vw;
        border-radius: 60px;
        padding: 40px;
    }
    .port-number {
        font-size: 10vw;
        -webkit-text-stroke: 1px #ffffff;
        margin-bottom: 15px;
    }
    .port-heading {
        font-size: 10vw;
        margin-bottom: 20px;
    }
    .port-text {
        font-size: 3.5vw;
    }
}
