/* =========================================================
   PROJECTS PAGE
   PREMIUM VISUAL CASE STUDY DESIGN
========================================================= */

:root {

    --project-red: #ef120c;
    --project-red-light: #ff3028;

    --project-black: #050505;
    --project-black-2: #080808;
    --project-black-3: #0d0d0d;

    --project-border:
        rgba(255,255,255,0.09);

    --project-text: #eeeeee;
    --project-muted: #777;

}


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

.projects-hero {

    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: #050505;
}


.projects-hero-grid {

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 75px 75px;

    mask-image:

        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


.projects-hero-glow {

    position: absolute;

    width: 700px;

    height: 700px;

    right: -250px;

    top: 50%;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:

        radial-gradient(
            circle,
            rgba(239,18,12,0.13),
            transparent 65%
        );

    filter: blur(20px);
}


.projects-hero-content {

    position: relative;

    z-index: 2;

    padding-top: 100px;

    padding-bottom: 80px;
}


.projects-eyebrow {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #999;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2.5px;

    margin-bottom: 25px;
}


.projects-eyebrow span {

    width: 30px;

    height: 1px;

    background:
        var(--project-red);
}


.projects-hero-content h1 {

    max-width: 850px;

    margin: 0 0 25px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(55px,7vw,92px);

    line-height: 0.95;

    letter-spacing: -4px;

    color: white;
}


.projects-hero-content h1 span {

    display: block;

    color:
        var(--project-red);
}


.projects-hero-content > p {

    max-width: 650px;

    color: #808080;

    font-size: 16px;

    line-height: 1.85;

    margin-bottom: 50px;
}


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

.projects-hero-meta {

    display: grid;

    grid-template-columns:
        repeat(4,180px);

    gap: 0;

    border-top:
        1px solid
        rgba(255,255,255,0.08);

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

    width: fit-content;
}


.projects-hero-meta div {

    min-height: 90px;

    padding:
        18px 25px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    border-right:
        1px solid
        rgba(255,255,255,0.08);
}


.projects-hero-meta div:last-child {

    border-right: none;
}


.projects-hero-meta strong {

    color: white;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 20px;
}


.projects-hero-meta span {

    color: #555;

    font-size: 9px;

    letter-spacing: 0.5px;
}


/* =========================================================
   FILTER
========================================================= */

.project-filter-section {

    background: #080808;

    border-top:
        1px solid
        rgba(255,255,255,0.07);

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


.project-filter {

    min-height: 85px;

    display: flex;

    align-items: center;

    gap: 10px;

    overflow-x: auto;
}


.project-filter-btn {

    flex-shrink: 0;

    padding:
        10px 17px;

    color: #777;

    background:
        transparent;

    border:
        1px solid
        rgba(255,255,255,0.08);

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    transition:
        0.3s ease;
}


.project-filter-btn:hover {

    color: white;

    border-color:
        rgba(239,18,12,0.4);
}


.project-filter-btn.active {

    color: white;

    background:
        var(--project-red);

    border-color:
        var(--project-red);
}


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

.featured-project {

    padding:
        130px 0;

    background: #050505;

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


.project-feature-grid {

    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    gap: 100px;

    align-items: center;
}


/* =========================================================
   VISUAL BROWSER
========================================================= */

.project-visual {

    position: relative;
}


.visual-browser {

    width: 100%;

    background: #090909;

    border:
        1px solid
        rgba(255,255,255,0.12);

    box-shadow:
        0 35px 100px
        rgba(0,0,0,0.55);

    transform:
        perspective(1200px)
        rotateY(4deg);

    transition:
        0.5s ease;
}


.visual-browser:hover {

    transform:
        perspective(1200px)
        rotateY(0deg)
        translateY(-8px);
}


.browser-top {

    height: 48px;

    padding:
        0 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

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

    color: #555;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


.browser-dots {

    display: flex;

    gap: 5px;
}


.browser-dots span {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: #333;
}


.browser-dots span:first-child {

    background:
        var(--project-red);
}


.detection-screen {

    position: relative;

    height: 390px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 50% 50%,
            rgba(239,18,12,0.08),
            transparent 45%
        ),

        #070707;
}


.screen-grid {

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}


.scan-beam {

    position: absolute;

    z-index: 5;

    top: 0;

    left: 0;

    width: 100%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--project-red),
            transparent
        );

    box-shadow:
        0 0 18px
        rgba(239,18,12,0.8);

    animation:
        projectScan 4s linear infinite;
}


/* DETECTION BOXES */

.object-box {

    position: absolute;

    z-index: 4;

    border:
        1px solid
        rgba(239,18,12,0.85);

    background:
        rgba(239,18,12,0.025);

    animation:
        objectFloat 3s ease-in-out infinite;
}


.object-box::before,
.object-box::after {

    content: "";

    position: absolute;

    width: 12px;

    height: 12px;

    border-color:
        var(--project-red);
}


.object-box::before {

    top: -1px;

    left: -1px;

    border-top:
        2px solid;

    border-left:
        2px solid;
}


.object-box::after {

    bottom: -1px;

    right: -1px;

    border-right:
        2px solid;

    border-bottom:
        2px solid;
}


.object-person {

    width: 95px;

    height: 190px;

    left: 27%;

    top: 85px;
}


.object-vehicle {

    width: 180px;

    height: 85px;

    right: 12%;

    bottom: 85px;

    animation-delay:
        0.7s;
}


.object-object {

    width: 75px;

    height: 75px;

    right: 17%;

    top: 55px;

    animation-delay:
        1.2s;
}


.object-box span {

    position: absolute;

    top: -23px;

    left: -1px;

    padding:
        4px 6px;

    color: white;

    background:
        var(--project-red);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* CROSSHAIR */

.screen-crosshair {

    position: absolute;

    width: 120px;

    height: 120px;

    left: 50%;

    top: 50%;

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

    border:
        1px solid
        rgba(255,255,255,0.25);

    border-radius: 50%;
}


.screen-crosshair::before,
.screen-crosshair::after {

    content: "";

    position: absolute;

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


.screen-crosshair::before {

    width: 1px;

    height: 100%;

    left: 50%;
}


.screen-crosshair::after {

    height: 1px;

    width: 100%;

    top: 50%;
}


.screen-crosshair i {

    position: absolute;

    width: 7px;

    height: 7px;

    left: 50%;

    top: 50%;

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

    border-radius: 50%;

    background:
        var(--project-red);

    box-shadow:
        0 0 15px
        var(--project-red);
}


/* STATUS */

.screen-status {

    position: absolute;

    left: 18px;

    bottom: 16px;

    display: flex;

    align-items: center;

    gap: 7px;

    color: #777;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1px;
}


.screen-status span {

    width: 5px;

    height: 5px;

    border-radius: 50%;

    background:
        var(--project-red);

    box-shadow:
        0 0 10px
        var(--project-red);
}


/* VISUAL FOOTER */

.visual-footer {

    display: grid;

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

    border-top:
        1px solid
        rgba(255,255,255,0.07);
}


.visual-footer div {

    padding: 15px;

    border-right:
        1px solid
        rgba(255,255,255,0.07);
}


.visual-footer div:last-child {

    border-right: none;
}


.visual-footer span {

    display: block;

    color: #505050;

    font-size: 7px;

    letter-spacing: 1px;

    margin-bottom: 5px;
}


.visual-footer strong {

    color: #bbb;

    font-size: 10px;
}


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

.project-label {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #777;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 25px;
}


.project-label span {

    color:
        var(--project-red);
}


.project-feature-content h2,
.project-row-content h2 {

    max-width: 650px;

    margin: 0 0 22px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(38px,4vw,58px);

    line-height: 1.02;

    letter-spacing: -2px;

    color: white;
}


.project-feature-content h2 span,
.project-row-content h2 span {

    color:
        var(--project-red);
}


.project-feature-content > p,
.project-row-content > p {

    max-width: 570px;

    color: #777;

    font-size: 14px;

    line-height: 1.85;

    margin-bottom: 35px;
}


/* =========================================================
   INFO GRID
========================================================= */

.project-info-grid {

    display: grid;

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

    gap: 1px;

    margin-bottom: 35px;

    background:
        rgba(255,255,255,0.07);

    border:
        1px solid
        rgba(255,255,255,0.07);
}


.project-info-grid div {

    padding: 18px;

    background: #080808;
}


.project-info-grid span {

    display: block;

    color: #4f4f4f;

    font-size: 7px;

    letter-spacing: 1.2px;

    margin-bottom: 8px;
}


.project-info-grid strong {

    color: #bbb;

    font-size: 11px;

    font-weight: 600;
}


/* PROJECT LINK */

.project-link {

    display: inline-flex;

    align-items: center;

    gap: 15px;

    color: white;

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    padding-bottom: 8px;

    border-bottom:
        1px solid
        var(--project-red);

    transition:
        0.3s ease;
}


.project-link span {

    color:
        var(--project-red);

    font-size: 17px;
}


.project-link:hover {

    gap: 20px;
}


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

.project-row {

    padding:
        120px 0;

    background: #080808;

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


.project-row:nth-of-type(even) {

    background: #050505;
}


.project-row-grid {

    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 100px;

    align-items: center;
}


.project-row-reverse
.project-row-grid {

    grid-template-columns:
        1.1fr 0.9fr;
}


.project-row-reverse
.project-row-content {

    grid-column: 2;

    grid-row: 1;
}


.project-row-reverse
.agent-visual {

    grid-column: 1;

    grid-row: 1;
}


/* TAGS */

.project-tags {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 35px;
}


.project-tags span {

    padding:
        7px 10px;

    color: #777;

    border:
        1px solid
        rgba(255,255,255,0.08);

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

    font-size: 8px;

    font-weight: 700;
}


/* MINI STATS */

.project-mini-stats {

    display: grid;

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

    gap: 10px;

    max-width: 500px;
}


.project-mini-stats div {

    padding:
        15px;

    border-top:
        1px solid
        rgba(255,255,255,0.1);
}


.project-mini-stats strong {

    display: block;

    color:
        var(--project-red);

    font-size: 12px;

    margin-bottom: 7px;
}


.project-mini-stats span {

    color: #5d5d5d;

    font-size: 8px;

    line-height: 1.4;
}


/* =========================================================
   STEEL VISUAL
========================================================= */

.industrial-visual {

    display: flex;

    justify-content: center;
}


.steel-panel {

    width: 100%;

    background: #090909;

    border:
        1px solid
        rgba(255,255,255,0.1);

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


.steel-header {

    height: 48px;

    padding:
        0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #555;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

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


.inspection-live {

    display: flex;

    align-items: center;

    gap: 7px;
}


.inspection-live i {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background:
        var(--project-red);

    box-shadow:
        0 0 10px
        var(--project-red);
}


.steel-surface {

    position: relative;

    height: 340px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #252525,
            #101010 40%,
            #292929 70%,
            #111
        );
}


.steel-texture {

    position: absolute;

    inset: 0;

    opacity: 0.4;

    background:

        repeating-linear-gradient(
            100deg,
            transparent 0,
            transparent 7px,
            rgba(255,255,255,0.025) 8px,
            transparent 10px
        );
}


/* DEFECTS */

.defect {

    position: absolute;

    border:
        1px solid
        var(--project-red);

    background:
        rgba(239,18,12,0.05);

    animation:
        defectPulse 2.5s infinite;
}


.defect::before {

    content: "";

    position: absolute;

    top: -1px;

    left: -1px;

    width: 12px;

    height: 12px;

    border-top:
        2px solid
        var(--project-red);

    border-left:
        2px solid
        var(--project-red);
}


.defect span {

    position: absolute;

    top: -22px;

    left: 0;

    padding:
        4px 6px;

    color: white;

    background:
        var(--project-red);

    font-size: 7px;

    font-weight: 800;
}


.defect-one {

    width: 80px;

    height: 50px;

    left: 22%;

    top: 90px;
}


.defect-two {

    width: 110px;

    height: 65px;

    right: 18%;

    top: 180px;

    animation-delay:
        0.8s;
}


.defect-three {

    width: 65px;

    height: 45px;

    left: 52%;

    bottom: 40px;

    animation-delay:
        1.4s;
}


/* INSPECTION LINE */

.inspection-line {

    position: absolute;

    left: 0;

    width: 100%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(239,18,12,0.9),
            transparent
        );

    box-shadow:
        0 0 15px
        rgba(239,18,12,0.7);

    animation:
        inspectionScan 4s linear infinite;
}


.steel-footer {

    display: grid;

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

    border-top:
        1px solid
        rgba(255,255,255,0.07);
}


.steel-footer div {

    padding:
        15px;

    border-right:
        1px solid
        rgba(255,255,255,0.07);
}


.steel-footer div:last-child {

    border-right: none;
}


.steel-footer span {

    display: block;

    color: #4f4f4f;

    font-size: 7px;

    letter-spacing: 1px;

    margin-bottom: 5px;
}


.steel-footer strong {

    color: #aaa;

    font-size: 10px;
}


/* =========================================================
   AGENT VISUAL
========================================================= */

.agent-visual {

    display: flex;

    justify-content: center;
}


.agent-window {

    width: 100%;

    background: #080808;

    border:
        1px solid
        rgba(255,255,255,0.1);

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


.agent-top {

    height: 48px;

    padding:
        0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #555;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

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


.agent-dots {

    display: flex;

    gap: 5px;
}


.agent-dots span {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: #333;
}


.agent-dots span:first-child {

    background:
        var(--project-red);
}


/* FLOW */

.agent-flow {

    min-height: 180px;

    padding:
        30px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    background:

        radial-gradient(
            circle at center,
            rgba(239,18,12,0.06),
            transparent 55%
        );
}


.flow-node {

    width: 78px;

    min-height: 70px;

    padding: 10px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 6px;

    background: #0c0c0c;

    border:
        1px solid
        rgba(255,255,255,0.08);

    text-align: center;
}


.flow-node span {

    color:
        var(--project-red);

    font-size: 8px;

    font-weight: 800;
}


.flow-node strong {

    color: #aaa;

    font-size: 9px;
}


.active-node {

    border-color:
        rgba(239,18,12,0.4);

    box-shadow:
        0 0 25px
        rgba(239,18,12,0.08);
}


.flow-line {

    width: 25px;

    height: 1px;

    background:
        rgba(239,18,12,0.4);
}


/* OUTPUT */

.agent-output {

    border-top:
        1px solid
        rgba(255,255,255,0.07);
}


.output-row {

    min-height: 43px;

    padding:
        0 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

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


.output-row span {

    color: #555;

    font-size: 9px;
}


.output-row strong {

    color: #aaa;

    font-size: 9px;
}


.output-row strong::before {

    content: "✓";

    margin-right: 7px;

    color:
        var(--project-red);
}


/* =========================================================
   ANALYTICS
========================================================= */

.analytics-bars {

    max-width: 500px;

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.bar-label {

    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;
}


.bar-label span {

    color: #555;

    font-size: 7px;

    letter-spacing: 1px;
}


.bar-label strong {

    color: #aaa;

    font-size: 8px;
}


.bar {

    height: 4px;

    background:
        #171717;
}


.bar span {

    display: block;

    height: 100%;

    background:
        var(--project-red);

    box-shadow:
        0 0 10px
        rgba(239,18,12,0.25);
}


/* ANALYTICS VISUAL */

.analytics-visual {

    display: flex;

    justify-content: center;
}


.analytics-dashboard {

    width: 100%;

    background: #080808;

    border:
        1px solid
        rgba(255,255,255,0.1);

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


.analytics-header {

    height: 48px;

    padding:
        0 17px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #555;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

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


.cluster-area {

    position: relative;

    height: 340px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at center,
            rgba(239,18,12,0.06),
            transparent 55%
        );
}


.cluster-area::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 35px 35px;
}


.cluster {

    position: absolute;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    flex-wrap: wrap;

    padding: 20px;

    border:
        1px solid
        rgba(239,18,12,0.2);

    border-radius: 50%;
}


.cluster span {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background:
        var(--project-red);

    box-shadow:
        0 0 10px
        rgba(239,18,12,0.4);
}


.cluster-one {

    width: 145px;

    height: 115px;

    left: 15%;

    top: 55px;
}


.cluster-two {

    width: 125px;

    height: 100px;

    right: 12%;

    top: 50px;

    border-color:
        rgba(255,255,255,0.12);
}


.cluster-two span {

    background:
        #888;

    box-shadow: none;
}


.cluster-three {

    width: 105px;

    height: 85px;

    left: 42%;

    bottom: 25px;

    border-color:
        rgba(255,255,255,0.1);
}


.cluster-three span {

    background:
        #555;

    box-shadow: none;
}


.cluster-label {

    position: absolute;

    color: #666;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


.label-one {

    left: 22%;

    top: 43px;

    color:
        var(--project-red);
}


.label-two {

    right: 18%;

    top: 38px;
}


.label-three {

    left: 46%;

    bottom: 15px;
}


.analytics-bottom {

    display: grid;

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

    border-top:
        1px solid
        rgba(255,255,255,0.07);
}


.analytics-bottom div {

    padding:
        15px;

    border-right:
        1px solid
        rgba(255,255,255,0.07);
}


.analytics-bottom div:last-child {

    border-right: none;
}


.analytics-bottom span {

    display: block;

    color: #4f4f4f;

    font-size: 7px;

    letter-spacing: 1px;

    margin-bottom: 5px;
}


.analytics-bottom strong {

    color: #aaa;

    font-size: 10px;
}


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

.project-process {

    padding:
        125px 0;

    background: #080808;

    border-top:
        1px solid
        rgba(255,255,255,0.07);
}


.projects-heading {

    max-width: 750px;

    margin-bottom: 65px;
}


.projects-heading h2 {

    max-width: 700px;
}


.projects-heading h2 span {

    color:
        var(--project-red);
}


.projects-heading p {

    max-width: 600px;

    color: #777;

    line-height: 1.8;
}


.project-process-grid {

    display: grid;

    grid-template-columns:
        1fr 60px 1fr 60px 1fr 60px 1fr;

    align-items: center;
}


.process-card {

    text-align: center;

    padding:
        20px 5px;
}


.process-card > span {

    display: block;

    color: #444;

    font-size: 10px;

    font-weight: 800;

    margin-bottom: 18px;
}


.process-card > div {

    width: 64px;

    height: 64px;

    margin:
        0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(239,18,12,0.3);

    background:
        rgba(239,18,12,0.05);

    color:
        var(--project-red);

    border-radius: 50%;

    font-size: 21px;

    transition:
        0.3s ease;
}


.process-card:hover > div {

    color: white;

    background:
        var(--project-red);

    transform:
        scale(1.08);

    box-shadow:
        0 0 35px
        rgba(239,18,12,0.2);
}


.process-card h3 {

    color: white;

    font-size: 16px;

    margin-bottom: 10px;
}


.process-card p {

    color: #666;

    font-size: 11px;

    line-height: 1.7;
}


.process-connector {

    height: 1px;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(239,18,12,0.5),
            transparent
        );
}


/* =========================================================
   CTA
========================================================= */

.projects-cta {

    padding:
        100px 0;

    background: #050505;
}


.projects-cta-box {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    padding:
        70px;

    overflow: hidden;

    border:
        1px solid
        rgba(239,18,12,0.25);

    background:

        radial-gradient(
            circle at 85% 50%,
            rgba(239,18,12,0.12),
            transparent 35%
        ),

        #090909;
}


.projects-cta-box h2 {

    max-width: 700px;

    margin:
        20px 0;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(38px,4vw,58px);

    line-height: 1.05;

    letter-spacing: -2px;
}


.projects-cta-box h2 span {

    color:
        var(--project-red);
}


.projects-cta-box p {

    max-width: 600px;

    color: #777;

    font-size: 14px;

    line-height: 1.8;
}


.projects-cta-btn {

    position: relative;

    z-index: 2;

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 17px;

    padding:
        17px 25px;

    color: white;

    background:
        var(--project-red);

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    transition:
        0.3s ease;
}


.projects-cta-btn:hover {

    background:
        var(--project-red-light);

    transform:
        translateY(-4px);

    box-shadow:
        0 15px 40px
        rgba(239,18,12,0.25);
}


.projects-cta-btn span {

    font-size: 18px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes projectScan {

    0% {

        top: 0;

        opacity: 0;
    }

    10% {

        opacity: 1;
    }

    90% {

        opacity: 1;
    }

    100% {

        top: 100%;

        opacity: 0;
    }

}


@keyframes objectFloat {

    0%,
    100% {

        transform:
            translateY(0);
    }

    50% {

        transform:
            translateY(-5px);
    }

}


@keyframes defectPulse {

    0%,
    100% {

        opacity: 0.7;
    }

    50% {

        opacity: 1;
    }

}


@keyframes inspectionScan {

    0% {

        top: 0;

        opacity: 0;
    }

    10% {

        opacity: 1;
    }

    90% {

        opacity: 1;
    }

    100% {

        top: 100%;

        opacity: 0;
    }

}


/* =========================================================
   FILTER ANIMATION
========================================================= */

.project-item {

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.project-visible {

    animation:
        projectReveal 0.45s ease;
}


@keyframes projectReveal {

    from {

        opacity: 0;

        transform:
            translateY(15px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .project-feature-grid {

        gap: 55px;
    }

    .project-row-grid {

        gap: 55px;
    }

    .projects-hero-meta {

        grid-template-columns:
            repeat(4,160px);
    }

}


@media (max-width: 900px) {

    .projects-hero {

        min-height: auto;
    }


    .projects-hero-content {

        padding-top: 100px;

        padding-bottom: 70px;
    }


    .projects-hero-content h1 {

        font-size: 60px;
    }


    .projects-hero-meta {

        grid-template-columns:
            repeat(2,170px);
    }


    .projects-hero-meta div:nth-child(2) {

        border-right: none;
    }


    .project-feature-grid,
    .project-row-grid,
    .project-row-reverse
    .project-row-grid {

        grid-template-columns: 1fr;

        gap: 65px;
    }


    .project-row-reverse
    .project-row-content,
    .project-row-reverse
    .agent-visual {

        grid-column: auto;

        grid-row: auto;
    }


    .project-row-reverse
    .agent-visual {

        order: 1;
    }


    .project-row-reverse
    .project-row-content {

        order: 2;
    }


    .project-process-grid {

        grid-template-columns:
            1fr;

        gap: 15px;
    }


    .process-connector {

        width: 1px;

        height: 40px;

        margin: auto;

        background:

            linear-gradient(
                to bottom,
                transparent,
                rgba(239,18,12,0.5),
                transparent
            );
    }


    .projects-cta-box {

        flex-direction: column;

        align-items: flex-start;

        padding: 50px 35px;
    }

}


@media (max-width: 600px) {

    .projects-hero-content {

        padding-top: 90px;

        padding-bottom: 60px;
    }


    .projects-hero-content h1 {

        font-size: 48px;

        letter-spacing: -2px;
    }


    .projects-hero-content > p {

        font-size: 14px;
    }


    .projects-hero-meta {

        width: 100%;

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


    .projects-hero-meta div {

        padding:
            15px;
    }


    .project-filter {

        padding:
            15px 0;
    }


    .featured-project,
    .project-row,
    .project-process {

        padding:
            85px 0;
    }


    .detection-screen {

        height: 300px;
    }


    .object-person {

        left: 20%;

        height: 150px;
    }


    .object-vehicle {

        right: 7%;

        width: 130px;
    }


    .project-feature-content h2,
    .project-row-content h2 {

        font-size: 40px;
    }


    .project-info-grid {

        grid-template-columns: 1fr;
    }


    .project-mini-stats {

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


    .steel-surface,
    .cluster-area {

        height: 280px;
    }


    .agent-flow {

        gap: 4px;

        padding:
            20px 8px;
    }


    .flow-node {

        width: 65px;

        min-height: 65px;

        padding: 7px;
    }


    .flow-line {

        width: 12px;
    }


    .projects-cta {

        padding:
            70px 0;
    }


    .projects-cta-box {

        padding:
            40px 25px;
    }


    .projects-cta-box h2 {

        font-size: 40px;
    }

}