#home-story{
    --home-story-gold: #ffc45d;
    --home-story-ink: #183044;
    color: #f7fbff;
    background: #0c1d2c;
}

#home-story *{
    box-sizing: border-box;
}

#home-story .home-story-sequence{
    position: relative;
}

#home-story .home-story-pin{
    position: relative;
    isolation: isolate;
}

#home-story .home-story-backdrop{
    position: absolute;
    z-index: -3;
    inset: 0 0 auto;
    height: min(100svh, 850px);
    pointer-events: none;
    background: #0c1d2c;
}

#home-story .home-story-backdrop video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

#home-story .home-story-backdrop video.is-visible{
    opacity: 1;
}

#home-story .home-story-shade{
    position: absolute;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #061626d1, #071a2bb5 30%, #081b2b64 58%, #071a2b24 100%), linear-gradient(0deg, #0c1d2cd4, #0c1d2c00 50%);
}

#home-story .home-story-scene{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    align-items: center;
    gap: clamp(30px, 5vw, 76px);
    width: min(1220px, 90%);
    min-height: 760px;
    margin-inline: auto;
    padding: 150px 0 100px;
}

#home-story .home-story-copy{
    min-width: 0;
}

#home-story .home-story-eyebrow{
    margin: 0 0 20px;
    color: #d4e5f3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .13em;
    line-height: 1.8;
    text-transform: uppercase;
}

#home-story h1, #home-story h2{
    margin: 0;
    color: #f9fcff;
    font-size: clamp(38px, 4.7vw, 68px);
    line-height: 1.07;
    letter-spacing: -.055em;
    font-weight: 600;
}

#home-story h1 em, #home-story h2 em{
    font-style: normal;
    color: #ffcf7a;
}

#home-story .home-story-description{
    margin: 25px 0 0;
    color: #e0ebf3;
    font-size: 16px;
    line-height: 1.8;
    max-width: 505px;
}

#home-story .home-story-actions{
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 27px;
}

#home-story .home-story-action{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 19px;
    min-height: 45px;
    border-radius: 9px;
    background: var(--home-story-gold);
    color: #132b3d;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 28px #0002;
}

#home-story .home-story-text-link{
    padding: 5px 0;
    border-bottom: 1px solid #a8becd;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}

#home-story .home-story-actions a:focus-visible, #home-story button:focus-visible{
    outline: 3px solid #ffcf7a;
    outline-offset: 4px;
}

#home-story .home-story-benefits{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 15px;
    margin-top: 26px;
    color: #c8dce9;
    font-size: 12px;
}

#home-story .home-story-benefits span + span::before{
    content: '·';
    margin-right: 15px;
    color: #ffcf7a;
}

#home-story .home-story-detail{
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
    color: #ffdc9e;
    font-size: 12px;
}

#home-story .home-story-detail::before{
    content: '';
    width: 22px;
    border-top: 1px solid #ffdc9e;
}

#home-story .home-story-art{
    position: relative;
    min-width: 0;
    padding: 10px 7px 35px;
    transform-origin: 50% 50%;
}

#home-story .home-story-ui{
    overflow: hidden;
    background: #f5f8fc;
    border: 1px solid #fff;
    border-radius: 15px;
    box-shadow: 0 32px 70px #030c1e66;
    color: var(--home-story-ink);
    transform: rotate(3deg);
}

#home-story .home-story-ui-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 13px 18px;
    border-bottom: 1px solid #dce5ee;
    background: #fff;
    font-size: 10px;
    color: #657e91;
}

#home-story .home-story-ui-bar strong{
    font-weight: 600;
    color: #224c6e;
    font-size: 12px;
}

#home-story .home-story-ui-bar strong::before{
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #0878dc;
}

#home-story .home-story-ui-body{
    padding: 18px 20px 22px;
}

#home-story .home-story-ui h3{
    margin: 0 0 15px;
    color: #183044;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.03em;
}

#home-story .home-story-meta{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    padding: 0 0 15px;
    margin: 0 0 16px;
    border-bottom: 1px solid #dce5ef;
}

#home-story .home-story-meta dt{
    font-size: 10px;
    color: #687f90;
    font-weight: 400;
}

#home-story .home-story-meta dd{
    margin: 3px 0 0;
    color: #29475f;
    font-size: 11px;
    font-weight: 600;
}

#home-story .home-story-lifecycle{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 17px;
    padding: 9px 11px;
    border-radius: 7px;
    background: #e7f0fa;
    font-size: 10px;
    color: #4b6780;
}

#home-story .home-story-lifecycle b{
    font-weight: 600;
    color: #075bb1;
}

#home-story .home-story-table{
    display: grid;
    gap: 0;
}

#home-story .home-story-table > div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e1e8ef;
    font-size: 11px;
}

#home-story .home-story-table > div:last-child{
    border-bottom: 0;
}

#home-story .home-story-table small{
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #6b8090;
}

#home-story .home-story-status{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 5px;
    color: #166d55;
    background: #e0f1e9;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

#home-story .home-story-waiting{
    color: #875b13;
    background: #fff0d1;
}

#home-story .home-story-ui-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
    background: #eaf0f7;
    color: #587187;
    font-size: 10px;
}

#home-story .home-story-event{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #e7f2ff;
    color: #075bb1;
    font-size: 11px;
}

#home-story .home-story-event strong{
    display: block;
    font-size: 12px;
    font-weight: 600;
}

#home-story .home-story-event small{
    display: block;
    font-size: 10px;
    color: #56738c;
    margin-top: 2px;
}

#home-story .home-story-event-violet{
    color: #674699;
    background: #f0eafd;
}

#home-story .home-story-receipt{
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 68%;
    padding: 15px 17px;
    border: 1px solid #e4ece9;
    border-radius: 12px;
    background: #fff;
    color: #21493a;
    box-shadow: 0 18px 37px #0012224d;
    transform: rotate(3deg);
}

#home-story .home-story-receipt strong{
    display: block;
    font-size: 12px;
    font-weight: 600;
}

#home-story .home-story-receipt p{
    margin: 6px 0 0;
    font-size: 10px;
    color: #5c786c;
    line-height: 1.5;
}

#home-story .home-story-signature{
    margin-top: 9px;
    color: #23664c;
    font: italic 25px/1.2 Georgia, serif;
}

#home-story .home-story-rail{
    display: none;
}

#home-story .home-story-video-toggle{
    position: absolute;
    z-index: 4;
    right: 5%;
    bottom: 98px;
    padding: 6px 10px;
    border: 1px solid #8ba1b1;
    border-radius: 6px;
    color: #e6f2fb;
    background: #122d41db;
    font: 11px/1.5 Poppins, 'Segoe UI', sans-serif;
    cursor: pointer;
}

#home-story .home-story-video-toggle[hidden]{
    display: none;
}

#home-story.is-enhanced .home-story-sequence{
    height: 440svh;
}

#home-story.is-enhanced .home-story-pin{
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 760px;
    overflow-x: clip;
}

#home-story.is-enhanced .home-story-backdrop{
    height: 100%;
    bottom: 0;
}

#home-story.is-enhanced .home-story-scene{
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    padding: 128px 0 115px;
    will-change: opacity;
}

#home-story.is-enhanced .home-story-rail{
    position: absolute;
    z-index: 5;
    inset: auto 5% 28px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

#home-story .home-story-rail button{
    padding: 12px 0 6px;
    min-height: 43px;
    border: 0;
    border-top: 2px solid #ffffff40;
    background: transparent;
    color: #b9d0df;
    text-align: left;
    font: 12px/1.4 Poppins, 'Segoe UI', sans-serif;
    cursor: pointer;
}

#home-story .home-story-rail button[aria-pressed='true']{
    color: #ffe0a2;
    border-color: var(--home-story-gold);
}

@media (min-width: 1024px) and (min-height: 760px){
    #home-story .home-story-scene:nth-of-type(even){
        grid-template-columns: 1.08fr 1fr;
    }
    #home-story .home-story-scene:nth-of-type(even) .home-story-art{
        grid-area: 1 / 1;
    }
    #home-story .home-story-scene:nth-of-type(even) .home-story-ui{
        transform: rotate(-3deg);
    }
    #home-story .home-story-scene:nth-of-type(even) .home-story-copy{
        grid-area: 1 / 2;
        position: relative;
        isolation: isolate;
        text-align: right;
    }
    #home-story .home-story-scene:nth-of-type(even) .home-story-copy::before{
        content: '';
        position: absolute;
        z-index: -1;
        inset: -48px -30px;
        background: radial-gradient(ellipse at center, #081b2bd9 30%, #081b2b73 58%, transparent 78%);
        pointer-events: none;
    }
    #home-story .home-story-scene:nth-of-type(even) .home-story-description{
        margin-inline-start: auto;
    }
    #home-story .home-story-scene:nth-of-type(even) :is(.home-story-actions, .home-story-detail, .home-story-benefits){
        justify-content: flex-end;
    }
}

@media (max-width: 1023px), (max-height: 759px){
    #home-story .home-story-backdrop{
        height: min(100svh, 850px);
        bottom: auto;
        background-position: 53% 40%;
    }
    #home-story .home-story-shade{
        background: linear-gradient(180deg, #071a2b9e, #071a2b7a 440px, #0c1d2c 850px);
    }
    #home-story .home-story-scene{
        min-height: 0;
        grid-template-columns: 1fr;
        width: min(700px, 88%);
        gap: 38px;
        padding: 70px 0;
        border-bottom: 1px solid #ffffff1c;
    }
    #home-story .home-story-scene:first-of-type{
        padding-top: 203px;
    }
    #home-story .home-story-description{
        font-size: 15px;
    }
    #home-story h1, #home-story h2{
        font-size: clamp(35px, 7vw, 57px);
    }
    #home-story .home-story-art{
        width: min(100%, 540px);
        margin-inline: auto;
    }
    #home-story .home-story-receipt{
        bottom: 0;
    }
    #home-story .home-story-video-toggle{
        display: none;
    }
}

@media (max-width: 400px){
    #home-story .home-story-scene{
        width: 86%;
    }
    #home-story .home-story-ui-body{
        padding: 15px 13px 18px;
    }
    #home-story .home-story-art{
        padding-inline: 0;
    }
    #home-story .home-story-receipt{
        width: 88%;
    }
    #home-story .home-story-benefits{
        font-size: 11px;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce){
    #home-story .home-story-backdrop video{
        display: none;
    }
    #home-story .home-story-scene{
        border-bottom: 1px solid #ffffff1c;
    }
}

#home-story .home-story-poster{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 53%;
}

@media (max-width: 1023px), (max-height: 759px) {
    #home-story .home-story-poster {
        object-position: 53% 40%;
    }
}
