/* Outer composition only: the approved inner carousel and its cqh artwork stay untouched. */
.unified-home-hero{--authority-surface:#163127;--authority-ink:#f8f7f2;position:relative;min-width:0;background:var(--surface-page,#f7f7f4);padding-bottom:64px}
body.home-page .unified-home-hero .brand-authority{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:28px;height:100px;min-height:0;padding:0 clamp(28px,7vw,135px);overflow:hidden;box-sizing:border-box;background:var(--authority-surface);color:var(--authority-ink);border:0}
.authority-intro{margin:0;font-family:var(--font-body);font-size:10px;font-weight:500;line-height:1.65;letter-spacing:.11em;text-transform:uppercase}
.authority-intro span{display:block}
body.home-page .unified-home-hero .partner-marquee{padding:12px 0;outline-color:var(--authority-ink)}
body.home-page .unified-home-hero .partner-sequence img{filter:grayscale(1) invert(1) contrast(3);mix-blend-mode:screen;opacity:.9;transition:opacity 180ms ease}
body.home-page .unified-home-hero .partner-sequence li:hover img{opacity:1}
.hero-lower-curve{position:absolute;bottom:0;left:0;display:block;width:100%;height:65px;pointer-events:none;overflow:hidden;fill:var(--authority-surface)}
body.home-page .unified-home-hero + .browse-categories{padding-top:32px}
@media(min-width:768px) and (max-height:740px){body.home-page .unified-home-hero .brand-authority{height:88px}.unified-home-hero{padding-bottom:40px}.hero-lower-curve{height:41px}}
@media(min-width:768px) and (max-width:1023px){.unified-home-hero{padding-bottom:40px}.hero-lower-curve{height:41px}}
@media(max-width:1023px){body.home-page .unified-home-hero .brand-authority{grid-template-columns:135px minmax(0,1fr);gap:20px;padding-inline:28px}.authority-intro{font-size:9px}}
@media(max-width:767px){body.home-page .unified-home-hero .brand-authority{display:block;height:72px;padding:12px 0}.authority-intro{display:none}.unified-home-hero{padding-bottom:16px}.hero-lower-curve{height:16px}}
@media(prefers-reduced-motion:reduce){body.home-page .unified-home-hero .brand-authority,body.home-page .unified-home-hero .partner-sequence img,.hero-lower-curve{transition:none}}
/* Compact the lower opening so the real Products introduction peeks into view. */
@media(min-width:768px){
 .unified-home-hero{padding-bottom:40px}
 .hero-lower-curve{height:41px}
 body.home-page .unified-home-hero .brand-authority{height:80px}
 body.home-page .unified-home-hero + .browse-categories{padding-top:24px}
}
@media(min-width:768px) and (max-height:740px){
 .unified-home-hero{padding-bottom:28px}
 .hero-lower-curve{height:29px}
 body.home-page .unified-home-hero .brand-authority{height:72px}
}
/* A slimmer authority belt keeps the next section visible. */
@media(min-width:768px){
 body.home-page .unified-home-hero .brand-authority{height:58px}
 body.home-page .unified-home-hero .partner-marquee{padding:8px 0}
 body.home-page .unified-home-hero .partner-sequence img{height:24px;max-width:145px}
 .unified-home-hero .authority-intro{font-size:9px;line-height:1.5}
}
@media(max-width:767px){
 body.home-page .unified-home-hero .brand-authority{height:56px;padding:8px 0}
 body.home-page .unified-home-hero .partner-sequence img{height:21px;max-width:125px}
}
@media(min-width:768px){body.home-page .unified-home-hero .brand-authority{height:50px}body.home-page .unified-home-hero .partner-marquee{padding:4px 0}}
/* Follow the ivory slide without changing the strip height or marquee timeline. */
.unified-home-hero:has(.homepage-hero[data-current="1"]){--authority-surface:#f8f7f2;--authority-ink:#183f35}
body.home-page .unified-home-hero .brand-authority{transition:background-color 650ms ease,color 650ms ease}
.hero-lower-curve{transition:fill 650ms ease}
body.home-page .unified-home-hero .partner-sequence img{transition:filter 650ms ease,opacity 180ms ease}
body.home-page .unified-home-hero:has(.homepage-hero[data-current="1"]) .partner-sequence img{filter:grayscale(1) contrast(3);mix-blend-mode:multiply;opacity:.9}
@media(prefers-reduced-motion:reduce){body.home-page .unified-home-hero .brand-authority,body.home-page .unified-home-hero .partner-sequence img,.hero-lower-curve{transition:none}}
/* Absorb the former curved footer into the carousel itself, so every leaf
   meets its lower edge without changing the overall opening height. */
body.home-page .unified-home-hero{padding-bottom:0}
body.home-page .unified-home-hero>.hero-lower-curve{display:none}
@media(min-width:768px){
 body.home-page .unified-home-hero .homepage-hero{
  height:calc(clamp(560px,calc(100svh - 110px),710px) + 40px);
  min-height:600px;max-height:750px;
 }
}
@media(min-width:768px) and (max-height:740px){
 body.home-page .unified-home-hero .homepage-hero{
  height:calc(clamp(560px,calc(100svh - 110px),710px) + 28px);
  min-height:588px;max-height:738px;
 }
}
@media(min-width:768px) and (max-height:700px){
 body.home-page .unified-home-hero .homepage-hero{
  height:calc(100svh - 60px);min-height:538px;
 }
}
