/* Lightweight scroll entrances. Film framing and controls live in film-rail.css. */
body.ref-home .brand-film{--opening-progress:0}
.brand-film .brand-film-controls,.brand-film .brand-film-dots{z-index:4}
body.ref-home .r-category-panel{--opening-progress:1;padding-top:27px}
body.ref-home .r-panel-title{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:35px;margin-bottom:26px;padding-bottom:22px;border-bottom:1px solid #dcd4c8}
body.ref-home .r-panel-title h2{margin:0;font-size:clamp(29px,2.7vw,42px);line-height:1.3}
body.ref-home .r-panel-intro{margin:0;color:#8a7c70;font-size:12px;line-height:1.8;max-width:38ch}
body.ref-home .r-panel-title>a{justify-self:end;margin:0;white-space:nowrap}
body.ref-home .r-category-grid{gap:26px}
body.ref-home .r-category{transform:translateY(calc((1 - var(--opening-progress))*28px));opacity:calc(.65 + var(--opening-progress)*.35)}
body.ref-home .r-category:nth-child(2){transform:translateY(calc((1 - var(--opening-progress))*41px))}
body.ref-home .r-category:nth-child(3){transform:translateY(calc((1 - var(--opening-progress))*54px))}
body.ref-home .r-category:nth-child(4){transform:translateY(calc((1 - var(--opening-progress))*67px))}
body.ref-home .r-category>img{transition:filter .4s ease,box-shadow .4s ease}
body.ref-home .r-category:hover>img{filter:saturate(1.06);box-shadow:0 12px 30px #5d483013}
.scroll-reveal{opacity:.18;transform:translateY(28px);transition:opacity .85s ease,transform .85s cubic-bezier(.2,.7,.2,1)}
.scroll-reveal.is-revealed{opacity:1;transform:none}
@media(max-width:700px){
 body.ref-home .brand-carousel{background:#f8f6f0}
 body.ref-home .r-category-panel{padding-top:22px}
 body.ref-home .r-panel-title{grid-template-columns:1fr auto;gap:8px 15px;margin-bottom:22px;padding-bottom:17px}
 body.ref-home .r-panel-title h2{font-size:27px}
 body.ref-home .r-panel-intro{grid-column:1/-1;grid-row:2;font-size:10px;max-width:none}
 body.ref-home .r-panel-title>a{grid-column:2;grid-row:1}
 body.ref-home .r-category-grid{gap:24px 18px}
}
@media(prefers-reduced-motion:reduce){
 body.ref-home .r-category,.scroll-reveal{transform:none!important;opacity:1!important;transition:none!important}
}
