/* ── HERO ── */
.project-hero {
    min-height: 100vh;
    background: #1E1E1E;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.project-hero .bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
    font-family: "DM Sans", sans-serif;
    letter-spacing: -10px;
}

.project-hero .back-link {
    position: absolute;
    top: 110px;
    left: 40px;
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color ease 250ms;
    z-index: 10;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.3s;
}

.project-hero .back-link:hover { color: #FFD600; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.project-hero .container { position: relative; z-index: 2; }

.project-hero .tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.5s;
}

.project-hero .tag {
    padding: 10px 16px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(5px);
}

.project-hero h1 {
    font-size: 110px;
    line-height: 115px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.65s;
}

.project-hero .sub {
    font-family: "DM Serif Text", serif;
    font-style: italic;
    font-size: 52px;
    line-height: 60px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.8s;
}

.project-hero .hero-meta {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.95s;
}

.project-hero .hero-meta .meta-item .label {
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 6px;
}

.project-hero .hero-meta .meta-item .value {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
}

.project-hero .hero-meta .meta-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
}

/* ── MAIN MOCKUP ── */
.project-mockup {
    background: #F3F3F0;
    padding-top: 100px;
    padding-bottom: 100px;
}

.project-mockup .mockup-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30,30,30,0.1);
    background: #fff;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-mockup .mockup-frame .placeholder-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8ede8 0%, #f2f5f2 50%, #d8e2d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.project-mockup .mockup-frame .placeholder-screen .pl-logo {
    font-size: 52px;
    font-weight: 600;
    color: rgba(30,30,30,0.12);
    font-family: "DM Sans", sans-serif;
    letter-spacing: 6px;
}

.project-mockup .mockup-frame .placeholder-screen .pl-label {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(30,30,30,0.2);
    letter-spacing: 2px;
}

.mockup-caption {
    margin-top: 20px;
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: rgba(30,30,30,0.35);
    text-align: center;
}

/* ── OVERVIEW ── */
.project-overview {
    padding-top: 120px;
    padding-bottom: 120px;
}

.project-overview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.project-overview .left {
    position: sticky;
    top: 120px;
}

.project-overview .left h2 {
    font-size: 56px;
    line-height: 68px;
    font-weight: 500;
    margin-bottom: 24px;
}

.project-overview .left p {
    font-size: 20px;
    line-height: 30px;
    color: rgba(30,30,30,0.7);
    margin-bottom: 16px;
}

.project-overview .right {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.project-overview .right .stat-block {
    padding-bottom: 50px;
    border-bottom: 1px dashed rgba(30,30,30,0.15);
}

.project-overview .right .stat-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-overview .right .stat-block .stat-label {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(30,30,30,0.35);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.project-overview .right .stat-block h3 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
    margin-bottom: 10px;
}

.project-overview .right .stat-block p {
    font-size: 18px;
    line-height: 27px;
    color: rgba(30,30,30,0.65);
}

/* ── FEATURES ── */
.project-features {
    background: #1E1E1E;
    padding-top: 120px;
    padding-bottom: 120px;
}

.project-features .caption { color: rgba(255,255,255,0.3); }

.project-features h2 {
    font-size: 60px;
    line-height: 72px;
    font-weight: 500;
    color: #fff;
    max-width: 560px;
    margin-bottom: 80px;
}

.project-features .highlight { color: #fff; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.feature-card {
    background: rgba(255,255,255,0.04);
    padding: 50px 40px;
    border-radius: 4px;
    transition: background ease 400ms;
}

.feature-card:hover { background: rgba(255,255,255,0.08); }

.feature-card .f-num {
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: #FFD600;
    margin-bottom: 30px;
}

.feature-card h4 {
    font-size: 26px;
    line-height: 34px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 17px;
    line-height: 25px;
    color: rgba(255,255,255,0.5);
}

/* ── FUNNEL HIGHLIGHT ── */
.project-funnel {
    padding-top: 140px;
    padding-bottom: 140px;
    background: url(../assets/bg/portfolio_bg.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.project-funnel .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.project-funnel h2 {
    font-size: 56px;
    line-height: 68px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
}

.project-funnel .highlight { color: #fff; }

.project-funnel p {
    font-size: 20px;
    line-height: 29px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
}

.project-funnel .caption { color: rgba(255,255,255,0.3); }

/* Funnel mockup */
.funnel-mockup {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.funnel-mockup .fm-label {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

.funnel-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.funnel-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.funnel-step .fs-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
    padding-top: 4px;
}

.funnel-step .fs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: transparent;
    flex-shrink: 0;
    transition: all ease 300ms;
}

.funnel-step .fs-dot.active {
    border-color: #FFD600;
    background: #FFD600;
}

.funnel-step .fs-line {
    width: 2px;
    flex: 1;
    min-height: 44px;
    background: rgba(255,255,255,0.1);
    margin-top: 4px;
}

.funnel-step .fs-line.last { background: transparent; }

.funnel-step .fs-body {
    flex: 1;
    padding-bottom: 28px;
}

.funnel-step .fs-tag {
    font-family: "Roboto Mono", monospace;
    font-size: 10px;
    color: #FFD600;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.funnel-step .fs-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.funnel-step .fs-desc {
    font-size: 14px;
    line-height: 20px;
    color: rgba(255,255,255,0.45);
}

.funnel-step .fs-metric {
    text-align: right;
    flex-shrink: 0;
    padding-top: 2px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    font-family: "Roboto Mono", monospace;
    min-width: 80px;
}

.funnel-step .fs-metric span {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-weight: 400;
    margin-top: 2px;
}

/* ── RESULTS ── */
.project-results {
    padding-top: 140px;
    padding-bottom: 140px;
}

.project-results .container {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
}

.project-results h2 {
    max-width: 420px;
    font-size: 60px;
    line-height: 72px;
    font-weight: 500;
}

.project-results .results-intro {
    max-width: 460px;
    font-size: 20px;
    line-height: 29px;
    color: rgba(30,30,30,0.65);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.result-card {
    padding: 50px 36px;
    background: #fff;
    border: 1px solid rgba(30,30,30,0.08);
    border-radius: 4px;
}

.result-card .r-num {
    font-size: 64px;
    line-height: 64px;
    font-weight: 400;
    margin-bottom: 10px;
    font-family: "DM Serif Text", serif;
    font-style: italic;
}

.result-card .r-label {
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: rgba(30,30,30,0.45);
    line-height: 19px;
}

/* ── CTA ── */
.project-cta {
    background: #1E1E1E;
    padding-top: 120px;
    padding-bottom: 120px;
    text-align: center;
}

.project-cta .caption { color: rgba(255,255,255,0.3); }

.project-cta h2 {
    font-size: 72px;
    line-height: 84px;
    font-weight: 500;
    color: #fff;
    max-width: 640px;
    margin: 0 auto 16px;
}

.project-cta .highlight { color: #fff; }

.project-cta p {
    font-size: 20px;
    line-height: 28px;
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto 40px;
}

.project-cta .cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.project-cta button {
    background-color: #FFD600;
    color: #1E1E1E;
    border: none;
    padding: 18px 32px;
    border-radius: 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all ease 350ms;
    font-family: "Roboto Mono", monospace;
}

.project-cta button:hover { background: #fff; }

.project-cta .btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

.project-cta .btn-outline:hover {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

/* ── NEXT PROJECT ── */
.next-project {
    padding-top: 100px;
    padding-bottom: 100px;
    border-top: 1px dashed rgba(30,30,30,0.15);
}

.next-project .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.next-project .np-label {
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: rgba(30,30,30,0.35);
    margin-bottom: 12px;
}

.next-project h3 {
    font-size: 52px;
    line-height: 60px;
    font-weight: 500;
}

.next-project .np-sub {
    font-family: "DM Serif Text", serif;
    font-style: italic;
    font-size: 28px;
    color: rgba(30,30,30,0.4);
}

.next-project .np-arrow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(30,30,30,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all ease 300ms;
    flex-shrink: 0;
    text-decoration: none;
}

.next-project .np-arrow:hover {
    background: #FFD600;
    border-color: #FFD600;
}


/* ================================================================
   RESPONSIVE BREAKPOINTS - matching index.css system exactly
   1200px → 980px → 850px → 650px → 400px
   ================================================================ */

/* ── 1200px ── */
@media screen and (max-width: 1200px) {

    .project-hero h1 {
        font-size: 86px;
        line-height: 92px;
    }

    .project-hero .sub {
        font-size: 42px;
        line-height: 52px;
    }

    .project-hero .hero-meta { gap: 40px; }

    .project-overview .container { gap: 60px; }

    .project-overview .left h2 {
        font-size: 44px;
        line-height: 56px;
    }

    .project-funnel .container { gap: 50px; }

    .project-funnel h2 {
        font-size: 44px;
        line-height: 56px;
    }

    .project-results h2 {
        font-size: 48px;
        line-height: 60px;
    }

    .project-cta h2 {
        font-size: 58px;
        line-height: 70px;
    }

    .next-project h3 {
        font-size: 42px;
        line-height: 52px;
    }
}

/* ── 980px ── */
@media screen and (max-width: 980px) {

    /* Hero */
    .project-hero h1 {
        font-size: 66px;
        line-height: 74px;
    }

    .project-hero .sub {
        font-size: 34px;
        line-height: 44px;
        margin-bottom: 36px;
    }

    .project-hero .hero-meta {
        gap: 28px;
        flex-wrap: wrap;
    }

    .project-hero .hero-meta .meta-divider { display: none; }

    /* Overview - stack */
    .project-overview .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .project-overview .left { position: static; }

    .project-overview .left h2 {
        font-size: 42px;
        line-height: 54px;
    }

    /* Features - 2 col */
    .features-grid { grid-template-columns: repeat(2, 1fr); }

    .project-features h2 {
        font-size: 45px;
        line-height: 58px;
        max-width: 100%;
        margin-bottom: 60px;
    }

    /* Funnel - stack */
    .project-funnel .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .project-funnel h2 {
        font-size: 42px;
        line-height: 54px;
    }

    /* Results - stack header */
    .project-results .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 50px;
    }

    .project-results h2 {
        font-size: 45px;
        line-height: 58px;
        max-width: 100%;
    }

    /* Results grid - 2 col */
    .results-grid { grid-template-columns: repeat(2, 1fr); }

    /* CTA */
    .project-cta h2 {
        font-size: 48px;
        line-height: 60px;
    }

    /* Next project */
    .next-project h3 {
        font-size: 36px;
        line-height: 46px;
    }

    .next-project .np-sub { font-size: 22px; }

    /* Footer */
    .footer .main {
        grid-template-columns: repeat(1, 1fr);
        gap: 80px;
    }

    .footer .col.double { grid-column: span 1; }
    .footer .col .footer-logo { margin-bottom: 30px; }
    .footer .col .media { margin-top: 30px; }
}

/* ── 850px - hamburger breakpoint ── */
@media screen and (max-width: 850px) {

    .navbar .links { display: none; }

    .mobile-menu {
        display: flex;
        width: 50px;
        height: 50px;
        min-width: 50px;
        max-width: 50px;
        overflow: hidden;
        border-radius: 50px;
    }

    .mobile-menu .open {
        width: 50px;
        min-width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #1E1E1E;
        transition: all ease 450ms;
    }

    .mobile-menu .close {
        width: 50px;
        min-width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #F3C403;
        transition: all ease 450ms;
    }

    /* Hero */
    .project-hero { padding-bottom: 60px; }

    .project-hero .back-link {
        top: 120px;
        left: 0px;
    }

    .project-hero h1 {
        font-size: 52px;
        line-height: 60px;
    }

    .project-hero .sub {
        font-size: 28px;
        line-height: 38px;
        margin-bottom: 28px;
    }

    .project-hero .bg-text { font-size: 120px; }

    /* Mockup */
    .project-mockup {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Overview */
    .project-overview {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    /* Features - 1 col */
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 36px 28px; }

    .project-features {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .project-features h2 {
        font-size: 36px;
        line-height: 48px;
        margin-bottom: 40px;
    }

    /* Funnel */
    .project-funnel {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .project-funnel h2 {
        font-size: 34px;
        line-height: 44px;
    }

    .funnel-mockup { padding: 28px 24px; }

    /* Shrink metric column on mid sizes */
    .funnel-step .fs-metric {
        font-size: 14px;
        min-width: 60px;
    }

    /* Results */
    .project-results {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .project-results h2 {
        font-size: 36px;
        line-height: 48px;
    }

    .result-card { padding: 36px 24px; }

    .result-card .r-num {
        font-size: 48px;
        line-height: 48px;
    }

    /* CTA */
    .project-cta {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .project-cta h2 {
        font-size: 38px;
        line-height: 50px;
    }

    /* Next project */
    .next-project {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .next-project h3 {
        font-size: 30px;
        line-height: 40px;
    }

    .next-project .np-arrow {
        width: 60px;
        height: 60px;
    }

    /* Footer */
    .footer {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .footer .col .footer-logo { width: 180px; }
}

/* ── 650px ── */
@media screen and (max-width: 650px) {

    section { padding-inline: 20px; }

    /* Hero */
    .project-hero { padding-bottom: 40px; }

    .project-hero h1 {
        font-size: 40px;
        line-height: 48px;
    }

    .project-hero .sub {
        font-size: 22px;
        line-height: 32px;
        margin-bottom: 24px;
    }

    .project-hero .tag {
        font-size: 11px;
        padding: 8px 12px;
    }

    .project-hero .hero-meta {
        gap: 20px;
        padding-top: 24px;
    }

    .project-hero .hero-meta .meta-item .value { font-size: 14px; }

    .project-hero .bg-text {
        display: none;
    }

    /* Overview */
    .project-overview .left h2 {
        font-size: 34px;
        line-height: 44px;
    }

    .project-overview .left p {
        font-size: 18px;
        line-height: 27px;
    }

    .project-overview .right .stat-block h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .project-overview .right .stat-block p {
        font-size: 16px;
        line-height: 24px;
    }

    /* Features */
    .feature-card { padding: 28px 20px; }

    .feature-card h4 {
        font-size: 20px;
        line-height: 28px;
    }

    .feature-card p {
        font-size: 15px;
        line-height: 22px;
    }

    /* Funnel */
    .project-funnel h2 {
        font-size: 30px;
        line-height: 40px;
    }

    .project-funnel p {
        font-size: 18px;
        line-height: 26px;
    }

    .funnel-mockup { padding: 22px 18px; }

    .funnel-mockup .fm-label { margin-bottom: 20px; }

    /* Hide metric values on small screens - funnel steps too cramped */
    .funnel-step .fs-metric { display: none; }

    .funnel-step .fs-title { font-size: 14px; }

    .funnel-step .fs-desc { font-size: 13px; }

    /* Results - 1 col */
    .results-grid { grid-template-columns: 1fr; }

    .project-results h2 {
        font-size: 34px;
        line-height: 44px;
    }

    .project-results .results-intro {
        font-size: 18px;
        line-height: 26px;
    }

    /* CTA */
    .project-cta h2 {
        font-size: 32px;
        line-height: 42px;
    }

    .project-cta p {
        font-size: 18px;
        line-height: 26px;
    }

    .project-cta .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .project-cta button {
        justify-content: center;
        width: 100%;
    }

    /* Next project */
    .next-project h3 {
        font-size: 26px;
        line-height: 34px;
    }

    .next-project .np-sub { font-size: 18px; }

    .next-project .np-arrow {
        width: 52px;
        height: 52px;
    }

    /* Footer */
    .footer .main { gap: 40px; }

    .footer-links a {
        font-size: 18px;
        line-height: 24px;
    }

    .footer .col h3 {
        margin-bottom: 20px;
        font-size: 22px;
        line-height: 28px;
    }

    .copyright {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
}

/* ── 400px ── */
@media screen and (max-width: 400px) {

    .project-hero h1 {
        font-size: 34px;
        line-height: 42px;
    }

    .project-hero .sub {
        font-size: 20px;
        line-height: 28px;
    }

    .project-hero .bg-text { font-size: 52px; }

    .project-overview .left h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .project-overview .right .stat-block h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .project-features h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .project-funnel h2 {
        font-size: 26px;
        line-height: 34px;
    }

    .funnel-step .fs-body { padding-bottom: 20px; }

    .project-results h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .result-card .r-num {
        font-size: 40px;
        line-height: 40px;
    }

    .project-cta h2 {
        font-size: 26px;
        line-height: 34px;
    }

    .next-project h3 {
        font-size: 22px;
        line-height: 30px;
    }

    .next-project .np-arrow {
        width: 44px;
        height: 44px;
    }
}