/* =========================================================
   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: 5;
    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: 5;
    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: 5;
    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;

    background: rgba(255, 255, 255, 0.03);

    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(255, 122, 26, 0.06);
}

.step.active .step-num {
    color: #ff7a1a;
}


/* =========================================================
   CONNECTOR LINE (dynamically drawn per active step)
   ========================================================= */

.step-connector {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 1;
}


.step-connector path {
    fill: none;
    stroke: #ff7a1a;
    stroke-width: 1.5;

    opacity: 0;

    transition:
        d 0.4s ease,
        opacity 0.3s ease;
}

.step-connector path.visible {
    opacity: 0.9;
}


/* =========================================================
   PROCESS VISUAL (image + caption)
   ========================================================= */

.process-visual {
    position: relative;

    border-radius: 24px;
    overflow: hidden;

    height: 100%;
    min-height: 480px;

    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.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;
    }

    .step-connector {
        display: none;
    }

    .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;
    }

}