.home-evidence {
    --evidence-ink: #172e44;
    --evidence-muted: #426079;
    --evidence-accent: #245a85;
    --evidence-line: #bed0e1;
    position: relative;
    padding-block: clamp(50px, 8vw, 110px);
    color: var(--evidence-ink);
    background: #f4f7fb;
}

.home-evidence-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .45fr);
    align-items: end;
    gap: 12px clamp(22px, 4vw, 60px);
    margin-bottom: clamp(25px, 4.2vw, 57px);
}

.home-evidence-intro h2 {
    margin: 0;
    font-size: clamp(2.35rem, 5.15vw, 4.55rem);
    font-weight: 780;
    letter-spacing: -.06em;
    line-height: 1.02;
    text-wrap: balance;
}

.home-evidence-intro p {
    max-width: 32ch;
    margin: 0;
    color: var(--evidence-muted);
    text-wrap: pretty;
}

.home-evidence-deck {
    display: grid;
    gap: 17px;
    isolation: isolate;
}

.home-evidence-slot--cell { --evidence-offset: 0px; --evidence-card: #fff; }
.home-evidence-slot--wgbs { --evidence-offset: 35px; --evidence-card: #edf4fb; }
.home-evidence-slot--mirna { --evidence-offset: 70px; --evidence-card: #e2eff9; }

.home-evidence-card {
    overflow: clip;
    border: 1px solid var(--evidence-line);
    border-radius: 8px;
    background: var(--evidence-card);
    box-shadow: 0 14px 36px -26px #173e69a8;
    transform-origin: top center;
}

.home-evidence-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    min-height: 42px;
    padding: 8px clamp(14px, 3.4vw, 46px);
    border-bottom: 1px solid var(--evidence-line);
    color: var(--evidence-accent);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-evidence-tab span:last-child {
    flex: none;
    font-size: .69rem;
    font-weight: 760;
    letter-spacing: .055em;
}

.home-evidence-card-body {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(25px, 6.5vw, 106px);
    min-height: clamp(325px, 48svh, 530px);
    padding: clamp(22px, 4.8vw, 67px) clamp(18px, 3.4vw, 46px);
}

.home-evidence-copy h3 {
    max-width: 15ch;
    margin: 0 0 13px;
    font-size: clamp(2.15rem, 4.25vw, 3.9rem);
    font-weight: 790;
    letter-spacing: -.065em;
    line-height: 1;
    text-wrap: balance;
}

.home-evidence-copy p {
    max-width: 41ch;
    margin: 0;
    color: var(--evidence-muted);
    text-wrap: pretty;
}

.home-evidence-copy a {
    min-height: 44px;
    margin-top: 16px;
}

.home-evidence-figure {
    display: grid;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--evidence-line);
    border-radius: 5px;
    background: #f7fbff;
}

.home-evidence-figure figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 10px;
    padding: 9px clamp(10px, 2vw, 23px);
    border-bottom: 1px solid #d1deeb;
    background: #edf4fb;
    font-size: .91rem;
    font-weight: 800;
}

.home-evidence-figure figcaption span {
    color: var(--evidence-muted);
    font-size: .78rem;
    font-weight: 740;
}

.home-evidence-hierarchy {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: clamp(12px, 3.2vw, 33px);
}

.home-evidence-hierarchy div {
    position: relative;
    display: grid;
    align-items: baseline;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 5px 10px;
    padding: clamp(8px, 1.45vw, 16px);
    border: 1px solid #a8c7e0;
    border-radius: 3px;
    background: #e6f1fb;
}

.home-evidence-hierarchy div + div {
    margin-inline-start: clamp(12px, 3.6vw, 48px);
    background: #f4f9fd;
}

.home-evidence-hierarchy div + div::before {
    position: absolute;
    left: 14%;
    bottom: 100%;
    height: 21px;
    border-inline-start: 2px solid #5996c3;
    content: "";
}

.home-evidence-hierarchy dt {
    font-size: clamp(.91rem, 1.6vw, 1.38rem);
    font-weight: 830;
}

.home-evidence-hierarchy dd {
    margin: 0;
    color: var(--evidence-muted);
    font-size: .84rem;
}

.home-evidence-fraction {
    display: grid;
    width: fit-content;
    max-width: calc(100% - 22px);
    margin: clamp(12px, 2.7vw, 31px) auto;
    color: var(--evidence-accent);
    font-size: clamp(.93rem, 2vw, 1.56rem);
    font-weight: 820;
    text-align: center;
}

.home-evidence-fraction span {
    display: block;
    padding: 5px clamp(4px, 2.2vw, 23px);
}

.home-evidence-fraction span + span { border-top: 2px solid #578fba; }

.home-evidence-note {
    margin: 0;
    padding: 8px clamp(10px, 2vw, 23px);
    border-top: 1px solid #d1deeb;
    color: var(--evidence-muted);
    font-size: .81rem;
    text-wrap: pretty;
}

.home-evidence-detection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(70px, .7fr);
    align-items: center;
    gap: clamp(10px, 2.4vw, 28px);
    padding: clamp(14px, 3.2vw, 33px);
}

.home-evidence-detection p { margin: 0; }

.home-evidence-detection strong {
    display: block;
    color: var(--evidence-accent);
    font-size: clamp(1.65rem, 3.25vw, 2.9rem);
    font-weight: 830;
    letter-spacing: -.055em;
    line-height: 1;
}

.home-evidence-detection p span {
    display: block;
    margin-top: 6px;
    color: var(--evidence-muted);
    font-size: .85rem;
}

.home-evidence-dots {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(3px, .43vw, 7px);
}

.home-evidence-dots span {
    aspect-ratio: 1;
    border: 1px solid #8eaac2;
    border-radius: 50%;
    background: #e6eff6;
}

.home-evidence-dots .home-evidence-detected {
    border-color: #337ab7;
    background: #337ab7;
}

@media (prefers-reduced-motion: no-preference) and (min-height: 690px) {
    .home-evidence-deck {
        gap: clamp(108px, 27svh, 255px);
        padding-bottom: 14svh;
    }

    .home-evidence-slot {
        position: sticky;
        top: calc(60px + var(--evidence-offset));
    }

    .home-evidence-slot:focus-within {
        z-index: 1;
    }

    @supports (animation-timeline: view()) {
        .home-evidence-deck { view-timeline: --evidence-deck block; }

        .home-evidence-slot--cell .home-evidence-card,
        .home-evidence-slot--wgbs .home-evidence-card {
            animation: home-evidence-recede linear both;
            animation-timeline: --evidence-deck;
        }

        .home-evidence-slot--cell .home-evidence-card {
            --evidence-receded: .93;
            animation-range: exit-crossing 0% exit-crossing 50%;
        }

        .home-evidence-slot--wgbs .home-evidence-card {
            --evidence-receded: .96;
            animation-range: exit-crossing 47% exit-crossing 90%;
        }

        @keyframes home-evidence-recede {
            to { scale: var(--evidence-receded); }
        }
    }
}

@media (max-width: 730px) {
    .home-evidence-intro,
    .home-evidence-card-body { grid-template-columns: 1fr; }

    .home-evidence-card-body {
        min-height: 0;
        padding: 16px 14px;
        gap: 14px;
    }

    .home-evidence-copy h3 {
        max-width: unset;
        margin-bottom: 7px;
        font-size: clamp(1.8rem, 7vw, 2.65rem);
    }

    .home-evidence-copy p,
    .home-evidence-note { font-size: .87rem; }
    .home-evidence-copy a { margin-top: 10px; }
    .home-evidence-tab { min-height: 36px; font-size: .67rem; }
    .home-evidence-tab span:last-child { font-size: .63rem; }
    .home-evidence-slot--wgbs { --evidence-offset: 30px; }
    .home-evidence-slot--mirna { --evidence-offset: 60px; }
}

@media (max-width: 360px) {
    .home-evidence-hierarchy div { grid-template-columns: 1fr; }
    .home-evidence-tab { gap: 6px; }
    .home-evidence-tab span:last-child { flex: initial; text-align: right; }
}
