/* ==================================================
   SCOPE & SCALE BRIDGE
   Transformation → Portfolio
================================================== */

.scope-section {
    --scope-accent: var(--primary-light);
    --scope-dark: var(--bg-dark);
    --scope-line: rgba(15, 23, 42, 0.10);

}


/* ==================================================
   INTRO
================================================== */

.scope-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 11px;
    font-weight: var(--fw-xl);
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--scope-accent);
}

.scope-kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}

.scope-title {
    margin: 14px 0 18px;

    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.03;
    letter-spacing: -0.045em;

    color: var(--text-main);
}

.scope-title span {
    display: block;
    color: var(--primary);
}

.scope-lead {
    max-width: 720px;
    margin: 0 auto;

    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-muted);
}


/* ==================================================
   METRICS
================================================== */

.scope-metrics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    border-top: 1px solid var(--scope-line);
    border-bottom: 1px solid var(--scope-line);

    margin-bottom: clamp(70px, 9vw, 110px);
}

.scope-metric {
    position: relative;

    min-height: 150px;
    padding: 28px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right: 1px solid var(--scope-line);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.scope-metric:last-child {
    border-right: none;
}

.scope-metric:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-3px);
}

.scope-metric--featured {
    background: var(--scope-dark);
    color: var(--text-light);
}

.scope-metric-number {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;

    font-weight: var(--fw-xl);
    letter-spacing: -0.05em;

    color: var(--text-main);
}

.scope-metric--featured .scope-metric-number {
    color: var(--scope-accent);
}

.scope-metric-label {
    max-width: 150px;
    margin-top: 12px;

    font-size: 12px;
    line-height: 1.45;

    color: var(--text-muted);
}

.scope-metric--featured .scope-metric-label {
    color: var(--text-muted);
}

.scope-metric--featured .scope-metric-label :hover {
    color: var(--text-muted);
}

/* ==================================================
   SECTION HEADINGS
================================================== */

.scope-section-heading {
    margin-bottom: 30px;
}

.scope-section-heading h3 {
    max-width: 760px;
    margin: 10px 0 0;

    font-size: var(--fs-h2);
    font-weight: var(--fw-xl);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.scope-section-heading h3 span {
    color: var(--primary);
}

.scope-section-heading p {
    max-width: 650px;
    margin: 14px 0 0;
}


/* ==================================================
   DOMAIN SELECTOR
================================================== */

.scope-environment {
    margin-bottom: clamp(75px, 10vw, 120px);
}

.scope-domain-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    width: 100%;

    border-top: 1px solid rgba(15, 23, 42, 0.12);

    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.scope-domain {
    position: relative;

    min-height: 170px;
    padding: 22px;

    text-align: left;

    background: rgba(255, 255, 255, 0.42);

    border: none;
    border-right: 1px solid var(--scope-line);
    border-bottom: 1px solid var(--scope-line);

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.scope-domain:hover {
    background: var(--bg-white);
    transform: translateY(-3px);
}

.scope-domain.is-active {
    background: var(--scope-dark);
    color: var(--text-light);
}

.scope-domain-index {
    display: block;

    margin-bottom: 34px;

    font-size: 11px;
    font-weight: var(--fw-xl);
    letter-spacing: 1px;

    color: var(--scope-accent);
}

.scope-domain-name {
    display: block;

    font-size: var(--fs-h3);
    font-weight: var(--fw-l);

    color: var(--text-main);
}

.scope-domain.is-active .scope-domain-name {
    color: #fff;
}

.scope-domain-detail {
    display: block;

    margin-top: 8px;

    font-size: 11px;
    line-height: 1.45;

    color: var(--text-muted);
}

.scope-domain.is-active .scope-domain-detail {
    color: rgba(255, 255, 255, 0.62);
}


/* ==================================================
   DOMAIN DETAIL PANEL
================================================== */

.scope-domain-panel {
    display: grid;
    grid-template-columns: 150px 1fr;

    min-height: 220px;

    background: var(--bg-white);

    border:
        1px solid var(--scope-line);

    border-top: none;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.05);
}

.scope-panel-meta {
    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 27px 21px;

    border-right: 1px solid rgba(15, 23, 42, 0.12);

    background:
        rgba(15, 23, 42, 0.018);

    font-family: monospace;

    font-size: 0.67rem;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.12em;
}

.scope-panel-meta span:first-child {
    font-size: 0.95rem;

    letter-spacing: 0;
    color: var(--primary-light);
}

.scope-panel-meta span:last-child {
    font-size: 0.95rem;
    color: var(--primary-light);
    transform: rotate(-90deg);
    padding: 20px;
}


.scope-panel-content {
    padding: 30px clamp(24px, 5vw, 55px);
}

.scope-panel-content h4 {
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: -0.035em;

    font-size: var(--fs-h3);
    font-weight: var(--fw-l);


}

.scope-panel-content p {
    max-width: 720px;
    margin: 0;

    color: var(--text-muted);
}

.scope-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 22px;
}

.scope-panel-tags span {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 29px;

    padding: 6px 10px;

    border: 1px solid rgba(15, 23, 42, 0.1);

    border-radius: 999px;

    background:
        rgba(15, 23, 42, 0.02);

    color:
        rgba(15, 23, 42, 0.6);

    font-size: 0.65rem;

    line-height: 1;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.scope-panel-tags span:hover {
    background:
        rgba(15, 23, 42, 0.055);

    border-color:
        rgba(15, 23, 42, 0.18);

    color:
        var(--text-dark,
            #0f172a);

}

/* ==================================================
   COMPLEXITY
================================================== */

.scope-complexity {
    margin-bottom: clamp(75px, 10vw, 120px);
}

.scope-complexity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--scope-line);
    border-left: 1px solid var(--scope-line);
}

.scope-capability-card {
    padding: 28px 24px;

    min-height: 280px;

    background: rgba(255, 255, 255, 0.55);

    border-right: 1px solid var(--scope-line);
    border-bottom: 1px solid var(--scope-line);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.scope-capability-card:hover {
    background: var(--bg-white);
    transform: translateY(-4px);
}

.scope-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 35px;

    border: 1px solid var(--accent-border);
    border-radius: 10px;

    color: var(--scope-accent);

    font-size: 9px;
    font-weight: var(--fw-xl);
    letter-spacing: 1px;
}

.scope-capability-card h4 {
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-size: var(--fs-h3);
    font-weight: var(--fw-l);
}

.scope-capability-card p {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;
}

.scope-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 24px;
}

.scope-card-footer span {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 29px;

    padding: 6px 10px;

    border: 1px solid rgba(15, 23, 42, 0.1);

    border-radius: 999px;

    background:
        rgba(15, 23, 42, 0.02);

    color:
        rgba(15, 23, 42, 0.6);

    font-size: 0.65rem;

    line-height: 1;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.scope-card-footer span:hover {
    background:
        rgba(15, 23, 42, 0.055);

    border-color:
        rgba(15, 23, 42, 0.18);

    color:
        var(--text-dark,
            #0f172a);

}

/* ==================================================
   TRANSFORMATION FLOW
================================================== */

.scope-model {
    margin-bottom: clamp(75px, 10vw, 120px);
}

.scope-flow {
    display: grid;
    grid-template-columns:
        1fr minmax(30px, 80px) 1fr minmax(30px, 80px) 1fr minmax(30px, 80px) 1fr;

    align-items: center;
}

.scope-flow-step {
    min-height: 170px;

    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--bg-white);

    border: 1px solid var(--scope-line);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.scope-flow-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.scope-flow-number {
    margin-bottom: 20px;

    font-size: 10px;
    font-weight: var(--fw-xl);

    color: var(--scope-accent);
}

.scope-flow-step strong {
    font-size: var(--fs-h3);
    font-weight: var(--fw-l);
    letter-spacing: -0.02em;
}

.scope-flow-step small {
    max-width: 150px;

    margin-top: 8px;

    color: var(--text-muted);

    font-size: 11px;
    line-height: 1.5;
}

.scope-flow-step--result {
    background: var(--scope-dark);
}

.scope-flow-step--result strong {
    color: var(--text-light);
}

.scope-flow-step--result small {
    color: rgba(255, 255, 255, 0.62);
}

.scope-flow-line {
    height: 1px;
    background: var(--scope-accent);
    opacity: 0.5;
}


/* ==================================================
   RESPONSIVE
================================================== */

/* ==========================================================
   SCOPE — RESPONSIVE
========================================================== */


/* ==========================================================
   900px — TABLET / COMPACT DESKTOP
========================================================== */

@media (max-width: 900px) {

    /* -----------------------------------------
       Section intro
    ----------------------------------------- */

    .scope-section .section-intro {
        margin-bottom: 45px;
    }


    /* -----------------------------------------
       Operating environment
    ----------------------------------------- */

    .scope-environment {
        margin-top: 50px;
    }

    .scope-section-heading {
        gap: 18px;
    }


    /* -----------------------------------------
       Domain grid
    ----------------------------------------- */

    .scope-domain-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    /* -----------------------------------------
       Domain panel
    ----------------------------------------- */

    .scope-domain-panel {
        grid-template-columns: 1fr;
    }

    .scope-panel-meta {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.12);

        padding: 16px 20px;

        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .scope-panel-meta span:last-child {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .scope-panel-content {
        padding: 28px 24px;
    }


    /* -----------------------------------------
       Complexity
    ----------------------------------------- */

    .scope-complexity {
        margin-top: 60px;
    }

    .scope-complexity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* -----------------------------------------
       Transformation model
    ----------------------------------------- */

    .scope-model {
        margin-top: 60px;
    }

    .scope-flow {
        gap: 18px;
    }


    /* -----------------------------------------
       Bridge
    ----------------------------------------- */

    .scope-bridge {
        align-items: flex-start;

        flex-direction: column;
    }

    .scope-bridge-action {
        min-width: 210px;
    }

}


/* ==========================================================
   640px — MOBILE / TABLET
========================================================== */

@media (max-width: 640px) {

    /* -----------------------------------------
       Section spacing
    ----------------------------------------- */

    .scope-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }


    /* -----------------------------------------
       Section intro
    ----------------------------------------- */

    .scope-section .section-intro {
        margin-bottom: 38px;
        text-align: left;
    }

    .scope-section .scope-lead {
        margin-left: 0;
    }


    /* -----------------------------------------
       Metrics
    ----------------------------------------- */

    .scope-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .scope-metric {
        padding: 20px 18px;
    }

    .scope-metric-number {
        font-size: 1.7rem;
    }

    .scope-metric-label {
        font-size: 0.72rem;
    }


    /* -----------------------------------------
       Operating environment heading
    ----------------------------------------- */

    .scope-environment {
        margin-top: 45px;
    }

    .scope-section-heading {
        margin-bottom: 30px;
    }


    /* -----------------------------------------
       Domain grid
    ----------------------------------------- */

    .scope-domain-grid {
        display: flex;

        overflow-x: auto;

        gap: 12px;

        padding-bottom: 4px;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;

        scroll-snap-type: x mandatory;
    }

    .scope-domain-grid::-webkit-scrollbar {
        display: none;
    }

    .scope-domain {
        flex: 0 0 78%;

        min-height: 145px;

        padding: 22px 20px;

        scroll-snap-align: start;
    }


    /* -----------------------------------------
       Domain panel
    ----------------------------------------- */

    .scope-domain-panel {
        grid-template-columns: 1fr;

        margin-top: 14px;
    }


    /* -----------------------------------------
       Panel meta
    ----------------------------------------- */

    .scope-panel-meta {
        flex-direction: row;

        align-items: center;

        padding: 17px 20px;

        border-right: 0;

        border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    }

    .scope-panel-meta span:last-child {
        writing-mode: horizontal-tb;
        transform: none;
    }


    /* -----------------------------------------
       Panel content
    ----------------------------------------- */

    .scope-panel-content {
        padding: 28px 22px;
    }

    .scope-panel-content h4 {
        font-size: 1.5rem;
    }

    .scope-panel-content p {
        font-size: 0.87rem;
        line-height: 1.7;
    }


    /* -----------------------------------------
       Panel tags
    ----------------------------------------- */

    .scope-panel-tags {
        gap: 7px;
    }

    .scope-panel-tags span {
        font-size: 0.65rem;
    }


    /* -----------------------------------------
       Complexity
    ----------------------------------------- */

    .scope-complexity {
        margin-top: 50px;
    }

    .scope-complexity-grid {
        grid-template-columns: 1fr;
    }

    .scope-capability-card {
        padding: 23px 20px;
    }


    /* -----------------------------------------
       Transformation model
    ----------------------------------------- */

    .scope-model {
        margin-top: 50px;
    }

    .scope-flow {
        display: flex;

        flex-direction: column;

        gap: 0;
    }

    .scope-flow-line {
        width: 1px;

        height: 28px;

        margin-left: 22px;
    }

    .scope-flow-step {
        width: 100%;
    }


    /* -----------------------------------------
       Bridge
    ----------------------------------------- */

    .scope-bridge {
        gap: 25px;

        margin-top: 45px;
        margin-bottom: 45px;

        padding: 28px 24px;
    }

    .scope-bridge-copy h3 {
        font-size: 1.55rem;
    }

    .scope-bridge-action {
        width: 100%;

        min-width: 0;
    }

}


/* ==========================================================
   480px — SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    /* -----------------------------------------
       Metrics
    ----------------------------------------- */

    .scope-metrics {
        gap: 10px;
    }

    .scope-metric {
        padding: 18px 15px;
    }

    .scope-metric-number {
        font-size: 1.5rem;
    }

    .scope-metric-label {
        font-size: 0.68rem;
        line-height: 1.45;
    }


    /* -----------------------------------------
       Domain cards
    ----------------------------------------- */

    .scope-domain {
        flex-basis: 86%;
    }


    /* -----------------------------------------
       Domain panel
    ----------------------------------------- */

    .scope-panel-content {
        padding: 25px 20px;
    }

    .scope-panel-content h4 {
        font-size: 1.4rem;
    }

    .scope-panel-tags span {
        font-size: 0.62rem;
    }


    /* -----------------------------------------
       Complexity cards
    ----------------------------------------- */

    .scope-capability-card {
        padding: 21px 18px;
    }

    .scope-capability-card h4 {
        font-size: 1rem;
    }

    .scope-capability-card p {
        font-size: 0.82rem;
    }


    /* -----------------------------------------
       Transformation flow
    ----------------------------------------- */

    .scope-flow-step {
        padding: 20px;
    }

    .scope-flow-line {
        height: 24px;
        margin-left: 20px;
    }


    /* -----------------------------------------
       Bridge
    ----------------------------------------- */

    .scope-bridge {
        padding: 25px 20px;
    }

    .scope-bridge-copy h3 {
        font-size: 1.4rem;
    }

}
