/*
 * TehranWeb — Process / success path reference section
 * Visual target: supplied reference directly below Services.
 */

#process.tw-process {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding-block: clamp(4.4rem, 7vw, 6.2rem) clamp(4.7rem, 7.5vw, 6.6rem);
    border: 0;
    background:
        radial-gradient(38rem 20rem at 0% 55%, rgba(218, 154, 32, .085), transparent 66%),
        radial-gradient(38rem 20rem at 100% 50%, rgba(0, 190, 224, .09), transparent 66%),
        linear-gradient(180deg, #0a2634 0%, #092531 44%, #08222e 100%);
    color: #fff;
}

#process .tw-process__ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 28%, rgba(255,255,255,.026), transparent 24rem),
        linear-gradient(90deg, rgba(255,255,255,.014), transparent 18%, transparent 82%, rgba(255,255,255,.014));
}

#process .tw-process__shell {
    position: relative;
    z-index: 1;
    inline-size: min(calc(100% - 2.2rem), 74rem);
}

#process .tw-process__heading {
    width: min(100%, 44rem);
    margin: 0 auto clamp(2.9rem, 5vw, 4rem);
    text-align: center;
}

#process .tw-process__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 0 0 .72rem;
    color: #dca43a;
    font-size: .74rem;
    font-weight: 850;
    line-height: 1.5;
}

#process .tw-process__eyebrow::before,
#process .tw-process__eyebrow::after {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: currentColor;
    opacity: .82;
}

#process .tw-process__section-title {
    margin: 0;
    color: #f7fbfc;
    font-size: clamp(1.85rem, 3.25vw, 2.75rem);
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -.03em;
}

#process .tw-process__section-title span {
    color: #08bfdf;
}

#process .tw-process__intro {
    max-width: 39rem;
    margin: .72rem auto 0;
    color: rgba(223, 234, 238, .68);
    font-size: clamp(.8rem, 1.25vw, .95rem);
    line-height: 1.9;
    text-wrap: balance;
}

#process .tw-process__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    direction: rtl;
}

#process .tw-process__step {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#process .tw-process__marker-row {
    position: relative;
    width: 100%;
    height: 4.85rem;
    display: grid;
    grid-template-columns: minmax(0,1fr) 4.85rem minmax(0,1fr);
    align-items: center;
}

#process .tw-process__marker {
    position: relative;
    z-index: 2;
    width: 4.45rem;
    height: 4.45rem;
    display: grid;
    place-items: center;
    margin: auto;
    border: 1px solid rgba(0, 191, 223, .5);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 40%, rgba(0, 198, 229, .14), rgba(6, 33, 44, .94) 65%);
    color: #05c3e2;
    box-shadow:
        0 0 0 .32rem rgba(0, 190, 224, .035),
        0 0 1.15rem rgba(0, 196, 229, .22),
        inset 0 0 1.2rem rgba(0, 196, 229, .065);
}

#process .tw-process__step:nth-child(odd) .tw-process__marker {
    border-color: rgba(222, 165, 52, .55);
    background:
        radial-gradient(circle at 50% 40%, rgba(227, 169, 52, .13), rgba(6, 33, 44, .94) 65%);
    color: #e0a83b;
    box-shadow:
        0 0 0 .32rem rgba(222, 165, 52, .03),
        0 0 1.15rem rgba(222, 165, 52, .19),
        inset 0 0 1.2rem rgba(222, 165, 52, .06);
}

#process .tw-process__marker svg,
#process .tw-process__marker img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

#process .tw-process__marker svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#process .tw-process__connector {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,193,222,.15), rgba(0,193,222,.8), rgba(0,193,222,.15));
}

/*
 * Direction of progress is 01 -> 05.
 * In the RTL desktop layout, step 01 is on the right and step 05 is on the left,
 * therefore connector arrowheads must point LEFT.
 */
#process .tw-process__connector::after {
    content: none;
}

#process .tw-process__connector--after::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: .27rem solid transparent;
    border-bottom: .27rem solid transparent;
    border-right: .46rem solid #08c1df;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 .22rem rgba(8, 193, 223, .42));
    opacity: .98;
}

#process .tw-process__step:first-child .tw-process__connector--before,
#process .tw-process__step:first-child .tw-process__connector--before::after,
#process .tw-process__step:last-child .tw-process__connector--after,
#process .tw-process__step:last-child .tw-process__connector--after::after {
    visibility: hidden;
}

#process .tw-process__copy {
    max-width: 11rem;
    margin-top: .65rem;
}

#process .tw-process__title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .18rem;
    margin: 0;
    color: #f7fafb;
    font-size: clamp(.9rem, 1.45vw, 1.05rem);
    font-weight: 900;
    line-height: 1.5;
}

#process .tw-process__number {
    color: inherit;
    font-size: .82em;
    opacity: .76;
}

#process .tw-process__text {
    margin: .38rem 0 0;
    color: rgba(219, 231, 235, .62);
    font-size: .7rem;
    line-height: 1.75;
}

@media (max-width: 64rem) {
    #process .tw-process__timeline {
        grid-template-columns: repeat(5, minmax(8.4rem, 1fr));
        overflow-x: auto;
        padding-bottom: .75rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 191, 223, .3) transparent;
    }

    #process .tw-process__timeline::-webkit-scrollbar {
        height: 4px;
    }

    #process .tw-process__timeline::-webkit-scrollbar-thumb {
        background: rgba(0, 191, 223, .28);
        border-radius: 999px;
    }
}

@media (max-width: 42rem) {
    #process.tw-process {
        padding-block: 3.7rem 4rem;
    }

    #process .tw-process__shell {
        inline-size: min(calc(100% - 1.25rem), 74rem);
    }

    #process .tw-process__heading {
        margin-bottom: 2.35rem;
    }

    #process .tw-process__eyebrow {
        font-size: .67rem;
    }

    #process .tw-process__section-title {
        font-size: clamp(1.6rem, 8.5vw, 2.25rem);
    }

    #process .tw-process__intro {
        font-size: .8rem;
        line-height: 1.75;
    }

    #process .tw-process__timeline {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        overflow: visible;
        direction: rtl;
    }

    #process .tw-process__step {
        min-height: 7.2rem;
        display: grid;
        grid-template-columns: 4rem minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
        text-align: right;
    }

    #process .tw-process__marker-row {
        width: 4rem;
        height: 7.2rem;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0,1fr) 4rem minmax(0,1fr);
        justify-items: center;
    }

    #process .tw-process__marker {
        width: 3.8rem;
        height: 3.8rem;
        grid-row: 2;
    }

    #process .tw-process__marker svg,
    #process .tw-process__marker img {
        width: 1.65rem;
        height: 1.65rem;
    }

    #process .tw-process__connector {
        width: 1px;
        height: 100%;
        background: linear-gradient(180deg, rgba(0,193,222,.12), rgba(0,193,222,.72), rgba(0,193,222,.12));
    }

    #process .tw-process__connector--before {
        grid-row: 1;
    }

    #process .tw-process__connector--after {
        grid-row: 3;
    }

    /* Mobile flow is vertical: 01 at the top -> 05 at the bottom. */
    #process .tw-process__connector--after::after {
        top: 58%;
        bottom: auto;
        left: 50%;
        width: 0;
        height: 0;
        border-left: .27rem solid transparent;
        border-right: .27rem solid transparent;
        border-top: .46rem solid #08c1df;
        border-bottom: 0;
        transform: translate(-50%, -50%);
    }

    #process .tw-process__copy {
        max-width: none;
        margin-top: .75rem;
        padding-bottom: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,.055);
    }

    #process .tw-process__title {
        justify-content: flex-start;
        font-size: 1rem;
    }

    #process .tw-process__text {
        max-width: 20rem;
        margin-top: .3rem;
        font-size: .73rem;
    }
}
