.home-hero,
.home-story {
    --home-night: #0a1726;
    --home-light: #f3f8fd;
    --home-muted: #bdcede;
    --home-accent: #87d1ec;
    color: var(--home-light);
}

.home-kicker {
    margin: 0 0 16px;
    color: var(--home-accent, #236697);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-hero {
    --home-travel: 0;
    position: relative;
    display: grid;
    align-content: center;
    min-height: clamp(575px, 76svh, 790px);
    padding-block: 36px 74px;
    overflow: clip;
    isolation: isolate;
    background: radial-gradient(ellipse at 78% 43%, #203950 0, var(--home-night) 57%);
}

.home-hero-field {
    position: absolute;
    z-index: -1;
    inset: 0 0 -12%;
    background: linear-gradient(90deg, #0a1726f0 0%, #0a1726b8 34%, #0a17264d 64%, #0a17261f),
        url("/assets/home-epidermal-signaling.webp") center 51% / cover;
    opacity: .94;
    transform: translateY(calc(var(--home-travel) * 54px));
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 12px;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    padding-block: 24px;
}

.home-hero h1 {
    margin: 0 0 23px;
    color: var(--home-light);
    font-size: clamp(4rem, 6.9vw, 6.375rem);
    font-weight: 790;
    letter-spacing: -.061em;
    line-height: .96;
}

.home-hero-lead {
    max-width: 37ch;
    margin: 0;
    color: var(--home-muted);
    font-size: clamp(1rem, 1.44vw, 1.19rem);
    line-height: 1.57;
    text-wrap: pretty;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 27px;
}

.home-hero-actions a,
.home-release > a {
    gap: 12px;
    min-height: 46px;
    padding-inline: 15px;
}

.home-hero-actions .primary {
    background: #2c6da6;
}

.home-hero-actions .primary:hover {
    background: #286090;
}

.home-hero-actions .secondary {
    border-color: #8098ad;
    background: #12283a80;
    color: var(--home-light);
}

.home-hero-actions .secondary:hover {
    border-color: #c5e3f2;
    background: #24435a;
}

.home-hero :focus-visible,
.home-story :focus-visible {
    outline-color: var(--home-accent);
}

.home-hero-visual {
    position: relative;
    display: grid;
    align-items: center;
    aspect-ratio: 1.32;
    margin: 0;
}

.home-hero-reticle {
    position: absolute;
    inset: 7% 5% 8%;
    border: 1px solid #a4d9f12c;
    border-radius: 50%;
    background:
        linear-gradient(#a4d9f122, #a4d9f122) center / 1px 100% no-repeat,
        linear-gradient(90deg, #a4d9f122, #a4d9f122) center / 100% 1px no-repeat;
    transform: translateY(calc(var(--home-travel) * 25px)) rotate(-14deg);
}

.home-hero-reticle::before,
.home-hero-reticle::after {
    position: absolute;
    inset: 10%;
    border: 1px solid #a4d9f124;
    border-radius: inherit;
    content: "";
}

.home-hero-reticle::after {
    inset: 24%;
    border-style: dashed;
}

.home-hero-specimen {
    position: absolute;
    inset: 0 0 0 -5%;
    width: 110%;
    height: 100%;
    object-fit: contain;
    transform: translateY(calc(var(--home-travel) * -51px))
        scale(calc(1 + var(--home-travel) * .09))
        rotate(calc(var(--home-travel) * -3deg));
}

.home-hero-visual figcaption {
    position: absolute;
    right: 0;
    bottom: -13px;
    color: #c2d3e4;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-hero-meta {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    gap: 17px;
    padding-block: 16px;
    border-top: 1px solid #b0d6ee46;
    color: #c8d6e4;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.home-hero-meta span + span::before {
    margin-right: 17px;
    color: var(--home-accent);
    content: "·";
}

.home-index {
    padding-block: clamp(50px, 7vw, 103px);
}

.home-index-head {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 38%);
    align-items: start;
    gap: 18px 32px;
    margin-bottom: 27px;
}

.home-index h2,
.home-story h2,
.home-release h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5.05vw, 4.45rem);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: 1.04;
    text-wrap: balance;
}

.home-index-head p,
.home-release p:not(.home-kicker) {
    max-width: 46ch;
    margin: 0;
    color: var(--dim);
    text-wrap: pretty;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--primary);
    font-weight: 800;
    text-decoration-color: transparent;
    transition: text-decoration-color 150ms ease;
}

.home-text-link:hover {
    text-decoration-color: currentColor;
}

.home-assays {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: clip;
    border: 1px solid #dae2ea;
    border-radius: 6px;
    background: #dae2ea;
}

.home-assay.assay {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    align-items: start;
    align-content: start;
    gap: 14px;
    min-height: 140px;
    margin: 0;
    padding: 23px 17px;
    border: 0;
    border-radius: 0;
    background: var(--paper);
    transition: background-color 180ms ease;
}

.home-assay.assay:hover,
.home-assay.assay:focus-visible {
    background: #edf5fb;
}

.home-assay.assay:focus-visible {
    outline-offset: -3px;
}

.home-assay .assay-icon {
    width: 42px;
    height: 42px;
    color: #286ba3;
    background: #eaf3fb;
}

.home-assay small {
    margin: 0 0 5px;
    color: #326991;
    font-size: .74rem;
    font-weight: 750;
    line-height: 1.25;
}

.home-assay strong {
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.2;
}

.home-assay .assay-unit {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
}

.home-assay .assay-arrow {
    position: static;
    transform: none;
    transition: transform 180ms ease;
}

.home-assay:hover .assay-arrow {
    transform: translate(2px, -2px);
}

.home-story {
    --home-atlas-top: 50px;
    --home-atlas-scale: 2.05;
    --home-scan: 0;
    --home-fold: 1;
    --home-result: 1;
    position: relative;
    background: #102338;
}

.home-atlas-stage {
    display: grid;
    align-content: center;
    padding-block: clamp(40px, 7vw, 92px);
}

.home-atlas-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(24px, 5vw, 75px);
}

.home-atlas-copy > p:not(.home-kicker) {
    max-width: 41ch;
    margin: 15px 0 0;
    color: var(--home-muted);
    text-wrap: pretty;
}

.home-atlas-copy .home-text-link {
    margin-top: 12px;
    color: #a5def1;
}

.home-atlas-figure { min-width: 0; margin: 0; }

.home-atlas-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    aspect-ratio: 1.40;
    max-height: 60svh;
    overflow: clip;
    border-radius: 6px;
}

.home-atlas-plate,
.home-atlas-metric {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #526d86;
    border-radius: 6px;
}

.home-atlas-plate {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    background: #f4f2f2;
}

.home-atlas-plate figcaption {
    padding: 7px 10px;
    color: #e1edf8;
    background: #142d43;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.25;
}

.home-atlas-image { position: relative; overflow: clip; }

.home-atlas-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-atlas-overlay {
    display: none !important;
    position: absolute;
    inset: 0;
}

.home-atlas-metric {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: clamp(10px, 2.4vw, 32px);
    color: #263647;
    background: #eaf3fb;
}

.home-atlas-metric strong {
    color: #23527c;
    font-size: clamp(1.75rem, 6vw, 4.9rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
}

.home-atlas-metric span {
    font-size: clamp(.70rem, 1.3vw, 1rem);
    font-weight: 750;
    line-height: 1.24;
}

.home-atlas-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3px 16px;
    padding-top: 10px;
    color: var(--home-muted);
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.home-story-scale {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .79rem;
}

.home-story-scale span {
    flex: none;
    width: 67px;
    height: 7px;
    border-radius: 2px;
    background: linear-gradient(90deg, #e9c552 0% 16.667%, #ee9b48 16.667% 33.333%,
        #dc663d 33.333% 50%, #bb3e4b 50% 66.667%, #7a225e 66.667% 83.333%, #3d184f 83.333%);
}

@media (prefers-reduced-motion: no-preference) and (min-height: 600px) {
    .home-story[data-home-fold] { min-height: 210svh; }

    .home-story[data-home-fold] .home-atlas-stage {
        position: sticky;
        top: var(--home-atlas-top);
        min-height: calc(100svh - var(--home-atlas-top));
    }

    .home-story[data-home-fold] .home-atlas-lead {
        z-index: 1;
        transform: scale(calc(1 + (var(--home-atlas-scale) - 1) * (1 - var(--home-fold))));
        transform-origin: left top;
    }

    .home-story[data-home-fold] .home-atlas-lead figcaption { opacity: var(--home-fold); }

    .home-story[data-home-fold] .home-atlas-overlay {
        display: block !important;
        clip-path: inset(0 calc((1 - var(--home-scan)) * 100%) 0 0);
        opacity: calc(1 - min(1, var(--home-fold) * 2.5));
    }

    .home-story[data-home-scanning] .home-atlas-lead .home-atlas-image::after {
        position: absolute;
        inset: 0;
        border-right: 1px solid #337ab7;
        transform: translateX(calc((var(--home-scan) - 1) * 100%));
        pointer-events: none;
        content: "";
    }

    .home-story[data-home-fold] .home-atlas-result {
        opacity: var(--home-result);
        transform: translateY(calc((1 - var(--home-result)) * 23px));
    }
}

.home-release {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding-block: clamp(47px, 7vw, 90px);
}

.home-release h2 {
    margin-bottom: 12px;
}

.home-release > a {
    flex: none;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .home-assays::after {
            position: absolute;
            inset: 0 0 auto;
            height: 2px;
            pointer-events: none;
            background: #337ab7;
            transform-origin: left;
            animation: home-index-rule linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
            content: "";
        }

        @keyframes home-index-rule {
            from { transform: scaleX(0); }
            to { transform: scaleX(1); }
        }
    }
}

@media (max-width: 900px) {
    .home-hero h1 { font-size: clamp(3.3rem, 8vw, 5.1rem); }
    .home-assays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .home-hero {
        min-height: auto;
        padding-block: 34px 50px;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-hero-copy { padding: 0; }

    .home-hero h1 {
        margin-bottom: 14px;
        font-size: clamp(3.25rem, 11.5vw, 4.7rem);
    }

    .home-hero-lead { max-width: 36ch; }
    .home-hero-actions { margin-top: 19px; }
    .home-hero-actions a { padding-inline: 11px; }
    .home-hero-visual { aspect-ratio: 1.47; margin: 6px 0 12px; }
    .home-hero-visual figcaption { bottom: 0; font-size: .64rem; }
    .home-hero-meta { padding-block: 12px; font-size: .69rem; }
    .home-hero-field {
        background-image: linear-gradient(180deg, #0a1726f2 6%, #0a1726b8 40%, #0a17264f 76%, #0a172688),
            url("/assets/home-epidermal-signaling.webp");
        background-position: center;
        transform: translateY(calc(var(--home-travel) * 20px));
    }
    .home-hero-specimen {
        transform: translateY(calc(var(--home-travel) * -21px))
            scale(calc(1 + var(--home-travel) * .05));
    }

    .home-index-head { grid-template-columns: 1fr; gap: 11px; }
    .home-atlas-layout { grid-template-columns: 1fr; gap: 18px; }
    .home-atlas-stage { padding-block: 30px; }
    .home-atlas-copy > p:not(.home-kicker) { margin-top: 10px; }
    .home-atlas-plate figcaption { padding: 5px 7px; font-size: .66rem; }
    .home-atlas-caption { display: grid; gap: 1px; }
    .home-release { align-items: start; flex-direction: column; }

}

@media (max-width: 465px) {
    .home-assays { grid-template-columns: 1fr; }
    .home-assay.assay { min-height: 0; padding-block: 15px; }
}

@media (max-width: 360px) {
    .home-atlas-stage { padding-block: 20px; }
    .home-atlas-layout { gap: 14px; }
    .home-atlas-copy .home-kicker { margin-bottom: 9px; }
    .home-atlas-copy h2 { font-size: 1.95rem; }
    .home-atlas-copy .home-text-link { margin-top: 5px; }
    .home-atlas-board { aspect-ratio: 1.5; }
    .home-atlas-caption { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero :is(.home-hero-field, .home-hero-reticle, .home-hero-specimen) { --home-travel: 0; }
    .home-assay,
    .home-assay .assay-arrow,
    .home-text-link { transition: none; }
    .home-assay:hover .assay-arrow { transform: none; }
}
