
/* =========================================================
   DWY — IN60 PROCESS TIMELINE
   File: assets/css/pages/dwy/process.css
   ========================================================= */

.dwy-process {
    --dwy-process-line: rgb(13 34 48 / 22%);

    padding: clamp(5rem, 9vw, 9rem) 0;
    background: var(--bcc-color-background, #F5F1F7);
    color: var(--bcc-color-primary, #0D2230);
}

.dwy-process *,
.dwy-process *::before,
.dwy-process *::after {
    box-sizing: border-box;
}

.dwy-process__container {
    width: min(100% - 3rem, 1440px);
    margin-inline: auto;
}

/* Section heading */

.dwy-process__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 3rem;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.dwy-process__eyebrow {
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.dwy-process__title {
    max-width: 800px;
    margin: 0;
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    font-weight: 650;
    letter-spacing: -0.08em;
    line-height: 0.96;
}

.dwy-process__title span {
    display: block;
    margin-top: 0.15em;
    opacity: 0.52;
}

.dwy-process__intro {
    max-width: 450px;
    margin: 0 0 0.4rem;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.8;
    opacity: 0.75;
}

/* Timeline */

.dwy-process__timeline {
    position: relative;
}

/*
 * The line runs through the center of every marker.
 * The marker column has a fixed width so all four stages
 * remain precisely aligned.
 */

.dwy-process__timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31px;
    width: 1px;
    background: var(--dwy-process-line);
    content: "";
}

.dwy-process__step {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 100px;
    align-items: start;
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: 225px;
    padding: 0 0 clamp(3rem, 5vw, 5rem);
}

.dwy-process__step:last-child {
    min-height: auto;
    padding-bottom: 0;
}

.dwy-process__step-marker {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 64px;
    background: var(--bcc-color-background, #F5F1F7);
}

.dwy-process__step-dot {
    display: block;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1.5rem;
    border: 3px solid var(--bcc-color-primary, #0D2230);
    border-radius: 50%;
    background: var(--bcc-color-accent, #f4d738);
    box-shadow: 0 0 0 6px var(--bcc-color-background, #F5F1F7);
}

.dwy-process__step-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.65;
}

.dwy-process__step-content {
    max-width: 720px;
    padding-top: 1.25rem;
}

.dwy-process__step-label {
    margin: 0 0 0.9rem;
    color: var(--bcc-color-primary, #0D2230);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
    opacity: 0.65;
}

.dwy-process__step-title {
    max-width: 700px;
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 3.25rem);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 1.08;
}

.dwy-process__step-description {
    max-width: 650px;
    margin: 1.25rem 0 0;
    font-size: clamp(0.98rem, 1.3vw, 1.1rem);
    line-height: 1.8;
    opacity: 0.76;
}

/* Right-side stage indicator */

.dwy-process__step-duration {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    padding-top: 1.5rem;
    text-align: right;
}

.dwy-process__duration-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.55;
}

.dwy-process__duration-number {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.07em;
    line-height: 1;
}

/* Closing statement */

.dwy-process__footer {
    margin-top: clamp(4rem, 7vw, 7rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--dwy-process-line);
}

.dwy-process__footer p {
    max-width: 800px;
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.35;
}

/* Tablet */

@media (max-width: 900px) {
    .dwy-process__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .dwy-process__intro {
        max-width: 600px;
    }

    .dwy-process__step {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 1.75rem;
        min-height: 200px;
    }

    .dwy-process__step-duration {
        display: none;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .dwy-process {
        padding: 4.5rem 0;
    }

    .dwy-process__container {
        width: min(100% - 2rem, 560px);
    }

    .dwy-process__header {
        gap: 1.25rem;
        margin-bottom: 3.5rem;
    }

    .dwy-process__title {
        font-size: clamp(2.8rem, 11vw, 4rem);
    }

    .dwy-process__intro {
        font-size: 1rem;
        line-height: 1.75;
    }

    .dwy-process__timeline::before {
        left: 11px;
    }

    .dwy-process__step {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 1rem;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .dwy-process__step:last-child {
        padding-bottom: 0;
    }

    .dwy-process__step-marker {
        width: 24px;
        gap: 1rem;
    }

    .dwy-process__step-dot {
        width: 13px;
        height: 13px;
        margin-top: 1.35rem;
        border-width: 2px;
        box-shadow: 0 0 0 4px var(--bcc-color-background, #F5F1F7);
    }

    .dwy-process__step-number {
        font-size: 0.65rem;
    }

    .dwy-process__step-content {
        padding-top: 1rem;
    }

    .dwy-process__step-label {
        margin-bottom: 0.7rem;
        font-size: 0.65rem;
    }

    .dwy-process__step-title {
        font-size: clamp(1.65rem, 7vw, 2.25rem);
        letter-spacing: -0.055em;
    }

    .dwy-process__step-description {
        margin-top: 0.9rem;
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .dwy-process__footer {
        margin-top: 3.5rem;
    }

    .dwy-process__footer p {
        font-size: 1.35rem;
    }
}
