/* One pinned stage; the image and its white headline share the same circular mask. */
.main-banner {
    --banner-stage-height: min(50vw, calc(100svh - var(--header-height)));
    --reveal-radius: 0px;
    --reveal-opacity: 0;
    --seed-opacity: 1;
    --cta-opacity: 0;
    --hint-opacity: 1;
    position: relative;
    height: calc(var(--banner-stage-height) + 140svh);
}

.main-banner__stage {
    position: sticky;
    top: var(--header-height);
    height: var(--banner-stage-height);
    overflow: hidden;
    isolation: isolate;
    background: #fff;
}

.main-banner__seed {
    position: absolute;
    left: 50%;
    top: 46%;
    width: clamp(210px, 19.7917vw, 380px);
    aspect-ratio: .82;
    transform: translate(-50%, -50%) rotate(40deg);
    border-radius: 50%;
    background: #ededed;
    opacity: var(--seed-opacity);
}

.main-banner__seed::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-conic-gradient(#fff2 0% 25%, #00000003 0% 50%) 50% / 55px 55px;
}

.main-banner__content {
    position: absolute;
    z-index: 1;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
}

.main-banner__content h1, .main-banner__title {
    font-size: clamp(38px, 4.1667vw, 80px);
    line-height: 1.3;
    letter-spacing: -.065em;
    font-weight: 400;
}

.main-banner__content strong {
    font-weight: 700;
}

.main-banner__content p {
    margin-top: 24px;
    color: #777;
    font-size: clamp(10px, .7292vw, 14px);
    letter-spacing: -.3px;
}

.main-banner__reveal {
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: var(--reveal-opacity);
    clip-path: circle(var(--reveal-radius) at 50% 46%);
    will-change: clip-path;
    background: #181818;
}

.main-banner__image {
    position: absolute;
    inset: 0;
    background: url('../images/main/banner-wave-reference.png') center / cover no-repeat;
}

.main-banner__content--light {
    color: #fff;
}

.main-banner__content--light p {
    color: #ffffff8c;
}

.main-banner__baseline {
    position: absolute;
    bottom: 36px;
    left: var(--site-gutter);
    right: var(--site-gutter);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ffffff30;
    padding-top: 20px;
    font: 10px/1.5 monospace;
    color: #999;
}

.main-banner__cta {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 14%;
    transform: translateX(-50%);
    opacity: var(--cta-opacity);
    min-width: clamp(220px, 16.6667vw, 320px);
    border-radius: 4px;
    white-space: nowrap;
}

.main-banner__scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 35px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    font: 8px/1.5 monospace;
    letter-spacing: 2.5px;
    color: #888;
    opacity: var(--hint-opacity);
}

.scroll-mouse {
    position: relative;
    width: 18px;
    height: 31px;
    border: 1px solid #777;
    border-radius: 10px;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 7px;
    width: 1px;
    height: 6px;
    background: #555;
    animation: mouse-scroll 1.8s ease-in-out infinite;
}

@keyframes mouse-scroll {
    0%, 100% {
        transform: translateY(0);
        opacity: .4;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

@media (max-width: 760px) {
    .main-banner {
        --banner-stage-height: calc(100svh - var(--header-height));
        height: calc(var(--banner-stage-height) + 125svh);
    }

    .main-banner__content h1, .main-banner__title {
        font-size: clamp(34px, 7.8vw, 58px);
    }

    .main-banner__content p {
        font-size: 10px;
        margin-top: 18px;
    }

    .main-banner__seed {
        width: 210px;
    }

    .main-banner__baseline {
        bottom: 24px;
        font-size: 7px;
    }

    .main-banner__baseline > span:last-child {
        display: none;
    }

    .main-banner__cta {
        bottom: 18%;
    }
}

@media (max-height: 540px) and (min-width: 761px) {
    .main-banner__content h1, .main-banner__title {
        font-size: 36px;
    }

    .main-banner__content p {
        margin-top: 10px;
    }

    .main-banner__cta {
        bottom: 9%;
    }

    .main-banner__baseline {
        bottom: 12px;
        padding-top: 8px;
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-banner {
        height: auto;
    }

    .main-banner__stage {
        position: relative;
        top: 0;
        height: calc(var(--banner-stage-height) * 2);
    }

    .main-banner__seed, .main-banner__stage > .main-banner__content {
        top: 23%;
    }

    .main-banner__reveal {
        top: 50%;
        opacity: 1;
        clip-path: none;
        will-change: auto;
    }

    .main-banner__cta {
        bottom: 7%;
        opacity: 1;
    }

    .main-banner__scroll {
        display: none;
    }

    .scroll-mouse::after {
        animation: none;
    }
}

html.no-banner-motion .main-banner,
html.no-js .main-banner {
    height: auto;
}

html.no-banner-motion .main-banner__stage,
html.no-js .main-banner__stage {
    position: relative;
    top: 0;
    height: calc(var(--banner-stage-height) * 2);
}

html.no-banner-motion .main-banner__seed,
html.no-banner-motion .main-banner__stage > .main-banner__content,
html.no-js .main-banner__seed,
html.no-js .main-banner__stage > .main-banner__content {
    top: 23%;
}

html.no-banner-motion .main-banner__reveal,
html.no-js .main-banner__reveal {
    top: 50%;
    opacity: 1;
    clip-path: none;
}

html.no-banner-motion .main-banner__cta {
    opacity: 1;
    bottom: 7%;
}

html.no-banner-motion .main-banner__scroll,
html.no-js .main-banner__scroll,
html.no-js .main-banner__cta {
    display: none;
}
