/* Production contributor journey: four-ending entry + anime Story Beat deck. */
body[data-ref-page="share"]:not(.cx-guided-ending-selected) [data-guided-context],
body[data-ref-page="share"]:not(.cx-guided-ending-selected) [data-guided-story-ui],
body[data-ref-page="share"]:not(.cx-guided-ending-selected) [data-guided-review-panel]{display:none!important}

.cx-ending-panel{width:min(1280px,calc(100% - 32px));margin:8px auto 28px;padding:clamp(22px,3.5vw,40px);border:1px solid rgba(246,200,79,.18);border-radius:28px;background:radial-gradient(circle at 50% 0,rgba(246,200,79,.08),transparent 28rem),linear-gradient(145deg,rgba(18,12,11,.96),rgba(5,6,8,.98));box-shadow:0 32px 90px rgba(0,0,0,.42)}
.cx-ending-panel[hidden]{display:none!important}
.cx-ending-head{text-align:center;max-width:760px;margin:0 auto 24px}.cx-ending-head h2{margin:5px 0 10px;color:#fff8ee;font-size:clamp(2rem,4.2vw,4rem);line-height:.98;letter-spacing:-.045em}.cx-ending-head h2 em{font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#f6c84f}.cx-ending-head>p:last-child{margin:0 auto;color:#bdb4aa;line-height:1.65;max-width:650px}.cx-ending-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.cx-ending-card{min-width:0;padding:0;overflow:hidden;border:1px solid rgba(246,200,79,.18);border-radius:22px;background:#08090a;color:inherit;text-align:left;cursor:pointer;box-shadow:0 18px 55px rgba(0,0,0,.32);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.cx-ending-card:hover,.cx-ending-card:focus-visible{transform:translateY(-5px);border-color:rgba(246,200,79,.62);box-shadow:0 26px 70px rgba(0,0,0,.42),0 0 28px rgba(246,200,79,.09)}.cx-ending-image{position:relative;height:clamp(210px,22vw,310px);display:block;overflow:hidden}.cx-ending-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,8,.02) 35%,rgba(5,6,8,.9) 100%)}.cx-ending-image img{width:100%;height:100%;object-fit:cover;object-position:center 36%;filter:brightness(1.1) saturate(1.08) contrast(1.02)}.cx-ending-copy{display:grid;gap:8px;padding:0 18px 19px;margin-top:-34px;position:relative;z-index:2}.cx-ending-copy small{color:#f6c84f;font-size:.64rem;font-weight:900;letter-spacing:.15em}.cx-ending-copy strong{color:#fff7ea;font-size:1.18rem}.cx-ending-copy>span{min-height:42px;color:#bdb5ac;font-size:.76rem;line-height:1.5}.cx-ending-copy b{margin-top:4px;color:#f5ce62;font-size:.72rem}.cx-ending-note{margin:18px 0 0;text-align:center;color:#8f887f;font-size:.72rem}

/* The eight internal beats remain a sequence, but their art uses the same anime language as the rest of CorporateX. */
.ref-journey-stage{width:min(1280px,calc(100% - 28px))}.ref-journey-deck{display:flex!important;justify-content:center;align-items:center;gap:18px!important;padding:10px 14px 24px!important;overflow:visible!important}.ref-journey-card{flex:0 1 285px!important;width:min(29vw,320px);height:455px!important;border-radius:24px!important;border-color:rgba(246,200,79,.20)!important;background:#070809!important;box-shadow:0 28px 70px rgba(0,0,0,.38);opacity:.58;transform:scale(.91);transition:opacity .22s ease,transform .22s ease,border-color .22s ease;isolation:isolate}.ref-journey-card.is-active{opacity:1;transform:scale(1);border-color:rgba(246,200,79,.62)!important;box-shadow:0 34px 90px rgba(0,0,0,.48),0 0 34px rgba(246,200,79,.08)}.ref-journey-card.is-prev,.ref-journey-card.is-next{opacity:.74}.ref-journey-card .ref-art-svg{display:none!important}.ref-journey-card::before{content:"";position:absolute;z-index:-2;inset:0 0 38%;background-size:cover;background-position:center 34%;filter:brightness(1.05) saturate(1.04)}.ref-journey-card::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(5,6,8,.04) 30%,rgba(5,6,8,.46) 52%,#070809 70%)}.ref-journey-card[data-guided-chapter="beginning"]::before{background-image:url('../frozen-assets/card-1.webp')}.ref-journey-card[data-guided-chapter="promise"]::before{background-image:url('../frozen-assets/card-2.webp')}.ref-journey-card[data-guided-chapter="good"]::before{background-image:url('../frozen-assets/card-4.webp')}.ref-journey-card[data-guided-chapter="shift"]::before{background-image:url('../frozen-assets/card-3.webp')}.ref-journey-card[data-guided-chapter="tipping"]::before{background-image:url('../frozen-assets/card-5.webp')}.ref-journey-card[data-guided-chapter="lesson"]::before{background-image:url('../frozen-assets/card-2.webp')}.ref-journey-card[data-guided-chapter="ai"]::before{background-image:url('../frozen-assets/card-4.webp')}.ref-journey-card[data-guided-chapter="fit"]::before{background-image:url('../frozen-assets/card-5.webp')}.ref-journey-card .ref-card-icon{z-index:3;top:238px!important;left:18px!important;width:46px!important;height:46px!important;border-color:rgba(246,200,79,.58)!important;background:rgba(24,16,8,.92)!important;color:#f7d469!important}.ref-journey-card h2{position:relative;z-index:2;margin:auto 18px 0!important;color:#fff7ec;font-size:1.15rem!important}.ref-journey-card p{position:relative;z-index:2;margin:8px 18px 0!important;color:#bdb5ac!important;font-size:.78rem!important}.ref-card-status{position:relative;z-index:2;margin:15px 18px 18px!important;color:#f6c84f!important;font-size:.65rem!important;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.ref-chapter-dots{margin-top:0!important}

.cx-submit-status{flex:1 1 100%;margin:10px 0 0;color:#d8c7b8;font-size:.76rem;line-height:1.5}.cx-submit-status[data-state="success"]{color:#f4d36e}.cx-submit-status[data-state="error"]{color:#ffb29c}

@media(max-width:980px){.cx-ending-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-journey-deck{overflow-x:auto!important;justify-content:flex-start}.ref-journey-card{flex:0 0 min(320px,74vw)!important;width:min(320px,74vw)}}
@media(max-width:600px){.cx-ending-panel{width:calc(100% - 18px);padding:18px 12px;border-radius:22px}.cx-ending-grid{grid-template-columns:1fr;gap:12px}.cx-ending-image{height:235px}.cx-ending-copy>span{min-height:0}.ref-journey-stage{width:100%}.ref-journey-deck{gap:12px!important;padding-inline:18px!important}.ref-journey-card{flex-basis:82vw!important;width:82vw;height:430px!important}.ref-journey-card .ref-card-icon{top:222px!important}}
@media(prefers-reduced-motion:reduce){.cx-ending-card,.ref-journey-card{transition:none!important}}
