/* =========================================
   RESET
========================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #0a0d10;
    color: #e9edf0;

    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    max-width: 100%;
    display: block;
}


.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}



/* =========================================
   HEADER
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(10, 13, 16, 0.88);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.06);
}


.navbar {
    width: min(1280px, 92%);

    min-height: 76px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {
    font-size: 20px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #ffffff;
}


.logo span {
    margin-left: 8px;

    font-size: 10px;

    letter-spacing: 1.8px;

    font-weight: 500;

    
    color: #38bdf8;
}


.menu {
    display: flex;

    gap: 30px;

    align-items: center;
}


.menu a {
    color: #9ba5ad;

    font-size: 14px;

    transition: color 0.2s ease;
}


.menu a:hover {
    color: #ffffff;
}



/* =========================================
   HERO
========================================= */

.hero {
    min-height: 850px;

    padding-top: 76px;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;
}


.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -300px;
    top: 100px;

    background: #1473ff;

    opacity: 0.08;

    filter: blur(120px);

    border-radius: 50%;
}


.hero-grid {
    width: min(1180px, 90%);

    margin: auto;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 80px;

    align-items: center;
}


.hero-content {
    position: relative;

    z-index: 2;
}


.eyebrow {
    color: #4c9aff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 22px;
}


.hero h1 {
    font-size: clamp(48px, 6vw, 82px);

    line-height: 0.98;

    letter-spacing: -3px;

    font-weight: 750;

    max-width: 800px;
}


.hero h1 span {
    display: block;

    color: #4c9aff;
}


.hero-text {
    max-width: 650px;

    margin-top: 30px;

    color: #9ca6ae;

    font-size: 18px;

    line-height: 1.8;
}


.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 38px;

    flex-wrap: wrap;
}


.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding: 0 23px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: 650;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {
    color: #ffffff;

    background: #1267e8;

    border: 1px solid #1972f5;
}


.button-primary:hover {
    background: #2378ef;
}


.button-secondary {
    color: #dbe1e5;

    border: 1px solid #303940;

    background: rgba(255,255,255,0.02);
}


.button-secondary:hover {
    border-color: #59646d;
}


.hero-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 45px;
}


.hero-tags span {
    padding: 6px 10px;

    border: 1px solid #252d33;

    background: #0d1115;

    color: #727e87;

    font-size: 11px;

    letter-spacing: 0.8px;

    border-radius: 4px;
}



/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {
    display: flex;

    justify-content: center;

    position: relative;
}


.technical-card {
    width: 100%;

    max-width: 510px;

    min-height: 470px;

    background:
        linear-gradient(
            145deg,
            #10161b,
            #0b0f13
        );

    border: 1px solid #29323a;

    border-radius: 12px;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);

    position: relative;

    overflow: hidden;
}


.card-top,
.card-bottom {
    padding: 18px 22px;

    display: flex;

    justify-content: space-between;

    color: #68747e;

    font-size: 10px;

    letter-spacing: 1.5px;
}


.card-top {
    border-bottom: 1px solid #20282f;
}


.card-bottom {
    position: absolute;

    bottom: 0;

    width: 100%;

    border-top: 1px solid #20282f;
}


.status {
    color: #42c982;
}


.circuit {
    position: absolute;

    inset: 70px 30px 70px 30px;
}


.circuit-line {
    position: absolute;

    height: 1px;

    background: #24476d;

    opacity: 0.8;
}


.line-1 {
    width: 80%;

    top: 28%;

    left: 0;
}


.line-2 {
    width: 65%;

    top: 52%;

    right: 0;
}


.line-3 {
    width: 70%;

    top: 72%;

    left: 10%;
}


.line-4 {
    width: 45%;

    top: 38%;

    right: 3%;

    transform: rotate(90deg);
}


.chip {
    position: absolute;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #24578c;

    background: #0c1d2d;

    color: #4c9aff;

    font-size: 12px;

    letter-spacing: 1px;

    font-weight: 700;
}


.chip-main {
    width: 150px;
    height: 90px;

    left: 50%;
    top: 42%;

    transform: translate(-50%, -50%);
}


.chip-small {
    width: 90px;
    height: 50px;

    left: 5%;

    top: 20%;
}


.chip-2 {
    left: auto;

    right: 5%;

    top: 68%;
}


.node {
    position: absolute;

    width: 8px;
    height: 8px;

    background: #4c9aff;

    border-radius: 50%;

    box-shadow:
        0 0 12px rgba(76,154,255,0.8);
}


.node-1 {
    left: 10%;
    top: 27%;
}


.node-2 {
    right: 12%;
    top: 27%;
}


.node-3 {
    left: 20%;
    top: 72%;
}


.node-4 {
    right: 22%;
    top: 55%;
}









/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    padding: 130px 0;
}


.section-heading {
    max-width: 720px;

    margin-bottom: 65px;
}


.section-heading h2,
.technology h2,
.lab-content h2,
.business-layout h2,
.scope h2 {
    font-size: clamp(34px, 4vw, 54px);

    line-height: 1.08;

    letter-spacing: -2px;
}


.section-heading > p:last-child {
    margin-top: 22px;

    color: #858f98;

    font-size: 17px;
}



/* =========================================
   SERVICES
========================================= */

.services {
    background: #0a0d10;
}


.service-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 1px;

    background: #283037;

    border: 1px solid #283037;
}





/* PCB SERVICE */




/* ALL SERVICE CARDS */

.service-card {
    min-height: 300px;
    padding: 38px 0px 38px 0;
    background: #0a0d10;

    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);

    gap: 30px;
    align-items: center;

    transition: background 0.2s ease;
}

/* SERVICE IMAGES */



.service-image {
    width: 200%;
    height: 210px;
    overflow: hidden;
    border-radius: 8px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
 object-position: left center;

    display: block;
}

/* SERVICE TEXT */

.service-content.tulostus-content {
    transform: translateX(-20px);
}


.service-tulostus{
    width: 100%;
    height: 330px;
    overflow: hidden;
    border-radius: 8px;
}


.service-tulostus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
 object-position: left center;

    display: block;
}





.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
     transform: translateX(20px);
}




.firmware-card {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.firmware-card > div:not(.service-number) {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.firmware-card h3 {
    text-align: center;
}

.firmware-card p {
    width: 100%;
    max-width: 470px;
    text-align: center;
    margin: 0 auto;
}

.firmware-card .service-tech {
    text-align: center;
}
/* PCB IMAGE */






.service-card:hover {
    background: #0e1318;
}


.service-number {
    color: #3e4b55;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;
}




.service-number img {
    width: 115%;
    max-width: none;
    height: 300px;
    object-fit: cover;
    object-position: left center;
    border-radius: 8px;
}







.service-card h3 {
    font-size: 22px;

    margin-bottom: 15px;
}


.service-card p {
    color: #828d96;

    font-size: 15px;

    line-height: 1.75;

    max-width: 470px;
}


.service-tech {
    margin-top: 22px;

    color: #4c9aff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}



/* =========================================
   PROCESS
========================================= */

.process {
    background: #0d1115;

    border-top: 1px solid #171d22;

    border-bottom: 1px solid #171d22;
}


.process-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 1px;

    background: #293139;
}


.process-step {
    min-height: 270px;

    padding: 30px;

    background: #0d1115;
}


.process-number {
    display: block;

    color: #4c9aff;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 45px;
}


.process-step h3 {
    font-size: 20px;

    margin-bottom: 15px;
}


.process-step p {
    color: #7f8a93;

    font-size: 14px;

    line-height: 1.7;
}



/* =========================================
   PROJECT
========================================= */

.project-section {
    background: #0a0d10;
}


.project-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}


.project-image {
    min-height: 520px;
}


.project-placeholder {
    width: 100%;
    height: 100%;
    min-height: 520px;

    background:
        linear-gradient(
            135deg,
            #11181e,
            #080b0e
        );

    border: 1px solid #283139;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: #4a5964;
}


.project-placeholder span {
    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;
}


.project-placeholder small {
    margin-top: 10px;

    color: #56636d;

    font-size: 11px;
}


.project-label {
    color: #4c9aff;

    font-size: 11px;

    letter-spacing: 1.8px;

    font-weight: 700;

    margin-bottom: 18px;
}


.project-content h3 {
    font-size: 38px;

    line-height: 1.1;

    letter-spacing: -1px;

    margin-bottom: 25px;
}


.project-content > p {
    color: #87929b;

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 20px;
}


.project-stack {
    margin-top: 35px;

    border-top: 1px solid #252d34;
}


.project-stack > div {
    display: grid;

    grid-template-columns: 130px 1fr;

    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid #20272d;
}


.project-stack strong {
    font-size: 11px;

    letter-spacing: 1px;

    color: #b3bdc5;

    text-transform: uppercase;
}


.project-stack span {
    color: #68757f;

    font-size: 13px;
}



/* =========================================
   TECHNOLOGY
========================================= */

.technology {
    padding: 110px 0;

    background: #0d1115;

    border-top: 1px solid #171d22;

    border-bottom: 1px solid #171d22;
}


.technology-header {
    max-width: 650px;

    margin-bottom: 55px;
}


.technology-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1px;

    background: #293139;

    border: 1px solid #293139;
}


.technology-grid > div {
    min-height: 170px;

    padding: 28px;

    background: #0d1115;
}


.technology-category {
    display: block;

    color: #4c9aff;

    font-size: 9px;

    letter-spacing: 1.5px;

    font-weight: 700;

    margin-bottom: 13px;
}


.technology-grid strong {
    display: block;

    font-size: 19px;

    margin-bottom: 8px;
}


.technology-grid p {
    color: #707d87;

    font-size: 13px;
}






/* =========================================
   About me
========================================= */


.minusta{
     padding: 130px 0;
    background: #0d1115;
    border-top: 1px solid #171d22;
    border-bottom: 1px solid #171d22;
    
}
.minusta-inner {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;    
}
.minusta h2 {
    font-size: clamp(32px, 4vw, 55px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    max-width: 850px;
}
.minusta-text {
   margin-top: 28px;
    color: #8e99a2;
    font-size: 17px;
    max-width: 700px;
}
/* =========================================
   STATEMENT
========================================= */

.statement {
    padding: 130px 0;
    background: #0d1115;
    border-top: 1px solid #171d22;
    border-bottom: 1px solid #171d22;
}
.statement-inner {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
.statement h2 {
    font-size: clamp(32px, 4vw, 55px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    max-width: 850px;
}
.statement-text {
    margin-top: 28px;
    color: #8e99a2;
    font-size: 17px;
    max-width: 700px;
}








/* =========================================
   LAB
========================================= */

.lab-section {
    background: #0a0d10;
}


.lab-layout {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 100px;

    /*align-items: start;*/
      align-items: center;

}


.lab-content > p:not(.eyebrow) {
    color: #858f98;

    font-size: 16px;

    line-height: 1.8;

    margin-top: 25px;

    max-width: 600px;



    
}


.equipment {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1px;

    background: #293139;

    border: 1px solid #293139;
}


.equipment-item {
    min-height: 190px;

    padding: 28px;

    background: #0a0d10;
}


.equipment-item > span {
    color: #4c9aff;

    font-size: 11px;

    font-weight: 700;
}


.equipment-item strong {
    display: block;

    margin-top: 30px;

    font-size: 17px;
}


.equipment-item p {
    color: #717d86;

    font-size: 13px;

    margin-top: 10px;
}































/* =========================================
   BUSINESS
========================================= */

.business-section {
    background: #0d1115;

    border-top: 1px solid #171d22;
}


.business-layout {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 100px;
}


.business-list {
    border-top: 1px solid #293139;
}


.business-item {
    display: grid;

    grid-template-columns: 35px 1fr;

    gap: 15px;

    align-items: start;

    padding: 22px 0;

    border-bottom: 1px solid #293139;
}


.business-item span {
    color: #4c9aff;

    font-size: 18px;
}


.business-item p {
    color: #929da5;

    font-size: 15px;
}



/* =========================================
   SCOPE
========================================= */

.scope {
    padding: 80px 0;

    background: #10151a;

    border-top: 1px solid #1c242b;

    border-bottom: 1px solid #1c242b;
}


.scope-inner {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 100px;

    align-items: center;
}


.scope h2 {
    font-size: 34px;
}


.scope-inner > p {
    color: #7f8b94;

    font-size: 14px;

    line-height: 1.8;
}



/* =========================================
   CONTACT
========================================= */

.contact-section {
    padding: 150px 0;

    background:
        radial-gradient(
            circle at center,
            rgba(18,103,232,0.12),
            transparent 45%
        );
}


.contact-box {
    max-width: 800px;

    margin: auto;

    text-align: center;
}


.contact-box .eyebrow {
    margin-bottom: 20px;
}


.contact-box h2 {
    font-size: clamp(42px, 6vw, 72px);

    line-height: 1;

    letter-spacing: -3px;
}


.contact-box > p:not(.eyebrow) {
    color: #858f98;

    font-size: 17px;

    max-width: 600px;

    margin: 30px auto 35px;
}



/* =========================================
   FOOTER
========================================= */

.footer {
    padding: 45px 0;

    border-top: 1px solid #1c242b;

    background: #080b0e;
}


.footer-inner {
    display: grid;

    grid-template-columns: 1fr auto auto;

    gap: 50px;

    align-items: center;
}


.footer-logo {
    font-size: 17px;

    font-weight: 800;

    letter-spacing: 2px;
}


.footer-inner p {
    color: #59656e;

    font-size: 12px;

    margin-top: 4px;
}


.footer-links {
    display: flex;

    gap: 25px;
}


.footer-links a {
    color: #697680;

    font-size: 12px;

    transition: color 0.2s ease;
}


.footer-links a:hover {
    color: white;
}


.copyright {
    color: #4c565e;

    font-size: 11px;
}



/* =========================================
   MOBILE
========================================= */

@media (max-width: 950px) {


    .menu {
        gap: 15px;
    }


    .hero {
        min-height: auto;

        padding-top: 150px;

        padding-bottom: 100px;
    }


    .hero-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }


    .hero-visual {
        max-width: 600px;
    }


    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .project-layout,
    .lab-layout,
    .business-layout,
    .scope-inner {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .technology-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .footer-inner {
        grid-template-columns: 1fr;

        gap: 25px;
    }

}


@media (max-width: 680px) {


   

/* =========================================
   MOBILE NAVIGATION FIX
========================================= */

@media (max-width: 680px) {

    .site-header {
        position: fixed;
        width: 100%;
    }

    .navbar {
        width: 95%;
        min-height: auto;
        padding: 14px 0;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 12px;
    }

    .logo {
        font-size: 18px;
        white-space: nowrap;
    }

    .logo span {
        display: inline;
        font-size: 9px;
        margin-left: 6px;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;

        width: 100%;
        gap: 8px 16px;
    }

    .menu a {
        display: inline-block;
        font-size: 12px;
        white-space: nowrap;
    }

}










    .hero h1 {
        letter-spacing: -2px;
    }


    .hero-text {
        font-size: 16px;
    }


    .technical-card {
        min-height: 350px;
    }


    .section {
        padding: 90px 0;
    }


    .statement {
        padding: 90px 0;
    }


    .service-grid {
        grid-template-columns: 1fr;
    }


    .service-card {
        min-height: auto;

        padding: 30px;

        grid-template-columns: 35px 1fr;
    }


    .process-grid {
        grid-template-columns: 1fr;
    }


    .process-step {
        min-height: auto;
    }


    .process-number {
        margin-bottom: 25px;
    }


    .project-image,
    .project-placeholder {
        min-height: 350px;
    }


    .project-content h3 {
        font-size: 30px;
    }


    .project-stack > div {
        grid-template-columns: 100px 1fr;

        gap: 10px;
    }


    .technology-grid {
        grid-template-columns: 1fr;
    }


    .equipment {
        grid-template-columns: 1fr;
    }


    .scope {
        padding: 65px 0;
    }


    .contact-section {
        padding: 100px 0;
    }


    .contact-box h2 {
        letter-spacing: -2px;
    }


    .footer-links {
        flex-wrap: wrap;
    }

}














/* =========================================
   PROJECTS
========================================= */









.project-card-image {
    position: relative;
}

.project-card-image video {
    display: block;
    width: 100%;
    height: 800px;
    object-fit: contain;
}

.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    z-index: 3;
}

.video-progress-filled {
    width: 0%;
    height: 100%;
    background: #ff3333;
    transition: width 0.1s linear;
}

.video-progress:hover {
    height: 9px;
}




.project-card-image {
    position: relative;
}

.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 26px;
    cursor: pointer;
    z-index: 5;
    display: block;
}
























.projects-section {
    background: #0a0d10;
}


.projects-list {
    display: flex;

    flex-direction: column;

    gap: 1px;

    background: #293139;

    border: 1px solid #293139;
}


.project-card-large {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    min-height: 560px;

    background: #0a0d10;
}








/* Logo slider occupies the entire top row */
.project-card-large .logo-slider {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Your existing logo animation */
.logo-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: infinite-scroll 20s linear infinite;
}

.logo-track img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px;
}

@keyframes infinite-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
















.project-card-image {
    min-height: 560px;

    overflow: hidden;
}


.project-image-placeholder {
    width: 100%;
    height: 100%;

    min-height: 560px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background:
        linear-gradient(
            135deg,
            #11181e,
            #080b0e
        );

    color: #3d4a54;

    position: relative;
}


.project-image-placeholder::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    border: 1px solid #1c3b5c;

    opacity: 0.5;
}


.project-image-placeholder span {
    position: relative;

    font-size: 11px;

    letter-spacing: 2px;

    color: #52616c;
}


.project-image-placeholder strong {
    position: relative;

    font-size: 13px;

    letter-spacing: 1px;

    color: #4c9aff;
}


.project-card-image img {
    width: 100%;
    height: 100%;

    min-height: 360px;

    /*object-fit: cover;*/
object-fit: contain;

    transition: transform 0.5s ease;
}


.project-card-large:hover
.project-card-image img {
    transform: scale(1.02);
}


.project-card-content {
    padding: 65px 55px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.project-label {
    color: #4c9aff;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.8px;

    margin-bottom: 20px;
}


.project-card-content h3 {
    font-size: clamp(30px, 3vw, 44px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    margin-bottom: 25px;
}


.project-card-content > p:not(.project-label) {
    color: #858f98;

    font-size: 15px;

    line-height: 1.8;

    max-width: 500px;
}


.project-card-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 30px;
}


.project-card-tech span {
    padding: 6px 9px;

    border: 1px solid #252e35;

    background: #0e1317;

    color: #697781;

    font-size: 10px;

    letter-spacing: 0.5px;

    border-radius: 3px;
}


.project-link {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-top: 35px;

    color: #ffffff;

    font-size: 20px;

    font-weight: 700;

    width: fit-content;

    border-bottom: 1px solid #4c9aff;

    padding-bottom: 5px;
}


.project-link span {
    color: #4c9aff;

    transition: transform 0.2s ease;
}


.project-link:hover span {
    transform: translateX(5px);
}



/* =========================================
   FUTURE PROJECTS
========================================= */

.project-card-small {
    min-height: 190px;

    padding: 35px 45px;

    background: #0a0d10;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.project-card-small h3 {
    font-size: 21px;

    margin-bottom: 7px;
}


.project-card-small p:not(.project-label) {
    color: #697680;

    font-size: 13px;
}


.project-coming-soon {
    opacity: 0.55;

    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}


.project-coming-soon:hover {
    opacity: 0.8;

    background: #0d1216;
}


.coming-number {
    font-size: 70px;

    font-weight: 800;

    color: #151c22;

    line-height: 1;
}





@media (max-width: 800px) {

    .project-card-large {
        grid-template-columns: 1fr;
    }


    .project-card-image,
    .project-image-placeholder,
    .project-card-image img {
        min-height: 360px;
    }


    .project-card-content {
        padding: 45px 30px;
    }


    .project-card-small {
        padding: 30px;
    }


    .coming-number {
        font-size: 45px;
    }

}








.contact-email-label {
    color: #858f98;
    font-size: 15px;
    margin: 30px auto 10px;
}

.contact-email {
    display: inline-block;
    color: #4c9aff;
    font-size: clamp(17px, 3vw, 24px);
    font-weight: 650;
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
}

.contact-email:hover {
    color: #ffffff;
}




/* =========================================
   MOBILE HERO SPACING FIX
========================================= */

@media (max-width: 680px) {

    .hero {
        padding-top: 160px;
    }

}


/* =========================================
   MOBILE VIDEO FIX
========================================= */

@media (max-width: 680px) {

    .project-card-image video {
        height: auto;
        max-height: 450px;
        width: 100%;
        object-fit: contain;
    }

}

@media (max-width: 768px) {

    .service-card {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .service-image {
        height: 250px;
    }

}






/* =========================================
   RESPONSIVE SERVICE CARDS
   iPhone, Android, Tablet and Desktop
========================================= */

/* Tablets and smaller laptops */
@media (max-width: 950px) {

    .service-card {
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
        gap: 22px;
        padding: 30px 20px;
    }

    .service-image {
        width: 100%;
        height: 230px;
    }

    .service-tulostus {
        width: 100%;
        height: 260px;
    }

    .service-content {
        transform: none;
        min-width: 0;
    }

    .service-content.tulostus-content {
        transform: none;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 14px;
    }

    .service-number img {
        width: 100%;
        height: 250px;
    }
}


/* =========================================
   MOBILE PHONES
========================================= */

@media (max-width: 680px) {

    .service-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;

        width: 100%;
        min-height: auto;

        padding: 24px 18px;
        gap: 22px;
    }

    /* Images */

    .service-image,
    .service-tulostus {
        width: 100%;
        height: 230px;
        max-width: 100%;
        border-radius: 8px;
        overflow: hidden;
    }

    .service-image img,
    .service-tulostus img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Service content */

    .service-content,
    .service-content.tulostus-content {
        width: 100%;
        transform: none;
        align-items: flex-start;
        text-align: left;
    }

    .service-card > div:not(.service-number) {
        width: 100%;
        max-width: 100%;
    }

    /* Centered text-only cards */

    .firmware-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .firmware-card > div:not(.service-number) {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }

    .firmware-card p {
        max-width: 100%;
        text-align: center;
    }

    .firmware-card h3,
    .firmware-card .service-tech {
        text-align: center;
    }

    /* Headings */

    .service-card h3 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    /* Paragraphs */

    .service-card p {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
        line-height: 1.75;
    }

    /* Technology labels */

    .service-tech {
        font-size: 10px;
        line-height: 1.8;
        margin-top: 16px;
        overflow-wrap: anywhere;
    }

    /* Workstation image */

    .service-number img {
        width: 100%;
        max-width: 100%;
        height: 230px;
        object-fit: cover;
    }
}


/* =========================================
   SMALL PHONES
   iPhone SE and similar
========================================= */

@media (max-width: 390px) {

    .service-card {
        padding: 20px 14px;
        gap: 18px;
    }

    .service-image,
    .service-tulostus {
        height: 190px;
    }

    .service-number img {
        height: 190px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 13px;
    }

    .service-tech {
        font-size: 9px;
        letter-spacing: 0.6px;
    }
}


/* =========================================
   LARGE PHONES
   iPhone 16 Pro Max and similar
========================================= */

@media (min-width: 391px) and (max-width: 680px) {

    .service-image,
    .service-tulostus {
        height: 250px;
    }

    .service-number img {
        height: 250px;
    }
}


/* =========================================
   VERY LARGE SCREENS
========================================= */

@media (min-width: 1400px) {

    .service-card {
        gap: 40px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 16px;
    }
}
