/* ==========================================================
   CODEHUB BRAND INTRO SYSTEM
   ========================================================== */

.ch4-story {
    --ch4-navy: #071326;
    --ch4-blue: #287ce0;
    --ch4-ink: #10203a;
    --ch4-muted: #65738a;
    background: #f7f9fc;
    color: var(--ch4-ink);
}

.ch4-story[hidden] {
    display: none !important;
}

/* INTRO OVERLAY */

.ch4-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    overflow: hidden;
    color: #fff;
    background: var(--ch4-navy);
    isolation: isolate;
}

.ch4-intro.is-playing {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch4-intro.is-exiting {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s ease, visibility 1s ease;
}

.ch4-intro-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse at 50% 48%, rgba(32, 103, 190, .28), transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(18, 73, 143, .20), transparent 40%),
        linear-gradient(135deg, #06101f, #0b1c36 55%, #071326);
    transform: scale(1.04);
}

.ch4-intro.is-playing .ch4-intro-background {
    animation: ch4BackgroundDrift 12s ease-in-out infinite alternate;
}

.ch4-light-beam {
    position: absolute;
    z-index: -1;
    top: -40%;
    left: -60%;
    width: 42%;
    height: 180%;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(106, 176, 255, .10),
        rgba(157, 207, 255, .38),
        rgba(106, 176, 255, .10),
        transparent
    );
    transform: rotate(22deg);
}

.ch4-intro.is-logo .ch4-light-beam {
    animation: ch4LightSweep 2.2s ease-out .2s forwards;
}

.ch4-particle-field {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background-image:
        radial-gradient(circle, rgba(161, 205, 255, .75) 1px, transparent 1.8px),
        radial-gradient(circle, rgba(86, 154, 239, .55) 1px, transparent 2px);
    background-size: 83px 83px, 137px 137px;
    background-position: 0 0, 38px 55px;
}

.ch4-intro.is-logo .ch4-particle-field {
    animation: ch4ParticleReveal 1.8s ease-out forwards;
}

/* LOGO PHASE */

.ch4-logo-phase {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(90vw, 720px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(22px) scale(.94);
}

.ch4-intro.is-logo .ch4-logo-phase {
    animation: ch4LogoEntrance 1.5s cubic-bezier(.16, 1, .3, 1) forwards;
}

.ch4-logo-container {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(230px, 35vw, 390px);
    height: clamp(145px, 23vw, 235px);
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 25px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(90, 162, 255, .12),
        0 25px 100px rgba(0, 0, 0, .35),
        0 0 70px rgba(55, 140, 255, .22);
}

.ch4-logo-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255, 255, 255, .9) 48%,
        transparent 68%
    );
    transform: translateX(-150%);
}

.ch4-intro.is-logo .ch4-logo-container::after {
    animation: ch4LogoShine 1.5s ease-out 1s forwards;
}

.ch4-logo-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ch4-logo-rings {
    position: absolute;
    display: grid;
    place-items: center;
    width: 470px;
    height: 470px;
}

.ch4-logo-rings span {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(93, 168, 255, .24);
    border-radius: 50%;
    transform: scale(.55);
    opacity: 0;
}

.ch4-logo-rings span:nth-child(2) {
    width: 82%;
    height: 82%;
}

.ch4-logo-rings span:nth-child(3) {
    width: 64%;
    height: 64%;
}

.ch4-intro.is-logo .ch4-logo-rings span {
    animation: ch4RingExpand 2.2s ease-out forwards;
}

.ch4-intro.is-logo .ch4-logo-rings span:nth-child(2) {
    animation-delay: .18s;
}

.ch4-intro.is-logo .ch4-logo-rings span:nth-child(3) {
    animation-delay: .36s;
}

.ch4-logo-aura {
    position: absolute;
    width: 320px;
    height: 220px;
    border-radius: 50%;
    background: rgba(34, 116, 227, .22);
    filter: blur(65px);
    opacity: 0;
}

.ch4-intro.is-logo .ch4-logo-aura {
    animation: ch4AuraPulse 2.8s ease-in-out infinite alternate;
}

.ch4-brand-name {
    margin-top: 28px;
    color: #fff;
    font-size: clamp(13px, 2vw, 17px);
    font-weight: 800;
    letter-spacing: 5px;
    opacity: 0;
}

.ch4-intro.is-logo .ch4-brand-name {
    animation: ch4CaptionIn .8s ease-out 1.1s forwards;
}

.ch4-brand-descriptor {
    margin-top: 10px;
    color: rgba(207, 225, 249, .67);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0;
}

.ch4-intro.is-logo .ch4-brand-descriptor {
    animation: ch4CaptionIn .8s ease-out 1.35s forwards;
}

/* STATEMENT PHASE */

.ch4-statement-phase {
    position: absolute;
    width: min(1000px, 90vw);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(35px);
}

.ch4-intro.is-statement .ch4-statement-phase {
    animation: ch4StatementIn 1s cubic-bezier(.16, 1, .3, 1) forwards;
}

.ch4-statement-line {
    width: 54px;
    height: 2px;
    margin: 0 auto 26px;
    background: #65adff;
    box-shadow: 0 0 20px rgba(101, 173, 255, .7);
}

.ch4-statement-eyebrow {
    margin: 0 0 20px;
    color: #80b9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
}

.ch4-statement-phase h1 {
    max-width: 950px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(32px, 5.2vw, 66px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -2px;
}

.ch4-statement-phase h1 span {
    display: block;
    margin-top: 8px;
    color: #82baff;
}

.ch4-statement-subtitle {
    max-width: 620px;
    margin: 25px auto 0;
    color: rgba(224, 235, 250, .73);
    font-size: 16px;
    line-height: 1.8;
    opacity: 0;
}

.ch4-intro.is-statement .ch4-statement-subtitle {
    animation: ch4CaptionIn .8s ease-out .65s forwards;
}

/* SHOWCASE PHASE */

.ch4-showcase-phase {
    position: absolute;
    width: min(1420px, 94vw);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
}

.ch4-intro.is-showcase .ch4-showcase-phase {
    animation: ch4StatementIn .85s ease-out forwards;
}

.ch4-showcase-heading {
    margin-bottom: 30px;
    text-align: center;
}

.ch4-showcase-heading > span {
    color: #83baff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.ch4-showcase-heading h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(27px, 4vw, 43px);
    letter-spacing: -1px;
}

.ch4-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.ch4-showcase-card {
    position: relative;
    height: clamp(230px, 35vh, 390px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background: #142945;
    opacity: 0;
    transform: translateY(32px) scale(.96);
}

.ch4-showcase-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1.2s ease;
}

.ch4-showcase-card.is-revealed {
    animation: ch4CardReveal .85s cubic-bezier(.16, 1, .3, 1) forwards;
}

.ch4-showcase-card.is-revealed img {
    transform: scale(1);
}

.ch4-showcase-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 20%,
        rgba(4, 13, 26, .2) 45%,
        rgba(4, 13, 26, .93) 100%
    );
}

.ch4-showcase-caption {
    position: absolute;
    right: 16px;
    bottom: 19px;
    left: 16px;
}

.ch4-showcase-caption span {
    color: #9bcaff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.ch4-showcase-caption h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.2;
}

/* PROGRESS AND SKIP */

.ch4-intro-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, .12);
}

.ch4-intro-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #69adff;
    box-shadow: 0 0 15px rgba(105, 173, 255, .8);
}

.ch4-intro.is-playing .ch4-intro-progress span {
    animation: ch4Progress 4.5s linear forwards;
}

.ch4-skip-button {
    position: absolute;
    z-index: 10;
    right: 30px;
    bottom: 25px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 30px;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .06);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ch4-skip-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .15);
}

/* STORY CONTENT */

.ch4-story-content {
    max-width: 1250px;
    margin: 0 auto;
    padding: 90px 28px 65px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .9s ease, transform .9s ease;
}

.ch4-story-content.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.ch4-story-hero {
    max-width: 850px;
    margin: 0 auto 85px;
    text-align: center;
}

.ch4-story-label,
.ch4-section-heading > span {
    color: var(--ch4-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.ch4-story-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ch4-story-label span {
    width: 25px;
    height: 2px;
    background: var(--ch4-blue);
}

.ch4-story-hero h2 {
    margin: 22px 0;
    color: var(--ch4-ink);
    font-size: clamp(36px, 5vw, 57px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.ch4-story-hero p {
    color: var(--ch4-muted);
    font-size: 16px;
    line-height: 1.9;
}

.ch4-story-flagship {
    display: grid;
    gap: 9px;
    max-width: 660px;
    margin: 30px auto 0;
    padding: 21px 24px;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #f1f5f9);
    box-shadow: 0 12px 30px rgba(20, 42, 68, .06);
    text-align: left;
}

.ch4-story-flagship > span {
    color: #607c99;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.ch4-story-flagship p {
    margin: 0;
    color: #35465a;
    font-size: 15px;
    line-height: 1.7;
}

.ch4-story-flagship p strong {
    color: #172d48;
}

.ch4-story-flagship a {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #315f8a;
    font-size: 13px;
    font-weight: 800;
}

.ch4-story-flagship a:hover,
.ch4-story-flagship a:focus-visible {
    color: #1d456e;
}

.ch4-section-heading {
    margin-bottom: 30px;
    text-align: center;
}

.ch4-section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -1px;
}

.ch4-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.ch4-capability-grid article {
    padding: 26px 22px;
    border: 1px solid #e3eaf3;
    border-radius: 15px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ch4-capability-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(21, 47, 83, .09);
}

.ch4-capability-grid article > span {
    color: var(--ch4-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ch4-capability-grid h3 {
    margin: 17px 0 10px;
    font-size: 19px;
}

.ch4-capability-grid p {
    margin: 0;
    color: var(--ch4-muted);
    font-size: 13px;
    line-height: 1.75;
}

.ch4-company-direction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 85px;
}

.ch4-company-direction article {
    padding: 38px;
    border: 1px solid #e3eaf3;
    border-radius: 18px;
    background: #fff;
}

.ch4-company-direction article > span,
.ch4-tull-copy > span {
    color: var(--ch4-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ch4-company-direction h2 {
    margin: 17px 0 13px;
    font-size: 26px;
    line-height: 1.35;
}

.ch4-company-direction p {
    color: var(--ch4-muted);
    line-height: 1.8;
}

.ch4-tull-feature {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    align-items: center;
    gap: 45px;
    margin-top: 80px;
    padding: 55px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(125deg, #0b1930, #17477d);
}

.ch4-tull-mark {
    color: #fff;
    font-size: clamp(65px, 10vw, 115px);
    font-weight: 900;
    letter-spacing: -7px;
}

.ch4-tull-copy > span {
    color: #9bcaff;
}

.ch4-tull-copy h2 {
    margin: 15px 0;
    color: #fff;
    font-size: clamp(27px, 3vw, 38px);
}

.ch4-tull-copy p {
    color: rgba(255, 255, 255, .8);
    line-height: 1.8;
}

.ch4-tull-copy .ch4-tull-status {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid rgba(159, 202, 255, .4);
    border-radius: 30px;
    color: #b8d8ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.ch4-tull-copy a {
    display: block;
    margin-top: 16px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.ch4-tull-copy a span {
    margin-left: 7px;
}

.ch4-story-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 50px;
}

.ch4-story-navigation a {
    color: var(--ch4-blue);
    font-weight: 700;
    text-decoration: none;
}

/* ANIMATION KEYFRAMES */

@keyframes ch4LogoEntrance {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(35px) scale(.82);
        filter: blur(10px);
    }
    65% {
        opacity: 1;
        visibility: visible;
        transform: translateY(-5px) scale(1.035);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes ch4LightSweep {
    0% { opacity: 0; left: -60%; }
    20% { opacity: 1; }
    100% { opacity: 0; left: 130%; }
}

@keyframes ch4ParticleReveal {
    0% { opacity: 0; transform: scale(.8); }
    100% { opacity: .7; transform: scale(1); }
}

@keyframes ch4RingExpand {
    0% { opacity: 0; transform: scale(.55) rotate(-20deg); }
    50% { opacity: .8; }
    100% { opacity: .2; transform: scale(1.2) rotate(30deg); }
}

@keyframes ch4AuraPulse {
    0% { opacity: .35; transform: scale(.8); }
    100% { opacity: .9; transform: scale(1.2); }
}

@keyframes ch4LogoShine {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}

@keyframes ch4CaptionIn {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ch4StatementIn {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes ch4CardReveal {
    0% { opacity: 0; transform: translateY(32px) scale(.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ch4BackgroundDrift {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.12); }
}

@keyframes ch4Progress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .ch4-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch4-showcase-card {
        height: 230px;
    }

    .ch4-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ch4-logo-rings {
        width: 320px;
        height: 320px;
    }

    .ch4-brand-name {
        letter-spacing: 3px;
    }

    .ch4-brand-descriptor {
        font-size: 7px;
        letter-spacing: 1.8px;
    }

    .ch4-statement-phase h1 {
        font-size: clamp(29px, 8vw, 42px);
        letter-spacing: -1.3px;
    }

    .ch4-statement-subtitle {
        font-size: 13px;
    }

    .ch4-showcase-phase {
        width: 92vw;
    }

    .ch4-showcase-heading {
        margin-bottom: 18px;
    }

    .ch4-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .ch4-showcase-card {
        height: 185px;
        border-radius: 10px;
    }

    .ch4-showcase-caption {
        right: 10px;
        bottom: 12px;
        left: 10px;
    }

    .ch4-showcase-caption h3 {
        font-size: 14px;
    }

    .ch4-showcase-caption span {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .ch4-skip-button {
        right: 15px;
        bottom: 15px;
        font-size: 11px;
    }

    .ch4-story-content {
        padding: 60px 17px 45px;
    }

    .ch4-story-hero {
        margin-bottom: 55px;
    }

    .ch4-capability-grid {
        grid-template-columns: 1fr;
    }

    .ch4-company-direction {
        grid-template-columns: 1fr;
        margin-top: 55px;
    }

    .ch4-company-direction article {
        padding: 27px;
    }

    .ch4-tull-feature {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 55px;
        padding: 30px 24px;
    }

    .ch4-tull-mark {
        font-size: 76px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .ch4-intro *,
    .ch4-story-content,
    .ch4-capability-grid article {
        animation: none !important;
        transition: none !important;
    }
}

/* ==================================================
   CODEHUB PERMANENT CAPABILITY SHOWCASE
   ================================================== */

.ch4-capabilities-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 76px 0 92px;
}

.ch4-capabilities-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.ch4-capabilities-eyebrow,
.ch4-dialog-eyebrow {
    display: inline-block;
    color: #1686c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.ch4-capabilities-heading h2 {
    margin: 13px 0;
    color: #10233f;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.15;
}

.ch4-capabilities-heading p {
    color: #65758a;
    font-size: 15px;
    line-height: 1.7;
}

.ch4-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ch4-capability-card {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 15px;
    background: #fff;
    color: #142b49;
    text-align: left;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 7px 25px rgba(16, 35, 63, .055);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ch4-capability-card:hover,
.ch4-capability-card:focus-visible {
    transform: translateY(-7px);
    border-color: #1686c9;
    box-shadow: 0 17px 38px rgba(16, 35, 63, .14);
    outline: none;
}

.ch4-capability-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eaf0f5;
}

.ch4-capability-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
    transition: transform .55s ease;
}

.ch4-capability-card:hover img {
    transform: scale(1.055);
}

.ch4-capability-number {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(9, 29, 53, .78);
    color: white;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.ch4-capability-open-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #fff;
    color: #126fae;
    font-size: 20px;
    transition: transform .25s ease;
}

.ch4-capability-card:hover .ch4-capability-open-icon {
    transform: rotate(45deg);
}

.ch4-capability-card-title {
    display: block;
    padding: 19px 17px 5px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.ch4-capability-card-hint {
    display: block;
    padding: 0 17px 19px;
    color: #718197;
    font-size: 12px;
}

/* ==================================================
   CAPABILITY DETAIL DIALOG
   ================================================== */

.ch4-capability-dialog {
    width: min(570px, calc(100% - 32px));
    max-width: none;
    max-height: min(80vh, 620px);
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 22px;
    background: #fff;
    color: #142b49;
    box-shadow: 0 28px 100px rgba(0,0,0,.3);
}

.ch4-capability-dialog[open] {
    animation: ch4-dialog-enter .28s ease both;
}

.ch4-capability-dialog::backdrop {
    background: rgba(5, 17, 33, .76);
    backdrop-filter: blur(7px);
}

.ch4-capability-dialog-inner {
    position: relative;
    min-height: 290px;
    padding: 65px 48px 43px;
}

.ch4-capability-dialog-image {
    display: block;
    width: 100%;
    height: clamp(190px, 40vw, 260px);
    margin-bottom: 24px;
    border-radius: 14px;
    background: #eaf0f5;
    object-fit: cover;
    object-position: center 5%;
}

.ch4-capability-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #edf2f7;
    color: #142b49;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ch4-capability-dialog-close:hover {
    background: #126fae;
    color: #fff;
}

.ch4-dialog-number {
    display: block;
    margin-bottom: 16px;
    color: #1686c9;
    font-size: clamp(45px, 8vw, 68px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
}

.ch4-dialog-eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
}

.ch4-capability-dialog h2 {
    margin: 14px 0 15px;
    color: #10233f;
    font-size: clamp(25px, 5vw, 35px);
    line-height: 1.2;
}

.ch4-capability-dialog p {
    max-width: 440px;
    margin: 0;
    color: #617187;
    font-size: 16px;
    line-height: 1.85;
}

.ch4-dialog-details {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.ch4-dialog-details li {
    position: relative;
    padding-left: 20px;
    color: #31445d;
    font-size: 15px;
    line-height: 1.6;
}

.ch4-dialog-details li::before {
    position: absolute;
    top: .65em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1686c9;
    content: "";
}

.ch4-dialog-bottom-line {
    width: 62px;
    height: 4px;
    margin-top: 34px;
    border-radius: 5px;
    background: #1686c9;
}

@keyframes ch4-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* TABLET */

@media (max-width: 900px) {
    .ch4-capabilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* MOBILE */

@media (max-width: 520px) {
    .ch4-capabilities-section {
        width: calc(100% - 30px);
        padding: 52px 0 65px;
    }

    .ch4-capabilities-grid {
        gap: 12px;
    }

    .ch4-capability-card {
        border-radius: 11px;
    }

    .ch4-capability-card-title {
        padding: 13px 11px 5px;
        font-size: 13px;
    }

    .ch4-capability-card-hint {
        padding: 0 11px 14px;
        font-size: 11px;
    }

    .ch4-capability-number {
        top: 9px;
        left: 9px;
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .ch4-capability-open-icon {
        right: 9px;
        bottom: 9px;
        width: 31px;
        height: 31px;
    }

    .ch4-capability-dialog-inner {
        min-height: 260px;
        padding: 62px 25px 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ch4-capability-card,
    .ch4-capability-image img,
    .ch4-capability-open-icon {
        transition: none;
    }

    .ch4-capability-dialog[open] {
        animation: none;
    }
}