/* =========================================================
   DOTS MEDIA
   PROCESS JOURNEY SECTION
   ========================================================= */

.process-wrap {
    position: relative;

    background: #0a0705;

    padding: 10px 60px 60px;

    overflow: hidden;
}


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

.process-tag {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #cfcfcf;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 22px;

    /* Scroll reveal — fades/slides up first. */
    opacity: 1;
    transform: translateY(14px);

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

.process-title {
    max-width: 900px;

    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #ffffff;

    margin-bottom: 16px;

    /* Scroll reveal — starts ~0.12s after the tag. */
    opacity: 1;
    transform: translateY(14px);

    transition:
        opacity 0.5s ease 0.12s,
        transform 0.5s ease 0.12s;
}

.process-subtitle {
    max-width: 100%;

    color: #a9a9a9;

    font-size: 16px;
    line-height: 1.6;

    margin-bottom: 60px;

    /* Scroll reveal — starts ~0.1s after the title. */
    opacity: 1;
    transform: translateY(14px);

    transition:
        opacity 0.5s ease 0.22s,
        transform 0.5s ease 0.22s;
}

/* Toggled by animations.js the moment the section scrolls into view. */
.process-wrap.in-view .process-tag,
.process-wrap.in-view .process-title,
.process-wrap.in-view .process-subtitle {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   PROCESS BODY LAYOUT
   ========================================================= */

.process-body {
    position: relative;
    z-index: 2;

    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 28px;

    align-items: start;
}


/* =========================================================
   STEPS GRID
   ========================================================= */

.steps-grid {
    padding-bottom: 25px;
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step {
    position: relative;
    z-index: 2;

    /* Frosted glass: the connector line runs through the card
       centres behind this, softly visible through the card. */
    background: rgba(18, 15, 13, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);

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

    padding: 22px 20px;

    cursor: pointer;

    transition:
        border-color 0.35s ease,
        background 0.35s ease;
}

.step-num {
    color: #6a6a6a;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;

    margin-bottom: 4px;

    transition: color 0.35s ease;
}

.step-title {
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;

    margin-bottom: 10px;
    display: inline-block;
    margin-left: 6px;
}

.step-desc {
    color: #9a9a9a;

    font-size: 12.5px;
    line-height: 1.55;
}

.step.active {
    border-color: rgba(255, 122, 26, 0.55);
    background: rgba(40, 20, 8, 0.55);
}

.step.active .step-num {
    color: #ff7a1a;
}


/* =========================================================
   CONNECTOR LINE (process.js routes it through the card
   centres, behind the frosted cards)
   ========================================================= */

.step-connector {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;
    pointer-events: none;

    z-index: 0;
}

.step-connector path {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.connector-track {
    stroke: rgba(255, 255, 255, 0.1);
}

.connector-progress {
    stroke: #ff7a1a;

    filter: drop-shadow(0 0 4px rgba(255, 122, 26, 0.7));

    opacity: 0;

    transition:
        stroke-dashoffset 0.8s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.3s ease;
}

.connector-progress.visible {
    opacity: 1;
}

.connector-progress.no-anim {
    transition: none;
}


/* =========================================================
   PROCESS VISUAL (image + caption)
   ========================================================= */

.process-visual {
    position: relative;

    border-radius: 24px;
    overflow: hidden;

    height: 100%;
    min-height: 480px;

    box-shadow: none;
}

.process-visual img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 0.6s ease;
}

.process-visual img.active {
    opacity: 1;
}

.visual-caption {
    position: absolute;
    left: 28px;
    bottom: 26px;
    z-index: 3;
}

.visual-count {
    color: #ff7a1a;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;

    margin-bottom: 6px;
}

.visual-title {
    color: #ffffff;

    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}


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

@media (max-width: 1024px) {
    .process-body {
        grid-template-columns: 1fr;
    }

    .process-visual {
        min-height: 340px;
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-title {
        font-size: 32px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .process-tag,
    .process-title,
    .process-subtitle {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}

/* Black fade from the bottom so the "02 / 05 · Concept Design" caption
   stays readable on bright images. Sits above the images, below the caption. */
.process-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(10, 7, 5, 0.92) 0%,
        rgba(10, 7, 5, 0.65) 22%,
        rgba(10, 7, 5, 0.2) 42%,
        rgba(10, 7, 5, 0) 58%
    );
}


/* =========================================================
   Moved from responsive.css (this page's rules only; same values,
   same @media wrappers).
   ========================================================= */
@media (max-width: 1100px) {
    .process-wrap {
        padding-left: 40px;
        padding-right: 40px;
    }
    .process {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .process-visual {
        position: relative;
        top: auto;

        height: 500px;
    }}@media (max-width: 768px) {
    .process-wrap {
        padding: 70px 20px;
    }
    .process-tag {
        font-size: 10px;
    }
    .process-title {
        font-size: 32px;
        line-height: 1.05;

        margin-bottom: 40px;
    }
    .step {
        padding-bottom: 40px;
    }
    .step .step-title {
        font-size: 19px;
    }
    .step .step-desc {
        font-size: 13px;
        line-height: 1.6;
    }
    .process-visual {
        width: 100%;
        height: 360px;

        border-radius: 16px;
        overflow: hidden;
    }}@media (max-width: 480px) {
    .process-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .process-title {
        font-size: 28px;
    }
    .process-visual {
        height: 300px;
    }}@media (max-width: 360px) {
    .process-title {
        font-size: 26px;
    }
    .process-visual {
        height: 270px;
    }}

body.home .process-title {
    font-size: var(--home-title-size);
    line-height: 1.1;
    letter-spacing: -1px;
}

body.home .process-wrap {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}@media (min-width: 1101px) {
    body.home .process-header {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }}

body.home .process-subtitle {
    max-width: none;
}
