.dn-scroll-hero {
    --opening-shift: -5vh;
    position: relative;
    min-height: 100svh;
    color: var(--warm-white);
    background: var(--science-blue);
}

.dn-scroll-hero__stage {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100svh;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(180deg, #b4daf3 0%, #dceef9 52%, #fff 100%);
}

.dn-scroll-hero__overlay {
    --later-background-opacity: 0;
    position: absolute;
    inset: 0;
    z-index: 2;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #b4daf3 0%, #dceef9 52%, #fff 100%);
    will-change: opacity;
}

.dn-scroll-hero.has-need-transition .dn-scroll-hero__stage {
    background: var(--warm-white);
}

.dn-scroll-hero__ambient,
.dn-scroll-hero__narrative,
.dn-scroll-hero__scene,
.dn-scroll-hero__matrix {
    position: absolute;
    inset: 0;
}

.dn-scroll-hero__ambient {
    z-index: 0;
    background-image:
        var(--hero-background),
        linear-gradient(180deg, #b4daf3 0%, #dceef9 52%, #fff 100%);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.04);
}

.dn-scroll-hero__ambient::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: var(--later-background-opacity);
    background: linear-gradient(180deg, #b4daf3 0%, #4FA0E4 100%);
    will-change: opacity;
}

.dn-scroll-hero__ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: radial-gradient(rgba(255,255,255,.55) .6px, transparent .6px);
    background-size: 5px 5px;
}

.dn-scroll-hero__matrix {
    z-index: 1;
    display: grid;
    grid-template-rows: repeat(4, max-content);
    align-content: center;
    row-gap: 0;
    padding: 32vh 0 7vh;
    pointer-events: none;
    transform: translateY(var(--opening-shift));
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 18%, rgba(0,0,0,.18) 43%, rgba(0,0,0,.06) 50%, rgba(0,0,0,.18) 57%, #000 82%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 18%, rgba(0,0,0,.18) 43%, rgba(0,0,0,.06) 50%, rgba(0,0,0,.18) 57%, #000 82%, #000 100%);
}

.dn-scroll-hero__row {
    position: relative;
    left: 5px;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    width: min(94vw, 1632px);
    margin-inline: auto;
}

.dn-scroll-hero__row + .dn-scroll-hero__row {
    margin-top: -4px;
}

.dn-scroll-hero__row.is-offset {
    transform: none;
}

.dn-scroll-hero__mini {
    --mini-color: #3d81c7;
    width: clamp(78px, 6.4vw, 122px);
    aspect-ratio: 1;
    place-self: center;
    opacity: 1;
    background: var(--mini-color);
    -webkit-mask: var(--mini-mask) center / contain no-repeat;
    mask: var(--mini-mask) center / contain no-repeat;
    transform: scale(.9);
    transform-origin: 50% 100%;
}

.dn-scroll-hero__row.is-top.is-offset .dn-scroll-hero__mini {
    --mini-color: #6e994a;
}

.dn-scroll-hero__row.is-bottom .dn-scroll-hero__mini {
    --mini-color: #ffa140;
}

.dn-scroll-hero__row.is-bottom.is-offset .dn-scroll-hero__mini {
    --mini-color: #e3426d;
}

.dn-scroll-hero__narrative {
    z-index: 3;
}

.dn-scroll-hero__scene {
    display: flex;
    flex-direction: column;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.dn-scroll-hero__scene:first-child {
    visibility: visible;
    opacity: 1;
}

.dn-scroll-hero__scene.align-center {
    align-items: center;
    justify-content: center;
    padding: 80px 5vw;
    text-align: center;
}

.dn-scroll-hero__scene.align-left {
    align-items: flex-start;
    padding: 0 52vw 0 12.8vw;
}

.dn-scroll-hero__scene.align-right {
    align-items: flex-start;
    padding: 0 10vw 0 56vw;
}

.dn-scroll-hero__eyebrow {
    margin: 0 0 18px;
    font: 600 16px/1.2 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dn-scroll-hero__scene.align-center .dn-scroll-hero__eyebrow {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(28% + var(--opening-shift) - 112px);
    margin: 0;
    text-align: center;
}

.dn-scroll-hero__title {
    max-width: none;
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(72px, 9vw, 150px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .9;
    text-wrap: balance;
    color: transparent;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.58));
    -webkit-background-clip: text;
    background-clip: text;
}

.dn-scroll-hero__scene.align-center .dn-scroll-hero__title {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: calc(28% + var(--opening-shift));
    font-family: "Myriad Variable Concept", "Myriad Pro", Arial, sans-serif;
    font-size: 180px;
    transform: translateY(-50%);
    white-space: nowrap;
}

.dn-scroll-hero__scene.align-left .dn-scroll-hero__title,
.dn-scroll-hero__scene.align-right .dn-scroll-hero__title {
    font-family: var(--font-body);
    font-size: clamp(54px, 6.5vw, 108px);
    font-weight: 700;
    color: var(--warm-white);
    background: none;
}

.dn-scroll-hero__copy {
    max-width: 34ch;
    margin: 24px 0 0;
    font-size: clamp(18px, 1.45vw, 23px);
    line-height: 1.45;
}

.dn-scroll-hero__scene.align-center .dn-scroll-hero__copy {
    position: absolute;
    left: 6vw;
    top: 66%;
    width: min(29vw, 390px);
    margin: 0;
    text-align: left;
}

.dn-scroll-hero__product {
    position: absolute;
    left: 50%;
    top: calc(50% + var(--opening-shift));
    z-index: 6;
    width: clamp(260px, 27vw, 500px);
    height: min(74vh, 790px);
    margin: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.dn-scroll-hero__product::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 2%;
    height: 7%;
    border-radius: 50%;
    background: rgba(18,59,74,.2);
    filter: blur(22px);
}

.dn-scroll-hero__product picture,
.dn-scroll-hero__product img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dn-scroll-hero__actions {
    position: absolute;
    left: 56vw;
    right: 10vw;
    top: calc(50% + clamp(195px, 22vh, 230px));
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
}

.dn-scroll-hero.has-need-transition .dn-scroll-hero__product,
.dn-scroll-hero.has-need-transition .dn-scroll-hero__scene.scene-3,
.dn-scroll-hero.has-need-transition .dn-scroll-hero__actions {
    will-change: transform, opacity;
}

.dn-scroll-hero__actions .btn:not(.btn-ghost) {
    color: var(--warm-white);
}

.dn-scroll-hero .btn-ghost {
    border: 1px solid rgba(252,251,248,.72);
    background: transparent;
    color: var(--warm-white);
}

.dn-scroll-hero__editor-empty {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--warm-white);
    color: var(--ink);
}

.dn-scroll-hero.is-editor-preview {
    min-height: 620px;
}

.dn-scroll-hero.is-editor-preview .dn-scroll-hero__stage {
    height: 620px;
    min-height: 620px;
}

.dn-scroll-hero.is-editor-preview .dn-scroll-hero__actions {
    opacity: 1;
}

@media (max-width: 1799px) {
    .dn-scroll-hero__row {
        width: min(94vw, 1451px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__eyebrow {
        top: calc(28% + var(--opening-shift) - 104px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__title {
        font-size: 160px;
    }
}

@media (max-width: 1599px) {
    .dn-scroll-hero__row {
        width: min(94vw, 1305px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__eyebrow {
        top: calc(28% + var(--opening-shift) - 96px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__title {
        font-size: 144px;
    }
}

@media (max-width: 1439px) {
    .dn-scroll-hero__row {
        width: min(94vw, 1160px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__eyebrow {
        top: calc(28% + var(--opening-shift) - 88px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__title {
        font-size: 128px;
    }
}

@media (max-width: 1279px) {
    .dn-scroll-hero__row {
        width: min(94vw, 943px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__eyebrow {
        top: calc(28% + var(--opening-shift) - 78px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__title {
        font-size: 104px;
    }
}

@media (max-width: 1024px) {
    .dn-scroll-hero__row {
        left: 0;
        width: 91vw;
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__eyebrow {
        top: calc(28% + var(--opening-shift) - 60px);
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__title {
        font-size: 64px;
    }

    .dn-scroll-hero__scene.align-left,
    .dn-scroll-hero__scene.align-right {
        justify-content: flex-end;
        padding: 80px 7vw 80px;
    }

    .dn-scroll-hero__scene.align-left .dn-scroll-hero__title,
    .dn-scroll-hero__scene.align-right .dn-scroll-hero__title {
        font-size: clamp(48px, 8vw, 72px);
    }

    .dn-scroll-hero__product {
        top: calc(43% + var(--opening-shift));
        width: min(36vw, 380px);
        height: 58vh;
    }

    .dn-scroll-hero__actions {
        left: 7vw;
        right: 7vw;
        top: auto;
        bottom: 28px;
    }
}

@media (max-width: 767px) {
    .dn-scroll-hero {
        --opening-shift: -2.5vh;
    }

    .dn-scroll-hero__stage {
        min-height: 620px;
    }

    .dn-scroll-hero__matrix {
        grid-template-rows: repeat(4, max-content);
        padding: 24vh 0 31vh;
    }

    .dn-scroll-hero__row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        width: 105%;
        margin-left: -2.5%;
    }

    .dn-scroll-hero__mini {
        width: clamp(64px, 18vw, 84px);
    }

    .dn-scroll-hero__scene.align-center,
    .dn-scroll-hero__scene.align-left,
    .dn-scroll-hero__scene.align-right {
        align-items: flex-start;
        justify-content: flex-end;
        padding: 72px 20px 116px;
        text-align: left;
    }

    .dn-scroll-hero__title,
    .dn-scroll-hero__scene.align-left .dn-scroll-hero__title,
    .dn-scroll-hero__scene.align-right .dn-scroll-hero__title {
        max-width: 10ch;
        font-size: clamp(48px, 15vw, 64px);
        line-height: .92;
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__title {
        left: 20px;
        right: 20px;
        top: calc(28% + var(--opening-shift));
        max-width: none;
        font-size: 40px;
        text-align: center;
        white-space: nowrap;
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__eyebrow {
        top: calc(28% + var(--opening-shift) - 48px);
    }

    .dn-scroll-hero__copy {
        max-width: 31ch;
        margin-top: 14px;
        font-size: 16px;
    }

    .dn-scroll-hero__scene.align-center .dn-scroll-hero__copy {
        position: static;
        width: auto;
        margin-top: 14px;
        text-align: left;
    }

    .dn-scroll-hero__product {
        top: calc(33% + var(--opening-shift));
        width: min(56vw, 250px);
        height: 43vh;
    }

    .dn-scroll-hero__actions {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 20px;
        justify-content: stretch;
    }

    .dn-scroll-hero__actions .btn {
        flex: 1;
    }

}

@media (max-height: 700px) {
    .dn-scroll-hero__product {
        height: 49vh;
    }

    .dn-scroll-hero__scene.align-center,
    .dn-scroll-hero__scene.align-left,
    .dn-scroll-hero__scene.align-right {
        padding-bottom: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dn-scroll-hero__stage {
        background: var(--hero-static) center / cover no-repeat;
    }

    .dn-scroll-hero__matrix {
        display: none;
    }

    .dn-scroll-hero__scene {
        display: none;
    }

    .dn-scroll-hero__scene:first-child {
        display: flex;
        visibility: visible;
        opacity: 1;
    }

    .dn-scroll-hero__actions {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .dn-scroll-hero,
    .dn-scroll-hero__stage {
        height: 600px;
        min-height: 600px;
    }

    .dn-scroll-hero__scene:not(:first-child),
    .dn-scroll-hero__actions {
        display: none;
    }

    .dn-scroll-hero__matrix {
        padding: 180px 0 70px;
        transform: none;
    }

    .dn-scroll-hero__product {
        top: 50%;
        width: min(40vw, 340px);
        height: 480px;
    }
}

@media (max-width: 720px) {
    .dn-scroll-hero,
    .dn-scroll-hero__stage {
        height: 450px;
        min-height: 450px;
    }

    .dn-scroll-hero__matrix {
        padding: 138px 0 54px;
    }

    .dn-scroll-hero__product {
        top: 48%;
        width: min(56vw, 220px);
        height: 320px;
    }
}
