/* ENV-I Environment Index — Section 03. Scoped, responsive, no external imagery. */
#index-framework {
    --if-blue: var(--electric-blue-500, #2251FF);
    --if-teal: var(--ocean-teal, #08C4B2);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 80% 16%, #087b91 0%, transparent 38%), radial-gradient(ellipse at 18% 80%, #174ac2 0%, transparent 48%), linear-gradient(118deg, #061f79 0%, #09255c 55%, #063f5d 100%);
    padding: clamp(52px, 6vh, 86px) 0 38px;
    font-family: inherit
}

#index-framework::before {
    content: "";
    position: absolute;
    inset: auto -15% -58% 22%;
    height: 70%;
    border: 1px solid rgba(125, 234, 213, .15);
    border-radius: 50%;
    transform: rotate(-12deg);
    pointer-events: none
}

#index-framework .index-framework__container {
    width: min(100% - 5vw);
    margin-inline: auto;
    position: relative;
    z-index: 1
}

#index-framework .index-framework__eyebrow,
#index-framework .index-framework__tag,
#index-framework .index-framework__scenario-kicker {
    font-size: .75rem;
    letter-spacing: .16em;
    font-weight: 700;
    color: #7dead5;
    text-transform: uppercase
}

#index-framework .index-framework__intro h2 {
    font-size: clamp(2.15rem, 3.35vw, 3.85rem);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 750;
    margin: .6rem 0 .7rem;
    color: #fff
}

#index-framework .index-framework__intro h2 span {
    color: var(--if-teal)
}

#index-framework .index-framework__subhead {
    font-size: clamp(1rem, 1.45vw, 1.4rem);
    font-weight: 600;
    margin: 0 0 .5rem;
    color: #fff
}

#index-framework .index-framework__intro-copy {
    font-size: clamp(.92rem, 1.03vw, 1.08rem);
    line-height: 1.55;
    color: #d9e8fc;
    max-width: 960px;
    margin: 0 0 1.65rem
}

#index-framework .index-framework__navigation {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px
}

#index-framework .index-framework__tab {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 3px;
    background: linear-gradient(140deg, #cce1ff, #6e9dff);
    color: #061f79;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: background .28s ease, box-shadow .28s ease, transform .28s ease;
    padding: 9px 5px;
    min-width: 0
}

#index-framework .index-framework__tab:nth-child(2) {
    background: linear-gradient(135deg, #99c4ff, #6e9dff)
}

#index-framework .index-framework__tab:nth-child(3) {
    background: linear-gradient(135deg, #2972ff, #2251ff);
    color: #fff
}

#index-framework .index-framework__tab:nth-child(4) {
    background: linear-gradient(135deg, #2251ff, #1c44dc);
    color: #fff
}

#index-framework .index-framework__tab:nth-child(5) {
    background: linear-gradient(135deg, #1c44dc, #1537ba);
    color: #fff
}

#index-framework .index-framework__tab:nth-child(6) {
    background: linear-gradient(135deg, #08c4b2, #026661);
    color: #fff
}

#index-framework .index-framework__tab>span {
    font-size: clamp(1.35rem, 2vw, 2.05rem);
    font-weight: 750;
    line-height: 1
}

#index-framework .index-framework__tab small {
    font-size: clamp(.65rem, .85vw, .85rem);
    font-weight: 650;
    line-height: 1.2;
    text-align: center
}

#index-framework .index-framework__tab.is-active {
    outline: 2px solid #fff;
    outline-offset: -4px;
    box-shadow: 0 0 0 2px rgba(8, 196, 178, .8), 0 9px 30px rgba(0, 0, 0, .16)
}

#index-framework .index-framework__tab:hover {
    transform: translateY(-2px)
}

#index-framework .index-framework__tab:focus-visible,
#index-framework .index-framework__control:focus-visible {
    outline: 3px solid #7dead5;
    outline-offset: 3px
}

#index-framework .index-framework__readiness {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 45px;
    font-size: .7rem;
    letter-spacing: .08em;
    font-weight: 700;
    color: #cce1ff
}

#index-framework .index-framework__readiness span:last-child {
    color: #7dead5
}

#index-framework .index-framework__detail {
    display: grid;
    grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr);
    gap: clamp(24px, 3.6vw, 64px);
    align-items: stretch;
    min-height: 425px
}

#index-framework .index-framework__level-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 16px
}

#index-framework .index-framework__number {
    font-size: clamp(4.8rem, 7.2vw, 8.5rem);
    line-height: .95;
    font-weight: 700;
    letter-spacing: -.07em;
    color: #7dead5;
    flex: none
}

#index-framework .index-framework__level-heading h3 {
    font-size: clamp(2.4rem, 3.4vw, 4.2rem);
    line-height: 1;
    letter-spacing: -.04em;
    color: #fff;
    margin: 4px 0 8px
}

#index-framework .index-framework__tag {
    margin: 0
}

#index-framework .index-framework__summary {
    color: #d9e8fc;
    font-size: clamp(.95rem, 1.15vw, 1.16rem);
    line-height: 1.35;
    margin: 0
}

#index-framework .index-framework__explanations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px
}

#index-framework .index-framework__explanation {
    padding: 13px 0 14px;
    border-top: 1px solid rgba(204, 225, 255, .3)
}

#index-framework .index-framework__explanation h4 {
    font-size: .78rem;
    line-height: 1.3;
    letter-spacing: .075em;
    text-transform: uppercase;
    color: #7dead5;
    font-weight: 750;
    margin: 0 0 8px
}

#index-framework .index-framework__explanation p,
#index-framework .index-framework__explanation li {
    font-size: clamp(.88rem, .95vw, 1rem);
    line-height: 1.48;
    color: #e5efff;
    margin: 0
}

#index-framework .index-framework__explanation ul {
    padding-left: 18px;
    margin: 0
}

#index-framework .index-framework__explanation li+li {
    margin-top: 3px
}

#index-framework .index-framework__scenario {
    background: linear-gradient(135deg, rgba(2, 102, 97, .53), rgba(6, 31, 121, .47));
    border: 1px solid rgba(125, 234, 213, .55);
    border-radius: 16px;
    padding: clamp(22px, 2.2vw, 38px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column
}

#index-framework .index-framework__scenario-kicker {
    margin: 0 0 9px
}

#index-framework .index-framework__scenario h4 {
    font-size: clamp(1.4rem, 1.9vw, 2.25rem);
    line-height: 1.14;
    letter-spacing: -.03em;
    margin: 0 0 12px;
    color: #fff
}

#index-framework .index-framework__scenario-intro {
    font-size: clamp(.9rem, 1.02vw, 1.07rem);
    line-height: 1.5;
    color: #e4f6f4;
    margin: 0 0 15px
}

#index-framework .index-framework__scenario-list {
    list-style: none;
    padding: 0;
    margin: 0
}

#index-framework .index-framework__scenario-list li {
    padding: 11px 0;
    border-top: 1px solid rgba(204, 241, 234, .27);
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 12px
}

#index-framework .index-framework__scenario-list strong {
    font-size: .9rem;
    color: #fff
}

#index-framework .index-framework__scenario-list p {
    font-size: .89rem;
    line-height: 1.42;
    color: #d9f4ef;
    margin: 0
}

#index-framework .index-framework__forward {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(204, 241, 234, .35)
}

#index-framework .index-framework__forward strong {
    font-size: .7rem;
    letter-spacing: .12em;
    color: #7dead5
}

#index-framework .index-framework__forward p {
    margin: 5px 0 0;
    font-size: .88rem;
    color: #e3f6f2;
    line-height: 1.42
}

#index-framework .index-framework__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px
}

#index-framework .index-framework__control {
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 100px;
    background: transparent;
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .025em;
    padding: 11px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background .2s ease
}

#index-framework .index-framework__control:hover {
    background: rgba(255, 255, 255, .12)
}

#index-framework .index-framework__control--next {
    background: var(--if-blue);
    border-color: #7dead5
}

#index-framework .index-framework__control span {
    font-size: 1.3rem;
    line-height: 1
}

#index-framework .index-framework__count {
    font-size: .8rem;
    color: #cce1ff;
    letter-spacing: .13em;
    font-variant-numeric: tabular-nums
}

#index-framework .index-framework__disclaimer {
    font-size: .8rem;
    line-height: 1.5;
    color: #d9e8fc;
    opacity: 1;
    margin: 17px 0 0
}

#index-framework.is-circular {
    background: radial-gradient(ellipse at 82% 20%, #067e77 0%, transparent 45%), radial-gradient(ellipse at 18% 82%, #174ac2 0%, transparent 47%), linear-gradient(120deg, #061f79, #063f5d)
}

#index-framework.is-circular .index-framework__scenario {
    border-color: #7dead5;
    background: linear-gradient(145deg, rgba(2, 102, 97, .8), rgba(6, 31, 121, .52))
}



@keyframes indexFrameworkEnter {
    from {
        opacity: .65
    }

    to {
        opacity: 1
    }
}

#index-framework .index-framework__detail.is-entering {
    animation: indexFrameworkEnter .42s ease both
}

@media(max-width:991.98px) {
    #index-framework .index-framework__container {
        width: calc(100% - 48px)
    }

    #index-framework .index-framework__detail {
        grid-template-columns: 1fr;
        gap: 22px
    }

    #index-framework .index-framework__scenario {
        min-height: 0
    }

    #index-framework .index-framework__scenario-list li {
        grid-template-columns: 155px 1fr
    }
}

@media(max-width:575.98px) {
    #index-framework {
        padding: 50px 0 35px
    }

    #index-framework .index-framework__container {
        width: calc(100% - 32px)
    }

    #index-framework .index-framework__navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px
    }

    #index-framework .index-framework__tab {
        min-height: 64px
    }

    #index-framework .index-framework__readiness {
        font-size: .58rem;
        line-height: 1.3
    }

    #index-framework .index-framework__level-heading {
        gap: 15px;
        align-items: flex-start
    }

    #index-framework .index-framework__number {
        font-size: 4.6rem
    }

    #index-framework .index-framework__level-heading h3 {
        font-size: 2.35rem
    }

    #index-framework .index-framework__explanations {
        grid-template-columns: 1fr
    }

    #index-framework .index-framework__scenario-list li {
        grid-template-columns: 1fr;
        gap: 4px
    }

    #index-framework .index-framework__control {
        font-size: .67rem;
        padding: 11px 12px;
        gap: 6px
    }

    #index-framework .index-framework__count {
        font-size: .65rem
    }

    #index-framework .index-framework__intro-copy {
        margin-bottom: 1.25rem
    }
}

@media(prefers-reduced-motion:reduce) {

    #index-framework *,
    #index-framework *::before,
    #index-framework *::after {
        animation: none !important;
        transition: none !important
    }
}

/* V2: Homepage-style, icon-only controls; presentation is paused by default. */
#index-framework .index-framework__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 22px;
}

#index-framework .index-framework__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.5vw, 36px);
}

#index-framework .index-framework__control,
#index-framework .index-framework__control--next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 44px;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    transition: color .25s ease, transform .25s ease;
}

#index-framework .index-framework__control:hover {
    background: transparent;
    color: var(--if-teal, #08c4b2);
    transform: translateY(-2px);
}

#index-framework .index-framework__control i {
    font-size: 1.55rem;
    line-height: 1;
    font-style: normal;
}

#index-framework .index-framework__control[data-framework-play] i {
    font-size: 1.45rem;
}

#index-framework .index-framework__control:focus-visible {
    outline: 2px solid #7dead5;
    outline-offset: 5px;
}

@media(max-width:575.98px) {
    #index-framework .index-framework__controls {
        gap: 18px
    }

    #index-framework .index-framework__control {
        min-width: 40px;
        min-height: 44px;
        padding: 4px
    }

    #index-framework .index-framework__control i {
        font-size: 1.6rem
    }
}

@media(prefers-reduced-motion:reduce) {
    #index-framework .index-framework__control {
        transition: none
    }

    #index-framework .index-framework__control:hover {
        transform: none
    }
}

/* Desktop: keep the presentation controls stationary when level copy wraps. */
@media (min-width: 992px) {
    #index-framework .index-framework__detail {
        min-height: var(--framework-detail-height, 425px);
    }
}


/* V4 — tighter desktop composition, restrained active tab, balanced scenario.
   Scoped to Section 03; no changes to the global navigation or other sections. */
@media (min-width: 992px) {
    #index-framework {
        padding-top: clamp(26px, 3.4vh, 48px);
        padding-bottom: 18px;
    }

    #index-framework .index-framework__intro h2 {
        margin-top: .35rem;
        margin-bottom: .45rem;
    }

    #index-framework .index-framework__intro-copy {
        margin-bottom: 1.3rem;
        line-height: 1.42;
    }

    #index-framework .index-framework__tab {
        min-height: 66px;
    }

    #index-framework .index-framework__readiness {
        margin: 9px 0 42px;
    }

    #index-framework .index-framework__level-heading {
        margin-bottom: 10px;
    }

    #index-framework .index-framework__number {
        font-size: clamp(4.5rem, 6.5vw, 7.5rem);
    }

    #index-framework .index-framework__explanation {
        padding: 12px 0 13px;
    }

    #index-framework .index-framework__explanation h4 {
        margin-bottom: 5px;
    }

    #index-framework .index-framework__scenario {
        padding: clamp(18px, 1.8vw, 28px);
    }

    #index-framework .index-framework__scenario h4 {
        margin-bottom: 8px;
    }

    #index-framework .index-framework__scenario-intro {
        margin-bottom: 10px;
    }

    #index-framework .index-framework__scenario-list li {
        padding: 8px 0;
    }

    #index-framework .index-framework__forward {
        margin-top: 14px;
        padding-top: 12px;
    }

    #index-framework .index-framework__footer {
        margin-top: 12px;
    }

    #index-framework .index-framework__disclaimer {
        margin-top: 5px;
    }
}

/* The active segment is signaled by a precise teal inset edge, not a white frame. */
#index-framework .index-framework__tab.is-active {
    outline: none;
    box-shadow: inset 0 -4px 0 var(--if-teal), 0 0 0 1px rgba(125, 234, 213, .65);
}

/* The scenario's final note follows its content; it is not pinned to the bottom. */
#index-framework .index-framework__forward {
    margin-top: 14px;
}

/* Keep the controls still when hovered; avoid a second source of motion. */
#index-framework .index-framework__control:hover {
    transform: none;
}

/* Standard, unslashed numerals; retain existing sizes and weights. */
#index-framework :is(.index-framework__tab > span, [data-framework-field="number"], .index-framework__readiness) {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  font-feature-settings: "zero" 0;
  font-style: normal;
}

/* Keep measured detail height and controls stable; let the example card fit its content. */
@media (min-width: 992px) {
  #index-framework .index-framework__container { width: 100%; padding-inline: clamp(24px, 3vw, 60px); }
  #index-framework .index-framework__scenario { align-self: start; padding: clamp(22px, 2vw, 32px); }
  #index-framework .index-framework__scenario-list li { padding-block: 10px; }
}


@media(max-width:575.98px){#index-framework .index-framework__level-heading > div {min-width:0;}  #index-framework .index-framework__level-heading h3 {font-size:clamp(1.65rem,6.5vw,2.35rem);}}

#index-framework .index-framework__number {letter-spacing:-.025em;line-height:1;}
#index-framework .index-framework__number .env-circular-loop {vertical-align:baseline;}

/* Maturity identifiers: fixed bold weight and unslashed numeral face. */
#index-framework :is(.index-framework__tab > span, [data-framework-field="number"]) {font-family:Arial,Helvetica,sans-serif;font-weight:700;}

#index-framework .index-inline-numeral {font-family:Arial,Helvetica,sans-serif;font-weight:inherit;font-size:inherit;}

/* Keep section controls and legal note clear of the fixed 44px utility button. */
#index-framework .index-framework__footer { padding-inline-end: 60px; }
#index-framework .index-framework__disclaimer { padding-inline-end: 60px; }
@media (max-width: 991.98px) {
    #index-framework .index-framework__detail { min-height: 0; }
    #index-framework .index-framework__footer { justify-content: center; padding-inline-end: 0; }
    #index-framework .index-framework__disclaimer { padding-inline-end: 0; margin-bottom: 56px; }
}
@media (hover: none) {
    #index-framework .index-framework__tab:hover { transform: none; }
    #index-framework .index-framework__control:hover { color: #fff; }
}

@media (max-width: 991.98px) { #index-framework { overflow-anchor: none; } }

/* Desktop viewport budget: share the final row instead of stacking the
   disclaimer below the controls. Keep the measured detail height and allow
   the section to grow naturally when the viewport cannot contain the copy. */
@media (min-width: 992px) {
    #index-framework {
        padding-top: clamp(20px, 2.8vh, 40px);
        padding-bottom: clamp(12px, 1.6vh, 20px);
        height: auto;
        max-height: none;
    }
    #index-framework .index-framework__container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 24px;
        align-items: center;
    }
    #index-framework .index-framework__container > :is(.index-framework__intro, .index-framework__navigation, .index-framework__readiness, .index-framework__detail) {
        grid-column: 1 / -1;
    }
    #index-framework .index-framework__intro-copy { margin-bottom: clamp(.8rem, 2vh, 1.3rem); }
    #index-framework .index-framework__readiness { margin-bottom: clamp(22px, 3.4vh, 42px); }
    #index-framework .index-framework__footer {
        grid-column: 2;
        grid-row: 5;
        margin-top: 8px;
    }
    #index-framework .index-framework__disclaimer {
        grid-column: 1;
        grid-row: 5;
        margin: 8px 0 0;
        padding-inline-end: 0;
    }
}

/* Explore remains fixed; give framework controls independent clearance. */
body.index-page[data-env-adaptive] #index-framework { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
body.index-page[data-env-adaptive] #index-framework .index-framework__footer { padding-inline-end: 0; }
body.index-page[data-env-adaptive] #index-framework .index-framework__disclaimer { margin-bottom: 0; }
