/* Restore the original expanding gallery only. Hover player and demo links are unchanged. */
.four-steps-page .scene-deck{display:flex;gap:12px;margin-top:42px;min-width:0;align-items:stretch}
.four-steps-page .scene-card{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;background:#f5f7fb;border:1px solid #d6dfec;border-radius:20px;padding:21px 12px 24px;overflow:hidden;transition:flex .65s cubic-bezier(.2,.75,.2,1),background .4s,color .4s,border-color .4s,box-shadow .4s;box-shadow:0 8px 25px #19394d04}
.four-steps-page .scene-card.is-active{flex:2.15 1 0;background:#14243e;color:white;border-color:#14243e;box-shadow:0 20px 45px #15305b20}
.four-steps-page .scene-card:focus-visible{outline-offset:4px}
.four-steps-page .scene-card-top{position:relative;min-height:70px;padding:0 9px 19px}
.four-steps-page .scene-kind{display:block;color:#4f6075;font-size:7px;font-weight:600;letter-spacing:.14em}
.four-steps-page .scene-card.is-active .scene-kind{color:#9fbee9}
.four-steps-page .scene-card h3{font-size:19px;font-weight:550;letter-spacing:-.045em;line-height:1.2;margin-top:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 23px)}
.four-steps-page .scene-card-media{position:relative;overflow:hidden;border-radius:13px;height:365px;background:#91a0b5;isolation:isolate}
.four-steps-page .scene-card-media>img,.four-steps-page .scene-card-media>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.four-steps-page .scene-card-video{opacity:0;transition:opacity .5s}
.four-steps-page .scene-card.is-active .scene-card-video.is-playing{opacity:1}
.four-steps-page .scene-card-poster{transform:scale(1.015);transition:transform 1.4s ease}
.four-steps-page .scene-card.is-active .scene-card-poster{transform:scale(1.055)}
.four-steps-page .scene-card-media:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#14263e48,transparent 42%);pointer-events:none}
.four-steps-page .scene-card.is-active .scene-play{opacity:1;transform:none}
.four-steps-page .scene-card.is-active .media-task-card{width:min(300px,calc(100% - 38px));padding:19px 20px}
.four-steps-page .scene-card.is-active .media-task-card strong{font-size:15px}
.four-steps-page .scene-card.is-active .media-task-card p{max-height:100px;opacity:1;margin-top:8px}
.four-steps-page .scene-card-copy{padding:20px 9px 0;min-height:107px;display:flex;flex-direction:column}
.four-steps-page .scene-card-copy>p{color:#4c5e74;font-size:11px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:340px}
.four-steps-page .scene-card.is-active .scene-card-copy>p{color:#c7d7ee;-webkit-line-clamp:3}
.four-steps-page .scene-card-action{display:inline-block;align-self:flex-start;font-size:11px;color:#fff;line-height:1.4;border-bottom:1px solid #8da7c5;padding-bottom:3px;margin-top:15px;opacity:0;transition:opacity .35s;white-space:nowrap}
.four-steps-page .scene-card.is-active .scene-card-action{opacity:1}
.four-steps-page .scene-card-progress{position:absolute;bottom:0;left:0;right:0;height:3px;background:transparent}
.four-steps-page .scene-card-progress>i{display:block;width:0;height:100%;background:#7ea7ff}
.four-steps-page .scene-card.is-active.is-cycling .scene-card-progress>i{animation:cardCountdown 6.5s linear forwards}
@media(max-width:1100px){.four-steps-page .scene-deck{gap:10px}}
@media(max-width:1100px){.four-steps-page .scene-card{padding-inline:10px;border-radius:17px}}
@media(max-width:1100px){.four-steps-page .scene-card.is-active{flex:1.9 1 0}}
@media(max-width:1100px){.four-steps-page .scene-card-top{padding-inline:5px}}
@media(max-width:1100px){.four-steps-page .scene-card h3{font-size:17px}}
@media(max-width:1100px){.four-steps-page .scene-card-media{height:335px}}
@media(max-width:1100px){.four-steps-page .scene-card-copy{padding-inline:5px}}
@media(max-width:1100px){.four-steps-page .scene-card-copy p{font-size:10px}}
@media(max-width:1100px){.four-steps-page .scene-card.is-active .media-task-card{width:calc(100% - 24px);padding:16px 12px}}
@media(max-width:1100px){.four-steps-page .scene-card.is-active .media-task-card strong{font-size:13px}}
@media(max-width:1100px){.four-steps-page .scene-card.is-active .media-task-card p{font-size:9px}}
@media(max-width:800px){.four-steps-page .scene-deck{overflow-x:auto;scroll-snap-type:x mandatory;padding:3px 3px 22px;margin-inline:-3px;gap:13px;scrollbar-width:thin;scrollbar-color:#9baecb transparent}}
@media(max-width:800px){.four-steps-page .scene-card,.four-steps-page .scene-card.is-active{flex:0 0 47%;scroll-snap-align:center;border-radius:17px;padding:22px 12px 25px}}
@media(max-width:800px){.four-steps-page .scene-card-top{padding-inline:7px;min-height:69px}}
@media(max-width:800px){.four-steps-page .scene-card h3{font-size:21px}}
@media(max-width:800px){.four-steps-page .scene-card-media{height:330px}}
@media(max-width:800px){.four-steps-page .scene-card-copy{padding-inline:7px}}
@media(max-width:800px){.four-steps-page .scene-card-copy p{font-size:11px;min-height:38px}}
@media(max-width:800px){.four-steps-page .scene-card .media-task-card,.four-steps-page .scene-card.is-active .media-task-card{width:calc(100% - 27px);padding:17px 14px}}
@media(max-width:800px){.four-steps-page .scene-card .media-task-card strong,.four-steps-page .scene-card.is-active .media-task-card strong{font-size:13px}}
@media(max-width:800px){.four-steps-page .scene-card .media-task-card p{max-height:100px;opacity:1;margin-top:8px;font-size:9px}}
@media(max-width:800px){.four-steps-page .scene-card .scene-play{opacity:1;transform:none}}
@media(max-width:800px){.four-steps-page .scene-card .scene-card-action{opacity:1;color:#235bf5;border-color:#a7bce5}}
@media(max-width:800px){.four-steps-page .scene-card.is-active .scene-card-action{color:white;border-color:#8da7c5}}
@media(max-width:800px){.four-steps-page .scene-card .scene-card-copy p{-webkit-line-clamp:3}}
@media(max-width:520px){.four-steps-page .scene-deck{margin-top:29px;margin-inline:-20px;padding:4px 20px 20px;scroll-padding-inline:20px;gap:12px}}
@media(max-width:520px){.four-steps-page .scene-card,.four-steps-page .scene-card.is-active{flex-basis:86%;border-radius:19px;padding:23px 12px 25px}}
@media(max-width:520px){.four-steps-page .scene-card-top{padding-inline:9px;min-height:72px}}
@media(max-width:520px){.four-steps-page .scene-card h3{font-size:23px;margin-top:10px}}
@media(max-width:520px){.four-steps-page .scene-kind{font-size:7px}}
@media(max-width:520px){.four-steps-page .scene-card-media{height:350px;border-radius:13px}}
@media(max-width:520px){.four-steps-page .scene-card .media-task-card,.four-steps-page .scene-card.is-active .media-task-card{width:calc(100% - 40px);padding:19px 17px}}
@media(max-width:520px){.four-steps-page .scene-card .media-task-card strong,.four-steps-page .scene-card.is-active .media-task-card strong{font-size:15px}}
@media(max-width:520px){.four-steps-page .scene-card .media-task-card p{font-size:10px}}
@media(max-width:520px){.four-steps-page .scene-card .media-task-card .media-task-code{font-size:7px}}
@media(max-width:520px){.four-steps-page .scene-card-copy{padding:20px 9px 0;min-height:104px}}
@media(max-width:520px){.four-steps-page .scene-card-copy p{font-size:12px}}
@media(max-width:520px){.four-steps-page .scene-card-action{font-size:11px;margin-top:15px}}
@media(prefers-reduced-motion:reduce){.four-steps-page .scene-card,.four-steps-page .scene-card-poster,.four-steps-page .scene-card-video{transition:none!important}}
@media(prefers-reduced-motion:reduce){.four-steps-page .scene-card-progress>i{animation:none!important}}
@media(max-width:800px){.four-steps-page .scene-deck{margin:12px -20px 0;padding:3px 20px 19px;gap:14px;scroll-padding-inline:20px;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}}
@media(max-width:800px){.four-steps-page .scene-deck::-webkit-scrollbar{display:none}}
@media(max-width:800px){.four-steps-page .scene-card,.four-steps-page .scene-card.is-active{flex:0 0 88%;padding:20px 10px 22px;transition:none;border-radius:18px;background:#14243e;color:white;border-color:#14243e;box-shadow:none;scroll-snap-align:start}}
@media(max-width:800px){.four-steps-page .scene-card-top{padding:0 9px 18px;min-height:68px}}
@media(max-width:800px){.four-steps-page .scene-kind,.four-steps-page .scene-card.is-active .scene-kind{font-size:10px;color:#a7c4ed;letter-spacing:.07em}}
@media(max-width:800px){.four-steps-page .scene-card h3{font-size:26px;line-height:1.2;margin-top:7px}}
@media(max-width:800px){.four-steps-page .scene-card-media{display:grid;grid-template-rows:230px auto;height:auto;border-radius:11px;background:transparent}}
@media(max-width:800px){.four-steps-page .scene-card-media>img,.four-steps-page .scene-card-media>video{height:230px;bottom:auto;transform:none;border-radius:11px}}
@media(max-width:800px){.four-steps-page .scene-card-media:after{bottom:auto;height:230px;border-radius:11px}}
@media(max-width:800px){.four-steps-page .scene-card .media-task-card,.four-steps-page .scene-card.is-active .media-task-card{grid-row:2;position:relative;left:auto;top:auto;transform:none;width:auto;padding:15px 9px 0;margin:0;border:0;border-radius:0;background:transparent;backdrop-filter:none}}
@media(max-width:800px){.four-steps-page .scene-card .media-task-card strong,.four-steps-page .scene-card.is-active .media-task-card strong{font-size:15px!important}}
@media(max-width:800px){.four-steps-page .scene-card .media-task-card p,.four-steps-page .scene-card.is-active .media-task-card p{opacity:1;max-height:none;transition:none;font-size:13px!important;line-height:1.55;margin-top:7px}}
@media(max-width:800px){.four-steps-page .scene-card .media-task-card .media-task-code{font-size:9px}}
@media(max-width:800px){.four-steps-page .scene-card .scene-play{top:183px;bottom:auto;right:13px;width:34px;height:34px;opacity:1;transform:none}}
@media(max-width:800px){.four-steps-page .scene-card-copy{padding:18px 9px 0;min-height:0}}
@media(max-width:800px){.four-steps-page .scene-card-copy>p,.four-steps-page .scene-card.is-active .scene-card-copy>p{font-size:15px;line-height:1.6;color:#d4e0f3;min-height:0;display:block;-webkit-line-clamp:unset}}
@media(max-width:800px){.four-steps-page .scene-card .scene-card-action,.four-steps-page .scene-card.is-active .scene-card-action{font-size:14px;opacity:1;min-height:44px;display:flex;align-items:center;margin-top:13px;color:#fff;border-color:#91aed4;padding:0}}
@media(max-width:800px){.four-steps-page .scene-card-progress{display:none}}
.four-steps-page .scene-card .scene-index{display:inline-flex;top:10px;right:7px;width:26px;height:26px;flex-basis:26px;border-radius:7px;font-size:11px;color:#38587e;background:#e1e8f3;box-shadow:none}
.four-steps-page .scene-card.is-active .scene-index{background:#ffffff14;color:#c9ddfa}
.four-steps-page .scene-card-action{border-bottom:0}
@media(max-width:800px){.four-steps-page .scene-card h3{font-size:calc(26px*var(--type-scale))}}
@media(max-width:800px){.four-steps-page .scene-card .scene-index{top:9px;right:8px}}
@media(max-width:800px){.four-steps-page .scene-card .scene-index,.four-steps-page .scene-card.is-active .scene-index{background:#ffffff14;color:#c9ddfa}}

/* Clear properties added by the later static grid that did not exist in the original. */
.four-steps-page .scene-card{color:#17232b;}
.four-steps-page .scene-card.is-active{color:#fff;}
.four-steps-page .scene-card-media{aspect-ratio:auto;}
.four-steps-page .scene-card-copy{flex:initial;}
.four-steps-page .scene-card h3{font-family:var(--heading-font);font-style:normal;}
@media(min-width:801px){
 .four-steps-page .scene-card:not(.is-active):hover{border-color:#d6dfec;box-shadow:0 8px 25px #19394d04;}
 .four-steps-page .scene-card.is-active:hover{border-color:#14243e;box-shadow:0 20px 45px #15305b20;}
}
@media(max-width:800px){.four-steps-page .scene-card,.four-steps-page .scene-card.is-active{color:#fff;}}
/* Clear active-state colors/minimums introduced by the static cards. */
.four-steps-page .scene-card-copy>p,.four-steps-page .scene-card.is-active .scene-card-copy>p{min-height:0;}
.four-steps-page .scene-card.is-active .scene-card-action{color:#fff;}
