/* Banner */
.hero {
    position: relative;
    min-height: var(--header-height);
    height: clamp(490px, 56.25vw, 850px);
    background: #d7e7eb;
}

.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-link {
    display: block;
    height: 100%;
}

.hero-image-link:focus-visible {
    position: relative;
    z-index: 1;
    outline-color: white;
    outline-offset: -4px;
}

.hero-controls {
    position: absolute;
    z-index: 2;
    bottom: min(4.5vw, 62px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.hero-controls button {
    display: grid;
    place-items: center;
    width: clamp(34px, 4.15vw, 62px);
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}

.hero-controls [data-go]::before {
    content: "";
    width: calc(100% - 8px);
    height: 3px;
    border-radius: 3px;
    background: rgb(255 255 255 / 76%);
    box-shadow: 0 0 0 1px rgb(13 34 43 / 17%);
}

.hero-controls [data-go][aria-current]::before, .hero-controls [data-go]:hover::before {
    background: #58a8ba;
}

.hero-controls :focus-visible {
    outline-color: white;
    outline-offset: -3px;
    box-shadow: inset 0 0 0 1px #333;
}

/* Products */
.products {
    background: #fff;
}

.products-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title link" "subtitle subtitle";
    align-items: center;
    gap: 12px 20px;
}

.products-heading h2 {
    grid-area: title;
}

.products-heading p {
    grid-area: subtitle;
    max-width: 34ch;
    color: var(--muted);
}

.products-heading .text-link {
    grid-area: link;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(30px, 5vw, 64px) clamp(16px, 2.55vw, 32px);
    padding: 0;
    margin: 0;
    list-style: none;
}

.product-card {
    display: block;
}

.product-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8.75px;
    background: #f3f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .48s cubic-bezier(.22, .61, .36, 1);
}

.product-card:is(:hover, :focus-visible) img {
    transform: scale(1.055);
}

.product-label {
    display: block;
    padding-top: 13px;
    font-size: clamp(.95rem, 1.45vw, 1.125rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: color .2s;
}

.product-card:is(:hover, :focus-visible) .product-label {
    color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
    .products {
        --product-entry-ease: cubic-bezier(.22, 1, .36, 1);
    }

    .products-heading.product-reveal {
        clip-path: inset(0);
        transition: opacity .65s, transform .95s var(--product-entry-ease), clip-path 1s var(--product-entry-ease);
    }

    .products-heading.product-reveal:not(.is-visible, :focus-within) {
        opacity: 0;
        transform: translateY(60px);
        clip-path: inset(0 0 85%);
    }

    .product-card.product-reveal {
        transition: opacity .65s, transform 1.1s cubic-bezier(.16, 1, .3, 1);
        transition-delay: var(--reveal-delay);
    }

    .product-card.product-reveal:not(.is-visible, :focus-within) {
        opacity: 0;
        transform: translateY(120px) scale(.96);
    }

    .product-card.product-reveal .product-image {
        clip-path: inset(0 round 8.75px);
        transition: clip-path 1.15s var(--product-entry-ease) var(--reveal-delay);
    }

    .product-card.product-reveal img {
        transition: transform 1.3s var(--product-entry-ease) var(--reveal-delay);
    }

    .product-card.product-reveal:not(.is-visible, :focus-within) .product-image {
        clip-path: inset(26% 0 0 round 8.75px);
    }

    .product-card.product-reveal:not(.is-visible, :focus-within) img {
        transform: scale(1.12);
    }

    .product-card.product-reveal:is(:hover, :focus-visible) img {
        transition-delay: 0ms;
    }

    .product-reveal:not(.is-visible):focus-within, .product-card.product-reveal:not(.is-visible):focus-visible .product-image {
        transition: none;
    }
}

/* Company profile */
.company {
    position: relative;
    isolation: isolate;
    min-height: clamp(690px, 75vw, 1120px);
    color: #18364a;
    background: #b6dcf2;
}

.company-photo {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: url("assets/company-building.jpg") center top / cover no-repeat;
}

.company-image {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    mask-image: linear-gradient(transparent, #000 15%);
}

.company-inner {
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: start;
    padding-block: clamp(64px, 7.5vw, 128px) clamp(260px, 25vw, 410px);
}

.company-display {
    margin-top: clamp(48px, 6vw, 94px);
    font: 300 clamp(1.45rem, 2.5vw, 1.875rem)/1.85 var(--light-font);
    text-transform: uppercase;
}

.company-copy {
    padding-left: clamp(24px, 3.2vw, 52px);
}

.company-copy h2 {
    font-size: clamp(1.65rem, 2.05vw, 2.5rem);
    letter-spacing: -.025em;
}

.company-copy p {
    margin-top: 23px;
    font: 300 1rem/1.8 var(--light-font);
}

.company-copy .button {
    margin-top: 25px;
    min-height: 48px;
    padding-inline: 28px;
    border-radius: 999px;
    background: rgb(255 255 255 / 38%);
}

.company-copy .button:hover {
    background: var(--ink);
}

/* Innovation */
.innovation {
    padding-top: clamp(58px, 7.5vw, 124px);
}

.innovation-heading {
    margin-bottom: clamp(38px, 6.5vw, 112px);
}

.innovation-heading p {
    margin-top: 16px;
    color: var(--muted);
    font: 300 clamp(1.125rem, 1.8vw, 1.375rem)/1.45 var(--light-font);
}

.innovation-stage {
    position: relative;
    isolation: isolate;
    color: white;
    touch-action: pan-y;
}

.innovation-images {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #23313a;
}

.innovation-images::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgb(7 18 28 / 48%), rgb(7 18 28 / 79%));
}

.innovation-images img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .55s;
}

.innovation-images img.is-active {
    opacity: 1;
}

.innovation-inner {
    display: grid;
    grid-template-areas: "count" "panel";
    align-content: center;
    row-gap: clamp(18px, 3vw, 36px);
    min-height: clamp(470px, 55vw, 600px);
    padding-block: clamp(24px, 4vw, 56px);
}

.innovation-count {
    grid-area: count;
    justify-self: end;
    min-height: 44px;
    margin-block: -12px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
}

.innovation-count:is(:hover, :focus-visible) {
    color: #a5e7f1;
}

.innovation-panels {
    display: grid;
    grid-area: panel;
    width: 100%;
    align-self: center;
}

.innovation-panel {
    grid-area: 1 / 1;
    align-self: center;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .36s, transform .36s, visibility .36s;
}

.innovation-panel.is-active {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.innovation-panel h3 {
    color: #a5e7f1;
    font-size: clamp(1.875rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.innovation-panel p {
    max-width: 58ch;
    margin-block: 16px 20px;
    font: 300 1rem/1.65 var(--light-font);
}

.innovation-arrow {
    display: inline-grid;
    place-items: center;
    width: clamp(44px, 4.2vw, 56px);
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 50%;
    background: rgb(8 18 26 / 16%);
    color: white;
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    transition: color .2s, background-color .2s;
}

.innovation-arrow:is(:hover, :focus-visible) {
    background: white;
    color: var(--ink);
}

.innovation-arrow:focus-visible, .innovation-count:focus-visible, .innovation-stage:focus-visible {
    outline-color: white;
}

.innovation-stage:focus-visible {
    outline-offset: -5px;
}

/* News */
.news {
    background: white;
}

.news .section-head {
    align-items: center;
    margin-bottom: clamp(32px, 5vw, 72px);
}

.news .section-head .text-link {
    color: var(--ink);
    gap: clamp(13px, 2.6vw, 40px);
}

.news .section-head .text-link span {
    font-size: 1.35rem;
}



@media (min-width: 1000px) {
    .products-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
        gap: 32px;
        align-items: start;
    }

    .products-heading {
        display: block;
        margin: 0;
    }

    .products-heading p {
        margin-top: 16px;
    }

    .products-heading .text-link {
        margin-top: 10px;
    }
}

@media (min-width: 1000px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
    .innovation-heading {
        --innovation-heading-inset: clamp(56px, 10.75vh, 96px);
        position: sticky;
        z-index: 2;
        top: calc(var(--header-height) + var(--innovation-heading-inset));
        pointer-events: none;
        translate: 0 var(--innovation-heading-shift, 0px);
    }

    .innovation-heading h2 {
        color: color-mix(in srgb, var(--ink), white var(--innovation-heading-blend, 0%));
    }

    .innovation-heading p {
        color: color-mix(in srgb, var(--muted), white var(--innovation-heading-blend, 0%));
    }

    .innovation-story {
        --innovation-frame: calc(100svh - var(--header-height));
        --innovation-travel: clamp(340px, 59vh, 640px);
        min-height: calc(var(--innovation-frame) + var(--innovation-travel));
    }

    .innovation-stage {
        position: sticky;
        top: var(--header-height);
    }

    .innovation-images {
        inset-inline: var(--innovation-inset, 4.8vw);
    }

    .innovation-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas: ". count" ". panel";
        align-content: stretch;
        align-items: start;
        column-gap: clamp(32px, 5vw, 96px);
        min-height: var(--innovation-frame);
        opacity: var(--innovation-overlay, 0);
    }

    .innovation-inner:focus-within {
        opacity: 1;
    }

    .company, .company-copy-stage {
        display: grid;
    }

    .company-inner {
        --company-copy-top: clamp(64px, 7.5vw, 128px);
        padding-block: var(--company-copy-top) 0;
    }

    .company-display, .company-copy {
        position: sticky;
        top: calc(var(--header-height) + var(--company-copy-top));
    }

    /* The tower and the lower right wing sit at different heights in the bottom-aligned photo. */
    .company-display {
        margin-block: 0 calc(33.5vw + 28px);
    }

    .company-copy {
        margin-bottom: calc(16vw + 28px);
    }
}

@media (max-width: 920px) {
    .hero {
        height: auto;
        padding-top: var(--header-height);
        aspect-ratio: auto;
    }

    .hero-slide {
        position: relative;
        height: auto;
        aspect-ratio: 2.15;
    }

    .hero-controls {
        bottom: 4px;
    }
}

@media (max-width: 999px) {
    .company {
        --company-photo-height: clamp(310px, 86vw, 500px);
        min-height: 0;
    }

    .company-photo {
        top: auto;
        height: var(--company-photo-height);
        background: none;
    }

    .company-image {
        height: 100%;
        object-fit: cover;
        object-position: 15% bottom;
        mask-image: linear-gradient(transparent, #000 24%);
    }

    .company-inner {
        grid-template-columns: 1fr;
        padding-block: 48px calc(var(--company-photo-height) * .56 + 24px);
    }

    .company-display {
        margin: 0 0 29px;
    }

    .company-copy {
        padding-left: 0;
    }
}

@media (max-width: 570px) {
    .hero-slide {
        aspect-ratio: 1.72;
    }

    .hero-slide img {
        object-fit: contain;
        background: #e1edf0;
    }

    .innovation {
        padding-top: 52px;
    }

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