.innovation-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    overflow: clip;
    padding-top: calc(var(--header-height) + 1px);
    color: white;
}

.innovation-hero > *,
.innovation-hero::after {
    grid-area: 1 / 1;
}

.innovation-hero-art {
    display: block;
    min-width: 0;
    aspect-ratio: 1920 / 650;
    overflow: hidden;
    background: #31525c;
}

.innovation-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
}

.innovation-hero::after {
    background: linear-gradient(90deg, rgb(12 36 43 / 83%), rgb(17 60 70 / 44%) 38%, transparent 77%);
    content: '';
    pointer-events: none;
}

.innovation-hero-copy {
    z-index: 1;
    align-self: center;
    padding-block: 20px;
}

.innovation-hero-copy h1 {
    margin: 0;
    font: 300 clamp(2.4rem, 5vw, 5rem)/1.08 var(--light-font);
    letter-spacing: -.035em;
}

.innovation-designs {
    padding-top: clamp(44px, 6vw, 90px);
}

.innovation-designs > h2 {
    margin-bottom: clamp(26px, 4vw, 52px);
}

.design-project {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(28px, 7vw, 105px);
    padding-block: clamp(34px, 5.5vw, 84px);
    border-top: 1px solid var(--line);
}

.design-project:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.design-project:last-child {
    padding-bottom: 0;
}

.design-project > img {
    --design-image-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--design-image-radius);
}

.design-project h3 {
    font: 300 clamp(1.55rem, 2.7vw, 2rem)/1.15 var(--light-font);
    letter-spacing: -.025em;
}

.design-project p {
    max-width: 58ch;
    margin-top: 14px;
    color: var(--muted);
    font: 300 1rem/1.75 var(--light-font);
}

.technology-library {
    display: grid;
    grid-template-columns: minmax(205px, .32fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 78px);
    align-items: start;
    scroll-margin-top: 60px;
}

.technology-intro {
    display: grid;
    grid-column: 1 / -1;
    gap: 14px;
}

.technology-intro p {
    max-width: 67ch;
    color: var(--muted);
    font: 300 1.0625rem/1.75 var(--light-font);
}

.technology-topics {
    display: grid;
    border-top: 1px solid var(--line);
}

.technology-topics a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 47px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    line-height: 1.35;
}

.technology-topics a:is([aria-selected="true"], :hover) {
    color: var(--accent);
    background: var(--soft);
}

.technology-topics a[aria-selected="true"] span {
    color: var(--accent);
}

.technology-topic {
    scroll-margin-top: 60px;
}

.technology-topic + .technology-topic:not([hidden]) {
    margin-top: clamp(40px, 6vw, 80px);
}

.technology-library.has-tabs .technology-topic {
    margin-top: 0;
}

.technology-topic img {
    width: 100%;
    height: auto;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.technology-back {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 821px) {
    .technology-intro {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
        column-gap: clamp(28px, 5vw, 78px);
        align-items: start;
    }

    .design-project:nth-of-type(even) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.48fr);
    }

    .design-project:nth-of-type(even) img {
        grid-area: 1 / 2;
    }

    .design-project:nth-of-type(even) .design-project-copy {
        grid-area: 1 / 1;
    }

    .technology-topics {
        position: sticky;
        top: calc(var(--header-height) + 85px);
        max-height: calc(100dvh - var(--header-height) - 100px);
        overflow: auto;
    }

    .technology-back {
        display: none;
    }
}

@media (max-width: 820px) {
    .design-project,
    .technology-library {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

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

@media (max-width: 600px) {
    .innovation-hero-art {
        aspect-ratio: 3 / 2;
    }

    .innovation-hero--technology .innovation-hero-art {
        aspect-ratio: 5 / 6;
    }

    .innovation-hero::after {
        background: linear-gradient(90deg, rgb(12 36 43 / 87%), rgb(17 60 70 / 55%) 54%, transparent);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .innovation-hero-art img {
        animation: innovation-hero-entry .95s cubic-bezier(.22, 1, .36, 1) both;
    }

    .innovation-hero-copy {
        animation: innovation-heading-entry .75s cubic-bezier(.22, 1, .36, 1) .12s both;
    }

    .design-project.is-revealed > * {
        transition: opacity .65s, transform .85s cubic-bezier(.22, 1, .36, 1);
    }

    .design-project.is-revealed > img {
        clip-path: inset(0 round var(--design-image-radius));
        transition: opacity .65s, transform .95s cubic-bezier(.22, 1, .36, 1),
            clip-path .95s cubic-bezier(.22, 1, .36, 1);
    }

    .design-project.is-revealed .design-project-copy {
        transition-delay: .08s;
    }

    .design-project.is-reveal-ready:not(.is-revealed, :focus-within) > * {
        opacity: 0;
        transform: translateY(30px);
    }

    .design-project.is-reveal-ready:not(.is-revealed) img {
        clip-path: inset(12% 0 0 round var(--design-image-radius));
    }

    .technology-library.has-tabs .technology-topic:not([hidden]) {
        animation: innovation-heading-entry .45s ease-out both;
    }

    @keyframes innovation-hero-entry {
        from { transform: scale(1.045); }
        to { transform: scale(1); }
    }

    @keyframes innovation-heading-entry {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
