.cw-lab-page {
    padding-bottom: 72px;
}

.cw-lab-hero {
    position: relative;
    min-height: min(500px, calc(100vh - 185px));
    overflow: hidden;
    background: #7bcddb;
}

.cw-lab-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cw-lab-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: min(500px, calc(100vh - 185px));
    padding-top: 64px;
    padding-bottom: 64px;
}

.cw-lab-kicker {
    margin: 0 0 14px;
    color: #09383d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.cw-lab-hero h1 {
    max-width: 620px;
    margin: 0;
    color: #071c20;
    font-size: 3.25rem;
    letter-spacing: 0;
    line-height: 1.05;
}

.cw-lab-hero-lede {
    max-width: 560px;
    margin: 18px 0 28px;
    color: #102d32;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cw-lab-hero-action,
.cw-lab-theory-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.cw-lab-hero-action .fas,
.cw-lab-theory-action .fas {
    font-size: 0.85em;
}

.cw-lab-introduction,
.cw-lab-method {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 68px;
    padding-top: 72px;
    padding-bottom: 72px;
    border-bottom: 1px solid var(--border-color);
}

.cw-lab-section-heading h2,
.cw-lab-library-header h2,
.cw-lab-method h2 {
    max-width: 630px;
    margin: 0;
    color: var(--text-heading);
    font-size: 2rem;
    letter-spacing: 0;
    line-height: 1.2;
}

.cw-lab-introduction-copy {
    display: grid;
    gap: 16px;
    align-content: start;
    padding-top: 5px;
}

.cw-lab-introduction-copy p {
    max-width: 700px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.cw-lab-theories {
    padding-top: 68px;
}

.cw-lab-library-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.cw-lab-library-header > p {
    max-width: 350px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: right;
}

.cw-lab-theory-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
    min-height: 395px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.cw-lab-theory-card-copy {
    padding: 42px;
}

.cw-lab-theory-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--cw-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cw-lab-theory-status span {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.cw-lab-theory-card h3 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.7rem;
    letter-spacing: 0;
    line-height: 1.2;
}

.cw-lab-theory-card-copy > p:not(.cw-lab-theory-status) {
    max-width: 610px;
    margin: 13px 0 20px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.cw-lab-theory-paths {
    display: grid;
    gap: 9px;
    margin: 0 0 27px;
    padding: 0;
    list-style: none;
}

.cw-lab-theory-paths li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cw-lab-theory-paths .fas {
    width: 16px;
    color: var(--cw-blue);
    text-align: center;
}

.cw-lab-theory-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    background: #0e2429;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cw-lab-visual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    color: #d9f6f2;
    font-size: 0.88rem;
    font-weight: 750;
}

.cw-lab-visual-head .fas {
    color: #3bd8c7;
    font-size: 1.1rem;
}

.cw-lab-visual-lines {
    display: grid;
    gap: 16px;
}

.cw-lab-visual-lines > div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 9px;
    color: #b5d4d0;
    font-size: 0.75rem;
    font-weight: 800;
}

.cw-lab-visual-lines b {
    color: #f2ffff;
    text-align: right;
}

.cw-lab-meter {
    display: block;
    height: 7px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
}

.cw-lab-meter::before {
    display: block;
    height: 100%;
    content: "";
    background: #3bd8c7;
    border-radius: inherit;
}

.cw-lab-meter-one::before { width: 45%; }
.cw-lab-meter-two::before { width: 39%; }
.cw-lab-meter-three::before { width: 79%; background: #efb64d; }
.cw-lab-meter-four::before { width: 77%; background: #e77e65; }
.cw-lab-meter-five::before { width: 73%; background: #a7db67; }
.cw-lab-meter-six::before { width: 35%; }

.cw-lab-visual-caption {
    margin-top: 25px;
    color: #8fb8b4;
    font-size: 0.78rem;
    text-align: right;
}

.cw-lab-method {
    align-items: start;
    padding-top: 72px;
    padding-bottom: 0;
    border-bottom: 0;
}

.cw-lab-method-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border-color);
}

.cw-lab-method-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cw-lab-method-list span {
    color: var(--cw-blue);
    font-size: 0.75rem;
    font-weight: 800;
}

.cw-lab-method-list p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.55;
}

body.light-mode .cw-lab-hero h1,
body.light-mode .cw-lab-hero-lede,
body.light-mode .cw-lab-kicker {
    color: #071c20;
}

@media (max-width: 840px) {
    .cw-lab-introduction,
    .cw-lab-method {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .cw-lab-theory-card {
        grid-template-columns: 1fr;
    }

    .cw-lab-theory-visual {
        min-height: 280px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .cw-lab-method {
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .cw-lab-page {
        padding-bottom: 50px;
    }

    .cw-lab-hero,
    .cw-lab-hero-content {
        min-height: 430px;
    }

    .cw-lab-hero-image {
        object-position: 65% center;
    }

    .cw-lab-hero-content {
        justify-content: end;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .cw-lab-hero h1 {
        max-width: 260px;
        font-size: 2.35rem;
    }

    .cw-lab-hero-lede {
        max-width: 300px;
        margin-top: 13px;
        margin-bottom: 22px;
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .cw-lab-section-heading h2,
    .cw-lab-library-header h2,
    .cw-lab-method h2 {
        font-size: 1.65rem;
    }

    .cw-lab-library-header {
        display: block;
        margin-bottom: 18px;
    }

    .cw-lab-library-header > p {
        margin-top: 12px;
        text-align: left;
    }

    .cw-lab-theory-card-copy,
    .cw-lab-theory-visual {
        padding: 28px 22px;
    }

    .cw-lab-theory-card h3 {
        font-size: 1.45rem;
    }

    .cw-lab-theory-visual {
        min-height: 250px;
    }

    .cw-lab-hero-action,
    .cw-lab-theory-action {
        width: 100%;
        justify-content: center;
    }
}
