:root {
    --dm-black: #101214;
    --dm-graphite: #1d2226;
    --dm-ash: #68727d;
    --dm-line: #d9dee2;
    --dm-shop: #f3f4f4;
    --dm-default: #23858A;
    --dm-metal: #9a7a43;
}

.factory-home {
    background: #fff;
    color: var(--dm-black);
}

.factory-home section {
    scroll-margin-top: 116px;
}

.factory-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.factory-label {
    color: var(--dm-default);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.factory-title {
    max-width: 940px;
    margin: .65rem 0 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: uppercase;
}

.factory-copy {
    max-width: 760px;
    margin: 1.1rem 0 0;
    color: var(--dm-ash);
    font-size: 1.05rem;
    line-height: 1.75;
}

.factory-hero {
    position: relative;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--dm-black);
}

.factory-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 12, 14, .9) 0%, rgba(5, 12, 14, .68) 34%, rgba(5, 12, 14, .22) 56%, rgba(5, 12, 14, .08) 100%),
        url("/workshop.jpeg") center right/cover no-repeat;
    transform: scale(1.01);
}

.factory-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(5, 10, 12, .58), transparent 42%),
        radial-gradient(circle at 76% 20%, rgba(255, 255, 255, .18), transparent 22%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 110px);
    mix-blend-mode: normal;
}

.factory-hero-content {
    position: relative;
    z-index: 1;
    width: min(570px, calc(100% - 48px));
    margin-left: max(24px, calc((100vw - 1200px) / 2));
    margin-right: auto;
    padding: 92px 0 76px;
}

.factory-hero h1 {
    max-width: 570px;
    margin: .8rem 0 0;
    font-size: clamp(2.35rem, 5vw, 4.85rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: uppercase;
}

.factory-hero p {
    max-width: 720px;
    margin: 1.35rem 0 0;
    color: #d9dee2;
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.62;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 2rem;
    max-width: 640px;
}

.hero-feature {
    display: grid;
    gap: .55rem;
    color: #eff7f8;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.hero-feature i {
    color: var(--dm-default);
    font-size: 1.8rem;
}

.factory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.factory-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .82rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font-weight: 900;
    text-decoration: none;
}

.factory-btn-red {
    background: var(--dm-default);
    color: #fff;
}

.factory-btn-white {
    background: #fff;
    color: var(--dm-black);
}

.factory-btn-line {
    border-color: rgba(255, 255, 255, .52);
    color: #fff;
}

.trust-strip {
    background: linear-gradient(90deg, #0b1719, #102326);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .14);
}

.trust-item {
    min-height: 118px;
    padding: 1.15rem 1.25rem;
    background: rgba(10, 20, 22, .9);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.trust-item strong {
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    line-height: 1;
    font-weight: 950;
}

.trust-item i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dm-default);
    color: #fff;
    font-size: 1.35rem;
}

.trust-item span {
    color: #bfc7cf;
    font-size: .92rem;
    line-height: 1.35;
}

.factory-section {
    padding: 92px 0;
}

.factory-section-muted {
    background: var(--dm-shop);
}

.who-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 56px;
    align-items: center;
}

.proof-mosaic {
    display: grid;
    grid-template-columns: 1.05fr .75fr;
    gap: 12px;
}

.proof-photo {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    background: var(--dm-graphite);
    color: #fff;
}

.proof-photo.large {
    min-height: 452px;
}

.proof-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 12, 14, .78), rgba(10, 12, 14, .08));
}

.proof-photo span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.proof-photo.photo-a {
    background: url("/workshop.jpeg") center/cover no-repeat;
}

.proof-photo.photo-b {
    background: url("/assembly.jpeg") center/cover no-repeat;
}

.proof-photo.photo-c {
    background: url("/dist/img/produk - Toko speaker profesional untuk berbagai keperluan.png") center/cover no-repeat;
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin-top: 1.8rem;
}

.trust-points span {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    color: var(--dm-black);
    font-weight: 800;
    line-height: 1.35;
}

.trust-points i {
    color: var(--dm-default);
}

.service-rows {
    margin-top: 2.5rem;
    border-top: 1px solid var(--dm-line);
}

.service-row {
    display: grid;
    grid-template-columns: 68px 1fr minmax(240px, .55fr);
    gap: 28px;
    align-items: center;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--dm-line);
}

.service-row .num {
    color: var(--dm-default);
    font-size: 1.05rem;
    font-weight: 950;
}

.service-row h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 2.15rem);
    font-weight: 900;
    text-transform: uppercase;
}

.service-row p {
    margin: 0;
    color: var(--dm-ash);
    line-height: 1.62;
}

.factory-proof {
    padding: 0;
    background: var(--dm-black);
    color: #fff;
}

.factory-proof-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    min-height: 700px;
}

.factory-proof-copy {
    padding: clamp(2rem, 5vw, 5rem);
    align-self: center;
}

.factory-proof-copy .factory-copy {
    color: #c9d0d7;
}

.factory-proof-visual {
    min-height: 520px;
    background:
        linear-gradient(0deg, rgba(12, 14, 16, .32), rgba(12, 14, 16, .06)),
        url("/workshop.jpeg") center/cover no-repeat;
}

.proof-list {
    display: grid;
    gap: 14px;
    margin-top: 2rem;
    max-width: 520px;
}

.proof-list span {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    padding-bottom: .85rem;
    color: #eef1f4;
    font-weight: 800;
}

.production-workflow {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 44px;
    align-items: stretch;
}

.workflow-visual {
    display: grid;
    gap: 12px;
}

.workflow-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--dm-graphite);
    color: #fff;
}

.workflow-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(12, 14, 16, .8), rgba(12, 14, 16, .12)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 120px);
    z-index: 1;
}

.workflow-photo span {
    position: absolute;
    z-index: 2;
    left: 22px;
    bottom: 18px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.workflow-photo.primary {
    background: url("/cutting.jpeg") center/cover no-repeat;
}

.workflow-photo.assembly {
    background: url("/assembly.jpeg") center/cover no-repeat;
}

.workflow-photo.finishing {
    background: url("/finishing.jpeg") center/cover no-repeat;
}

.workflow-photo.testing {
    background: url("/testing.jpeg") center/cover no-repeat;
}

.workflow-photo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.workflow-rail {
    position: relative;
    padding: .4rem 0;
}

.workflow-rail::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 38px;
    width: 2px;
    background: var(--dm-black);
}

.workflow-rail::after {
    content: "";
    position: absolute;
    left: 32px;
    bottom: 2px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 13px solid var(--dm-black);
}

.workflow-stage {
    position: relative;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
    align-items: start;
    min-height: 72px;
    padding-bottom: 1.05rem;
}

.workflow-stage span {
    position: relative;
    z-index: 1;
    width: 78px;
    color: var(--dm-default);
    font-size: .9rem;
    font-weight: 950;
    letter-spacing: .04em;
    background: #fff;
}

.workflow-stage span::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 31px;
    width: 14px;
    height: 14px;
    background: var(--dm-default);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--dm-default);
}

.workflow-stage strong {
    display: block;
    padding-bottom: 1.05rem;
    border-bottom: 1px solid var(--dm-line);
    font-size: clamp(1.18rem, 2vw, 1.75rem);
    font-weight: 950;
    line-height: 1.05;
    text-transform: uppercase;
}

.workflow-stage em {
    display: block;
    margin-top: .45rem;
    color: var(--dm-ash);
    font-style: normal;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.45;
    text-transform: none;
}

.workflow-flowbar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(8, minmax(110px, 1fr));
    margin-top: .6rem;
    border-top: 2px solid var(--dm-black);
    overflow-x: auto;
}

.workflow-flowbar span {
    position: relative;
    min-height: 56px;
    padding: 1rem .9rem 0 0;
    color: var(--dm-ash);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.workflow-flowbar span::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--dm-default);
}

.workflow-flowbar span:not(:last-child)::after {
    content: "\F138";
    position: absolute;
    top: -16px;
    right: 18px;
    color: var(--dm-default);
    font-family: "bootstrap-icons";
    font-size: .95rem;
}

.oem-categories {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--dm-line);
}

.oem-category {
    min-height: 310px;
    position: relative;
    overflow: hidden;
    background: var(--dm-black);
    color: #fff;
    text-decoration: none;
}

.oem-category::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 12, 14, .84), rgba(10, 12, 14, .18));
    z-index: 1;
}

.oem-category:nth-child(1),
.oem-category:nth-child(4) {
    background: url("/dist/img/banner - Toko speaker profesional untuk berbagai keperluan.png") center/cover no-repeat;
}

.oem-category:nth-child(2),
.oem-category:nth-child(5) {
    background: url("/dist/img/banner 3 - Toko speaker profesional untuk berbagai keperluan.png") center/cover no-repeat;
}

.oem-category:nth-child(3),
.oem-category:nth-child(6) {
    background: url("/dist/img/produk - Toko speaker profesional untuk berbagai keperluan.png") center/cover no-repeat;
}

.oem-category div {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
}

.oem-category span {
    color: #cbd2d9;
    font-weight: 900;
}

.oem-category h3 {
    margin: .45rem 0 0;
    font-size: 1.55rem;
    font-weight: 950;
    text-transform: uppercase;
}

.why-list {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 40px;
}

.why-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: start;
}

.why-item i {
    color: var(--dm-default);
    font-size: 1.55rem;
}

.why-item h3 {
    margin: 0 0 .4rem;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
}

.why-item p {
    margin: 0;
    color: var(--dm-ash);
    line-height: 1.6;
}

.product-category-grid {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product-category-tile {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--dm-black);
}

.product-category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(8, 10, 12, .86), rgba(8, 10, 12, .18) 62%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 120px);
    z-index: 1;
}

.product-category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--category-image) center/cover no-repeat;
    transition: transform .35s ease;
}

.product-category-tile:hover {
    color: #fff;
}

.product-category-tile:hover::after {
    transform: scale(1.04);
}

.product-category-content {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
}

.product-category-content span {
    color: #b9c3cb;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-category-content h3 {
    margin: .5rem 0 .65rem;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 950;
    line-height: 1.05;
    text-transform: uppercase;
}

.product-category-content p {
    max-width: 380px;
    margin: 0;
    color: #d8dee3;
    line-height: 1.55;
}

.featured-products {
    margin-top: 2rem;
}

.featured-products-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.featured-products-header h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2.05rem);
    font-weight: 950;
    line-height: 1.05;
    text-transform: uppercase;
}

.featured-products-header a {
    color: var(--dm-black);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.featured-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.featured-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--dm-line);
    background: #fff;
    color: var(--dm-black);
    text-decoration: none;
}

.featured-product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 18px;
    background: #f7f9fa;
}

.featured-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
}

.featured-product-body span {
    color: var(--dm-ash);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.featured-product-body h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.35;
}

.featured-product-price {
    margin-top: auto;
    font-weight: 950;
}

.featured-product-actions {
    display: flex;
    gap: .5rem;
    margin-top: .2rem;
}

.featured-product-actions .btn {
    border-radius: 2px;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.insight-strip {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--dm-line);
    border-left: 1px solid var(--dm-line);
}

.insight-link {
    min-height: 150px;
    padding: 1.2rem;
    border-right: 1px solid var(--dm-line);
    border-bottom: 1px solid var(--dm-line);
    color: var(--dm-black);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-link strong {
    font-size: 1.05rem;
    text-transform: uppercase;
    line-height: 1.25;
}

.insight-link span {
    color: var(--dm-default);
    font-weight: 900;
}

.export-band {
    background:
        linear-gradient(90deg, rgba(12, 14, 16, .96), rgba(12, 14, 16, .72)),
        url("/workshop.jpeg") center/cover no-repeat;
    color: #fff;
}

.export-band .factory-copy {
    color: #d7dde2;
}

.inquiry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    gap: 48px;
    align-items: start;
}

.inquiry-links {
    display: grid;
    border-top: 1px solid var(--dm-line);
}

.inquiry-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--dm-line);
    color: var(--dm-black);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .factory-hero {
        min-height: 760px;
        align-items: flex-end;
    }

    .factory-hero-media {
        background:
            linear-gradient(90deg, rgba(5, 12, 14, .94) 0%, rgba(5, 12, 14, .78) 46%, rgba(5, 12, 14, .36) 100%),
            url("/workshop.jpeg") center right/cover no-repeat;
    }

    .factory-hero-content {
        width: min(620px, calc(100% - 40px));
        margin-left: 20px;
        padding: 120px 0 54px;
    }

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

    .who-layout,
    .factory-proof-grid,
    .inquiry {
        grid-template-columns: 1fr;
    }

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

    .service-row p {
        grid-column: 2;
    }

    .oem-categories,
    .why-list,
    .product-category-grid,
    .featured-product-grid,
    .insight-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .production-workflow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .factory-hero {
        min-height: 680px;
    }

    .factory-hero h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .factory-hero p {
        font-size: .98rem;
    }

    .factory-hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }

    .factory-hero-content,
    .factory-section {
        padding: 62px 0;
    }

    .trust-grid,
    .hero-features,
    .proof-mosaic,
    .trust-points,
    .oem-categories,
    .why-list,
    .product-category-grid,
    .featured-product-grid,
    .insight-strip {
        grid-template-columns: 1fr;
    }

    .featured-products-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-category-tile {
        min-height: 270px;
    }

    .proof-photo.large {
        min-height: 310px;
    }

    .workflow-photo-row {
        grid-template-columns: 1fr;
    }

    .workflow-stage {
        grid-template-columns: 64px 1fr;
        gap: 12px;
    }

    .workflow-stage span {
        width: 64px;
    }

    .workflow-stage span::after {
        right: 24px;
    }

    .workflow-rail::before {
        left: 31px;
    }

    .workflow-rail::after {
        left: 25px;
    }
}
