/* Keep the complete before/after composition visible on small screens. */
section.hero picture { left: 30%; width: 70%; }
section.hero picture img { object-position: center center; }
section.hero picture::after { inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 1; z-index: 2; background: linear-gradient(90deg, #f1f1f1 0%, rgba(241,241,241,.7) 3%, rgba(241,241,241,.35) 6%, rgba(241,241,241,.12) 9%, rgba(241,241,241,0) 13%); }
@media (max-width: 991.98px) {
 section.hero { display: flex; flex-direction: column; }
 section.hero > .container { order: 0; }
 section.hero picture { position: relative; order: 1; left: 0; width: 100%; height: auto; z-index: 2; }
 section.hero picture img { display: block; width: 100%; height: auto; }
 section.hero picture::after { display: none; }
 section.hero .hero-content { padding-bottom: 1.5rem; }
}

@media (min-width: 992px) {
 section.hero .hero-content { padding: 5rem 0; }
 section.hero > .container > .row > div { width: 40%; }
}

/* Smaller copy leaves the sofa arm clear of the text. */
section.hero .hero-content{font-size:16px}
section.hero .hero-content h1{font-size:clamp(30px,2.8vw,40px);line-height:1.15;margin-bottom:24px}
section.hero .hero-text{font-size:16px;line-height:1.35;margin-bottom:28px}
section.hero .hero-actions .btn{font-size:14px;padding:12px 20px}
@media(min-width:992px){section.hero .hero-content{padding:4rem 0}section.hero > .container > .row > div{width:34%}}
@media(max-width:991.98px){section.hero .hero-content{font-size:15px}section.hero .hero-text{font-size:15px}section.hero .hero-actions .btn{font-size:13px}}

/* Mobile hero: photo behind compact copy rather than a separate lower block. */
@media(max-width:991.98px){
 section.hero{display:block;min-height:480px}
 section.hero picture{position:absolute;inset:0;width:100%;height:100%;z-index:0}
 section.hero picture img{width:100%;height:100%;object-fit:cover;object-position:60% bottom}
 section.hero picture::after{display:block;z-index:3;background:linear-gradient(180deg,rgba(241,241,241,.94) 0%,rgba(241,241,241,.86) 32%,rgba(241,241,241,.55) 55%,rgba(241,241,241,.12) 76%,rgba(241,241,241,0) 100%)}
 section.hero::before,section.hero::after{display:none}
 section.hero .hero-content{padding:36px 0 170px;font-size:13px}
 section.hero .hero-content h1{font-size:26px;line-height:1.15;margin-bottom:18px;max-width:360px}
 section.hero .hero-text{font-size:13px;line-height:1.4;margin-bottom:20px;max-width:360px}
 section.hero .hero-text p{margin-bottom:12px}
 section.hero .hero-actions{gap:8px;--bs-gutter-x:0}
 section.hero .hero-actions .col-auto{width:auto;flex:0 0 auto}
 section.hero .hero-actions .btn{font-size:12px;padding:10px 16px;margin-bottom:0!important}
}
@media(max-width:480px){
 section.hero .hero-content{padding:32px 0 175px}
 section.hero .hero-content h1{font-size:24px}
 section.hero .hero-text{font-size:12px;max-width:330px}
 section.hero .hero-actions .btn{font-size:11px;padding:10px 14px}
}

@media(max-width:991.98px){section.hero .hero-actions .btn.outlined{background:rgba(255,255,255,.8)}}

/* Show more of the worn sofa on mobile with a lighter, gradual veil. */
@media(max-width:991.98px){
 section.hero picture img{object-position:46% bottom}
 section.hero picture::after{background:linear-gradient(180deg,rgba(241,241,241,.78) 0%,rgba(241,241,241,.64) 25%,rgba(241,241,241,.38) 48%,rgba(241,241,241,.12) 68%,rgba(241,241,241,0) 86%)}
}
