/* ========================================
   FC MOTORPART
   MAIN STYLESHEET
======================================== */


/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #080808;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}


/* ========================================
   HEADER
======================================== */

header {
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: #080808;

    border-bottom: 1px solid #222222;

    position: relative;

    z-index: 1000;
}


/* ========================================
   LOGO
======================================== */

.logo {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 30px;

    font-style: italic;

    letter-spacing: 1px;

    color: #ff5a00;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}


.logo:hover {
    color: #ff6a15;

    text-shadow:
        0 0 12px rgba(255, 90, 0, 0.35);
}


/* ========================================
   NAVIGATION
======================================== */

nav {
    display: flex;

    align-items: center;

    gap: 28px;
}


nav a {
    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1px;

    transition: color 0.2s ease;
}


nav a:hover,
nav a.active {
    color: #ff5a00;
}


/* ========================================
   MENU BUTTON
======================================== */

.menu-toggle {
    display: none;

    background: none;

    border: none;

    color: #ff5a00;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;

    width: 100%;

    min-height: calc(100vh - 80px);

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.03),
            rgba(0, 0, 0, 0.10)
        ),
        url("../images/hero-fcmotorpart.png");

    background-size: 100% auto;

    background-position: center center;

    background-repeat: no-repeat;

    background-color: #080808;
}


/* ========================================
   HERO CONTENT
======================================== */

.hero-content {
    position: absolute;

    left: 50%;

    bottom: 8%;

    transform: translateX(-50%);

    z-index: 2;

    width: 100%;

    padding: 0 20px;

    text-align: center;
}


/* ========================================
   HERO BUTTON
======================================== */

.hero-button {
    display: inline-block;

    padding: 16px 32px;

    background: #ff5a00;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 2px;

    border: 1px solid #ff5a00;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.hero-button:hover {
    background: #ffffff;

    color: #080808;

    border-color: #ffffff;

    box-shadow:
        0 0 25px rgba(255, 90, 0, 0.55);

    transform: translateY(-2px);
}


/* ========================================
   STANDARD INTERNAL PAGE
======================================== */

.page-section {
    width: 100%;

    min-height: calc(100vh - 80px);

    padding: 100px 6% 130px;

    background:
        radial-gradient(
            circle at 50% 0%,
            #18100b 0%,
            #0b0b0b 32%,
            #080808 70%
        );
}


/* ========================================
   PAGE HEADER
======================================== */

.page-header {
    max-width: 850px;

    margin: 0 auto 70px;

    text-align: center;
}


.section-label {
    display: block;

    margin-bottom: 12px;

    color: #ff5a00;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 4px;
}


.page-header h1 {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: clamp(48px, 7vw, 82px);

    font-style: italic;

    font-weight: normal;

    letter-spacing: 2px;
}


.page-header p {
    max-width: 650px;

    margin: 18px auto 0;

    color: #888888;

    font-size: 15px;

    line-height: 1.7;
}


/* ========================================
   CATEGORY GRID
======================================== */

.category-grid {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* ========================================
   CATEGORY CARD
======================================== */

.category-card {
    min-height: 330px;

    position: relative;

    padding: 40px;

    background:
        linear-gradient(
            145deg,
            #121212,
            #0c0c0c
        );

    border: 1px solid #242424;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.category-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 0;

    background: #ff5a00;

    transition: height 0.3s ease;
}


.category-card:hover {
    transform: translateY(-6px);

    border-color: #ff5a00;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(255, 90, 0, 0.06);
}


.category-card:hover::before {
    height: 100%;
}


.category-number {
    display: block;

    margin-bottom: 45px;

    color: #ff5a00;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;
}


.category-card h2 {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 34px;

    font-style: italic;

    font-weight: normal;

    line-height: 1;

    letter-spacing: 1px;
}


.category-card p {
    max-width: 320px;

    margin-top: 22px;

    color: #7d7d7d;

    font-size: 14px;

    line-height: 1.6;
}


.category-action {
    display: inline-block;

    margin-top: 30px;

    color: #ff5a00;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* ========================================
   EMPTY FEATURE / CUSTOMER / CONTACT
======================================== */

.empty-feature,
.customer-area-preview,
.contact-preview {
    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    padding: 70px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #111111,
            #0a0a0a
        );

    border: 1px solid #242424;
}


.empty-feature > span,
.customer-small-title {
    display: block;

    margin-bottom: 18px;

    color: #ff5a00;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 3px;
}


.empty-feature h2,
.customer-area-preview h2,
.contact-preview h2 {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: clamp(38px, 5vw, 60px);

    font-style: italic;

    font-weight: normal;

    line-height: 1;

    letter-spacing: 1px;
}


.empty-feature p,
.customer-area-preview p,
.contact-preview p {
    max-width: 600px;

    margin: 25px auto 0;

    color: #858585;

    font-size: 14px;

    line-height: 1.7;
}


.status-line {
    display: inline-block;

    margin-top: 40px;

    padding: 12px 18px;

    border: 1px solid #292929;

    color: #555555;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* ========================================
   CUSTOMER AREA
======================================== */

.customer-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #ff5a00;

    color: #ff5a00;

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-style: italic;

    font-size: 25px;

    box-shadow:
        0 0 30px rgba(255, 90, 0, 0.08);
}


.disabled-button {
    margin-top: 40px;

    padding: 16px 25px;

    background: transparent;

    border: 1px solid #333333;

    color: #555555;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;

    cursor: default;
}


/* ========================================
   PROJECTS PAGE
======================================== */

.projects-section {
    width: 100%;

    min-height: calc(100vh - 80px);

    padding: 95px 6% 130px;

    background:
        radial-gradient(
            circle at 50% 0%,
            #1a100a 0%,
            #0c0c0c 30%,
            #080808 68%
        );
}


/* ========================================
   PROJECTS HEADER
======================================== */

.projects-header {
    max-width: 850px;

    margin: 0 auto 70px;

    text-align: center;
}


.projects-header h1 {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: clamp(55px, 8vw, 95px);

    font-style: italic;

    font-weight: normal;

    line-height: 0.95;

    letter-spacing: 3px;

    color: #ffffff;
}


.projects-header p {
    margin-top: 20px;

    color: #858585;

    font-size: 15px;

    line-height: 1.7;
}


/* ========================================
   PROJECTS GRID
======================================== */

.projects-grid {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}


/* ========================================
   PROJECT CARD
======================================== */

.project-card {
    position: relative;

    min-height: 470px;

    overflow: hidden;

    border: 1px solid #242424;

    background: #0c0c0c;

    cursor: pointer;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


.project-card:hover {
    transform: translateY(-6px);

    border-color: #ff5a00;

    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(255, 90, 0, 0.08);
}


/* ========================================
   PROJECT VISUAL
======================================== */

.project-visual {
    position: absolute;

    inset: 0;

    overflow: hidden;
}


/* ========================================
   TEMPORARY TECH BACKGROUND
======================================== */

.project-tech-bg {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 72% 35%,
            rgba(255, 90, 0, 0.11),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #111111,
            #080808 70%
        );

    transform: scale(1);

    transition: transform 0.6s ease;
}


.project-card:hover .project-tech-bg {
    transform: scale(1.035);
}


/* TECH GRID */

.project-tech-bg::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.18;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px
        );

    background-size:
        45px 45px;
}


/* ORANGE CIRCUIT LINES */

.tech-line {
    position: absolute;

    display: block;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 90, 0, 0.8),
            transparent
        );

    box-shadow:
        0 0 10px rgba(255, 90, 0, 0.25);
}


.tech-line-1 {
    width: 55%;

    top: 31%;
    right: -4%;

    transform: rotate(-13deg);
}


.tech-line-2 {
    width: 43%;

    top: 46%;
    right: 5%;

    transform: rotate(18deg);
}


.tech-line-3 {
    width: 38%;

    top: 61%;
    right: 10%;

    transform: rotate(-6deg);
}


/* TEMPORARY CHIP */

.tech-chip {
    position: absolute;

    top: 28%;
    right: 14%;

    width: 125px;
    height: 125px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 90, 0, 0.45);

    background:
        rgba(5, 5, 5, 0.7);

    color:
        rgba(255, 90, 0, 0.75);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 30px;

    font-style: italic;

    box-shadow:
        0 0 45px rgba(255, 90, 0, 0.08);
}


/* ========================================
   PROJECT OVERLAY
======================================== */

.project-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 5, 0.96) 0%,
            rgba(5, 5, 5, 0.78) 45%,
            rgba(5, 5, 5, 0.15) 100%
        );
}


/* ========================================
   PROJECT CONTENT
======================================== */

.project-content {
    position: relative;

    z-index: 5;

    height: 100%;

    min-height: 470px;

    padding: 38px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


/* ========================================
   PROJECT STATUS
======================================== */

.project-status {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: auto;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;

    color: #777777;
}


.project-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ff5a00;

    box-shadow:
        0 0 10px rgba(255, 90, 0, 0.7);
}


.project-number {
    margin-bottom: 12px;

    color: #ff5a00;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;
}


.project-content h2 {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: clamp(40px, 4.5vw, 62px);

    font-style: italic;

    font-weight: normal;

    line-height: 0.9;

    letter-spacing: 1px;

    color: #ffffff;
}


.project-content p {
    margin-top: 15px;

    color: #777777;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 2px;
}


.project-view {
    margin-top: 30px;

    color: #ffffff;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 2px;

    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        color 0.3s ease;
}


.project-card:hover .project-view {
    opacity: 1;

    transform: translateY(0);

    color: #ff5a00;
}


/* ========================================
   DEVELOPMENT PROCESS
======================================== */

.development-process {
    width: 100%;

    max-width: 1100px;

    margin: 100px auto 0;

    padding: 45px 50px;

    border-top: 1px solid #222222;

    border-bottom: 1px solid #222222;
}


.process-label {
    display: block;

    margin-bottom: 35px;

    text-align: center;

    color: #555555;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 3px;
}


.process-line {
    display: flex;

    align-items: center;

    justify-content: center;
}


.process-step {
    min-width: 90px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


.process-dot {
    width: 8px;
    height: 8px;

    margin-bottom: 13px;

    border-radius: 50%;

    background: #ff5a00;

    box-shadow:
        0 0 12px rgba(255, 90, 0, 0.5);
}


.process-step strong {
    color: #ffffff;

    font-size: 9px;

    letter-spacing: 1.5px;
}


.process-step small {
    margin-top: 7px;

    color: #444444;

    font-size: 8px;
}


.process-connector {
    width: 130px;
    height: 1px;

    margin:
        0 12px
        38px;

    background:
        linear-gradient(
            90deg,
            #ff5a00,
            #3a2418
        );
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .hero {
        background-image:
            linear-gradient(
                rgba(0, 0, 0, 0.02),
                rgba(0, 0, 0, 0.08)
            ),
            url("../images/hero-fcmotorpart-mobile.png");

        background-size: cover;

        background-position: center center;
    }


    .hero-content {
        bottom: 8%;
    }


    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    header {
        height: 65px;

        padding: 0 20px;
    }


    .logo {
        font-size: 23px;
    }


    .menu-toggle {
        display: block;

        position: relative;

        z-index: 1100;
    }


    nav {
        display: none;

        position: absolute;

        top: 65px;
        left: 0;

        width: 100%;

        flex-direction: column;

        gap: 0;

        background: #080808;

        border-bottom: 1px solid #222222;

        z-index: 1000;
    }


    nav.active {
        display: flex;
    }


    nav a {
        width: 100%;

        padding: 18px;

        text-align: center;

        border-bottom: 1px solid #181818;

        font-size: 12px;
    }


    /* HERO MOBILE */

    .hero {
        min-height: calc(100vh - 65px);

        background-image:
            linear-gradient(
                rgba(0, 0, 0, 0.02),
                rgba(0, 0, 0, 0.08)
            ),
            url("../images/hero-fcmotorpart-mobile.png");

        background-size: cover;

        background-position: center center;
    }


    .hero-content {
        bottom: 10%;

        padding: 0 20px;
    }


    .hero-button {
        padding: 15px 25px;

        font-size: 11px;

        letter-spacing: 1.5px;
    }


    /* STANDARD PAGE */

    .page-section {
        min-height: calc(100vh - 65px);

        padding: 70px 20px 90px;
    }


    .page-header {
        margin-bottom: 45px;
    }


    .page-header h1 {
        font-size: 48px;
    }


    .page-header p {
        font-size: 14px;
    }


    /* CATEGORY */

    .category-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .category-card {
        min-height: 280px;

        padding: 30px;
    }


    .category-number {
        margin-bottom: 35px;
    }


    .category-card h2 {
        font-size: 31px;
    }


    .category-card:hover {
        transform: none;
    }


    .empty-feature,
    .customer-area-preview,
    .contact-preview {
        padding: 50px 25px;
    }


    /* PROJECTS MOBILE */

    .projects-section {
        min-height: calc(100vh - 65px);

        padding: 70px 20px 90px;
    }


    .projects-header {
        margin-bottom: 45px;
    }


    .projects-header h1 {
        font-size: 55px;
    }


    .projects-header p {
        font-size: 14px;
    }


    .projects-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .project-card {
        min-height: 390px;
    }


    .project-content {
        min-height: 390px;

        padding: 28px;
    }


    .project-content h2 {
        font-size: 43px;
    }


    .tech-chip {
        width: 95px;
        height: 95px;

        top: 27%;
        right: 10%;

        font-size: 23px;
    }


    .project-view {
        opacity: 1;

        transform: none;

        color: #ff5a00;
    }


    .project-card:hover {
        transform: none;
    }


    /* PROCESS MOBILE */

    .development-process {
        margin-top: 70px;

        padding: 35px 0;
    }


    .process-line {
        flex-direction: column;

        gap: 0;
    }


    .process-step {
        min-width: 120px;
    }


    .process-connector {
        width: 1px;
        height: 35px;

        margin: 8px 0;

        background:
            linear-gradient(
                #ff5a00,
                #3a2418
            );
    }
}


/* ========================================
   SMARTPHONE LANDSCAPE
======================================== */

@media (max-height: 500px) and (orientation: landscape) {

    header {
        height: 58px;

        padding: 0 25px;
    }


    .logo {
        font-size: 22px;
    }


    .menu-toggle {
        display: block;

        position: relative;

        z-index: 1100;
    }


    nav {
        display: none;

        position: absolute;

        top: 58px;
        left: 0;

        width: 100%;

        flex-direction: column;

        gap: 0;

        background: #080808;

        border-bottom: 1px solid #222222;

        z-index: 1000;
    }


    nav.active {
        display: flex;
    }


    nav a {
        width: 100%;

        padding: 11px;

        text-align: center;

        border-bottom: 1px solid #181818;

        font-size: 11px;
    }


    .hero {
        min-height: calc(100vh - 58px);

        background-image:
            linear-gradient(
                rgba(0, 0, 0, 0.02),
                rgba(0, 0, 0, 0.08)
            ),
            url("../images/hero-fcmotorpart.png");

        background-size: contain;

        background-position: center center;

        background-repeat: no-repeat;
    }


    .hero-content {
        bottom: 5%;
    }


    .hero-button {
        padding: 10px 20px;

        font-size: 10px;
    }

}


/* ========================================
   PROJECT DETAIL
======================================== */

.project-detail {
    background: #080808;
}


/* ========================================
   PROJECT HERO
======================================== */

.project-detail-hero {
    min-height: calc(100vh - 80px);

    max-width: 1500px;

    margin: 0 auto;

    padding: 80px 6%;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 50px;

    position: relative;

    overflow: hidden;
}


.project-detail-hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    background:
        radial-gradient(
            circle,
            rgba(255, 90, 0, 0.10),
            transparent 67%
        );

    pointer-events: none;
}


/* ========================================
   BACK LINK
======================================== */

.project-back {
    display: inline-block;

    margin-bottom: 55px;

    color: #666666;

    text-decoration: none;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;

    transition: color 0.2s ease;
}


.project-back:hover {
    color: #ff5a00;
}


/* ========================================
   STATUS
======================================== */

.project-detail-status {
    display: flex;

    align-items: center;

    gap: 9px;

    margin: 20px 0;

    color: #777777;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;
}


.status-light {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #ff5a00;

    box-shadow:
        0 0 12px rgba(255, 90, 0, 0.8);
}


/* ========================================
   HERO TITLE
======================================== */

.project-detail-info h1 {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: clamp(75px, 9vw, 145px);

    font-style: italic;

    font-weight: normal;

    line-height: 0.78;

    letter-spacing: 2px;

    color: #ffffff;
}


.project-subtitle {
    margin-top: 30px;

    color: #ff5a00;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 3px;
}


.project-intro {
    max-width: 520px;

    margin-top: 30px;

    color: #858585;

    font-size: 15px;

    line-height: 1.8;
}


/* ========================================
   TAGS
======================================== */

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 35px;
}


.project-tags span {
    padding: 9px 12px;

    border: 1px solid #292929;

    color: #666666;

    font-size: 8px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


/* ========================================
   HERO IMAGE
======================================== */

.project-detail-image {
    min-width: 0;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;
}


.project-detail-image img {
    position: relative;

    z-index: 2;

    display: block;

    width: 100%;

    max-width: 760px;

    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 35px 35px rgba(0, 0, 0, 0.55)
        );

    transition: transform 0.5s ease;
}


.project-detail-image:hover img {
    transform:
        scale(1.025)
        translateY(-5px);
}


.project-image-glow {
    position: absolute;

    width: 55%;
    aspect-ratio: 1;

    border-radius: 50%;

    background:
        rgba(255, 90, 0, 0.13);

    filter: blur(90px);
}


/* ========================================
   COMMON LARGE TITLE
======================================== */

.section-big-title {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: clamp(48px, 6vw, 85px);

    font-style: italic;

    font-weight: normal;

    line-height: 0.95;

    letter-spacing: 1px;
}


/* ========================================
   THE PROJECT
======================================== */

.project-story {
    max-width: 1400px;

    margin: 0 auto;

    padding: 130px 6%;

    display: grid;

    grid-template-columns: 80px 1fr 0.8fr;

    gap: 55px;

    border-top: 1px solid #1e1e1e;
}


.project-section-number {
    color: #ff5a00;

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: 20px;

    font-style: italic;
}


.project-section-title > span {
    color: #555555;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 3px;
}


.project-section-title h2 {
    margin-top: 15px;

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: clamp(42px, 5vw, 70px);

    font-style: italic;

    font-weight: normal;

    line-height: 0.95;
}


.project-section-text p {
    margin-bottom: 22px;

    color: #858585;

    font-size: 14px;

    line-height: 1.8;
}


/* ========================================
   SIGNAL FLOW
======================================== */

.signal-section {
    padding: 120px 6%;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #0c0c0c,
            #080808
        );

    border-top: 1px solid #1e1e1e;

    border-bottom: 1px solid #1e1e1e;
}


.signal-section .section-big-title {
    margin-top: 10px;
}


.signal-flow {
    max-width: 1250px;

    margin: 75px auto 0;

    display: flex;

    align-items: center;
    justify-content: center;
}


.signal-block {
    width: 230px;
    height: 145px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    text-align: left;

    border: 1px solid #292929;

    background: #0d0d0d;
}


.signal-main {
    border-color: #ff5a00;

    box-shadow:
        0 0 35px rgba(255, 90, 0, 0.07);
}


.signal-number {
    margin-bottom: auto;

    color: #ff5a00;

    font-size: 9px;

    font-weight: bold;
}


.signal-block strong {
    font-size: 13px;

    letter-spacing: 1px;
}


.signal-block small {
    margin-top: 7px;

    color: #555555;

    font-size: 8px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.signal-arrow {
    width: 150px;

    color: #ff5a00;

    font-size: 24px;

    text-align: center;
}


.signal-arrow span {
    display: block;

    margin-top: 8px;

    color: #555555;

    font-size: 7px;

    font-weight: bold;

    letter-spacing: 1px;
}


/* ========================================
   HARDWARE
======================================== */

.hardware-section {
    max-width: 1400px;

    margin: 0 auto;

    padding: 130px 6%;
}


.hardware-heading {
    max-width: 720px;

    margin-bottom: 65px;
}


.hardware-heading p {
    max-width: 500px;

    margin-top: 20px;

    color: #777777;

    font-size: 14px;

    line-height: 1.7;
}


.design-comparison {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.design-image {
    position: relative;

    min-height: 570px;

    padding: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #0d0d0d;

    border: 1px solid #222222;
}


.design-image > span {
    position: absolute;

    top: 25px;
    left: 25px;

    color: #555555;

    font-size: 8px;

    font-weight: bold;

    letter-spacing: 2px;
}


.design-image img {
    display: block;

    width: 100%;

    max-height: 470px;

    object-fit: contain;

    transition: transform 0.5s ease;
}


.design-image:hover img {
    transform: scale(1.04);
}


.real-board img {
    max-width: 430px;
}


/* ========================================
   CONNECTIONS
======================================== */

.connections-section {
    max-width: 1400px;

    margin: 0 auto;

    padding: 120px 6%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;

    border-top: 1px solid #1e1e1e;
}


.connections-image {
    min-height: 580px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle,
            #16100c,
            #0a0a0a 65%
        );
}


.connections-image img {
    display: block;

    width: 90%;

    max-height: 540px;

    object-fit: contain;
}


.connections-info h2 {
    margin-top: 15px;

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size: clamp(45px, 5vw, 72px);

    font-style: italic;

    font-weight: normal;

    line-height: 0.95;
}


/* ========================================
   PINOUT
======================================== */

.pinout-list {
    margin-top: 50px;

    border-top: 1px solid #292929;
}


.pinout-row {
    padding: 19px 0;

    display: grid;

    grid-template-columns: 110px 1fr;

    gap: 20px;

    border-bottom: 1px solid #292929;
}


.pinout-row strong {
    color: #ff5a00;

    font-size: 11px;

    letter-spacing: 1px;
}


.pinout-row span {
    color: #777777;

    font-size: 12px;
}


/* ========================================
   GALLERY
======================================== */

.project-gallery {
    max-width: 1400px;

    margin: 0 auto;

    padding: 130px 6%;
}


.gallery-heading {
    margin-bottom: 60px;
}


.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.gallery-item {
    min-height: 450px;

    padding: 35px;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #0d0d0d;

    border: 1px solid #222222;
}


.gallery-large {
    grid-row: span 2;

    min-height: 920px;
}


.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    max-height: 820px;

    object-fit: contain;

    transition: transform 0.5s ease;
}


.gallery-item:hover img {
    transform: scale(1.025);
}


.gallery-item figcaption {
    position: absolute;

    left: 22px;
    bottom: 20px;

    padding: 7px 10px;

    background: rgba(8, 8, 8, 0.85);

    color: #777777;

    font-size: 7px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* ========================================
   DEVELOPMENT STATUS
======================================== */

.project-development {
    padding: 100px 6% 130px;

    text-align: center;

    border-top: 1px solid #1e1e1e;
}


.detail-process {
    max-width: 1000px;

    margin: 60px auto 0;

    display: flex;

    align-items: center;
    justify-content: center;
}


.detail-step {
    min-width: 105px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.detail-step > span {
    width: 10px;
    height: 10px;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #333333;
}


.completed-step > span {
    background: #ff5a00;

    box-shadow:
        0 0 13px rgba(255, 90, 0, 0.6);
}


.detail-step strong {
    font-size: 9px;

    letter-spacing: 1.5px;
}


.detail-step small {
    margin-top: 7px;

    color: #444444;

    font-size: 8px;
}


.detail-line {
    width: 130px;
    height: 1px;

    margin:
        0 10px
        38px;

    background: #333333;
}


.detail-line.complete {
    background:
        linear-gradient(
            90deg,
            #ff5a00,
            #7b3210
        );
}


/* ========================================
   PROJECT FOOTER
======================================== */

.project-footer-nav {
    max-width: 1400px;

    margin: 0 auto;

    padding: 50px 6%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border-top: 1px solid #1e1e1e;
}


.project-footer-nav span {
    color: #444444;

    font-size: 8px;

    font-weight: bold;

    letter-spacing: 2px;
}


.project-footer-nav a {
    color: #ffffff;

    text-decoration: none;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;

    transition: color 0.2s ease;
}


.project-footer-nav a:hover {
    color: #ff5a00;
}


/* ==========================================================
   PROJECT DETAIL - TABLET
========================================================== */

@media (max-width: 1000px) {

    .project-detail-hero {
        grid-template-columns: 1fr;

        min-height: auto;

        padding-top: 70px;
    }


    .project-detail-info {
        position: relative;

        z-index: 5;
    }


    .project-detail-image {
        min-height: 500px;
    }


    .project-detail-image img {
        max-width: 650px;
    }


    .project-story {
        grid-template-columns: 60px 1fr;
    }


    .project-section-text {
        grid-column: 2;
    }


    .signal-flow {
        flex-direction: column;
    }


    .signal-arrow {
        width: auto;
        height: 85px;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        transform: rotate(90deg);
    }


    .signal-arrow span {
        display: none;
    }


    .connections-section {
        grid-template-columns: 1fr;

        gap: 60px;
    }
}


/* ==========================================================
   PROJECT DETAIL - MOBILE
========================================================== */

@media (max-width: 700px) {

    .project-detail-hero {
        padding:
            55px 20px
            70px;

        gap: 20px;
    }


    .project-back {
        margin-bottom: 35px;
    }


    .project-detail-info h1 {
        font-size: 70px;
    }


    .project-subtitle {
        font-size: 9px;

        line-height: 1.6;
    }


    .project-intro {
        font-size: 13px;

        line-height: 1.7;
    }


    .project-detail-image {
        min-height: 330px;
    }


    .project-detail-image img {
        width: 110%;

        max-width: 500px;
    }


    /* STORY */

    .project-story {
        padding: 80px 20px;

        display: block;
    }


    .project-section-number {
        margin-bottom: 25px;
    }


    .project-section-title h2 {
        font-size: 45px;
    }


    .project-section-text {
        margin-top: 35px;
    }


    /* SIGNAL */

    .signal-section {
        padding: 80px 20px;
    }


    .signal-block {
        width: 100%;

        max-width: 310px;
    }


    /* HARDWARE */

    .hardware-section {
        padding: 80px 20px;
    }


    .design-comparison {
        grid-template-columns: 1fr;
    }


    .design-image {
        min-height: 390px;

        padding: 45px 25px 25px;
    }


    /* CONNECTIONS */

    .connections-section {
        padding: 80px 20px;

        gap: 45px;
    }


    .connections-image {
        min-height: 390px;
    }


    .connections-info h2 {
        font-size: 45px;
    }


    .pinout-row {
        grid-template-columns: 85px 1fr;
    }


    /* GALLERY */

    .project-gallery {
        padding: 80px 20px;
    }


    .gallery-grid {
        grid-template-columns: 1fr;
    }


    .gallery-item,
    .gallery-large {
        min-height: 420px;

        grid-row: auto;
    }


    /* DEVELOPMENT */

    .project-development {
        padding: 80px 20px;
    }


    .detail-process {
        flex-direction: column;
    }


    .detail-line {
        width: 1px;
        height: 35px;

        margin: 10px 0;

        background: #333333;
    }


    .detail-line.complete {
        background:
            linear-gradient(
                #ff5a00,
                #7b3210
            );
    }


    /* FOOTER */

    .project-footer-nav {
        padding: 35px 20px;

        flex-direction: column;

        gap: 25px;

        text-align: center;
    }
}

/* ========================================
   CLICKABLE PROJECT CARD
======================================== */

.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card-link:visited {
    color: inherit;
}


/* ==========================================================
   IDLE CONTROL — COMPACT IMAGE SIZING
   Only this page. Typography remains the site's native typography.
========================================================== */

body.idle-page .project-detail-hero {
    max-width: 1320px;
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 80px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 55px;
}

body.idle-page .project-detail-info h1 {
    font-size: clamp(72px, 7.2vw, 112px);
}

body.idle-page .project-detail-image {
    min-height: 0;
    height: 410px;
}

body.idle-page .project-detail-image img {
    width: auto;
    max-width: 390px;
    max-height: 390px;
}

body.idle-page .hardware-section,
body.idle-page .connections-section,
body.idle-page .project-gallery,
body.idle-page .project-story {
    max-width: 1320px;
}

body.idle-page .design-image {
    min-height: 0;
    height: 390px;
    padding: 55px 35px 30px;
}

body.idle-page .design-image img,
body.idle-page .real-board img {
    width: auto;
    max-width: 390px;
    max-height: 285px;
}

body.idle-page .connections-image {
    min-height: 0;
    height: 410px;
    padding: 30px;
}

body.idle-page .connections-image img {
    width: auto;
    max-width: 390px;
    max-height: 330px;
}

body.idle-page .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.idle-page .gallery-item,
body.idle-page .gallery-large {
    min-height: 0;
    height: 330px;
    grid-row: auto;
    padding: 45px 25px 35px;
}

body.idle-page .gallery-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 235px;
}

/* Tablet */
@media (max-width: 1000px) {
    body.idle-page .project-detail-hero {
        grid-template-columns: 1fr;
    }

    body.idle-page .project-detail-image {
        height: 360px;
    }

    body.idle-page .project-detail-image img {
        max-width: 350px;
        max-height: 340px;
    }

    body.idle-page .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 700px) {
    body.idle-page .project-detail-hero {
        padding: 55px 20px 65px;
    }

    body.idle-page .project-detail-info h1 {
        font-size: 70px;
    }

    body.idle-page .project-detail-image {
        min-height: 0;
        height: 275px;
    }

    body.idle-page .project-detail-image img {
        width: auto;
        max-width: 280px;
        max-height: 255px;
    }

    body.idle-page .design-image {
        min-height: 0;
        height: 275px;
    }

    body.idle-page .design-image img,
    body.idle-page .real-board img {
        width: auto;
        max-width: 285px;
        max-height: 205px;
    }

    body.idle-page .connections-image {
        min-height: 0;
        height: 285px;
    }

    body.idle-page .connections-image img {
        width: auto;
        max-width: 285px;
        max-height: 230px;
    }

    body.idle-page .gallery-grid {
        grid-template-columns: 1fr;
    }

    body.idle-page .gallery-item,
    body.idle-page .gallery-large {
        min-height: 0;
        height: 270px;
    }

    body.idle-page .gallery-item img {
        max-height: 195px;
    }
}