/* cc-bg.css: optional background concepts (BG=lines,dusk). Preview only until Clement approves. */
/* Concept 2: architectural line art, placed by cc-bg.js only where it clears all content */
body[data-bg~="lines"] .bg-host{position:relative;isolation:isolate}
.bg-motif{position:absolute;z-index:-1;pointer-events:none;width:200px;height:200px;opacity:.10;background:center/contain no-repeat}
.bg-motif[data-m="block"]{background-image:url(/assets/img/bg/motif-block.svg)}
.bg-motif[data-m="roof"]{background-image:url(/assets/img/bg/motif-roof.svg)}
.bg-motif[data-m="windows"]{background-image:url(/assets/img/bg/motif-windows.svg)}
@media (max-width:699px){.bg-motif{width:112px;height:112px;opacity:.09}}
@media print{.bg-motif{display:none}}
/* Concept 3: estate wash in the dark closing band + footer top. Photo: Sengkang / Wikimedia Commons (copyrighted free use), cropped, blur baked in, #0F2A20 at 91% on top */
body[data-bg~="dusk"] .final-cta-section,body[data-bg~="dusk"] section.band-dark[data-section="final_cta"],body[data-bg~="dusk"] footer.bg-dusk-host{position:relative;isolation:isolate}
body[data-bg~="dusk"] .final-cta-section::before,body[data-bg~="dusk"] section.band-dark[data-section="final_cta"]::before,body[data-bg~="dusk"] footer.bg-dusk-host::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:#0F2A20}
body[data-bg~="dusk"] footer.bg-dusk-host::before{bottom:auto;height:min(100%,280px)}
body[data-bg~="dusk"] .bg-dusk-in.final-cta-section::before,body[data-bg~="dusk"] section.bg-dusk-in.band-dark[data-section="final_cta"]::before{background:linear-gradient(rgba(15,42,32,.91),rgba(15,42,32,.91)),url(/assets/img/bg/estate-blur-1280.webp) center 62%/cover no-repeat,#0F2A20}
body[data-bg~="dusk"] footer.bg-dusk-host.bg-dusk-in::before{background:linear-gradient(to bottom,rgba(15,42,32,.91) 0,rgba(15,42,32,.91) 55%,#0F2A20 100%),url(/assets/img/bg/estate-blur-1280.webp) center 70%/cover no-repeat,#0F2A20}
@media (max-width:699px){
 body[data-bg~="dusk"] .bg-dusk-in.final-cta-section::before,body[data-bg~="dusk"] section.bg-dusk-in.band-dark[data-section="final_cta"]::before{background:linear-gradient(rgba(15,42,32,.91),rgba(15,42,32,.91)),url(/assets/img/bg/estate-blur-600.webp) center 62%/cover no-repeat,#0F2A20}
 body[data-bg~="dusk"] footer.bg-dusk-host.bg-dusk-in::before{background:linear-gradient(to bottom,rgba(15,42,32,.91) 0,rgba(15,42,32,.91) 55%,#0F2A20 100%),url(/assets/img/bg/estate-blur-600.webp) center 70%/cover no-repeat,#0F2A20}
}
/* Concept 3b (BG=tools): blurred HDB facade band behind the /tools/ heading. Photo: Chainwit. / Wikimedia Commons / CC BY 4.0, cropped and blurred, paper at 90% on top */
.bg-photo-band{position:absolute;left:0;right:0;z-index:-1;pointer-events:none;background:linear-gradient(rgba(250,248,244,.9),rgba(250,248,244,.9)),url(/assets/img/bg/eunos-blur-1280.webp) center 40%/cover no-repeat;border-bottom:1px solid #E4DFD5}
.bg-photo-band::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;background:linear-gradient(rgba(250,248,244,0),rgba(250,248,244,.9))}
@media (max-width:699px){.bg-photo-band{background:linear-gradient(rgba(250,248,244,.9),rgba(250,248,244,.9)),url(/assets/img/bg/eunos-blur-600.webp) center 40%/cover no-repeat}}
footer .bg-credit{font-size:12px!important;line-height:1.5;color:#B9C4BD!important;margin:12px 0 0!important;padding:0!important;max-width:none;flex-basis:100%;width:100%;position:relative;z-index:1}
footer .bg-credit a{color:#B9C4BD!important;text-decoration:underline}

/* ===== BG=vivid : clearly visible blurred estate photos (Clement t480u, "more visible"). Text always on a scrim or a card. ===== */
/* Home hero: estate across the panel, near-solid paper scrim under the headline column, portrait C as a framed card */
@media (min-width:900px){
 body[data-bg~="vivid"] .pro-hero .hero-inner::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(250,248,244,.95) 0,rgba(250,248,244,.95) var(--scrim-x,52%),rgba(250,248,244,.38) calc(var(--scrim-x,52%) + 130px),rgba(250,248,244,.34) 100%),url(/assets/img/bg/bedok-light-1600.webp) 30% 40%/cover no-repeat}
 body[data-bg~="vivid"] .pro-hero-media{inset:auto;right:clamp(32px,4vw,64px);top:clamp(40px,4.5vw,64px);bottom:clamp(40px,4.5vw,64px);width:min(31%,380px);border-radius:12px;overflow:hidden;border:6px solid #fff;box-shadow:0 22px 44px -22px rgba(15,42,32,.5);z-index:1;background:#EFE7DE}
 body[data-bg~="vivid"] .pro-hero-media img{object-position:80% 22%}
}
@media (max-width:899px){
 body[data-bg~="vivid"] .pro-hero-media{padding:14px;border:0;background:linear-gradient(rgba(250,248,244,.2),rgba(250,248,244,.2)),url(/assets/img/bg/bedok-light-800.webp) center/cover no-repeat}
 body[data-bg~="vivid"] .pro-hero-media img{border-radius:7px;box-shadow:0 14px 30px -18px rgba(15,42,32,.55)}
}
/* Home section bands: photo at ~38% visibility, content on a solid white card */
body[data-bg~="vivid"] .bg-photo-light{background:#F2EEE6!important;padding:clamp(40px,6vw,88px) 0!important}
body[data-bg~="vivid"] .bg-photo-light.bg-in{background:linear-gradient(rgba(250,248,244,.55),rgba(250,248,244,.55)),var(--bg-img) center/cover no-repeat!important}
body[data-bg~="vivid"] .bg-photo-light>.container{background:#fff!important;border:1px solid #E4DFD5;border-radius:12px;padding:clamp(24px,4vw,52px)!important;box-shadow:0 26px 50px -30px rgba(15,42,32,.45);width:min(1120px,calc(100% - 2*clamp(12px,4vw,48px)));box-sizing:border-box;margin-left:auto;margin-right:auto}
body[data-bg~="vivid"] .authority-section.bg-photo-light{--bg-img:url(/assets/img/bg/eunos-light-1600.webp)}
body[data-bg~="vivid"] .strategy-section.bg-photo-light{--bg-img:url(/assets/img/bg/tengah-light-1600.webp)}
@media (max-width:699px){body[data-bg~="vivid"] .authority-section.bg-photo-light{--bg-img:url(/assets/img/bg/eunos-light-800.webp)}body[data-bg~="vivid"] .strategy-section.bg-photo-light{--bg-img:url(/assets/img/bg/tengah-light-800.webp)}}
/* Dark closing band, footer and Nov BTO hero: photo under #0F2A20 at 78% (dark-graded file) */
body[data-bg~="vivid"] .bg-photo-dark{position:relative;isolation:isolate}
body[data-bg~="vivid"] .bg-photo-dark::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:#0F2A20}
body[data-bg~="vivid"] .bg-photo-dark.bg-in::before{background:linear-gradient(rgba(15,42,32,.78),rgba(15,42,32,.78)),var(--bg-img) center 55%/cover no-repeat,#0F2A20}
body[data-bg~="vivid"] .bg-photo-dark{--bg-img:url(/assets/img/bg/bedok-dark-1600.webp)}
body[data-bg~="vivid"] header.hero.pro-deep.bg-photo-dark{--bg-img:url(/assets/img/bg/tengah-dark-1600.webp);background:transparent!important}
body[data-bg~="vivid"] footer.bg-photo-dark,body[data-bg~="vivid"] .final-cta-section.bg-photo-dark,body[data-bg~="vivid"] section.band-dark.bg-photo-dark{background:transparent!important}
@media (max-width:699px){body[data-bg~="vivid"] .bg-photo-dark{--bg-img:url(/assets/img/bg/bedok-dark-800.webp)}body[data-bg~="vivid"] header.hero.pro-deep.bg-photo-dark{--bg-img:url(/assets/img/bg/tengah-dark-800.webp)}}
/* Light heading bands (/tools/, /bto/): photo ~50% visible beyond a near-solid scrim that always covers the text */
body[data-bg~="vivid"] .bg-photo-band,body[data-bg~="vivid"] header.hero.plain.bg-photo-head::before{border-bottom:1px solid #E4DFD5;background:linear-gradient(90deg,rgba(250,248,244,.95) 0,rgba(250,248,244,.95) var(--scrim-x,55%),rgba(250,248,244,.45) calc(var(--scrim-x,55%) + 200px),rgba(250,248,244,.4) 100%),var(--bg-img) center 45%/cover no-repeat}
body[data-bg~="vivid"] .bg-photo-band{--bg-img:url(/assets/img/bg/eunos-light-1600.webp)}
body[data-bg~="vivid"] header.hero.plain.bg-photo-head{position:relative;isolation:isolate;background:transparent!important;--bg-img:url(/assets/img/bg/tengah-light-1600.webp)}
body[data-bg~="vivid"] header.hero.plain.bg-photo-head::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
body[data-bg~="vivid"] .bg-photo-band::after{display:none}
@media (max-width:699px){
 body[data-bg~="vivid"] .bg-photo-band,body[data-bg~="vivid"] header.hero.plain.bg-photo-head::before{background:linear-gradient(180deg,rgba(250,248,244,.4) 0,rgba(250,248,244,.4) 104px,rgba(250,248,244,.95) 122px,rgba(250,248,244,.95) 100%),var(--bg-img) center 40%/cover no-repeat}
 body[data-bg~="vivid"] .bg-photo-band{--bg-img:url(/assets/img/bg/eunos-light-800.webp)}
 body[data-bg~="vivid"] header.hero.plain.bg-photo-head{--bg-img:url(/assets/img/bg/tengah-light-800.webp);padding-top:calc(124px + 8px)!important}
 body[data-bg~="vivid"].bg-tools>main{padding-top:calc(124px + 20px)!important}
}
@media (max-width:699px){body[data-bg~="vivid"] header.hero.plain.bg-photo-head::before{background:linear-gradient(180deg,rgba(250,248,244,.4) 0,rgba(250,248,244,.4) 104px,rgba(250,248,244,.95) 122px,#FAF8F4 210px,#FAF8F4 100%),var(--bg-img) center -96px/auto 320px no-repeat,#FAF8F4}}

/* ===== BG=all (Clement t487u): more blurred estate photos on every page. Same rules: text on a near-solid scrim, a white card, or a 78% deep-green overlay; blur baked in; section bands lazy-loaded. ===== */
body[data-bg~="all"] .bgx-head{position:relative;isolation:isolate;background:transparent!important}
body[data-bg~="all"] .bgx-head::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;display:block;opacity:1;transform:none;border-bottom:1px solid #E4DFD5;
  background:linear-gradient(90deg,rgba(250,248,244,.95) 0,rgba(250,248,244,.95) var(--scrim-x,55%),rgba(250,248,244,.42) calc(var(--scrim-x,55%) + 170px),rgba(250,248,244,.38) 100%),var(--bg-img) center 45%/cover no-repeat,#FAF8F4}
body[data-bg~="all"] .bgx-head.bgx-strip::before{background:linear-gradient(180deg,rgba(250,248,244,.4) 0,rgba(250,248,244,.4) 104px,rgba(250,248,244,.95) 122px,#FAF8F4 220px,#FAF8F4 100%),var(--bg-img) center -60px/max(100%,calc(300px * var(--ar,1.5))) auto no-repeat,#FAF8F4}
@media (min-width:700px){body[data-bg~="all"] .bgx-head.bgx-strip::before{background:linear-gradient(180deg,rgba(250,248,244,.4) 0,rgba(250,248,244,.4) 104px,rgba(250,248,244,.95) 122px,rgba(250,248,244,.95) 100%),var(--bg-img) center 40%/cover no-repeat,#FAF8F4}}
body[data-bg~="all"] .bgx-clear{background:transparent!important}
body[data-bg~="all"] .bgx-tool{position:relative;isolation:isolate}
body[data-bg~="all"] .bgx-tool::before{content:"";position:absolute;left:0;right:0;top:0;height:min(100%,640px);z-index:-1;pointer-events:none;background:#FAF8F4}
body[data-bg~="all"] .bgx-tool.bg-in::before{background:linear-gradient(180deg,rgba(250,248,244,.42) 0,rgba(250,248,244,.5) 55%,#FAF8F4 100%),var(--bg-img) center 62%/cover no-repeat,#FAF8F4}
body[data-bg~="all"] .bgx-band{position:relative}
body[data-bg~="all"] .bgx-band>.bgx-card{background:#fff!important;border:1px solid #E4DFD5;border-radius:12px;padding:clamp(24px,4vw,52px)!important;box-shadow:0 26px 50px -30px rgba(15,42,32,.45);width:min(1120px,calc(100% - 2*clamp(12px,4vw,48px)));max-width:none;box-sizing:border-box;margin-left:auto!important;margin-right:auto!important}
body[data-bg~="all"] .bgx-dark{background:transparent!important;overflow:hidden}
body[data-bg~="all"] .bgx-dark::before{border-radius:inherit}
@media print{body[data-bg~="all"] .bgx-head::before,body[data-bg~="all"] .bgx-tool::before{display:none}}

/* ===== BG=all hero (Clement t494u, About): a clearly visible, warm estate photo across the whole hero; text on a near-solid cream card (AA), portrait framed ===== */
body[data-bg~="all"] .bgx-hero{position:relative;isolation:isolate;background:transparent!important;overflow:hidden;padding-top:clamp(28px,5vw,72px)!important;padding-bottom:clamp(28px,5vw,72px)!important}
body[data-bg~="all"] .bgx-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(15,42,32,.06) 0,rgba(15,42,32,.30) 100%),var(--bg-img) center 58%/cover no-repeat,#DCE6DF}
body[data-bg~="all"] .bgx-hero .bgx-herocard{background:rgba(250,248,244,.96)!important;border:1px solid rgba(255,255,255,.8);border-radius:14px;padding:clamp(22px,3.2vw,44px)!important;box-shadow:0 30px 60px -28px rgba(15,42,32,.6);align-self:center}
body[data-bg~="all"] .bgx-hero .portrait img{border:6px solid #fff;border-radius:14px;box-shadow:0 34px 60px -26px rgba(0,0,0,.55)}
@media (max-width:699px){body[data-bg~="all"] .bgx-hero .bgx-herocard{padding:20px 18px!important}}
@media print{body[data-bg~="all"] .bgx-hero::before{display:none}}
/* Tool gate (locked tools): blurred estate photo behind the lock card, under a 78% deep-green wash (credited as the site's Bedok photo) */
body[data-bg~="vivid"]:not(.gate-inline) #gate{background:linear-gradient(rgba(15,42,32,.74),rgba(15,42,32,.74)),url(/assets/img/bg/bedok-dark-1600.webp) center/cover no-repeat,#0F2A20!important}
@media (max-width:699px){body[data-bg~="vivid"]:not(.gate-inline) #gate{background:linear-gradient(rgba(15,42,32,.74),rgba(15,42,32,.74)),url(/assets/img/bg/bedok-dark-800.webp) center/cover no-repeat,#0F2A20!important}}
