/* Crown Lifestyle · Hair reveal section (independent, reusable)
   Markup: see reveal.html. Needs hair-reveal.js. All selectors are prefixed .hr- so it can be dropped into any page.
   Pinning is CSS sticky inside a tall track; GSAP ScrollTrigger maps the scroll position to the animation (no autoplay). */
.hr{--hr-bg:#000;--hr-ink:#f4f4f1;--hr-dim:#9b9b98;--hr-gold:#c4a36c;--hr-len:560;position:relative;background:var(--hr-bg);color:var(--hr-ink);isolation:isolate}
.hr *{box-sizing:border-box}
.hr-track{position:relative}
.hr-pin{position:relative;height:100vh;height:100svh;min-height:520px;width:100%;overflow:hidden;background:#000}
.hr-js .hr-track{height:calc(var(--hr-len) * 1vh);height:calc(var(--hr-len) * 1svh)}
.hr-js .hr-pin{position:sticky;top:0}

/* revealed content, sits under the hair */
.hr-under{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:64px 22px 150px;gap:0}
.hr-eyebrow{margin:0 0 clamp(14px,2.4vh,26px);font:700 11px/1 Arial,Helvetica,'Hind Siliguri',sans-serif;letter-spacing:.34em;text-transform:uppercase;color:var(--hr-gold)}
.hr-logo{display:block;width:clamp(150px,22vw,300px);height:auto;margin:0 auto clamp(18px,3.4vh,34px)}
.hr-title{margin:0;font:820 clamp(36px,7.4vw,112px)/.9 Arial,Helvetica,'Hind Siliguri',sans-serif;letter-spacing:-.075em;text-transform:uppercase;color:var(--hr-ink)}
.hr-title strong{font-weight:820;color:transparent;-webkit-text-stroke:1.5px var(--hr-ink)}
.hr-sub{margin:clamp(14px,2.6vh,26px) auto 0;max-width:34em;font:400 clamp(13px,1.25vw,16px)/1.65 Arial,Helvetica,'Hind Siliguri',sans-serif;color:var(--hr-dim)}
.hr-cta{display:inline-flex;align-items:center;gap:10px;margin-top:clamp(20px,3.6vh,38px);padding:17px 32px;border:1px solid var(--hr-ink);background:var(--hr-ink);color:#090909;font:800 12px/1 Arial,Helvetica,'Hind Siliguri',sans-serif;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;border-radius:0;transition:background .3s,color .3s}
.hr-cta:hover,.hr-cta:focus-visible{background:transparent;color:var(--hr-ink)}
.hr-cta:focus-visible{outline:2px solid var(--hr-gold);outline-offset:4px}
body.lang-bn .hr-title,body.lang-bn .hr-eyebrow,body.lang-bn .hr-cta{letter-spacing:0;text-transform:none;font-family:'Hind Siliguri',Arial,sans-serif;font-weight:700}
body.lang-bn .hr-title{line-height:1.12}
body.lang-bn .hr-sub{font-family:'Hind Siliguri',Arial,sans-serif}

/* hair layers */
.hr-poster{position:absolute;inset:0;z-index:2;pointer-events:none;background:#000 url(../img/hair-reveal-hair.webp) center/cover no-repeat;transition:opacity .6s ease}
.hr-canvas{position:absolute;inset:0;z-index:3;width:100%;height:100%;display:block;pointer-events:none}
.hr-vig{position:absolute;inset:0;z-index:4;pointer-events:none;background:radial-gradient(120% 90% at 50% 42%,rgba(0,0,0,0) 46%,rgba(0,0,0,.55) 100%)}
.hr-js .hr-under{visibility:hidden}
.hr-js.hr-ready .hr-under{visibility:visible}
.hr-js.hr-ready .hr-poster{opacity:0}
.hr-js:not(.hr-ready) .hr-canvas{opacity:0}

/* scroll hint and cut counter */
.hr-hint,.hr-meter{position:absolute;z-index:5;pointer-events:none;font:700 10px/1 Arial,Helvetica,'Hind Siliguri',sans-serif;letter-spacing:.3em;text-transform:uppercase;color:#bdbdba;text-shadow:0 1px 8px #000}
.hr-hint{left:50%;bottom:calc(104px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;white-space:nowrap}
.hr-hint::after{content:'';width:1px;height:34px;background:linear-gradient(#bdbdba,transparent)}
.hr-meter{left:clamp(18px,3vw,44px);bottom:calc(34px + env(safe-area-inset-bottom,0px))}
.hr-meter i{font-style:normal;color:var(--hr-gold)}
body.lang-bn .hr-hint,body.lang-bn .hr-meter{letter-spacing:0;text-transform:none;font-size:12px}

/* lightweight fallback: reduced motion, no canvas, data saver, no JS */
.hr:not(.hr-js) .hr-pin,.hr.hr-static .hr-pin{height:auto;min-height:100vh;min-height:100svh}
.hr:not(.hr-js) .hr-under,.hr.hr-static .hr-under{position:relative;inset:auto;min-height:100vh;min-height:100svh;visibility:visible}
.hr:not(.hr-js) :is(.hr-poster,.hr-canvas,.hr-vig,.hr-hint,.hr-meter),.hr.hr-static :is(.hr-poster,.hr-canvas,.hr-vig,.hr-hint,.hr-meter){display:none}
.hr-still{position:absolute;z-index:0;right:-6%;top:56%;width:min(54vw,680px);height:auto;opacity:.2;transform:translateY(-50%) rotate(-12deg);pointer-events:none;-webkit-mask:linear-gradient(90deg,transparent,#000 30%);mask:linear-gradient(90deg,transparent,#000 30%)}
.hr.hr-static{overflow:hidden}
@media (max-width:700px){.hr-eyebrow{font-size:10px;letter-spacing:.26em}.hr-title{letter-spacing:-.06em}.hr-cta{padding:16px 26px}}
@media (prefers-reduced-motion:reduce){.hr-cta{transition:none}}
