/* One continuous canvas behind hero and news, rather than a cropped hero strip. */
body[data-news-home="true"]{position:relative;isolation:isolate;background:#151410;overflow-x:clip}
body[data-news-home="true"]::before{content:"";position:absolute;z-index:-1;pointer-events:none;top:42px;left:0;right:0;height:50.573vw;background:linear-gradient(90deg,#100e18b8 0%,#100e1855 40%,transparent 80%),url("../images/shanhai-landscape.webp") center top/100% auto no-repeat;mask-image:url("../images/home-fade.svg?v=2");mask-size:100% 100%;mask-mode:alpha;transform-origin:center 20%;animation:home-landscape-breathe 32s ease-in-out infinite alternate}
body[data-news-home="true"] .hero{position:relative;background:transparent;border:0;padding-block:clamp(80px,11vw,140px);overflow:visible}
body[data-news-home="true"] .home-news,body[data-news-home="true"] .home-events{position:relative;background:linear-gradient(135deg,#292219dd,#1c1913ed);border-color:#bda36a44;box-shadow:0 10px 36px #0002}
@keyframes home-landscape-breathe{from{transform:scale(1);opacity:.9}to{transform:scale(1.025);opacity:1}}
@media(max-width:640px){body[data-news-home="true"]::before{height:760px;background-position:68% top;background-size:auto 760px;animation:none}body[data-news-home="true"] .hero{padding-block:100px 130px}}
@media(prefers-reduced-motion:reduce){body[data-news-home="true"]::before{content:none;animation:none}}

/* Give the launcher logo breathing room inside the navigation bar. */
body[data-news-home="true"] .account-site-header .brand img{width:clamp(34px,5vw,54px)}

/* Video and its tint share the existing feathered background canvas. */
body[data-news-home="true"]::before{content:none;animation:none}
.home-motion{position:absolute;z-index:-1;pointer-events:none;top:42px;left:0;right:0;height:auto;aspect-ratio:1470/630;overflow:hidden;mask-image:url("../images/home-fade.svg?v=2");mask-size:100% 100%;mask-mode:alpha}
.home-motion video{display:block;width:100%;height:100%;object-fit:contain;object-position:center top}
.home-motion::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#100e18b8 0%,#100e1855 40%,transparent 80%)}
@media(max-width:640px){.home-motion video{object-position:center top}}
@media(prefers-reduced-motion:reduce){.home-motion{display:none}body[data-news-home="true"]::before{content:""}}
