/* =========================================================
   SIPANI MARBLES
   FACTORY PROCESS
========================================================= */


.factory-container {

    width: min(1400px, 84vw);

    margin: 0 auto;

}


.factory-section-number {

    color: #817c72;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

}



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

.factory-hero {

    position: relative;

    height: 100svh;

    min-height: 680px;

    overflow: hidden;

    isolation: isolate;

    background: #11110f;

    color: #f2eee6;

}


.factory-hero-image {

    position: absolute;

    inset: 0;

    z-index: -3;

}


.factory-hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.factory-hero-overlay {

    position: absolute;

    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(10,10,9,.9) 0%,
            rgba(10,10,9,.65) 43%,
            rgba(10,10,9,.18) 100%
        );

}


.factory-hero-content {

    position: absolute;

    left: 10vw;

    top: 50%;

    width: min(850px,78vw);

    transform:
        translateY(-42%);

}


.factory-eyebrow {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 34px;

    color: rgba(255,255,255,.65);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 3px;

}


.factory-eyebrow span {

    width: 55px;

    height: 1px;

    background: #d4af37;

}


.factory-eyebrow b {

    width: 3px;

    height: 3px;

    border-radius: 50%;

    background: #d4af37;

}


.factory-hero h1 {

    margin: 0;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(68px,8.5vw,125px);

    font-weight: 400;

    line-height: .87;

    letter-spacing: -5px;

}


.factory-hero h1 em {

    display: block;

    font-style: italic;

    color: #e4ded2;

}


.factory-hero-content > p {

    max-width: 470px;

    margin: 35px 0 0;

    color: rgba(255,255,255,.62);

    font-size: 13px;

    line-height: 1.9;

}


.factory-scroll {

    display: inline-flex;

    align-items: center;

    gap: 15px;

    margin-top: 38px;

    padding-bottom: 10px;

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

    color: #fff;

    text-decoration: none;

    text-transform: uppercase;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 2px;

}


.factory-scroll i {

    color: #d4af37;

    transition:
        transform .3s ease;

}


.factory-scroll:hover i {

    transform:
        translateY(5px);

}


.factory-hero-meta {

    position: absolute;

    left: 5.5vw;

    bottom: 30px;

    display: flex;

    align-items: center;

    gap: 13px;

    color: rgba(255,255,255,.42);

    font-size: 7px;

    letter-spacing: 2px;

}


.factory-hero-meta span:first-child {

    color: #d4af37;

}


.factory-hero-meta i {

    width: 30px;

    height: 1px;

    background:
        rgba(255,255,255,.25);

}



/* =========================================================
   INTRO
========================================================= */

.factory-intro {

    padding:
        145px 0 150px;

    background: #f2eee6;

    color: #11110f;

}


.factory-intro-grid {

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 9vw;

    align-items: start;

}


.factory-intro h2 {

    max-width: 650px;

    margin:
        42px 0 0;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(60px,7vw,105px);

    font-weight: 400;

    line-height: .87;

    letter-spacing: -4px;

}


.factory-intro h2 em {

    display: block;

    font-style: italic;

}


.factory-intro-copy {

    max-width: 610px;

    padding-top: 45px;

}


.factory-lead {

    margin:
        0 0 30px;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(29px,3vw,43px);

    line-height: 1.12;

}


.factory-intro-copy p:not(.factory-lead) {

    margin:
        0 0 22px;

    color: #68645d;

    font-size: 13px;

    line-height: 1.95;

}



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

.factory-process-section {

    position: relative;

    padding:
        145px 0 70px;

    background: #11110f;

    color: #f2eee6;

}


.factory-process-header {

    display: grid;

    grid-template-columns:
        25% 1fr;

    gap: 5vw;

    align-items: start;

    margin-bottom: 120px;

}


.factory-process-header h2 {

    margin: 0;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(62px,7vw,105px);

    font-weight: 400;

    line-height: .88;

    letter-spacing: -4px;

}


.factory-process-header h2 em {

    font-style: italic;

}


.factory-process-header p {

    grid-column: 2;

    max-width: 480px;

    margin:
        -5px 0 0;

    color:
        rgba(255,255,255,.45);

    font-size: 12px;

    line-height: 1.9;

}



/* =========================================
   FACTORY JOURNEY TIMELINE
========================================= */

.factory-timeline {
    position: relative;
    width: 100%;
}


/* =========================================
   CENTRE VERTICAL LINE
========================================= */

.factory-timeline::before {
    content: "";
    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;
    transform: translateX(-50%);

    width: 1px;

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

    z-index: 1;
}


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

.factory-step {
    position: relative;

    display: grid;

    /*
        LEFT          CENTER          RIGHT
        content       timeline        content
    */
    grid-template-columns:
        minmax(0, 1fr)
        110px
        minmax(0, 1fr);

    align-items: start;

    min-height: 430px;

    margin-bottom: 70px;
}


/* =========================================
   NUMBER CIRCLE
========================================= */

.factory-step-number {
    position: absolute;

    left: 50%;
    top: 15%;

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

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #b99a45;
    border-radius: 50%;

    background: #101010;

    color: #c5a64d;

    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;

    z-index: 10;
}


/* =========================================
   HORIZONTAL CONNECTOR
========================================= */

.factory-step-line {
    position: absolute;

    top: 15%;

    width: 55px;
    height: 1px;

    background: #b99a45;

    transform: translateY(-50%);

    z-index: 5;
}


/*
    ODD:

    TEXT  ───── ● │ IMAGE

    line extends from circle toward LEFT
*/
.factory-step:nth-child(odd) .factory-step-line {
    right: 50%;
}


/*
    EVEN:

    IMAGE │ ● ───── TEXT

    line extends from circle toward RIGHT
*/
.factory-step:nth-child(even) .factory-step-line {
    left: 50%;
}


/* =========================================
   TEXT
========================================= */

.factory-step-content {
    position: relative;

    max-width: 540px;

    z-index: 3;
}


/*
    01, 03, 05...

    TEXT ON LEFT
*/
.factory-step:nth-child(odd) .factory-step-content {
    grid-column: 1;

    justify-self: end;

    padding-right: 45px;

    text-align: right;
}


/*
    02, 04, 06...

    TEXT ON RIGHT
*/
.factory-step:nth-child(even) .factory-step-content {
    grid-column: 3;

    justify-self: start;

    padding-left: 45px;

    text-align: left;
}


/* Category */

.factory-step-content > span {
    display: block;

    margin-bottom: 18px;

    color: #c5a64d;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.35em;
}


/* Heading */

.factory-step-content h3 {
    margin: 0 0 24px;

    color: #f4f0e8;
    
    font-family:
        "Playfair Display",
        serif;

    font-size: clamp(40px, 4vw, 64px);

    font-weight: 400;

    line-height: 0.98;
}


/* Paragraph */

.factory-step-content p {
    margin: 0;

    color: rgba(230, 226, 218, 0.62);

    font-family: "DM Sans", sans-serif;

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================
   IMAGES
========================================= */

.factory-step-image {
    position: relative;

    width: calc(100% - 25px);

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #171717;

    z-index: 3;

    margin-top: 0 !important;
}


/*
    01, 03, 05...

    IMAGE ON RIGHT
*/
.factory-step:nth-child(odd) .factory-step-content {
    grid-column: 1;
    grid-row: 1;

    justify-self: end;

    padding-right: 45px;

    text-align: right;
}

.factory-step:nth-child(odd) .factory-step-image {
    grid-column: 3;
    grid-row: 1;

    justify-self: start;

    margin-left: 0;
}


/*
    02, 04, 06...

    IMAGE ON LEFT
*/
.factory-step:nth-child(even) .factory-step-image {
    grid-column: 1;
    grid-row: 1;

    justify-self: end;

    margin-right: 0;
}

.factory-step:nth-child(even) .factory-step-content {
    grid-column: 3;
    grid-row: 1;

    justify-self: start;

    padding-left: 45px;

    text-align: left;
}


/* Image */

.factory-step-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}


.factory-step-image:hover img {
    transform: scale(1.04);
}


/* =========================================
   IMPORTANT:
   KEEP EACH ROW'S CENTRE POINT IDENTICAL
========================================= */

.factory-step-number,
.factory-step-line {
    pointer-events: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .factory-timeline::before {
        left: 25px;

        transform: none;
    }


    .factory-step,
    .factory-step:nth-child(even) {
        display: block;

        min-height: 0;

        margin-bottom: 80px;

        padding-left: 65px;
    }


    .factory-step-number {
        left: 25px;
        top: 25px;

        width: 50px;
        height: 50px;

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


    .factory-step-line {
        display: none;
    }


    /*
        Image first
    */

    .factory-step-image,
    .factory-step:nth-child(odd) .factory-step-image,
    .factory-step:nth-child(even) .factory-step-image {

        display: block;

        width: 100%;

        margin: 0 0 30px 0;

        aspect-ratio: 16 / 10;
    }


    /*
        Text
    */

    .factory-step-content,
    .factory-step:nth-child(odd) .factory-step-content,
    .factory-step:nth-child(even) .factory-step-content {

        display: block;

        max-width: none;

        padding: 0;

        text-align: left;
    }


    .factory-step-content h3 {
        font-size: clamp(38px, 9vw, 54px);
    }

}


@media (max-width: 600px) {

    .factory-timeline::before {
        left: 20px;
    }


    .factory-step,
    .factory-step:nth-child(even) {
        padding-left: 50px;

        margin-bottom: 65px;
    }


    .factory-step-number {
        left: 20px;

        width: 42px;
        height: 42px;

        font-size: 10px;
    }


    .factory-step-content h3 {
        font-size: 36px;
    }


    .factory-step-content p {
        font-size: 13px;

        line-height: 1.8;
    }

}
/* =========================================================
   CLOSING
========================================================= */

.factory-closing {

    position: relative;

    min-height: 680px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: #11110f;

    color: #fff;

}


.factory-closing-image {

    position: absolute;

    inset: 0;

}


.factory-closing-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.factory-closing-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,8,7,.9),
            rgba(8,8,7,.42)
        );

}


.factory-closing-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    padding:
        100px 0;

}


.factory-closing-content h2 {

    margin:
        42px 0 30px;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(65px,8vw,115px);

    font-weight: 400;

    line-height: .86;

    letter-spacing: -5px;

}


.factory-closing-content h2 em {

    display: block;

    font-style: italic;

}


.factory-closing-content p {

    max-width: 450px;

    margin: 0;

    color:
        rgba(255,255,255,.58);

    font-size: 13px;

    line-height: 1.9;

}


.factory-button {

    display: inline-flex;

    align-items: center;

    gap: 30px;

    margin-top: 38px;

    padding:
        17px 22px;

    background: #d4af37;

    color: #11110f;

    text-decoration: none;

    text-transform: uppercase;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 2px;

    transition:
        transform .3s ease;

}


.factory-button:hover {

    transform:
        translateY(-3px);

}


.factory-button i {

    font-size: 13px;

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {


    .factory-container {

        width:
            calc(100% - 48px);

    }


    .factory-hero-content {

        left: 24px;

        width:
            calc(100% - 48px);

    }


    .factory-intro-grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .factory-intro-copy {

        padding-top: 0;

    }


    .factory-process-header {

        grid-template-columns: 1fr;

        gap: 35px;

        margin-bottom: 80px;

    }


    .factory-process-header p {

        grid-column: auto;

        margin: 0;

    }


}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {


    .factory-container {

        width:
            calc(100% - 40px);

    }


    /* HERO */

    .factory-hero {

        min-height: 650px;

    }


    .factory-hero-content {

        left: 20px;

        width:
            calc(100% - 40px);

    }


    .factory-eyebrow {

        margin-bottom: 25px;

        font-size: 7px;

        letter-spacing: 2px;

    }


    .factory-eyebrow span {

        width: 32px;

    }


    .factory-hero h1 {

        font-size: 55px;

        letter-spacing: -3px;

    }


    .factory-hero-content > p {

        max-width: 310px;

        margin-top: 28px;

        font-size: 11px;

    }


    .factory-hero-meta {

        display: none;

    }



    /* INTRO */

    .factory-intro {

        padding:
            90px 0 100px;

    }


    .factory-intro h2 {

        margin-top: 35px;

        font-size: 52px;

        letter-spacing: -2px;

    }


    .factory-lead {

        font-size: 27px;

    }


    .factory-intro-copy p:not(.factory-lead) {

        font-size: 11px;

    }



    /* PROCESS */

    .factory-process-section {

        padding:
            90px 0 100px;

    }


    .factory-process-header {

        margin-bottom: 70px;

    }


    .factory-process-header h2 {

        font-size: 52px;

        letter-spacing: -2px;

    }


    .factory-process-header p {

        font-size: 11px;

    }


    .factory-timeline::before {

        left: 20px;

        transform: none;

    }


    .factory-step {

        display: block;

        min-height: auto;

        padding-left: 55px;

        padding-bottom: 65px;

    }


    .factory-step-number {

        position: absolute;

        left: -4px;

        top: 0;

        width: 48px;

        height: 48px;

        margin: 0;

    }


    .factory-step-line {

        display: none;

    }


    .factory-step:nth-child(odd)
    .factory-step-content,

    .factory-step:nth-child(even)
    .factory-step-content {

        display: block;

        max-width: none;

        padding:
            0 0 0 0;

        text-align: left;

    }


    .factory-step-content > span {

        margin-bottom: 14px;

    }


    .factory-step-content h3 {

        font-size: 29px;

        line-height: 1.05;

    }


    .factory-step-content p {

        font-size: 10px;

        line-height: 1.8;

    }


    .factory-step-last {

        min-height: auto;

        padding-bottom: 0;

    }



    /* CLOSING */

    .factory-closing {

        min-height: 600px;

    }


    .factory-closing-content {

        padding:
            80px 0;

    }


    .factory-closing-content h2 {

        font-size: 55px;

        letter-spacing: -3px;

    }


    .factory-closing-content p {

        font-size: 11px;

    }


    .factory-button {

        width: 100%;

        justify-content: space-between;

    }

}