*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    scrollbar-width:thin;
    scrollbar-color:#111 #f0f0f0;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#f5f5f5;
    color:#111;
    overflow-x:hidden;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:12px;
}

::-webkit-scrollbar-track{
    background:#f0f0f0;
}

::-webkit-scrollbar-thumb{
    background:#111;
    border-radius:999px;
    border:3px solid #f0f0f0;
}

/* NAVIGATION */

nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:25px 60px;
    background:rgba(13,13,13,0.92);
    backdrop-filter:blur(10px);
    z-index:1000;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.logo{
    font-size:32px;
    font-weight:700;
    color:white;
    text-decoration:none;
}

nav ul{
    display:flex;
    align-items:center;
    list-style:none;
    gap:25px;
}

nav a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:0.3s;
}

nav a:hover{
    opacity:0.6;
}

.divider{
    color:rgba(255,255,255,0.35);
    font-weight:300;
}

.hamburger{
    display:none;
    border:none;
    background:none;
    font-size:36px;
    color:white;
    cursor:pointer;
}

/* HERO */

.hero{
    width:100%;
    height:100vh;
    background-image:url('header.webp');
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    background-attachment:fixed;
    position:relative;
}

.hero::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-1px;
    height:120px;
    background:linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.72) 62%,
        #ffffff 100%
    );
    pointer-events:none;
    z-index:1;
}

.scroll-cue{
    position:absolute;
    left:50%;
    bottom:34px;
    width:54px;
    height:54px;
    border:1px solid rgba(255,255,255,0.72);
    border-radius:50%;
    background:rgba(17,17,17,0.44);
    backdrop-filter:blur(8px);
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:3;
    opacity:0;
    animation:scrollCueIn 0.65s ease 0.8s forwards, scrollCueFloat 1.8s ease-in-out 1.5s infinite;
    transition:opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.scroll-cue span{
    width:15px;
    height:15px;
    border-right:3px solid white;
    border-bottom:3px solid white;
    transform:rotate(45deg) translate(-2px,-2px);
}

.scroll-cue:hover{
    background:rgba(17,17,17,0.68);
}

.scroll-cue.hide-scroll-cue{
    opacity:0;
    visibility:hidden;
    animation:none;
    transform:translateX(-50%) translateY(12px);
    pointer-events:none;
}

/* BLUEPRINT */

.blueprint-bg{
    position:relative;
    overflow:hidden;
}

.blueprint-bg::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size:60px 60px;
    pointer-events:none;
}

.blueprint-bg > *{
    position:relative;
    z-index:2;
}

/* SERVICE INTRO */

.service-intro{
    background:white;
    padding:105px 10%;
}

.service-intro-inner{
    max-width:980px;
    margin:0 auto;
    text-align:center;
}

.service-intro .eyebrow{
    color:#777;
}

.service-intro h2{
    font-size:56px;
    line-height:1.08;
    margin-bottom:28px;
}

.service-intro p{
    max-width:820px;
    margin:0 auto;
    color:#555;
    font-size:20px;
    line-height:1.8;
}

.service-intro span{
    display:inline-block;
    margin-top:28px;
    padding:13px 18px;
    border:1px solid #e2e2e2;
    border-radius:999px;
    background:#fafafa;
    color:#333;
    font-weight:700;
    font-size:14px;
}

/* SERVICES */

.services{
    padding:120px 10%;
    background:white;
}

.section-title{
    text-align:center;
    font-size:52px;
    margin-bottom:80px;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:40px;
}

.card{
    background:#fafafa;
    padding:50px;
    border-radius:20px;
    border:1px solid #e5e5e5;
    transition:0.35s;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
}

.card h3{
    font-size:30px;
    margin-bottom:20px;
}

.card p{
    line-height:1.7;
    color:#555;
}

/* PROCESS */

.process-section{
    padding:140px 10%;
    background:#111;
    color:white;
    position:relative;
    overflow:hidden;
}

.process-section::before{
    content:"";
    position:absolute;
    inset:-50%;
    background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size:60px 60px;
    animation:moveGrid 20s linear infinite;
}

.white-title{
    color:white;
    position:relative;
    z-index:2;
}

.process-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:40px;
    position:relative;
    z-index:2;
}

.process-card{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:24px;
    padding:40px;
    backdrop-filter:blur(12px);
}

.process-card span{
    font-size:52px;
    font-weight:800;
    opacity:0.22;
}

.process-card h3{
    margin:20px 0;
    font-size:28px;
}

.process-card p{
    color:#bbb;
    line-height:1.7;
}

/* PROJECTS */

.projects{
    padding:180px 10% 120px;
    min-height:100vh;
}

.projects h1{
    font-size:72px;
    margin-bottom:70px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:50px;
}

.project-card{
    background:white;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
    transition:0.35s;
}

.project-card:hover{
    transform:translateY(-12px);
    box-shadow:0 25px 60px rgba(0,0,0,0.12);
}

.project-image-wrapper{
    position:relative;
    overflow:hidden;
}

.project-card img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
    transition:0.5s;
}

.project-image-wrapper:hover img{
    transform:scale(1.06);
}

/* PROJECT OVERLAY */

.project-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:0.35s;
    z-index:5;
}

.project-image-wrapper:hover .project-overlay{
    opacity:1;
}

.overlay-buttons{
    display:flex;
    flex-direction:column;
    gap:14px;
    align-items:center;
}

.overlay-buttons a{
    background:white;
    color:#111;
    text-decoration:none;
    padding:18px 30px;
    border-radius:999px;
    font-weight:600;
    transition:0.3s;
}

.overlay-buttons a:hover{
    transform:scale(1.06);
}

@media(hover:none){
    .project-overlay{
        opacity:1;
        background:rgba(0,0,0,0.2);
    }
}

/* PROJECT CONTENT */

.project-content{
    padding:35px;
}

.project-content h3{
    font-size:34px;
    margin-bottom:18px;
}

.project-content p{
    color:#555;
    line-height:1.8;
    font-size:17px;
}

/* PROJECT DETAIL */

.project-detail{
    padding:160px 10% 120px;
}

.project-hero img{
    width:100%;
    border-radius:28px;
    margin-bottom:50px;
    box-shadow:0 20px 60px rgba(0,0,0,0.12);
}

.project-info h1{
    font-size:64px;
    margin-bottom:30px;
}

.project-info p{
    max-width:900px;
    line-height:1.9;
    color:#555;
    margin-bottom:60px;
    font-size:18px;
}

/* COMPARE SLIDER */

.compare-section{
    padding:90px 0;
    margin-top:120px;
}

.compare-section h2{
    text-align:center;
    font-size:46px;
    margin-bottom:50px;
}

.compare-container{
    position:relative;
    width:100%;
    max-width:1200px;
    aspect-ratio:16 / 9;
    margin:auto;
    overflow:hidden;
    border-radius:28px;
    box-shadow:0 20px 60px rgba(0,0,0,0.12);
}

.compare-before,
.compare-after{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.compare-before{
    transform:scale(1.2) translateX(-12px) translateY(-8px);
}

.compare-overlay{
    position:absolute;
    inset:0;
    clip-path:inset(0 50% 0 0);
}

.compare-handle{
    position:absolute;
    top:-40px;
    left:50%;
    width:4px;
    height:calc(100% + 80px);
    background:white;
    transform:translateX(-50%);
    z-index:4;
    box-shadow:0 0 20px rgba(0,0,0,0.25);
}

.compare-handle::before{
    content:"↔";
    position:absolute;
    top:50%;
    left:50%;
    width:64px;
    height:64px;
    background:white;
    border-radius:50%;
    transform:translate(-50%,-50%);
    box-shadow:0 8px 30px rgba(0,0,0,0.25);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:32px;
    font-weight:700;
    color:#111;

    line-height:1;
    padding-bottom:4px;
}

.compare-slider{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:0;
    cursor:ew-resize;
    z-index:5;
}

/* GALLERY */

.project-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    margin-top:70px;
}

.project-gallery img{
    width:100%;
    border-radius:24px;
    transition:0.35s;
    cursor:pointer;
}

.project-gallery img:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 50px rgba(0,0,0,0.15);
}

/* QUOTE FORM */

.quote-form-section{
    padding:120px 10%;
    background:white;
}

.quote-form{
    max-width:800px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:25px;
}

.quote-form input,
.quote-form select,
.quote-form textarea,
.popup-form input,
.popup-form select,
.popup-form textarea{
    width:100%;
    padding:22px;
    border-radius:16px;
    border:1px solid #ddd;
    font-size:17px;
    font-family:'Montserrat',sans-serif;
    background:#fafafa;
}

.quote-form textarea,
.popup-form textarea{
    min-height:160px;
    resize:vertical;
}

.file-upload{
    width:100%;
    padding:18px 20px;
    border:1px dashed #c9c9c9;
    border-radius:16px;
    background:#fafafa;
    color:#666;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.file-upload span{
    display:block;
    margin-bottom:7px;
}

.file-upload small{
    display:block;
    margin-bottom:13px;
    color:#777;
    font-size:13px;
    font-weight:500;
    line-height:1.45;
}

.file-upload input{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    font-size:14px;
    cursor:pointer;
}

.quote-form button,
.popup-form button{
    padding:20px;
    border:none;
    border-radius:16px;
    background:#111;
    color:white;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.quote-form button:hover,
.popup-form button:hover{
    opacity:0.85;
}

/* SECTION DIVIDER */

.section-divider{
    height:100px;
    background:linear-gradient(
        to bottom,
        #ffffff 0%,
        #f7f7f7 45%,
        #ececec 100%
    );
}

/* FAQ */

.faq-section{
    padding:80px 10% 120px;
    background:#ececec;
}

.faq-container{
    max-width:900px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.faq-item{
    background:white;
    border:1px solid #e5e5e5;
    border-radius:20px;
    overflow:hidden;
    transition:0.3s;
}

.faq-item:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

.faq-question{
    width:100%;
    padding:28px;
    background:none;
    border:none;
    text-align:left;
    font-size:20px;
    font-weight:600;
    cursor:pointer;
    font-family:'Montserrat',sans-serif;
    color:#111;
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.4s ease;
}

.faq-answer p{
    padding:0 28px 28px;
    color:#555;
    line-height:1.8;
}

.faq-item.active .faq-answer{
    max-height:300px;
}

/* FOOTER */

footer{
    background:#0d0d0d;
    color:white;
    padding:90px 10% 40px;
}

.footer-container{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:80px;
    margin-bottom:60px;
}

.footer-brand h2{
    font-size:42px;
    margin-bottom:25px;
}

.footer-brand p{
    color:#999;
    line-height:1.8;
    max-width:400px;
}

.footer-contact h3,
.footer-software h3{
    margin-bottom:25px;
    font-size:22px;
}

.footer-contact p,
.footer-software p{
    color:#999;
    margin-bottom:14px;
}

.footer-contact a,
.footer-software a{
    color:#999;
    text-decoration:none;
}

.footer-contact a:hover,
.footer-software a:hover{
    color:white;
}

.footer-bottom{
    padding-top:35px;
    border-top:1px solid rgba(255,255,255,0.08);
    text-align:center;
    color:#777;
}

/* REVEAL */

.reveal{
    opacity:0;
    transform:translateY(60px);
    transition:1s ease;
}

.active-reveal{
    opacity:1;
    transform:translateY(0);
}

/* STICKY BUTTON */

.sticky-quote-btn{
    position:fixed;
    right:30px;
    bottom:30px;
    background:#111;
    color:white;
    padding:18px 28px;
    border-radius:999px;
    border:none;
    font-family:'Montserrat',sans-serif;
    font-weight:600;
    font-size:16px;
    z-index:99999;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    transition:0.3s;
    cursor:pointer;
}

.sticky-quote-btn:hover{
    transform:translateY(-4px);
    background:#222;
}

.sticky-quote-btn.hide-quote-btn{
    opacity:0;
    visibility:hidden;
    transform:translateY(14px) scale(0.94);
    pointer-events:none;
}

/* POPUP */

.quote-popup{
    position:fixed;
    right:30px;
    bottom:30px;
    width:420px;
    max-width:calc(100% - 40px);
    background:white;
    border-radius:24px;
    padding:28px;
    z-index:100000;
    box-shadow:0 25px 80px rgba(0,0,0,0.25);
    opacity:0;
    visibility:hidden;
    transform:translateY(36px) scale(0.9);
    transform-origin:bottom right;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.show-popup{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
}

.quote-popup-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
}

.quote-popup-header h3{
    font-size:24px;
}

.quote-popup-header button{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#f3f3f3;
    color:#111;
    cursor:pointer;
    font-size:28px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.2s;
}

.quote-popup-header button:hover{
    background:#111;
    color:white;
    transform:rotate(90deg);
}

.popup-form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* THANK YOU PAGE */

.thank-you-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f5f5f5;
    padding:40px;
}

.thank-you-box{
    max-width:700px;
    background:white;
    padding:70px;
    border-radius:28px;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,0.08);
}

.thank-you-box h1{
    font-size:72px;
    margin-bottom:25px;
}

.thank-you-box p{
    font-size:20px;
    color:#555;
    line-height:1.7;
    margin-bottom:30px;
}

.thank-you-box a{
    display:inline-block;
    background:#111;
    color:white;
    padding:18px 32px;
    border-radius:999px;
    text-decoration:none;
    font-weight:600;
}

.redirect-text{
    margin-bottom:35px;
    color:#777;
    font-size:16px;
}

.redirect-text span{
    font-weight:700;
    color:#111;
}

.thank-you-page-refined{
    background:
        linear-gradient(rgba(17,17,17,0.74), rgba(17,17,17,0.74)),
        url('header.webp') center / cover no-repeat;
}

.thank-you-page-refined .thank-you-box{
    max-width:760px;
    padding:58px;
    border-radius:8px;
    text-align:left;
}

.thank-you-page-refined .eyebrow{
    color:#777;
    margin-bottom:16px;
}

.thank-you-mark{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:54px;
    height:54px;
    border-radius:50%;
    background:#111;
    color:white;
    font-size:28px;
    font-weight:800;
    margin-bottom:24px;
}

.thank-you-next{
    margin:30px 0 26px;
    padding:24px;
    border-radius:8px;
    background:#f4f4f4;
    border:1px solid #e4e4e4;
}

.thank-you-next strong{
    display:block;
    margin-bottom:10px;
    font-size:18px;
}

.thank-you-next p{
    margin:0;
    font-size:16px;
}

/* ANIMATION */

@keyframes moveGrid{
    from{
        transform:translate(0,0);
    }

    to{
        transform:translate(-60px,-60px);
    }
}

@keyframes scrollCueIn{
    from{
        opacity:0;
        transform:translateX(-50%) translateY(12px);
    }

    to{
        opacity:1;
        transform:translateX(-50%) translateY(0);
    }
}

@keyframes scrollCueFloat{
    0%,
    100%{
        transform:translateX(-50%) translateY(0);
    }

    50%{
        transform:translateX(-50%) translateY(8px);
    }
}

/* TABLET */

@media(max-width:900px){
    nav{
        padding:22px 36px;
    }

    .hamburger{
        display:block;
    }

    nav ul{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#0d0d0d;
        flex-direction:column;
        align-items:flex-start;
        padding:30px 36px;
        gap:22px;
        display:none;
        box-shadow:0 20px 40px rgba(0,0,0,0.18);
    }

    nav ul.show-menu{
        display:flex;
    }

    .divider{
        display:none;
    }

    .footer-container{
        grid-template-columns:1fr;
        gap:50px;
    }
}

/* MOBILE */

@media(max-width:768px){
    nav{
        padding:16px 20px;
    }

    .logo{
        font-size:30px;
    }

    .hamburger{
        font-size:30px;
        color:white;
    }

    nav ul{
        padding:24px 26px 28px;
        gap:18px;
    }

    .hero{
        height:92svh;
        min-height:620px;
        background-image:url('header.webp');
        background-size:cover;
        background-position:center center;
        background-repeat:no-repeat;
        background-attachment:scroll;
    }

    .hero::after{
        height:90px;
    }

    .scroll-cue{
        bottom:24px;
        width:50px;
        height:50px;
    }

    .services,
    .service-intro,
    .quote-form-section,
    .process-section{
        padding:76px 7%;
    }

    .service-intro h2{
        font-size:34px;
        line-height:1.12;
    }

    .service-intro p{
        font-size:16px;
        line-height:1.7;
    }

    .service-intro span{
        border-radius:8px;
        line-height:1.5;
    }

    .projects{
        padding:120px 7% 74px;
    }

    .projects h1{
        font-size:42px;
    }

    .section-title{
        font-size:36px;
        margin-bottom:42px;
    }

    .grid{
        grid-template-columns:1fr;
        gap:35px;
    }

    .project-detail{
        padding:112px 7% 74px;
    }

    .project-info h1{
        font-size:42px;
    }

    .compare-section{
        padding:60px 0;
    }

    .compare-section h2{
        font-size:32px;
    }

    .process-grid{
        gap:22px;
    }

    .process-card{
        padding:28px;
        border-radius:16px;
    }

    .process-card span{
        font-size:42px;
    }

    .process-card h3{
        font-size:23px;
        margin:14px 0;
    }

    .quote-form{
        gap:18px;
    }

    .quote-form input,
    .quote-form select,
    .quote-form textarea,
    .popup-form input,
    .popup-form select,
    .popup-form textarea{
        padding:17px;
        border-radius:12px;
        font-size:15px;
    }

    .quote-form textarea,
    .popup-form textarea{
        min-height:130px;
    }

    .file-upload{
        padding:16px;
        border-radius:12px;
        font-size:14px;
    }

    .sticky-quote-btn{
        right:14px;
        bottom:14px;
        padding:16px 24px;
        font-size:14px;
    }

    .quote-popup{
        right:14px;
        bottom:14px;
        width:calc(100% - 28px);
        padding:22px;
        max-height:82svh;
        overflow-y:auto;
        border-radius:20px;
    }

    .thank-you-box{
        padding:45px 30px;
    }

    .thank-you-box h1{
        font-size:52px;
    }
}
.split-preview{
    position:relative;
    height:280px;
    overflow:hidden;
}

.split-left,
.split-right{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.split-left{
    clip-path:polygon(0 0, 55% 0, 45% 100%, 0 100%);
    transform:translateX(-1px);
}

.split-right{
    clip-path:polygon(55% 0, 100% 0, 100% 100%, 45% 100%);
    transform:translateX(1px);
}

.split-label{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    background:white;
    color:#111;
    padding:14px 24px;
    border-radius:999px;
    font-weight:700;
    font-size:14px;
    box-shadow:0 10px 30px rgba(0,0,0,0.18);
    z-index:5;
}
.model-viewer-section{
    padding:60px 0 120px;
}

.model-viewer-section h2{
    text-align:center;
    font-size:48px;
    margin-bottom:50px;
}

model-viewer{
    width:100%;
    height:750px;
    background:#111;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.15);
}

.projects-intro{
    max-width:700px;
    font-size:20px;
    line-height:1.7;
    color:#666;
    margin:20px 0 70px;
}

.dark-card{
    background:#111;
    color:white;
}

.dark-card p{
    color:rgba(255,255,255,0.7);
}

.projects::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:500px;
    background:
    radial-gradient(circle at top left,
    rgba(0,0,0,0.04),
    transparent 60%);
    pointer-events:none;
}

.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 30px 80px rgba(0,0,0,0.12);
}

.projects{
    background:#111;
    color:white;
    padding:140px 8%;
    position:relative;
}

.projects h1{
    color:white;
}

.projects-intro{
    color:rgba(255,255,255,0.7);
}

.project-card{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(12px);
}

/* PORTFOLIO REFRESH */

.portfolio-page{
    background:#111;
    color:white;
    padding:150px 8% 110px;
    position:relative;
}

main.projects.portfolio-page{
    min-height:100vh;
}

.portfolio-hero{
    max-width:920px;
    margin-bottom:70px;
}

.eyebrow{
    color:rgba(255,255,255,0.58);
    font-size:13px;
    font-weight:700;
    letter-spacing:0;
    text-transform:uppercase;
    margin-bottom:18px;
}

.portfolio-hero h1{
    color:white;
    font-size:76px;
    line-height:1;
    margin-bottom:28px;
}

.portfolio-hero p{
    max-width:760px;
    color:rgba(255,255,255,0.72);
    font-size:21px;
    line-height:1.7;
}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:34px;
}

.portfolio-grid .portfolio-card:only-child{
    max-width:880px;
}

.portfolio-card{
    background:rgba(255,255,255,0.055);
    border:1px solid rgba(255,255,255,0.1);
    overflow:hidden;
    border-radius:8px;
    transition:0.35s;
    box-shadow:none;
}

.portfolio-card:hover{
    transform:translateY(-8px);
    border-color:rgba(255,255,255,0.24);
}

.portfolio-image{
    position:relative;
    display:block;
    height:360px;
    overflow:hidden;
    color:white;
}

.portfolio-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:0.55s;
}

.portfolio-card .portfolio-image img{
    height:100%;
}

.portfolio-card:hover .portfolio-image img{
    transform:scale(1.045);
}

.portfolio-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,0,0,0.62), transparent 58%);
}

.portfolio-image span{
    position:absolute;
    left:28px;
    bottom:26px;
    z-index:2;
    font-weight:700;
    font-size:18px;
}

.portfolio-content{
    padding:34px;
}

.portfolio-content h2{
    font-size:34px;
    margin-bottom:18px;
}

.portfolio-content p{
    color:rgba(255,255,255,0.7);
    line-height:1.75;
    font-size:17px;
}

.project-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:26px 0 30px;
}

.project-tags span{
    border:1px solid rgba(255,255,255,0.18);
    border-radius:999px;
    color:rgba(255,255,255,0.82);
    padding:9px 13px;
    font-size:13px;
    font-weight:600;
}

.project-link,
.detail-actions a,
.detail-actions button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:0 22px;
    border-radius:6px;
    background:white;
    color:#111;
    border:1px solid white;
    text-decoration:none;
    font-family:'Montserrat',sans-serif;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    transition:0.25s;
}

.project-link:hover,
.detail-actions a:hover,
.detail-actions button:hover{
    transform:translateY(-2px);
    opacity:0.88;
}

.portfolio-note{
    margin-top:44px;
    padding:42px;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:8px;
    background:rgba(255,255,255,0.035);
}

.portfolio-note h2{
    font-size:34px;
    margin-bottom:28px;
}

.portfolio-note-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
}

.portfolio-note strong{
    display:block;
    margin-bottom:10px;
    font-size:18px;
}

.portfolio-note p{
    color:rgba(255,255,255,0.68);
    line-height:1.7;
}

.portfolio-detail{
    background:#f5f5f5;
    padding:110px 8% 110px;
}

.detail-hero{
    display:grid;
    grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
    gap:54px;
    align-items:center;
    position:relative;
}

.back-link{
    display:inline-block;
    margin-bottom:32px;
    color:#555;
    font-weight:700;
    text-decoration:none;
}

.detail-hero .eyebrow{
    color:#666;
}

.detail-hero h1{
    font-size:64px;
    line-height:1.05;
    margin-bottom:28px;
}

.detail-hero p{
    color:#555;
    font-size:19px;
    line-height:1.8;
}

.detail-hero img{
    width:100%;
    aspect-ratio:16 / 10;
    object-fit:cover;
    border-radius:8px;
    box-shadow:0 24px 70px rgba(0,0,0,0.16);
}

.detail-hero .detail-hero-compare{
    width:100%;
    max-width:none;
    aspect-ratio:16 / 10;
    margin:0;
    border-radius:8px;
    box-shadow:0 24px 70px rgba(0,0,0,0.16);
}

.detail-hero .detail-hero-compare img{
    aspect-ratio:auto;
    border-radius:0;
    box-shadow:none;
}

.detail-hero .detail-hero-compare .compare-before{
    transform:translateX(-8px) translateY(-8px) scaleX(1.08) scaleY(1.2);
    transform-origin:center center;
}

.detail-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:34px;
}

.detail-actions button{
    background:#111;
    color:white;
    border-color:#111;
}

.detail-actions a{
    background:transparent;
}

.project-facts{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1px;
    margin:36px 0 34px;
    background:#ddd;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.project-facts div{
    background:white;
    padding:24px 28px;
}

.project-facts span{
    display:block;
    color:#777;
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    margin-bottom:12px;
}

.project-facts strong{
    font-size:18px;
}

.detail-copy{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:34px;
    margin-bottom:10px;
}

.detail-copy div{
    background:white;
    border:1px solid #e7e7e7;
    border-radius:8px;
    padding:28px 32px;
}

.detail-copy h2{
    font-size:30px;
    margin-bottom:12px;
}

.detail-copy p{
    color:#555;
    line-height:1.6;
}

.portfolio-detail .compare-section{
    margin-top:35px;
    padding:45px 0;
}

.portfolio-detail .compare-section h2,
.portfolio-detail .model-viewer-section h2{
    font-size:42px;
}

.portfolio-detail .compare-container{
    border-radius:8px;
}

.portfolio-detail .compare-before{
    transform:none;
}

.portfolio-detail .project-gallery{
    margin-top:45px;
}

.project-gallery-section{
    margin-top:8px;
}

.gallery-section-heading{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:8px;
}

.gallery-section-heading .eyebrow{
    color:#777;
    margin-bottom:8px;
}

.gallery-section-heading h2{
    font-size:28px;
}

.project-gallery-section .project-gallery{
    margin-top:0;
}

.gallery-strip{
    position:relative;
}

.project-gallery-section .project-gallery{
    display:flex;
    gap:22px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding:0 2px 8px;
}

.project-gallery-section .project-gallery::-webkit-scrollbar{
    display:none;
}

.portfolio-detail .project-gallery img{
    flex:0 0 calc((100% - 44px) / 3);
    min-width:0;
    height:260px;
    object-fit:cover;
    border-radius:8px;
    scroll-snap-align:start;
}

.gallery-scroll{
    position:absolute;
    top:50%;
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:white;
    color:#111;
    box-shadow:0 12px 34px rgba(0,0,0,0.18);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    line-height:1;
    cursor:pointer;
    z-index:4;
    transform:translateY(-50%);
    transition:0.2s;
}

.gallery-scroll:hover{
    transform:translateY(-50%) scale(1.06);
}

.gallery-scroll-prev{
    left:-22px;
}

.gallery-scroll-next{
    right:-22px;
}

.gallery-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.88);
    z-index:200000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:70px 90px;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.show-lightbox{
    opacity:1;
    visibility:visible;
}

.gallery-lightbox img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:8px;
    box-shadow:0 30px 90px rgba(0,0,0,0.45);
}

.lightbox-counter{
    position:absolute;
    left:50%;
    bottom:24px;
    transform:translateX(-50%);
    min-width:70px;
    padding:10px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.94);
    color:#111;
    text-align:center;
    font-weight:700;
    font-size:14px;
}

.lightbox-open{
    overflow:hidden;
}

.lightbox-close,
.lightbox-nav{
    position:absolute;
    border:none;
    background:rgba(255,255,255,0.94);
    color:#111;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover{
    background:white;
    transform:scale(1.06);
}

.lightbox-close{
    top:24px;
    right:24px;
    width:48px;
    height:48px;
    border-radius:50%;
    font-size:32px;
    line-height:1;
}

.lightbox-nav{
    top:50%;
    width:56px;
    height:74px;
    border-radius:8px;
    font-size:48px;
    line-height:1;
    transform:translateY(-50%);
}

.lightbox-nav:hover{
    transform:translateY(-50%) scale(1.06);
}

.lightbox-prev{
    left:24px;
}

.lightbox-next{
    right:24px;
}

.portfolio-detail .model-viewer-section{
    padding:45px 0 0;
}

.portfolio-detail model-viewer{
    border-radius:8px;
    min-height:520px;
}

@media(max-width:900px){
    .portfolio-grid,
    .detail-hero,
    .detail-copy,
    .portfolio-note-grid{
        grid-template-columns:1fr;
    }

    .project-facts{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:768px){
    .portfolio-page,
    .portfolio-detail{
        padding:96px 6% 82px;
    }

    .portfolio-hero{
        margin-bottom:38px;
    }

    .detail-hero{
        gap:26px;
    }

    .back-link{
        margin-bottom:22px;
    }

    .portfolio-hero h1,
    .detail-hero h1{
        font-size:38px;
        line-height:1.08;
        margin-bottom:18px;
    }

    .portfolio-hero p,
    .detail-hero p{
        font-size:16px;
        line-height:1.65;
    }

    .detail-actions{
        margin-top:24px;
    }

    .detail-actions button,
    .detail-actions a{
        width:100%;
        justify-content:center;
        padding:15px 18px;
    }

    .detail-hero .detail-hero-compare{
        aspect-ratio:4 / 3;
    }

    .portfolio-image{
        height:250px;
    }

    .portfolio-content,
    .portfolio-note,
    .detail-copy div{
        padding:26px;
    }

    .portfolio-content h2,
    .portfolio-note h2,
    .detail-copy h2,
    .portfolio-detail .compare-section h2,
    .portfolio-detail .model-viewer-section h2{
        font-size:30px;
    }

    .project-facts{
        grid-template-columns:repeat(2,minmax(0,1fr));
        margin:28px 0 24px;
    }

    .project-facts div{
        padding:18px;
    }

    .project-facts span{
        font-size:11px;
        margin-bottom:8px;
    }

    .project-facts strong{
        font-size:15px;
    }

    .detail-copy{
        gap:16px;
        margin-bottom:12px;
    }

    .portfolio-detail model-viewer{
        height:520px;
        min-height:0;
    }

    .project-gallery-section{
        margin-top:8px;
    }

    .gallery-section-heading{
        display:block;
    }

    .gallery-section-heading h2{
        font-size:28px;
    }

    .portfolio-detail .project-gallery img{
        flex-basis:80%;
        height:220px;
    }

    .gallery-scroll{
        width:42px;
        height:42px;
        font-size:32px;
    }

    .gallery-scroll-prev{
        left:8px;
    }

    .gallery-scroll-next{
        right:8px;
    }

    .gallery-lightbox{
        padding:72px 18px 84px;
    }

    .lightbox-close{
        top:18px;
        right:18px;
        width:44px;
        height:44px;
    }

    .lightbox-nav{
        top:auto;
        bottom:76px;
        width:58px;
        height:48px;
        font-size:38px;
        transform:none;
    }

    .lightbox-counter{
        bottom:22px;
    }

    .lightbox-nav:hover{
        transform:scale(1.04);
    }

    .lightbox-prev{
        left:calc(50% - 68px);
    }

    .lightbox-next{
        right:calc(50% - 68px);
    }
}
