.hero {
    position: relative;
    isolation: isolate;
    background: radial-gradient(ellipse at 82% 26%, #1c437b 0%, transparent 55%), #101a31;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(#90b6f619 1px, transparent 1px), linear-gradient(90deg, #90b6f619 1px, transparent 1px);
    background-size: 2.25rem 2.25rem;
    mask-image: radial-gradient(ellipse at 82% 44%, #000 10%, transparent 66%);
    pointer-events: none;
}

.hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    min-height: 0;
    gap: clamp(1.5rem, 5vw, 5rem);
    padding-block: clamp(2.75rem, 6vw, 5.5rem);
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 5.8vw, 5.25rem);
    max-width: 13ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hero-copy p {
    margin: 0;
    max-width: 46ch;
}

.hero .sti-button {
    padding-inline: 1.15rem;
}

.hero .sti-button:not(.secondary) {
    background: #2663e9;
    box-shadow: 0 8px 24px #0a163b70;
}

.hero .secondary {
    border-color: #a7bde381;
    background: #92b5f018;
}

.hero .secondary:hover {
    background: #92b5f034;
}

.hero :focus-visible {
    outline-color: #9ddcf6;
}

.home-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1rem;
    margin-top: 1rem;
    color: #c9defe;
    font-size: .875rem;
}

.home-quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-weight: 650;
    text-decoration-color: #a6c5ed8c;
}

.home-quick-links a:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

.home-hero-media {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    border: 1px solid #7397c78c;
    border-radius: 1.25rem;
    background: #15243f;
    box-shadow: 0 1.5rem 4rem #08112675;
}

.home-hero-media > img, .home-hero-media picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.35;
    background: #21375c;
    object-fit: cover;
}

.home-hero-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem .75rem;
    padding: .75rem 1rem;
    color: #e6efff;
    font-size: .875rem;
}

.home-hero-caption a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #a9d7ff;
    font-weight: 700;
}

.home-hero-caption a:hover {
    color: #fff;
}

.home-projects {
    border-bottom: 1px solid #dce6f4;
    background: linear-gradient(180deg, #eff5ff, #f8fafe);
    padding-block: clamp(2.25rem, 5.5vw, 4.5rem);
}

.home-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1.25rem;
    margin-bottom: 1.1rem;
}

.home-section-heading h2 {
    margin: 0 0 .1em;
    letter-spacing: -.04em;
}

h2.home-section-heading {
    letter-spacing: -.04em;
}

.home-section-heading p {
    flex-basis: 100%;
    max-width: 65ch;
    margin: 0;
    color: #4b5a72;
}

.home-section-heading a {
    color: #234da0;
    font-weight: 700;
}

.home-section-heading a:hover {
    color: #102b64;
}

.home-category-filters:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
}

.home-category-filters button {
    padding: .45rem .85rem;
    min-height: 40px;
    border: 1px solid #cbd8ed;
    border-radius: 999px;
    background: #fff;
    color: #214678;
    font: inherit;
    font-size: .875rem;
    font-weight: 650;
    cursor: pointer;
}

.home-category-filters button:hover {
    border-color: #7098da;
    background: #ebf3ff;
}

.home-category-filters button[aria-pressed="true"] {
    border-color: #2255b7;
    background: #2255b7;
    color: #fff;
}

.category-grid > li[hidden] {
    display: none;
}

.home-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
    align-items: stretch;
    gap: clamp(.7rem, 2vw, 1.2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-project-grid > li {
    display: flex;
    min-width: 0;
}

.home-project-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: .65rem;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d6e1f1;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .4rem 1.1rem #162c5112;
    text-decoration: none;
}

.home-project-card img, .home-project-placeholder {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    aspect-ratio: 2.35;
    max-height: 10.5rem;
    object-fit: cover;
    border-bottom: 1px solid #e3ebf6;
    background: #e9f1fc;
}

.home-project-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 50% 15%, #f4faff, #dbe9ff);
    color: #2558b4;
}

.home-project-placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
}

.home-project-content {
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .95rem 0 .95rem 1rem;
}

.home-project-content strong {
    color: #152947;
    font-size: clamp(1rem, 1.65vw, 1.25rem);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.home-project-content > span {
    color: #4b5a72;
    font-size: .875rem;
    line-height: 1.4;
}

.home-project-arrow {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-right: .9rem;
    border-radius: 50%;
    background: #eaf2ff;
    color: #2156b9;
    font-size: 1.05rem;
    line-height: 1;
}

.home-project-arrow svg {
    width: 1rem;
    height: 1rem;
}

.home-project-card:is(:hover, :focus-visible) {
    border-color: #87adeb;
    box-shadow: 0 .65rem 1.5rem #162c5126;
}

.home-project-card:is(:hover, :focus-visible) .home-project-arrow {
    color: #fff;
    background: #235bc5;
}

.storefront .category-grid a:is(:hover, :focus-visible),
.storefront .article-card:is(:hover, :focus-within),
.storefront .woocommerce ul.products li.product:is(:hover, :focus-within) {
    border-color: #89afe8;
    box-shadow: 0 .5rem 1.35rem #16336518;
}

.storefront .article-card h3 a:hover,
.storefront .article-card h2 a:hover {
    color: #244e9e;
}

@media (max-width: 799px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
        padding-block: 2.5rem 1.45rem;
    }

    .home-hero-media > img, .home-hero-media picture img {
        aspect-ratio: 1.85;
        max-height: 18rem;
    }
}

@media (max-width: 400px) {
    .hero-copy h1 {
        font-size: 2.5rem;
    }

    .hero .sti-button {
        padding-inline: .85rem;
    }

    .home-hero-caption {
        padding-inline: .8rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy {
        animation: sti-home-enter .45s ease-out both;
    }

    .home-hero-media, .hero-art {
        animation: sti-home-enter .55s .08s ease-out both;
    }

    .home-project-card,
    .home-project-arrow,
    .storefront .category-grid a,
    .storefront .article-card,
    .storefront .woocommerce ul.products li.product {
        transition: transform .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out, color .2s ease-out, background-color .2s ease-out;
    }

    @media (hover: hover) {
        .home-project-card:hover,
        .storefront .category-grid a:hover,
        .storefront .article-card:hover,
        .storefront .woocommerce ul.products li.product:hover {
            transform: translateY(-3px);
        }

        .home-project-card:hover .home-project-arrow {
            transform: translateX(2px);
        }
    }

    @keyframes sti-home-enter {
        from { opacity: .72; transform: translateY(10px); }
        to { opacity: 1; transform: none; }
    }
}
