/* --- Global Document Setup Overrides --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.h1-serif {
    font-family: 'Playfair Display', serif;
    font-size: 54px;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 24px 0;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.h2-serif {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 12px 0;
    font-weight: 500;
}

/* --- Section 1: Manufacturing Hero CSS Engine --- */
.mfg-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Utilizes viewport mechanics to stay responsive on any height screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 0 60px 0;
    background-color: #000;
    overflow: hidden;
    box-sizing: border-box;
}

.mfg-hero-media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Fluid Auto-Scale Rule: Prevents layout distortions regardless of source asset file size */
.mfg-fluid-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

/* Integrated Premium Dark Masking Layer to keep typography high-contrast */
.mfg-gradient-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000000 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.3) 100%);
}

.mfg-hero-core {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.mfg-hero-text-block {
    max-width: 640px;
    margin-top: auto;
    margin-bottom: auto;
    padding-bottom: 60px;
}

.mfg-hero-subtext {
    font-size: 16px;
    line-height: 1.65;
    color: #cccccc;
    margin: 0 0 40px 0;
}

.btn-mfg-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-mfg-outline:hover {
    border-color: #d4a74a;
    background-color: #d4a74a;
    color: #000;
}

.arrow-down {
    font-size: 14px;
    font-weight: bold;
}

/* --- Integrated Capability Performance Ribbon CSS --- */
.mfg-stats-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(10, 10, 10, 0.75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.stat-ribbon-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 0 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-ribbon-item:last-child {
    border-right: none;
}

.stat-icon-wrapper {
    color: #d4a74a; /* Premium Accent Brand Yellow Gold */
    font-size: 18px;
    margin-top: 3px;
}

.stat-counter {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.stat-label {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}

/* --- Section 2: In-House Process Grid Engine Styles --- */
.mfg-process-section {
    background-color: #000;
    padding: 140px 0;
}

.mfg-process-header {
    text-align: left;
    margin-bottom: 80px;
}

.mfg-process-intro {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #555;
    margin: 0;
    font-weight: 500;
}

/* 5-Column High-End Floating Process Block Execution Layout */
.mfg-process-matrix {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-top: 30px;
}

.mfg-process-card {
    background-color: #080808;
    border: 1px solid #121212;
    border-radius: 16px;
    padding: 35px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Alternating Vertical Offset Logic matching the mock layout accurately */
.card-offset-up {
    transform: translateY(-25px);
}

.card-offset-down {
    transform: translateY(25px);
}

.card-icon-header {
    font-size: 16px;
    color: #d4a74a;
    margin-bottom: 25px;
    width: 36px;
    height: 36px;
    background: rgba(212, 167, 74, 0.03);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 167, 74, 0.1);
}

.card-step-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
}

.card-step-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    transition: color 0.3s ease;
}

/* Subtle Interactive Hover State System */
.mfg-process-card:hover {
    border-color: rgba(212, 167, 74, 0.3);
    background-color: #0c0c0c;
}

.mfg-process-card:hover .card-step-desc {
    color: #999;
}

/* --- Dynamic Responsive Engine Media Query Breakdowns --- */

@media (max-width: 1200px) {
    .h1-serif { font-size: 44px; }
    
    .stat-ribbon-item {
        padding: 0 15px;
        gap: 12px;
    }
    
    .mfg-process-matrix {
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .mfg-hero-section {
        min-height: auto;
        padding-top: 120px;
    }

    .mfg-gradient-shield {
        background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 80%, #000000 100%);
    }

    /* Convert capability ribbon into a stable 2x2 grid framework */
    .mfg-stats-ribbon {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 0;
        padding: 40px 20px;
    }

    .stat-ribbon-item:nth-child(2) {
        border-right: none;
    }

    .stat-ribbon-item:nth-child(3) {
        border-bottom: none;
    }

    /* Reset vertical stagger offsets to maintain a clean aesthetic flow on smaller screens */
    .card-offset-up, .card-offset-down {
        transform: translateY(0);
    }

    .mfg-process-matrix {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .h1-serif { font-size: 38px; }
    .h2-serif { font-size: 32px; }

    .mfg-process-section {
        padding: 80px 0;
    }

    .mfg-process-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mfg-hero-text-block {
        text-align: center;
        padding-bottom: 40px;
    }

    .btn-mfg-outline {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Drop stats into a clean vertical content stack */
    .mfg-stats-ribbon {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 24px;
    }

    .stat-ribbon-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0 0 20px 0;
    }

    .stat-ribbon-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mfg-process-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .mfg-process-matrix {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* --- Section 3: CVD Certification Machine Layout Engine --- */
.mfg-cvd-section {
    background-color: #000;
    padding: 100px 0;
}

.cvd-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.mfg-badge-accent {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4a74a; /* Theme Gold Yellow */
    background: rgba(212, 167, 74, 0.05);
    border: 1px solid rgba(212, 167, 74, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.cvd-description {
    font-size: 15px;
    line-height: 1.7;
    color: #777;
    margin: 20px 0 35px 0;
    max-width: 480px;
}

.cvd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cvd-feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.check-icon {
    color: #d4a74a;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.feature-text {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

/* --- Interactive Visual Frame Engine --- */
.cvd-interactive-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #0d0d0d;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #121212;
}

.cvd-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cvd-overlay-shading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

/* Floating Hotspot Layout Definitions */
.machinery-hotspot {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    cursor: pointer;
}

.hotspot-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
    display: block;
}

.hotspot-pulse-dot::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: hotspotPulse 2s infinite ease-out;
}

.hotspot-tooltip-pill {
    background: rgba(20, 20, 20, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    color: #bbb;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.machinery-hotspot:hover .hotspot-tooltip-pill {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-color: #fff;
}

@keyframes hotspotPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}


/* --- Section 4: Asymmetric Facility Gallery Floor Styles --- */
.mfg-facility-section {
    background-color: #000;
    padding: 80px 0 120px 0;
}

.facility-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
    border-bottom: 1px solid #111;
    padding-bottom: 20px;
}

.view-gallery-link {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.view-gallery-link:hover {
    color: #d4a74a;
}

/* Multi-Aspect Grid Balancing Configuration */
.facility-display-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.facility-secondary-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.facility-card {
    position: relative;
    background-color: #080808;
    border: 1px solid #121212;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.card-hero-large {
    height: 100%;
    min-height: 480px;
}

.card-landscape-small {
    height: 228px;
}

.facility-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.facility-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.facility-card-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 3;
}

.facility-card-label h4 {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Immersive Card Hover Actions */
.facility-card:hover .facility-bg-img {
    transform: scale(1.04);
}


/* --- Dynamic Responsive Engine Breakdowns --- */

@media (max-width: 1024px) {
    .cvd-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .cvd-text-content {
        order: 1;
    }

    .cvd-image-column {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .facility-display-grid {
        grid-template-columns: 1fr;
    }

    .card-hero-large {
        min-height: 380px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .mfg-cvd-section {
        padding: 70px 0;
    }

    .facility-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .card-landscape-small {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cvd-interactive-frame {
        border-radius: 16px;
    }

    /* Shrink tooltip typography layout slightly on small views to prevent screen cropping */
    .hotspot-tooltip-pill {
        padding: 4px 10px;
        font-size: 10px;
    }

    .facility-card-label {
        bottom: 20px;
        left: 20px;
    }
    
    .card-hero-large {
        height: 300px;
        min-height: 300px;
    }
}