/* ── 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: 280px;
    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, #e8e4dc 0%, #f5f2ec 50%, #e0dbd2 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: 500;
    color: rgba(30, 30, 30, 0.15);
    font-family: "DM Serif Text", serif;
    font-style: italic;
    letter-spacing: 3px;
}

.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);
}

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

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

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

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

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

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

.calc-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);
}

.calc-mockup .calc-title {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.calc-mockup .calc-row { margin-bottom: 16px; }

.calc-mockup .calc-row .c-label {
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
}

.calc-mockup .calc-row .c-bar {
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.calc-mockup .calc-row .c-bar .c-val {
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.calc-mockup .calc-row .c-bar .c-unit {
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    margin-left: auto;
}

.calc-mockup .calc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 24px 0;
}

.calc-mockup .calc-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calc-mockup .calc-result .r-label {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.calc-mockup .calc-result .r-price {
    font-size: 36px;
    font-weight: 500;
    color: #fff;
}

.calc-mockup .calc-result .r-price span {
    font-family: "Roboto Mono", monospace;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 4px;
}

.calc-mockup .calc-lang {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.calc-mockup .lang-pill {
    padding: 6px 12px;
    border-radius: 20px;
    font-family: "Roboto Mono", monospace;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.3);
}

.calc-mockup .lang-pill.active {
    background: #FFD600;
    border-color: #FFD600;
    color: #1E1E1E;
}

/* ── 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;
    transition: all ease 350ms;
}

.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-calculator .container {
        gap: 50px;
    }

    .project-calculator 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;
    }

    /* Hide dividers when meta wraps */
    .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;
    }

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

    .project-calculator 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) {

    /* Hide desktop nav, show hamburger */
    .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: 160px;
    }

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

    .project-mockup .mockup-frame .placeholder-screen .pl-logo {
        font-size: 32px;
    }

    /* 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;
    }

    /* Calculator */
    .project-calculator {
        padding-top: 80px;
        padding-bottom: 80px;
    }

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

    /* 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;
    }

    /* Calculator */
    .project-calculator h2 {
        font-size: 34px;
        line-height: 44px;
    }

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

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

    .calc-mockup .calc-result .r-price {
        font-size: 28px;
    }

    /* Results - single column */
    .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: 70px;
    }

    .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-calculator h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .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;
    }
}