/* ===== HERO TECH VERSION ===== */

.hero-tech {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding-top: 30px;
    padding-bottom: 200px;
}

.hero-tech::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.15) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: 0.15;
}

@media (min-width: 1024px) {
    .hero-tech .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
    }
}

.hero-badge {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    background: rgba(227,30,36,0.06);
    border: 1px solid rgba(227,30,36,0.2);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-6);
    color: var(--primary);
}


.hero-tech .hero-subtitle {
    font-size: 26px;
    font-weight: 400;
    color: #475569; /* correct muted slate */
    margin-top: 10px;
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
}

.hero-tech .hero-subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1.5px;
    background: var(--primary);
}

.hero-actions {
    margin-top: var(--space-10);
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
}

/* ===== Hero Image ===== */

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    height: auto;
    box-shadow: var(--elev-3);
}

/* Decorative circles */

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(15,23,42,0.15);
}

.circle-large {
    width: 260px;
    height: 260px;
    top: 40px;
    right: 40px;
}

.circle-small {
    width: 160px;
    height: 160px;
    bottom: 40px;
    left: 40px;
    border-color: rgba(227,30,36,0.2);
}

.hero-tech .hero-content {
    text-align: left;
    max-width: 640px;
}


.hero-tech .hero-grid {
    display: grid;
    gap: var(--space-16);
}

.hero-tech h1 {
    font-size: clamp(48px, 4vw, 80px);
    line-height: 0.98;
    letter-spacing: -0.5px;
    color: #0F172A;
    font-weight: 600;
    margin: 0 0 18px 0;
}

.hero-tech p {
    max-width: 60ch;
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    margin-top: 24px;
    margin-left: 0;
}


.hero-tech .btn-primary {
    background: #111111;
    border: 1px solid var(--primary);
    color: white;
    
    
}

.hero-tech .btn-primary:hover {
    background: var(--primary);
}

.hero-tech .btn-outline {
    border: 1px solid #1f2937;
    color: #1e293b;
}

.hero-tech .hero-media img {
    max-width: 95%;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.05);
}

@media (min-width: 1024px) {
    .hero-tech .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

@media (max-width: 1600px) {

    .hero-tech {
        padding-top: 70px;
        padding-bottom: 180px;
    }

    .hero-tech h1 {
        font-size: 64px;
    }

    .hero-tech .hero-media img {
        max-width: 520px;
    }
}

/* ===== INTEGRATED FORGING ===== */
/* ============================= */
/*  INTEGRATION SECTION (DARK)  */
/* ============================= */

.integration-section .container {
    max-width: 1600px;
}
.integration-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 1800px;
    background: var(--bg-darker);
    color: var(--text-on-dark);
    padding: var(--space-40) 0;
    position: relative;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.integration-section::after {
    display: none;
}
/* ============================= */
/*  HEADER                       */
/* ============================= */

.integration-section .section-header {
    text-align: left;
    margin-bottom: var(--space-20);
}

.integration-section h2 {
    font-size: var(--text-2xl);
    /* font-size: clamp(42px, 3vw, 56px); */
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--text-on-dark);
    text-align: left;
    margin-bottom: var(--space-12);
}

.integration-section .section-subtitle p {
    color: var(--text-muted-dark);
    max-width: 760px;
    margin: 0 0 var(--space-16) 0;
    font-size: var(--text-md);
    text-align: left;
    line-height: 1.75;
}


/* ============================= */
/*  FORGE HEADER                 */
/* ============================= */

.forge-header {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-16);
    align-items: start;
    margin-bottom: var(--space-20);
    padding-bottom: var(--space-20);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.forge-header-left h2 {
    font-size: clamp(36px, 3.5vw, 56px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.0;
    color: var(--text-on-dark-strong);
    margin-top: var(--space-4);
    margin-bottom: 0;
    width: fit-content;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.forge-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.forge-kpi-value {
    display: block;
    font-size: clamp(28px, 2.5vw, 40px);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.forge-kpi-label {
    display: block;
    font-size: var(--text-xs);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted-dark);
    line-height: 1.4;
}

.forge-header-desc {
    font-size: var(--text-md);
    color: var(--text-muted-dark);
    line-height: 1.75;
    margin: 0;
}

/* ============================= */
/*  FORGE PROCESS FLOW           */
/* ============================= */

.forge-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.forge-step {
    background: rgba(255,255,255,0.018);
    border: 1px solid rgba(255,255,255,0.06);
    border-top: 2px solid transparent;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    transition: border-top-color 0.25s ease-out, background 0.25s ease-out, transform 0.2s ease-out;
}

.forge-step:hover {
    border-top-color: var(--primary);
    background: rgba(255,255,255,0.025);
    transform: translateY(-4px);
}

.forge-step:active {
    transform: translateY(-1px);
}

.forge-step-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.forge-step-num {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.22;
    line-height: 1;
    letter-spacing: -3px;
}

.forge-step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.forge-step-icon .material-symbols-outlined {
    font-size: 20px;
    color: rgba(255,255,255,0.55);
}

.forge-step h3 {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    margin-bottom: var(--space-3);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.forge-step p {
    font-size: var(--text-sm);
    color: var(--text-muted-dark);
    line-height: 1.7;
    flex: 1;
    margin-bottom: var(--space-5);
}

.forge-step-spec {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.forge-step-spec span {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    padding: 3px var(--space-3);
    border: 1px solid rgba(255,255,255,0.12);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.forge-step:hover .forge-step-spec span {
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.20);
}

/* ============================= */
/*  FORGE MATERIALS STRIP        */
/* ============================= */

.forge-materials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-10);
    padding: var(--space-12) 0;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    margin-bottom: var(--space-20);
}

.forge-materials-heading {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 680px;
}

.forge-materials-heading::before {
    content: "Raw Materials";
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
}

.forge-materials-label {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-on-dark-strong);
    line-height: 1.15;
}

.forge-materials-desc {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.1px;
    line-height: 1.7;
    max-width: 560px;
}

.forge-materials-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    width: 100%;
}

.forge-materials-tags span {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--text-sm);
    font-weight: 400;
    color: rgba(255,255,255,0.90);
    padding: var(--space-2) var(--space-5);
    border: 1px solid rgba(255,255,255,0.18);
    letter-spacing: 0.2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.forge-materials-tags span:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.40);
}

/* ============================= */
/*  FORGE CAPABILITIES           */
/* ============================= */

.forge-capabilities {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
    padding-top: var(--space-20);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.forge-cap-intro h3 {
    font-size: clamp(28px, 2.5vw, 40px);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    letter-spacing: -0.8px;
    line-height: 1.05;
    margin-bottom: var(--space-6);
    margin-top: var(--space-3);
}

.forge-cap-intro p {
    font-size: var(--text-md);
    color: var(--text-muted-dark);
    line-height: 1.8;
    margin: 0;
}

.forge-cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.forge-cap-card {
    background: rgba(255,255,255,0.018);
    border: 1px solid rgba(255,255,255,0.06);
    border-top: 2px solid transparent;
    padding: var(--space-8);
    transition: border-top-color 0.25s ease-out, background 0.25s ease-out, transform 0.2s ease-out;
}

.forge-cap-card:hover {
    border-top-color: var(--primary);
    background: rgba(227,30,36,0.025);
    transform: translateY(-3px);
}

.forge-cap-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227,30,36,0.07);
    border: 1px solid rgba(227,30,36,0.15);
    margin-bottom: var(--space-5);
}

.forge-cap-card-icon .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
}

.forge-cap-title {
    display: block;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    margin-bottom: var(--space-2);
    letter-spacing: -0.2px;
}

.forge-cap-sub {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted-dark);
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* ============================= */
/*  SECTION LABEL (shared)       */
/* ============================= */

.section-label {
    display: block;
    color: var(--primary);
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

/* ============================= */
/*  FORGE RESPONSIVE             */
/* ============================= */

@media (max-width: 1024px) {
    .forge-header,
    .forge-capabilities {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    .forge-process {
        grid-template-columns: repeat(2, 1fr);
    }
    .forge-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .forge-process {
        grid-template-columns: 1fr;
    }
    .forge-cap-grid {
        grid-template-columns: 1fr;
    }
    .forge-kpis {
        gap: var(--space-4);
    }
    .forge-step-num {
        font-size: 40px;
    }
}

/* ============================= */
/* MACHINING SECTION */
/* ============================= */
/* ========================================= */
/* MACHINING SECTION */
/* ========================================= */

.machining-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 1000px;
    background: var(--bg-light);
    padding: 120px 0;
}

.machining-section .container {
    max-width: 1160px;
    margin: 0 auto;
}

.machining-title { margin-bottom: var(--space-5); }
.machining-intro { margin-bottom: var(--space-8); }
.machining-cta { margin-bottom: var(--space-10); }
/* ========================================= */
/* LABEL */
/* ========================================= */

.section-label-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
}

.section-line {
    width: 70px;
    height: 2px;
    background: var(--primary);
}

.section-tag {
    font-size: var(--text-xs);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
}
/* ===================================================== */
/* GRID */
/* ===================================================== */

.machining-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 90px;
    align-items: center;
}

/* ===================================================== */
/* TITLE */
/* ===================================================== */

.machining-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -1.4px;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.machining-title span {
    color: var(--primary);
    font-size: var(--text-xl);
}

/* ===================================================== */
/* INTRO — KEEP VERTICAL LINE */
/* ===================================================== */

.machining-intro {
    font-size: var(--text-md);
    line-height: 1.7;
    color: var(--text-light);
    padding-left: 22px;
    border-left: 3px solid var(--primary);
    margin-bottom: 44px;
    max-width: 500px;
}

/* ===================================================== */
/* BUTTONS */
/* ===================================================== */

.machining-cta {
    display: flex;
    gap: 22px;
    margin-bottom: 56px;
}

.machining-cta .btn-primary {
    padding: 15px 32px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 22px rgba(227,30,36,0.22);
}

.machining-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(227,30,36,0.32);
}

.machining-cta .btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 12px rgba(227,30,36,0.18);
}

.btn-outline {
    background: var(--bg-light-grey);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    padding: 15px 32px;
    border-radius: 3px;
    font-weight: 600;
    transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, transform 0.18s ease-out, box-shadow 0.2s ease-out;
}

.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: var(--elev-2);
    color: var(--text-muted-dark);
}

.btn-outline:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* ===================================================== */
/* FEATURE CARDS */
/* ===================================================== */

.machining-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-card {
    background: #ffffff;
    padding: 26px;
    border-radius: 6px;             /* tighter */
    border: 1px solid var(--border-light);
    box-shadow: var(--elev-1);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    position: relative;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--elev-3);
}

.feature-card:active {
    transform: translateY(-2px);
    box-shadow: var(--elev-2);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 0;
    background: rgba(227,30,36,0.08);
    border: 1px solid rgba(227,30,36,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 20px;
}

.feature-card h4 {
    font-size: var(--text-md);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

/* ===================================================== */
/* IMAGE SIDE — STRONGER DOMINANCE */
/* ===================================================== */

.machining-visual {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.machining-visual img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 6px;          /* reduced softness */
    box-shadow: var(--elev-4);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.machining-visual:hover img {
    transform: scale(1.04);
}

/* Badge — structured, not playful */

.tolerance-badge {
    position: absolute;
    bottom: 28px;
    left: 28px;
    background: #ffffff;
    padding: 18px 24px;
    border-radius: 0;
    border: 1px solid rgba(227,30,36,0.45);
    box-shadow: var(--elev-2);
}

.badge-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.badge-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ===================================================== */
/* STANDARDS — WITH CIRCULAR TICKS */
/* ===================================================== */

.machining-standards {
    margin-top: 90px;
    padding-top: 36px;
    border-top: 1px solid var(--border-light);
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: var(--space-6);
}

.standards-grid span,
.standards-grid div {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.standards-grid span::before,
.standards-grid div::before {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 0;
    background: var(--primary);
    flex-shrink: 0;
}

.standards-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.standards-item .tick {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
}

/* ===================================================== */
/* PRODUCTION CONTROL — DARK PANEL                       */
/* ===================================================== */

.control-architecture {
    margin-top: 70px;
    background: var(--bg-darker);
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    overflow: hidden;
}

.control-tag {
    display: inline-block;
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-5);
}

.control-left {
    padding: 52px 56px;
}

.control-architecture h3 {
    font-size: clamp(22px, 2vw, 34px);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-5);
}

.control-architecture p {
    font-size: var(--text-sm);
    color: var(--text-muted-dark);
    line-height: 1.8;
    margin-bottom: var(--space-8);
    max-width: 380px;
}

.control-cert {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(227,30,36,0.08);
    border: 1px solid rgba(227,30,36,0.22);
    padding: 9px 18px;
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.control-cert .material-symbols-outlined {
    font-size: 15px;
}

.control-divider {
    background: rgba(255,255,255,0.06);
    width: 1px;
}

.control-right {
    padding: 36px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.control-spec-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.control-spec-item:last-child {
    border-bottom: none;
}

.control-spec-icon {
    width: 38px;
    height: 38px;
    background: rgba(227,30,36,0.07);
    border: 1px solid rgba(227,30,36,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.control-spec-icon .material-symbols-outlined {
    font-size: 17px;
}

.control-spec-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: var(--space-4);
}

.control-spec-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.1px;
}

.control-spec-status {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--status-active);
    background: color-mix(in oklch, var(--status-active) 10%, transparent);
    border: 1px solid color-mix(in oklch, var(--status-active) 25%, transparent);
    padding: 3px 10px;
    flex-shrink: 0;
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */

@media (max-width: 1024px) {
    .machining-grid {
        grid-template-columns: 1fr;
    }

    .machining-features {
        grid-template-columns: 1fr;
    }

    .standards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .control-architecture {
        grid-template-columns: 1fr;
    }

    .control-divider {
        display: none;
    }

    .control-left,
    .control-right {
        padding: 40px 32px;
    }

    .machining-visual img {
        height: 520px;
    }
}

/* Fix: btn-outline hover text color on light hero background */
.hero-tech .btn-outline:hover {
    background: var(--bg-section-light);
    color: var(--primary-deep);
}

/* Fix: machining CTA anchor display */
.machining-cta a {
    text-decoration: none;
    display: inline-block;
}

.integration-section .section-subtitle {
    color: var(--text-muted-dark);
    max-width: none;
    margin: 0;
    font-size: var(--text-md);
    text-align: left;
    line-height: 1.75;
}

/* ===================================================== */
/* SECTION HEADER SPLIT — 2-col editorial layout         */
/* ===================================================== */

.section-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
    margin-bottom: var(--space-20);
}

.section-header-left h2 {
    font-size: clamp(28px, 2.8vw, 44px);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0;
}

.section-header-right {
    padding-top: 6px;
}

/* ===================================================== */
/* SECTION HEADER STACKED — single-column full-width     */
/* ===================================================== */

.section-header-stacked {
    width: 100%;
    margin-bottom: var(--space-20);
}

.section-header-stacked h2 {
    font-size: clamp(28px, 2.8vw, 44px);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0 0 var(--space-8) 0;
}

.section-header-stacked .section-subtitle {
    width: 100%;
    max-width: 100%;
    font-size: var(--text-base);
    color: var(--text-muted-dark);
    line-height: 1.8;
    margin: 0;
}

/* Strength block split */
.strength-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
    margin-bottom: var(--space-12);
}

.strength-header-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.strength-header-right {
    padding-top: 4px;
}

.strength-description,
.strength-description p {
    color: var(--text-muted-dark);
    font-size: var(--text-base);
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 1024px) {
    .section-header-split,
    .strength-header-split {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ============================= */
/* STATS BAR / CREDIBILITY BAND  */
/* ============================= */

.stats-bar {
    background: var(--bg-darker);
    padding: 0;
    height: 240px;
    position: relative;
    overflow: hidden;
}

/* Top + bottom vignette — words fade in from bottom, dissolve at top */
.stats-bar::before,
.stats-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 2;
    pointer-events: none;
}
.stats-bar::before {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-darker), transparent);
}
.stats-bar::after {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-darker), transparent);
}

/* ─── ANTIGRAVITY STAGE ──────────────────────────── */

.ag-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.ag-word {
    position: absolute;
    bottom: -32px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    letter-spacing: 0.4px;
    white-space: nowrap;
    pointer-events: none;
    animation: ag-rise linear forwards;
}

@keyframes ag-rise {
    0%   { opacity: 0;   transform: translateY(0)       translateX(0); }
    10%  { opacity: 1; }
    80%  { opacity: 0.85; }
    100% { opacity: 0;   transform: translateY(-300px)  translateX(var(--ag-drift, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    .ag-stage { display: none; }
}

.stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    text-align: center;
}

.stats-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--space-8);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stats-bar-item:last-child {
    border-right: none;
}

.stats-bar-value {
    font-size: clamp(28px, 2.5vw, 42px);
    font-weight: 900;
    color: white;
    line-height: 1;
    letter-spacing: -1px;
    display: block;
    margin-bottom: 0;
}

.stats-bar-value::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary);
    margin: 14px auto 0;
}

.stats-bar-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: 14px;
    line-height: 1.4;
}

.stats-bar-markets {
    text-align: center;
    padding: 36px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 48px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.stats-bar-markets span {
    color: rgba(255,255,255,0.7);
    letter-spacing: 1.5px;
}

@media (max-width: 1080px) {
    .stats-bar-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8) 0;
    }

    .stats-bar-item:nth-child(3) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .stats-bar {
        height: 180px;
    }

    .stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar-item {
        border-right: 1px solid rgba(255,255,255,0.08);
        padding: var(--space-5) var(--space-4);
    }

    .stats-bar-item:nth-child(2n) {
        border-right: none;
    }

    .stats-bar-item:nth-child(3) {
        border-right: 1px solid rgba(255,255,255,0.08);
    }
}

/* ============================= */
/* PRODUCT LINES — CARD GRID     */
/* ============================= */

.products-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
    background: var(--bg-section-light);
    padding: 120px 0;
}

.products-section .section-header {
    margin-bottom: var(--space-16);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* Card base */
.product-card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    border-top-width: 3px;
    border-top-color: var(--primary);
    padding: var(--space-10);
    box-shadow: var(--elev-1);
    transition:
        border-color 0.25s ease-out,
        box-shadow 0.25s ease-out,
        transform 0.2s ease-out;
}

/* Ghost product number — stamped into card like a part designation */
.product-card-num {
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 108px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    opacity: 0.055;
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
    transition: opacity 0.3s ease-out;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--elev-3);
    transform: translateY(-4px);
}

.product-card:hover .product-card-num {
    opacity: 0.1;
}

.product-card:active {
    transform: translateY(-1px);
    box-shadow: var(--elev-2);
}

/* Card header: category label */
.product-card-head {
    margin-bottom: var(--space-4);
}

.product-card-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.7;
}

.product-card h3 {
    font-size: clamp(19px, 1.6vw, 24px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.18;
    margin-bottom: var(--space-6);
}

.product-card-divider {
    height: 1px;
    background: var(--border-light);
    margin-bottom: var(--space-6);
}

/* Specs */
.product-spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.product-spec-col + .product-spec-col {
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-6);
    margin-top: var(--space-6);
}

.product-spec-col h5 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0.4;
    margin-bottom: var(--space-3);
}

.product-spec-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.product-spec-col ul li {
    font-size: var(--text-sm);
    color: var(--text-light);
    padding-left: var(--space-5);
    position: relative;
    margin-bottom: 0;
    line-height: 1.5;
}

.product-spec-col ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 1px;
    background: var(--primary);
    opacity: 0.4;
}


/* ============================= */
/* INFRASTRUCTURE / MACHINE PARK */
/* Globe carousel variant        */
/* ============================= */

.infra-section {
    background: var(--bg-dark);
    padding: var(--space-20) 0 0;
    overflow: hidden;
}

.infra-globe-header {
    margin-bottom: var(--space-12);
}

.infra-globe-header .section-tag {
    color: var(--text-muted-dark);
}

.infra-section h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    letter-spacing: -0.5px;
    margin-bottom: var(--space-3);
}

.infra-section .section-intro {
    color: var(--text-muted-dark);
}

/* Globe wrapper — full width, height scales with viewport so it
   looks equally impressive at FHD, 1440p and 2K */
.infra-globe-wrap {
    position: relative;
    width: 100%;
    height: clamp(380px, 40vw, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WebGL canvas fills the wrapper */
.im-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    outline: none;
}
.im-canvas:active { cursor: grabbing; }

/* Left title overlay */
.im-title {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    letter-spacing: -0.5px;
    line-height: 1.2;
    max-width: 220px;
    pointer-events: none;
    user-select: none;
    z-index: 10;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Right description overlay */
.im-desc {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: var(--text-sm);
    color: var(--text-muted-dark);
    line-height: 1.7;
    max-width: 180px;
    text-align: right;
    pointer-events: none;
    user-select: none;
    z-index: 10;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Active / inactive states */
.im-active   { opacity: 1; }
.im-inactive { opacity: 0; }

/* Fade out the section into the next dark section */
.infra-globe-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
}

/* Legacy infra table — hidden (replaced by globe) */
.infra-table-wrap,
.infra-table,
.infra-footer { display: none; }

.infra-section .section-intro {
    font-size: var(--text-base);
}

.infra-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.infra-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.infra-table thead th {
    padding: 14px 20px;
    background: var(--bg-section-light);
    font-size: var(--text-xs);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-light);
    text-align: left;
    white-space: nowrap;
}

.infra-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}

.infra-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.infra-table tbody td.mono {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.infra-table tbody td.qty {
    font-weight: 700;
    color: var(--primary);
    font-size: var(--text-md);
    text-align: right;
}

.infra-table tbody tr:last-child td {
    border-bottom: none;
}

.infra-table tbody tr:nth-child(even) {
    background: rgba(15,23,42,0.025);
}

.infra-table tbody tr:hover {
    background: rgba(227,30,36,0.025);
}

.infra-footer {
    margin-top: var(--space-8);
    display: flex;
    justify-content: flex-end;
}

.infra-footer a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.infra-footer a:hover {
    color: var(--primary-deep);
}

/* ============================= */
/* INDUSTRIES SERVED             */
/* ============================= */

.industries-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
    background: var(--bg-dark);
    padding: 160px 0;
}

/* — Split editorial header — */
.ind-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: var(--space-16);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ind-header-left .label {
    display: block;
    margin-bottom: var(--space-5);
}

.ind-header-left h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.0;
    color: var(--text-on-dark-strong);
}

.ind-header-right p {
    font-size: var(--text-base);
    color: rgba(255,255,255,0.42);
    line-height: 1.8;
    max-width: 480px;
}

/* — Horizontal editorial rows — */
.ind-rows {
    display: flex;
    flex-direction: column;
}

.ind-row {
    display: grid;
    grid-template-columns: 96px 1fr 1.1fr;
    gap: var(--space-12);
    align-items: center;
    padding: var(--space-12) 0 var(--space-12) var(--space-8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    transition: background 0.35s ease, border-bottom-color 0.35s ease;
}

/* Red left-edge accent — reveals on hover via scaleY */
.ind-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ind-row:hover {
    background: rgba(255,255,255,0.025);
    border-bottom-color: rgba(255,255,255,0.14);
}

.ind-row:hover::before {
    transform: scaleY(1);
}

/* Ghost display-scale number */
.ind-num {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary);
    opacity: 0.10;
    line-height: 1;
    letter-spacing: -2px;
    transition: opacity 0.35s ease;
}

.ind-row:hover .ind-num {
    opacity: 0.28;
}

/* Sector name — display scale for editorial weight */
.ind-body h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--text-on-dark-strong);
    line-height: 1.05;
    margin-bottom: var(--space-3);
    transition: color 0.2s ease;
}

.ind-row:hover .ind-body h3 {
    color: #fff;
}

.ind-tag {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.3px;
}

.ind-desc {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.48);
    line-height: 1.8;
    transition: color 0.25s ease;
}

.ind-row:hover .ind-desc {
    color: rgba(255,255,255,0.68);
}

/* — Quality credential note — */
.ind-quality-note {
    margin-top: var(--space-16);
    margin-bottom: 0;
    text-align: center;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-on-dark-strong);
    letter-spacing: 0.6px;
    line-height: 1.6;
}

.ind-quality-note::before {
    content: '— ';
    color: var(--primary);
    font-weight: 400;
}

.ind-quality-note::after {
    content: ' —';
    color: var(--primary);
    font-weight: 400;
}

/* — CTA — */
.industries-cta {
    margin-top: var(--space-16);
    text-align: center;
}

@media (max-width: 640px) {
    .ind-header {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .ind-row {
        grid-template-columns: 1fr;
        padding-left: var(--space-4);
        gap: var(--space-4);
    }

    .ind-num {
        font-size: var(--text-xl);
        opacity: 0.15;
    }

    .ind-desc {
        display: none; /* hide description on mobile — too dense, heading + tag sufficient */
    }
}

/* Magnet button — transform handled by JS, colour by existing .btn transition */
.js-magnet {
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.js-magnet.is-returning {
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
                transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

/* — Responsive — */
@media (max-width: 1023px) {
    .ind-header {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .ind-row {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        gap: var(--space-8);
    }
    .ind-num {
        font-size: var(--text-xl);
    }
    .ind-body h3 {
        font-size: var(--text-xl);
    }
    .ind-desc {
        grid-column: 2 / -1;
    }
}

@media (max-width: 639px) {
    .ind-header-left h2 {
        font-size: var(--text-2xl);
        letter-spacing: -1px;
    }
    .ind-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    .ind-num {
        font-size: var(--text-sm);
    }
    .ind-desc {
        grid-column: 1;
    }
}

/* ============================= */
/* CAPACITY METRICS              */
/* ============================= */

.metrics-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
    background: var(--bg-darker);
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.metrics-section-header {
    text-align: center;
    margin-bottom: var(--space-20);
}

.metrics-eyebrow {
    display: block;
    margin-bottom: var(--space-3);
}

.metrics-section-header h2 {
    color: white;
    font-size: clamp(28px, 2.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    line-height: 1.1;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-left: 1px solid rgba(255,255,255,0.06);
}

.metric-item {
    padding: var(--space-12) var(--space-8);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.metric-value {
    font-size: clamp(48px, 5vw, 80px);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-4);
    letter-spacing: -2px;
    display: block;
}

.metric-label {
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-3);
    display: block;
}

.metric-desc {
    font-size: var(--text-sm);
    color: var(--text-muted-dark);
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .metrics-row {
        grid-template-columns: 1fr;
        border-left: none;
    }

    .metric-item {
        border-right: none;
    }
}

/* ============================= */
/* CTA STRIP — DARK EDITORIAL    */
/* ============================= */

.cta-strip {
    background: var(--bg-darker);
    padding: 110px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Subtle grid texture */
.cta-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

/* Red accent bar top-left */
.cta-strip-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--primary);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-5);
}

.cta-strip h2 {
    font-size: clamp(30px, 3.2vw, 52px);
    font-weight: 800;
    color: white;
    line-height: 1.0;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.cta-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.cta-right p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    line-height: 1.85;
    margin: 0;
}

.cta-commitments {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cta-commit {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.72);
    font-weight: 500;
}

.cta-commit .material-symbols-outlined {
    font-size: 17px;
    color: var(--primary);
    flex-shrink: 0;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--primary);
    color: white;
    padding: 18px 36px;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease-out;
    align-self: flex-start;
}

.btn-cta-primary:hover {
    background: var(--primary-deep);
}

.btn-cta-primary:active {
    transform: scale(0.97);
}

.btn-cta-primary .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.25s ease-out;
}

/* arrow nudge removed — conflicts with magnet JS transform */

/* ============================= */
/* RESPONSIVE — NEW SECTIONS     */
/* ============================= */

@media (max-width: 768px) {
    .products-section {
        padding: 80px 0;
    }

    .infra-section {
        padding: 80px 0;
    }

    .industries-section {
        padding: 80px 0;
    }

    .metrics-section {
        padding: 80px 0;
    }

    .cta-strip {
        padding: 72px 0;
    }

    .cta-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-strip h2 {
        font-size: clamp(28px, 7vw, 40px);
    }
}

/* ============================= */
/* MOBILE NAVIGATION             */
/* ============================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Nav CTA — white with red border and text */
.nav-cta.btn.btn-primary {
    background: white;
    color: var(--primary);
    border-radius: 4px;
    padding: 10px 26px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1.5px solid var(--primary);
    box-shadow: none;
    cursor: pointer;
    transition:
        background 0.18s ease-out,
        color 0.18s ease-out,
        transform 0.15s ease-out;
}

.nav-cta.btn.btn-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.nav-cta.btn.btn-primary:active {
    background: var(--primary-deep);
    color: white;
    transform: translateY(0) scale(0.97);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 6px;
    width: 36px;
    height: 36px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-6) var(--space-6) var(--space-8);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 8px 24px rgba(15,23,42,0.08);
        z-index: 997;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--border-light);
        font-size: var(--text-sm);
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    /* Mobile hero improvements */
    .hero-tech {
        min-height: auto;
        padding-top: var(--space-16);
        padding-bottom: var(--space-20);
    }

    .hero-tech h1 {
        font-size: clamp(36px, 10vw, 52px);
        letter-spacing: -0.5px;
    }

    .hero-tech .hero-subtitle {
        font-size: 18px;
    }

    .hero-tech p {
        font-size: 16px;
    }

    .hero-tech .hero-grid {
        gap: var(--space-12);
    }

    .hero-media img {
        max-height: 260px;
        object-fit: cover;
    }

    .hero-circle {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================= */
/* 2.5K / LARGE DISPLAYS         */
/* ============================= */

@media (min-width: 2200px) {
    .container {
        max-width: 1920px;
    }

    .hero-tech .container {
        max-width: 1920px;
    }

    .section {
        padding: 180px 0;
    }

    .products-section,
    .industries-section {
        padding: 160px 0;
    }

    .infra-section,
    .metrics-section {
        padding: 140px 0;
    }

    .hero-tech {
        padding-bottom: 240px;
    }

    /* Larger hero typography */
    .hero-tech h1 {
        font-size: clamp(72px, 5.5vw, 100px);
    }

    .hero-tech .hero-subtitle {
        font-size: 32px;
    }

    /* Larger machine image on 2.5K */
    .machining-visual img {
        height: 700px;
    }

    /* Wider products/industries grids */
    .products-grid {
        gap: var(--space-12);
    }


    /* Metric values scale up */
    .metric-value {
        font-size: clamp(80px, 5vw, 110px);
    }
}

/* ============================= */
/* TABLET RESPONSIVE — 640-1023px */
/* Prevents 3→1 col jumps        */
/* ============================= */

@media (min-width: 640px) and (max-width: 1023px) {

    /* Product cards: 2-col grid at tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }


    /* Machining section stacks cleanly */
    .machining-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    /* Forge process: 2-col at tablet */
    .forge-process {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Forge capabilities: stack at tablet */
    .forge-capabilities {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    /* Forge header: stack at tablet */
    .forge-header {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .forge-cap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .machining-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================= */
/* MOBILE — ≤639px               */
/* ============================= */

@media (max-width: 639px) {

    /* Forge process: single col on mobile */
    .forge-process {
        grid-template-columns: 1fr;
    }

    /* Forge step num: smaller on mobile */
    .forge-step-num {
        font-size: 36px;
    }

    /* Forge capabilities: stack on mobile */
    .forge-capabilities {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .forge-cap-grid {
        grid-template-columns: 1fr;
    }

    /* Forge header: stack on mobile */
    .forge-header {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    /* Products: single col, full width */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }


    /* Section header split: stack */
    .section-header-split {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* CTA grid: stack */
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Metric grid: stack */
    .metrics-row {
        grid-template-columns: 1fr;
        border-left: none;
    }

    .metric-item {
        border-right: none;
    }

    /* Control panel: stack */
    .control-architecture {
        grid-template-columns: 1fr;
    }

    .control-divider {
        display: none;
    }

    .control-left,
    .control-right {
        padding: 36px 24px;
    }

    /* Section padding reduction */
    .machining-section {
        padding: 72px 0;
    }

    .integration-section {
        padding: 72px 0;
    }

    .cta-strip {
        padding: 72px 0;
    }

    .products-section {
        padding: 72px 0;
    }
}

/* ============================= */
/* 2.5K DISPLAYS — 2560px+       */
/* ============================= */

@media (min-width: 2560px) {
    .container {
        max-width: 2100px;
    }

    .hero-tech .container,
    .integration-section .container {
        max-width: 2100px;
    }

    .hero-tech h1 {
        font-size: clamp(88px, 5vw, 120px);
    }

    .hero-tech .hero-subtitle {
        font-size: 36px;
    }

    .hero-tech p {
        font-size: 22px;
    }

    .machining-section,
    .products-section,
    .industries-section {
        padding: 180px 0;
    }

    .infra-section,
    .metrics-section {
        padding: 160px 0;
    }

    .integration-section {
        padding: 200px 0;
    }

    .cta-strip {
        padding: 160px 0;
    }

    /* Scale up key component typography */
    .stats-bar-value {
        font-size: clamp(42px, 3vw, 64px);
    }

    .metric-value {
        font-size: clamp(90px, 5.5vw, 130px);
    }

    .machining-visual img {
        height: 800px;
    }

    /* Forge step numbers scale up */
    .forge-step-num {
        font-size: 72px;
    }

    .forge-step-icon {
        width: 52px;
        height: 52px;
    }

    .forge-step-icon .material-symbols-outlined {
        font-size: 26px;
    }

    .forge-kpi-value {
        font-size: clamp(42px, 3vw, 56px);
    }

    .cta-strip h2 {
        font-size: clamp(52px, 3.5vw, 72px);
    }
}

/* ============================= */
/* 4K DISPLAYS — 3840px+         */
/* ============================= */

@media (min-width: 3840px) {
    .container {
        max-width: 2800px;
    }

    .hero-tech .container,
    .integration-section .container {
        max-width: 2800px;
    }

    .hero-tech h1 {
        font-size: clamp(110px, 4vw, 160px);
    }

    .hero-tech .hero-subtitle {
        font-size: 48px;
    }

    .hero-tech p {
        font-size: 28px;
        max-width: 800px;
    }

    .machining-section,
    .products-section,
    .industries-section,
    .integration-section {
        padding: 240px 0;
    }

    .cta-strip {
        padding: 200px 0;
    }

    .infra-section,
    .metrics-section {
        padding: 200px 0;
    }

    .stats-bar {
        height: 300px;
    }

    .stats-bar-value {
        font-size: clamp(56px, 3vw, 80px);
    }

    .stats-bar-label {
        font-size: 14px;
    }

    .metric-value {
        font-size: clamp(100px, 5vw, 160px);
    }

    /* 4K forge step scaling */
    .forge-step-num {
        font-size: 88px;
    }

    .forge-step-icon {
        width: 64px;
        height: 64px;
    }

    .forge-step-icon .material-symbols-outlined {
        font-size: 32px;
    }

    .forge-kpi-value {
        font-size: clamp(52px, 3.5vw, 72px);
    }

    .forge-cap-card-icon {
        width: 48px;
        height: 48px;
    }

    .forge-cap-card-icon .material-symbols-outlined {
        font-size: 24px;
    }

    .infra-table {
        font-size: var(--text-base);
    }

    .infra-table thead th {
        font-size: var(--text-sm);
        padding: 20px 28px;
    }

    .infra-table tbody td {
        padding: 22px 28px;
    }

    .cta-strip h2 {
        font-size: clamp(64px, 3.5vw, 100px);
    }

    .btn-cta-primary {
        padding: 24px 48px;
        font-size: var(--text-md);
    }
}

/* ============================================================ */
/* FORGING DETAIL PAGE  (integrated_forging_detail_page.php)    */
/* ============================================================ */

/* ─── HERO ──────────────────────────────────────────────────── */

.fd-hero {
    background:
        linear-gradient(rgba(14,7,7,0.72), rgba(14,7,7,0.92)),
        url('../images/integrated_forging.png') center / cover no-repeat;
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle red grid overlay */
.fd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(227,30,36,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227,30,36,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Right-edge red radial glow */
.fd-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    background: radial-gradient(ellipse at 100% 50%, rgba(227,30,36,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.fd-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: var(--space-32) 0 var(--space-20);
}

.fd-hero-label {
    display: block;
    margin-bottom: var(--space-6);
}

.fd-hero h1 {
    font-size: clamp(40px, 5.5vw, 76px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.02;
    color: white;
    margin-bottom: var(--space-6);
}

.fd-hero h1 em {
    font-style: normal;
    color: var(--primary);
}

.fd-hero-sub {
    font-size: var(--text-md);
    color: var(--text-on-dark);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: var(--space-10);
}

.fd-hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Ghost button — white outline for dark sections */
.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.22);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    border-color: rgba(255,255,255,0.42);
    transform: translateY(-2px);
}

/* KPI bar locked to bottom of hero */
.fd-kpi-bar {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.42);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fd-kpi-strip {
    display: flex;
    align-items: stretch;
}

.fd-kpi-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-8) var(--space-10);
    flex: 1;
}

.fd-kpi-divider {
    width: 1px;
    background: rgba(255,255,255,0.07);
    align-self: stretch;
    margin: var(--space-4) 0;
}

.fd-kpi-value {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1;
}

.fd-kpi-label {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.40);
}

/* ─── SHARED SECTION H2 ─────────────────────────────────────── */

.fd-section-h2 {
    font-size: clamp(28px, 2.8vw, 44px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: var(--space-5);
    line-height: 1.1;
}

/* ─── PROCESS SECTION ──────────────────────────────────────── */

.fd-process-section {
    background: var(--bg-light);
    padding: var(--space-32) 0;
}

.fd-process-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-4);
}

.fd-process-label .material-symbols-outlined {
    font-size: 14px;
}

.fd-process-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-20);
    align-items: start;
}

.fd-process-lede {
    font-size: var(--text-md);
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: var(--space-10);
}

.fd-process-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.fd-process-card {
    background: white;
    border: 1px solid var(--border-light);
    border-top: 2px solid transparent;
    padding: var(--space-6);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-top-color 0.25s ease;
}

.fd-process-card:hover {
    border-top-color: var(--primary);
    box-shadow: var(--elev-2);
    transform: translateY(-3px);
}

.fd-process-card-icon {
    color: var(--primary);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
}

.fd-process-card-icon .material-symbols-outlined {
    font-size: 26px;
}

.fd-process-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.fd-process-card p {
    font-size: var(--text-xs);
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

/* Image panel — photo with gradient caption overlay */
.fd-image-panel {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border-radius: var(--radius-md);
    box-shadow: var(--elev-3);
    background: var(--bg-dark);
}

.fd-image-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    display: block;
}

.fd-image-panel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.28) 55%, transparent 100%);
    padding: var(--space-12) var(--space-8) var(--space-8);
    z-index: 1;
}

.fd-image-panel-label {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.50);
    margin-bottom: var(--space-2);
    display: block;
}

.fd-image-panel-value {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.2;
    display: block;
}

/* ─── MATERIAL EXPERTISE ───────────────────────────────────── */

.fd-materials-section {
    background: var(--bg-darker);
    padding: var(--space-32) 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.fd-materials-label {
    display: block;
    margin-bottom: var(--space-4);
}

.fd-materials-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--space-12);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: var(--space-10);
    margin-bottom: var(--space-12);
}

.fd-materials-header-left h2 {
    font-size: clamp(32px, 3vw, 52px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-on-dark-strong);
    margin: 0 0 var(--space-4);
    line-height: 1.1;
}

.fd-materials-header-left h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--primary);
    margin-top: var(--space-5);
}

.fd-materials-header-left p {
    color: var(--text-muted-dark);
    font-size: var(--text-sm);
    margin: 0;
    max-width: 480px;
    line-height: 1.75;
}

.fd-materials-link {
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    transition: gap 0.2s ease, color 0.2s ease;
    padding-bottom: var(--space-1);
    border-bottom: 1px solid rgba(227,30,36,0.3);
}

.fd-materials-link:hover {
    gap: var(--space-4);
    color: white;
    border-bottom-color: white;
}

.fd-materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

/* ─── Material Card ─── */
.fd-material-card {
    background: var(--bg-darker);
    padding: var(--space-10);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease;
}

.fd-material-card:hover {
    background: #161616;
}

/* Left accent bar — appears on hover for standard cards */
.fd-material-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fd-material-card:hover::before {
    opacity: 1;
}


/* ─── Card Header ─── */
.fd-material-card-header {
    margin-bottom: var(--space-8);
}

.fd-material-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 2px 8px;
    color: var(--primary);
    border: 1px solid rgba(227,30,36,0.3);
    margin-bottom: var(--space-4);
}

.fd-material-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    letter-spacing: -0.5px;
    margin: 0 0 var(--space-3);
}

.fd-material-card h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--primary);
    margin-top: var(--space-3);
}

.fd-material-desc {
    color: var(--text-muted-dark);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin: 0;
}

/* ─── Spec Rows ─── */
.fd-spec-rows {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.fd-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    gap: var(--space-4);
}

.fd-spec-row:last-child { border-bottom: none; }

.fd-spec-key {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.fd-spec-val {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--text-on-dark-strong);
    text-align: right;
    white-space: nowrap;
}

/* ─── Tags ─── */
.fd-material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-6);
    margin-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.fd-material-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted-dark);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 4px 10px;
}

/* ─── MACHINING ADVANTAGE ──────────────────────────────────── */

.fd-machining-section {
    background: white;
    padding: var(--space-32) 0;
}

.fd-machining-label {
    display: block;
    margin-bottom: var(--space-4);
}

.fd-machining-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: start;
}

.fd-machining-lede {
    font-size: var(--text-base);
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-10);
    max-width: 52ch;
}

/* ─── Numbered benefit list ─── */
.fd-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.fd-benefit-item {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border-light);
}

.fd-benefit-item:last-child {
    border-bottom: 1px solid var(--border-light);
}

.fd-benefit-num {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    min-width: 24px;
    padding-top: 3px;
    flex-shrink: 0;
}

.fd-benefit-item h4 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--space-1);
    letter-spacing: -0.2px;
}

.fd-benefit-item p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin: 0;
    line-height: 1.65;
}

/* ─── Data comparison panel ─── */
.fd-comparison {
    background: var(--bg-darker);
    padding: var(--space-8);
}

.fd-comparison-header {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: var(--space-8);
    align-items: center;
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fd-comparison-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted-dark);
    text-align: right;
}

.fd-comparison-label.highlight {
    color: var(--text-on-dark-strong);
}

/* ─── Data rows ─── */
.fd-data-row {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: var(--space-8);
    align-items: baseline;
    padding: var(--space-5) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.fd-data-row:last-of-type {
    border-bottom: none;
}

.fd-data-metric {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted-dark);
}

.fd-data-from {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.25);
    text-align: right;
    text-decoration: line-through;
    text-decoration-color: rgba(255,255,255,0.1);
}

.fd-data-to {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    text-align: right;
}

.fd-data-delta {
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: right;
    min-width: 44px;
}

.fd-data-delta.positive { color: var(--primary); }
.fd-data-delta.green    { color: #4ade80; }

.fd-comparison-source {
    font-size: 10px;
    color: rgba(255,255,255,0.2);
    margin: var(--space-6) 0 0;
    letter-spacing: 0.3px;
}

/* ─── QC STRIP ─────────────────────────────────────────────── */

.fd-qc-strip {
    background: var(--card-dark);
    border-top: 1px solid var(--border-dark);
    padding: var(--space-12) 0;
}

.fd-qc-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.fd-qc-info h3 {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.fd-qc-info h3 .material-symbols-outlined {
    color: var(--primary);
    font-size: 22px;
}

.fd-qc-info p {
    font-size: var(--text-sm);
    color: var(--text-muted-dark);
    margin: 0;
    max-width: 360px;
    line-height: 1.65;
}

.fd-qc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: flex-end;
}

.fd-qc-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dark);
    padding: var(--space-3) var(--space-5);
    transition: border-color 0.2s ease;
}

.fd-qc-badge:hover { border-color: rgba(255,255,255,0.14); }

.fd-qc-badge .material-symbols-outlined {
    font-size: 20px;
    color: rgba(255,255,255,0.5);
}

.fd-qc-badge-text { display: flex; flex-direction: column; }

.fd-qc-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted-dark);
}

.fd-qc-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-on-dark-strong);
}

/* ─── RESPONSIVE — FORGING DETAIL ──────────────────────────── */

@media (max-width: 1023px) {
    .fd-process-layout   { grid-template-columns: 1fr; }
    .fd-machining-layout { grid-template-columns: 1fr; }
    .fd-materials-grid   { grid-template-columns: 1fr 1fr; }

    .fd-materials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-5);
    }

    .fd-image-panel   { min-height: 340px; }
    .fd-kpi-strip     { flex-wrap: wrap; }
    .fd-kpi-item      { flex: 0 0 calc(50% - 0.5px); }
    .fd-kpi-divider   { display: none; }
}

@media (max-width: 639px) {
    .fd-hero h1        { letter-spacing: -1px; }
    .fd-hero-actions   { flex-direction: column; }
    .fd-process-cards  { grid-template-columns: 1fr; }
    .fd-materials-grid { grid-template-columns: 1fr; }

    .fd-qc-inner  { flex-direction: column; align-items: flex-start; }
    .fd-qc-badges { justify-content: flex-start; }

    .fd-hero-inner { padding-top: var(--space-20); padding-bottom: var(--space-12); }

    .fd-kpi-item    { flex: 0 0 calc(50% - 0.5px); }
    .fd-kpi-value   { font-size: 20px; }
    .fd-kpi-item    { padding: var(--space-5) var(--space-6); }

    .fd-process-section,
    .fd-materials-section,
    .fd-machining-section { padding: 72px 0; }
}


/* ============================================================ */
/* FORGING PAGE — VIDEO REVEAL  (integrated_forging_detail_page.php) */
/* ============================================================ */

/* ─── SCROLL WRAPPER ───────────────────────────────────────── */
.fd-video-wrapper {
    height: 250vh; /* scroll runway — sticky section animates within this */
    position: relative;
    width: 100%;
    /* Prevent wrapper from creating overflow that clips the sticky child */
    overflow: visible;
}

/* ─── STICKY CONTAINER ─────────────────────────────────────── */
.fd-video-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* nav floats on top at z-index 999 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    overflow: hidden;
    margin-left: calc(50% - 50vw);
}

/* ─── VIDEO FRAME ──────────────────────────────────────────── */
/* GSAP animates: scale + border-radius                         */
/* Starts full viewport, shrinks on scroll                      */
.fd-video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform-origin: center center;
    overflow: hidden;
}

.fd-video-frame video {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Ensure video fills frame edge-to-edge regardless of aspect ratio */
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
}

/* ─── TAGLINE — split layout ───────────────────────────────── */
/* Absolute full-width row behind the video (z-index 1)        */
/* "FORGED" anchored left, "IN FIRE." anchored right           */
.fd-video-tagline {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3vw;
    pointer-events: none;
    opacity: 0; /* GSAP fades in */
}

.fd-vt-left,
.fd-vt-right {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(4.5rem, 9.5vw, 11rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-on-dark-strong);
    white-space: nowrap;
}

.fd-vt-right em {
    font-style: normal;
    color: var(--primary);
}

/* ─── VIDEO FRAME Z-INDEX (above tagline) ──────────────────── */
.fd-video-frame {
    z-index: 2;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1023px) {
    .fd-video-wrapper { height: 200vh; }

    .fd-vt-left,
    .fd-vt-right { font-size: clamp(3rem, 8vw, 6rem); }
}

@media (max-width: 639px) {
    .fd-video-wrapper { height: 180vh; }

    .fd-vt-left,
    .fd-vt-right { font-size: clamp(2.2rem, 11vw, 4rem); }
}


/* ============================================================ */
/* GALLERY PAGE  (gallery.php)   prefix: gl-                   */
/* ============================================================ */

/* ─── HERO ────────────────────────────────────────────────────── */

.gl-main {
    /* ensure no top gap under sticky nav */
}

.gl-hero-wrapper {
    position: relative;
    height: 260vh; /* scroll runway */
}

.gl-hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-darker); /* #111111 */
}

/* Photos — GSAP controls ALL transforms; no CSS transform here */
.gl-photo {
    position: absolute;
    width: 340px;
    z-index: 5;
}

.gl-photo img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.gl-photo-left {
    top: 8%;
    left: 10%;
}

.gl-photo-right {
    bottom: 8%;
    right: 10%;
}

/* Hero text — outer centers; inner is what GSAP animates */
.gl-hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.gl-hero-text-inner {
    width: 88%;
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: var(--space-8);
    /* GSAP will animate scale + opacity on this element */
    transform-origin: center center;
}

.gl-hl1,
.gl-hl2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(3.2rem, 8.5vw, 8.8rem);
    letter-spacing: -0.04em;
    line-height: 0.86;
    text-transform: uppercase;
    display: block;
}

.gl-hl1 {
    color: var(--text-on-dark-strong); /* near-white */
    text-align: left;
}

.gl-hl2 {
    color: var(--primary); /* --primary red */
    text-align: right;
}

/* Scroll cue */
.gl-scroll-cue {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.3);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: gl-bounce 2s ease-in-out infinite;
}

.gl-scroll-cue .material-symbols-outlined {
    font-size: 18px;
}

@keyframes gl-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}


/* ─── CHAPTER INDEX ────────────────────────────────────────────── */

.gl-chapters {
    background: var(--bg-darker);
    padding: var(--space-24) 0 var(--space-32);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gl-chapters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-10);
}

.gl-chapter-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-10) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    /* opacity set to 0 by GSAP on init */
}

.gl-chapter-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gl-ch-num {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: var(--text-lg); /* 24px */
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
    transition: opacity 0.3s;
}

/* Two-tone title: main name + offset echo */
.gl-ch-title-wrap {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.gl-ch-name {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    display: block;
    transition: color 0.35s;
}

.gl-ch-echo {
    position: absolute;
    top: 4px;
    left: 5px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
    user-select: none;
}

.gl-chapter-row:hover .gl-ch-name:first-child {
    color: var(--text-on-dark-strong);
}

.gl-chapter-row:hover .gl-ch-echo {
    opacity: 0.22;
}

.gl-ch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.4);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    text-decoration: none;
}

.gl-ch-link .material-symbols-outlined {
    font-size: 20px;
}

.gl-chapter-row:hover .gl-ch-link {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(227, 30, 36, 0.08);
}


/* ─── STATS ────────────────────────────────────────────────────── */

.gl-stats {
    background: #160808; /* deeper dark red than --bg-dark-red */
    padding: var(--space-20) 0;
    border-top: 1px solid rgba(227, 30, 36, 0.12);
    border-bottom: 1px solid rgba(227, 30, 36, 0.12);
}

.gl-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(227, 30, 36, 0.08);
}

.gl-stat {
    background: #160808;
    padding: var(--space-10) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gl-stat-numrow {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    line-height: 1;
}

.gl-stat-val {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.05em;
    line-height: 1;
    display: inline-block;
}

.gl-stat-sfx {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--primary);
    opacity: 0.55;
    letter-spacing: -0.02em;
}

.gl-stat-lbl {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ─── GALLERY SECTIONS ─────────────────────────────────────────── */

.gl-gallery {
    padding: calc(90px + var(--space-6)) 0 var(--space-12);
    position: sticky;
    top: 0;
    transform-origin: center top;
}

.gl-gallery--light {
    background: var(--bg-light);
    z-index: 10;
}

.gl-gallery--dark {
    background: var(--bg-dark);
    z-index: 20;
    /* Shadow at the top creates depth as it slides over the light section */
    box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.45);
}

.gl-gallery--white {
    background: #ffffff;
    z-index: 30;
    box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.20);
}


/* Gallery section header */
.gl-gallery-hd {
    display: flex;
    align-items: flex-end;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.gl-gallery-hd--inv .label {
    color: var(--primary); /* label is already red, stays */
}

.gl-gallery-idx {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--border-light);
}

.gl-gallery-idx--inv {
    color: rgba(255, 255, 255, 0.08);
}

.gl-gallery-h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.1;
}

.gl-gallery-h2--inv {
    color: var(--text-on-dark-strong);
}

.gl-gallery-hd-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}


/* ─── TILT CLASSES (CSS only — GSAP only animates opacity) ─────── */

.gl-frame {
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative; /* needed for img overflow clipping */
}

.gl-frame img {
    width: 100%;
    height: 120%;        /* 20% taller than frame — gives parallax room */
    object-fit: cover;
    display: block;
    will-change: transform; /* GPU-accelerate the GSAP parallax */
}

.gl-frame:hover {
    transform: rotate(0deg) scale(1.03) !important;
    z-index: 10;
}

.gl-frame:hover img {
    /* Hover scale handled by GSAP yPercent — no extra scale needed */
}

.gl-t1 { transform: rotate(-2.5deg); }
.gl-t2 { transform: rotate(3.8deg);  }
.gl-t3 { transform: rotate(-1.2deg); }
.gl-t4 { transform: rotate(4.5deg);  }
.gl-t5 { transform: rotate(-4.8deg); }
.gl-t6 { transform: rotate(2.2deg);  }


/* ─── SCATTER GRID LAYOUTS ─────────────────────────────────────── */

/* 4-photo: P1 tall-left, P2+P3 top-right cols, P4 wide-bottom-right */
.gl-scatter--4 {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: 220px 200px;
    gap: var(--space-5);
}

.gl-scatter--4 .gl-frame:nth-child(1) {
    grid-row: 1 / 3; /* spans both rows */
}

.gl-scatter--4 .gl-frame:nth-child(4) {
    grid-column: 2 / 4; /* wide, spans cols 2-3 */
}

/* Flipped 4-photo: P3 tall-right, P4 wide-bottom-left */
.gl-scatter--flip {
    grid-template-columns: 1fr 1fr 1.25fr;
}

.gl-scatter--flip .gl-frame:nth-child(1) {
    grid-row: 1 / 1; /* reset the tall-left */
}

.gl-scatter--flip .gl-frame:nth-child(3) {
    grid-row: 1 / 3; /* tall right */
    grid-column: 3 / 4;
}

.gl-scatter--flip .gl-frame:nth-child(4) {
    grid-column: 1 / 3; /* wide left-center bottom */
    grid-row: 2 / 3;
}

/* 3-photo: P1 large-left, P2+P3 stacked right */
.gl-scatter--3 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 210px 210px;
    gap: var(--space-5);
}

.gl-scatter--3 .gl-frame:nth-child(1) {
    grid-row: 1 / 3; /* large, full height */
}


/* ─── RESPONSIVE — GALLERY PAGE ────────────────────────────────── */

@media (max-width: 1023px) {

    .gl-hero-text-inner {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .gl-hl2 { text-align: left; }

    .gl-photo {
        width: 260px;
    }

    .gl-photo img {
        height: 360px;
    }

    .gl-chapters-inner {
        padding: 0 var(--space-6);
    }

    .gl-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gl-scatter--4,
    .gl-scatter--3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gl-scatter--4 .gl-frame:nth-child(1),
    .gl-scatter--3 .gl-frame:nth-child(1) {
        grid-row: auto;
    }

    .gl-scatter--4 .gl-frame:nth-child(4) {
        grid-column: auto;
    }

    .gl-scatter--flip .gl-frame:nth-child(3) {
        grid-row: auto;
        grid-column: auto;
    }

    .gl-scatter--flip .gl-frame:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
    }

    .gl-scatter--4 .gl-frame,
    .gl-scatter--3 .gl-frame {
        height: 260px;
    }

    .gl-frame img {
        height: 260px;
    }

    .gl-gallery-idx { font-size: 3.5rem; }

    /* Disable sticky + full-height at tablet */
    .gl-gallery {
        position: relative;
        min-height: unset;
        display: block;
        padding: var(--space-10) 0 var(--space-12);
    }

    .gl-gallery > .gl-scatter--4,
    .gl-gallery > .gl-scatter--3 {
        flex: unset;
        grid-template-rows: 260px 260px;
    }
}

@media (max-width: 639px) {

    .gl-hero-wrapper { height: 220vh; }

    .gl-hl1, .gl-hl2 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .gl-photo { width: 200px; }
    .gl-photo img { height: 280px; }

    .gl-chapter-row {
        grid-template-columns: 64px 1fr auto;
        gap: var(--space-4);
        padding: var(--space-8) 0;
    }

    .gl-ch-name { font-size: clamp(1.4rem, 6vw, 2rem); }

    .gl-stats-grid { grid-template-columns: 1fr 1fr; }

    .gl-scatter--4,
    .gl-scatter--3,
    .gl-scatter--flip {
        grid-template-columns: 1fr;
    }

    .gl-scatter--4 .gl-frame,
    .gl-scatter--3 .gl-frame {
        height: 240px;
    }

    .gl-frame img { height: 240px; }

    /* Disable sticky + full-height on mobile — scroll normally */
    .gl-gallery {
        position: relative;
        min-height: unset;
        display: block;
        padding: var(--space-12) 0 var(--space-16);
    }

    /* Restore fixed heights for scatter grids on mobile */
    .gl-gallery > .gl-scatter--4,
    .gl-gallery > .gl-scatter--3 {
        flex: unset;
        grid-template-rows: 240px 240px;
    }

    .gl-gallery-hd { margin-bottom: var(--space-10); }

    .gl-gallery-idx { display: none; }
}