/**
 * KS Telecomserv — How We Work
 * Uses global :root variables.
 */

.ks-hww,
.ks-hww * {
    box-sizing: border-box;
}

.ks-hww {
    position: relative;
    width: 100%;
    color: var(--fog);
}

/* =========================================
   MAIN LAYOUT
   ========================================= */

.ks-hww-grid {
    display: grid;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    gap: clamp(70px, 7vw, 120px);
    align-items: start;
}

/* =========================================
   LEFT / STICKY COLUMN
   ========================================= */

.ks-hww-aside {
    position: sticky;
    top: 120px;
}

/* =========================================
   TAG
   ========================================= */

.ks-hww-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: var(--fs-micro);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--azure-glow);
}

.ks-hww-tag::before {
    content: "";
    display: block;
    width: 44px;
    height: 1px;
    flex-shrink: 0;
    background: var(--orange);
}

/* =========================================
   MAIN HEADING
   ========================================= */

.ks-hww-aside h2 {
    max-width: 9.2ch;
    margin: 18px 0 0;
    padding: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--fog);
}

/* =========================================
   PROGRESS BAR
   ========================================= */

.ks-hww-progress {
    position: relative;
    width: 100%;
    max-width: 385px;
    height: 4px;
    margin-top: 34px;
    overflow: hidden;
    background: var(--hair-2);
}

.ks-hww-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 25%;
    background: var(--orange);
    transition: width .5s cubic-bezier(.22, 1, .36, 1);
}

/* =========================================
   COUNTER
   ========================================= */

.ks-hww-count {
    display: flex;
    align-items: baseline;
    gap: .16em;
    width: max-content;
    margin-top: 38px;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--fog);
}

.ks-hww-current {
    display: inline-block;
}

.ks-hww-count em {
    display: inline-block;
    font-style: normal;
    color: var(--fog-4);
}

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

.ks-hww-steps {
    display: grid;
}

.ks-hww-step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
    padding: 42px 0 46px;
    border-top: 1px solid var(--hair);
    opacity: .22;
    transition: opacity .45s cubic-bezier(.22, 1, .36, 1);
}

.ks-hww-step:first-child {
    padding-top: 48px;
}

.ks-hww-step:last-child {
    border-bottom: 1px solid var(--hair);
}

.ks-hww-step.is-active {
    opacity: 1;
}

/* =========================================
   STEP NUMBER
   ========================================= */

.ks-hww-step-number {
    display: block;
    margin-top: 2px;
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
    color: var(--fog-4);
    transition: color .45s cubic-bezier(.22, 1, .36, 1);
}

.ks-hww-step.is-active .ks-hww-step-number {
    color: var(--orange);
}

/* =========================================
   STEP CONTENT
   ========================================= */

.ks-hww-step-content {
    min-width: 0;
}

.ks-hww-step h3 {
    margin: 0 0 12px;
    padding: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--fog);
}

.ks-hww-step p {
    max-width: 760px;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.75;
    color: var(--fog-3);
}

.ks-hww-step.is-active h3 {
    color: var(--fog);
}

.ks-hww-step.is-active p {
    color: var(--fog-3);
}

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

@media (max-width: 1080px) {
    .ks-hww-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 46px;
    }

    .ks-hww-aside {
        position: static;
    }

    .ks-hww-aside h2 {
        max-width: 14ch;
    }

    .ks-hww-progress {
        max-width: none;
    }

    .ks-hww-step {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 22px;
        padding: 36px 0;
    }
}

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

@media (max-width: 680px) {
    .ks-hww-grid {
        gap: 38px;
    }

    .ks-hww-aside h2 {
        max-width: 11ch;
    }

    .ks-hww-progress {
        margin-top: 28px;
    }

    .ks-hww-count {
        margin-top: 30px;
    }

    .ks-hww-step {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 16px;
        padding: 30px 0;
    }

    .ks-hww-step:first-child {
        padding-top: 34px;
    }

    .ks-hww-step h3 {
        margin-bottom: 8px;
    }
}

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

@media (max-width: 440px) {
    .ks-hww-step {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
    }

    .ks-hww-tag::before {
        width: 34px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .ks-hww-progress-bar,
    .ks-hww-step,
    .ks-hww-step-number {
        transition: none;
    }
}