/* Live, responsive controls over the supplied visual reference. */
body[data-page="home"] .hero{position:relative;display:block;min-height:0;height:50vw;max-height:820px;background:#fff;isolation:isolate}
.d2s-hero-copy{width:43%;height:100%;padding:4.1vw 0 8.8vw 3.85vw;justify-content:flex-start;background:linear-gradient(90deg,#fff 80%,rgba(255,255,255,.92) 92%,transparent);position:relative;z-index:2}
.d2s-kicker{font-size:clamp(10px,1.04vw,16px);letter-spacing:.23em;margin-bottom:1.4vw;white-space:nowrap;color:#42484c}
.d2s-hero-copy h1{font-size:clamp(52px,6.02vw,100px);line-height:.86;letter-spacing:-.055em;font-weight:900;margin:0 0 1.55vw;color:#030a12}
.d2s-hero-copy h1 em{display:block;line-height:.86;margin-top:.2vw;color:#07553d}
.hero .d2s-hero-sub{font-size:clamp(13px,1.18vw,19px);line-height:1.5;margin:0 0 1.3vw;color:#5a5c60;max-width:510px}
.hero .d2s-products{font-size:clamp(12px,1.13vw,18px);line-height:1.5;margin:0 0 1.8vw;color:#15191e;white-space:nowrap}
.d2s-products b{margin:0 .5vw}
.d2s-cta-row{display:grid;grid-template-columns:1.1fr .9fr;gap:1.2vw;width:35.5vw;max-width:585px}
.d2s-main-cta,.d2s-order-cta{min-height:3.9vw;border-radius:9px;padding:10px 16px;font-size:clamp(13px,1.17vw,19px);white-space:nowrap;box-shadow:0 5px 12px #123b2510}
.d2s-plan-cta{background:#ffffffed;border:1px solid #cbd6d2;color:#07553d}.d2s-main-cta{background:#07553d}
.d2s-hero-visual{position:absolute;inset:0 0 6.6vw 34%;min-height:0;background-image:var(--reference-image);background-size:100vw auto;background-position:right -9.24vw;background-repeat:no-repeat;z-index:0}
.d2s-hero-visual:before{background:linear-gradient(90deg,#fff 0%,#ffffffc0 6%,transparent 18%)}
.d2s-product-mark{display:none}
.d2s-trust-row{position:absolute;left:3.1%;right:3.1%;bottom:1.45vw;display:grid;grid-template-columns:repeat(4,1fr);gap:1.8vw;margin:0;z-index:3}
.d2s-trust-row>span{min-height:5vw;padding:10px 18px;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:center;text-align:left;border:1px solid #dfe3e3;border-radius:99px;background:#ffffffed;box-shadow:none}
.d2s-trust-row svg{width:31px;height:31px;flex-shrink:0;stroke:#07121d;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.d2s-trust-row strong{display:block;font-size:clamp(11px,1.03vw,17px);color:#0a1118;font-weight:750;white-space:nowrap}.d2s-trust-row small{display:block;font-size:clamp(10px,.97vw,16px);margin-top:3px;color:#66696d}
.topbar{height:84px!important;padding:0 3.1vw!important}.brand{min-width:0!important;border:0;background:none;gap:9px;padding:0}.d2s-logo-art{width:95px!important;height:62px!important}.d2s-wordmark{font-size:2.5rem!important}.d2s-wordmark small{font-size:.52rem!important;letter-spacing:.085em;margin-top:8px!important}
.top-actions{gap:14px!important}.top-actions .nav-btn{font-size:13px!important;font-weight:550;padding:10px 8px!important}.catalog-nav svg{display:none}.top-actions #createAccountLink{background:#fff;border:1px solid #779d90;color:#214d3c;border-radius:11px;min-height:44px;font-size:13px;padding:10px 20px}.top-actions #authBtn{background:#07553d;color:#fff;border:1px solid #07553d;border-radius:11px;min-height:44px;font-size:13px;padding:10px 27px}.top-actions #moreNavButton{background:none;color:#111b22;border:0;font-size:24px;padding:6px}.top-actions #cartButton{display:inline-flex!important;border:0;background:none;min-width:54px;padding:8px;color:#07121d}.cart-trigger svg{width:27px;height:27px}
.top-actions [data-view="#catalog"],.top-actions [data-view="#history"]{display:inline-flex!important}
.d2s-how{display:none!important}
button:focus-visible,a:focus-visible{outline:3px solid #42a782;outline-offset:4px}
@media(min-width:1650px){.d2s-hero-visual{background-size:1650px auto;background-position:right -152px}.d2s-hero-copy{padding-top:68px}.d2s-hero-copy h1{font-size:100px}}
@media(max-width:1100px) and (min-width:701px){.topbar{padding:0 20px!important;gap:10px}.d2s-logo-art{width:66px!important}.d2s-wordmark{font-size:1.8rem!important}.d2s-wordmark small{font-size:.42rem!important}.top-actions{gap:5px!important}.top-actions .nav-btn{font-size:11px!important;padding:8px 4px!important}.top-actions #createAccountLink{padding:8px 10px}.top-actions #authBtn{padding:8px 13px}.d2s-trust-row>span{gap:8px;padding:9px}.d2s-trust-row svg{width:24px}.d2s-hero-copy h1{font-size:6vw}}
@media(max-width:700px){body[data-page="home"] .hero{height:auto;max-height:none;display:flex;flex-direction:column}.d2s-hero-copy{width:100%;height:auto;padding:32px 22px 24px;background:#fff}.d2s-kicker{font-size:10px;letter-spacing:.14em;white-space:normal;margin-bottom:18px}.d2s-hero-copy h1{font-size:clamp(52px,14vw,76px);line-height:.9;margin-bottom:22px}.d2s-hero-copy h1 em{line-height:.9}.hero .d2s-hero-sub{font-size:15px;line-height:1.5;margin-bottom:18px}.hero .d2s-products{font-size:13px;white-space:normal;margin-bottom:20px}.d2s-cta-row{width:100%;grid-template-columns:1fr 1fr;gap:10px}.d2s-main-cta,.d2s-order-cta{min-height:49px;padding:10px;font-size:13px;gap:8px}.d2s-hero-visual{position:relative;inset:auto;order:2;width:100%;height:320px;background-size:auto 480px;background-position:right -70px}.d2s-hero-visual:before{background:linear-gradient(180deg,#fff 0%,transparent 15%)}.d2s-trust-row{position:relative;inset:auto;order:3;grid-template-columns:1fr 1fr;gap:10px;padding:16px;margin:0}.d2s-trust-row>span{padding:14px 8px;border-radius:18px;min-height:75px;gap:8px}.d2s-trust-row strong{font-size:11px;white-space:normal}.d2s-trust-row small{font-size:10px}.d2s-trust-row svg{width:22px;height:24px}.top-actions [data-view="#catalog"],.top-actions [data-view="#history"]{display:none!important}.top-actions #cartButton{display:inline-flex!important;min-width:35px;padding:6px}.top-actions [data-view="#order"]{display:none!important}.d2s-wordmark{font-size:1.4rem!important}.d2s-logo-art{width:45px!important;height:42px!important}.topbar{height:72px!important}.d2s-hero-visual{background-color:#fff} }

:root{--reference-image:url("assets/home-d2s-building-products.png")}
body:not(.signed-in) .top-actions #catalogButton,body:not(.signed-in) .top-actions [data-view="#history"],body:not(.signed-in) .top-actions #cartButton{display:inline-flex!important}
body[data-page="catalog"] #catalog{display:block!important}
body:not([data-page="home"]) main>.section{display:none}
body[data-page="order"] #order,body[data-page="catalog"] #catalog,body[data-page="jobsites"] #jobsites,body[data-page="history"] #history,body[data-page="team"] #team,body[data-page="dispatch"] #dispatch{display:block}
@media(max-width:700px){body:not(.signed-in) .top-actions #catalogButton,body:not(.signed-in) .top-actions [data-view="#history"]{display:none!important}}

/* Compact navigation for phones and portrait tablets. */
@media(max-width:900px){
 body .top-actions #catalogButton,body .top-actions [data-view="#history"],body .top-actions [data-view="#order"],body:not(.signed-in) .top-actions #catalogButton,body:not(.signed-in) .top-actions [data-view="#history"]{display:none!important}
 body:not(.signed-in) .top-actions #cartButton{display:none!important}
 body.signed-in .top-actions #cartButton.mobile-cart-visible{display:inline-flex!important;min-width:44px;min-height:44px;flex:0 0 44px;padding:8px}
 body .topbar{height:72px!important;min-height:72px!important}
 body .top-actions #mobileAccountWrap{margin-left:0}
}
body:not(.signed-in) .top-actions #cartButton{display:none!important}

/* Crop the reference to its photo area; never reveal the baked-in headline. */
@media(min-width:701px){
 body[data-page="home"] .hero{max-width:1650px;margin-inline:auto;height:min(50vw,825px)}
 .d2s-hero-copy{background:#fff}
 .d2s-hero-visual{left:43%;background-size:175.44% auto;background-position:right max(-9.24vw,-152px)}
}
@media(max-width:700px){
 .d2s-hero-visual{height:72vw;min-height:0;max-height:none;background-size:175.44% auto;background-position:right -16.2vw}
}

/* Fit the landing screen to the available viewport without shrinking controls. */
body[data-page="home"] .shell{min-height:100svh}
body[data-page="home"] .footer{display:none}
body[data-page="home"] .hero{height:calc(100svh - 84px);max-height:none;min-height:520px;display:grid;grid-template-columns:43% 57%;grid-template-rows:minmax(0,1fr) auto;overflow:visible}
body[data-page="home"] .d2s-hero-copy{width:auto;height:auto;min-width:0;padding:clamp(16px,3vh,40px) 16px clamp(16px,3vh,32px) clamp(22px,3.8vw,64px);justify-content:center;grid-column:1;grid-row:1}
body[data-page="home"] .d2s-kicker{font-size:clamp(10px,.9vw,14px);white-space:normal;margin-bottom:clamp(10px,2vh,22px)}
body[data-page="home"] .d2s-hero-copy h1{font-size:clamp(44px,min(6vw,10.5svh),100px);line-height:.9;margin-bottom:clamp(12px,2vh,24px)}
body[data-page="home"] .d2s-hero-copy h1 em{line-height:.9}
body[data-page="home"] .d2s-hero-sub{font-size:clamp(14px,1.1vw,18px);line-height:1.45;margin-bottom:12px}
body[data-page="home"] .d2s-products{font-size:clamp(12px,1vw,16px);white-space:normal;margin-bottom:16px}
body[data-page="home"] .d2s-cta-row{width:100%;max-width:560px;gap:10px}
body[data-page="home"] .d2s-main-cta,body[data-page="home"] .d2s-order-cta{width:auto;min-height:44px;padding:10px 12px;font-size:clamp(12px,1.1vw,17px);gap:8px}
body[data-page="home"] .d2s-hero-visual{position:relative;inset:auto;grid-column:2;grid-row:1;width:100%;height:100%;min-height:0;background-size:175.44% auto;background-position:right max(-9.24vw,-152px)}
body[data-page="home"] .d2s-trust-row{position:relative;inset:auto;grid-column:1/-1;grid-row:2;padding:10px 3.1vw 16px;gap:12px}
body[data-page="home"] .d2s-trust-row>span{min-height:60px;padding:10px 12px;gap:10px}
@media(max-width:900px){
body[data-page="home"] .hero{height:calc(100svh - 122px)}
}
@media(max-width:700px){
body[data-page="home"] .hero{height:calc(100svh - 116px);min-height:600px;grid-template-columns:1fr;grid-template-rows:auto minmax(100px,1fr) auto}
body[data-page="home"] .d2s-hero-copy{grid-column:1;grid-row:1;padding:14px 18px 12px}
body[data-page="home"] .d2s-kicker{font-size:9px;letter-spacing:.12em;margin-bottom:8px}
body[data-page="home"] .d2s-hero-copy h1{font-size:clamp(32px,min(9vw,5.4svh),48px);line-height:.95;margin-bottom:10px}
body[data-page="home"] .d2s-hero-copy h1>br{display:none}
body[data-page="home"] .d2s-hero-copy h1 em{line-height:.95;margin-top:4px}
body[data-page="home"] .d2s-hero-copy h1 em br{display:none}
body[data-page="home"] .d2s-hero-sub{font-size:13px;line-height:1.4;margin-bottom:8px;max-width:540px}
body[data-page="home"] .d2s-products{font-size:11px;margin-bottom:10px}
body[data-page="home"] .d2s-main-cta,body[data-page="home"] .d2s-order-cta{font-size:12px;min-height:44px;padding:8px}
body[data-page="home"] .d2s-hero-visual{grid-column:1;grid-row:2;max-height:none;background-size:175.44% auto;background-position:right -16.2vw}
body[data-page="home"] .d2s-trust-row{grid-column:1;grid-row:3;grid-template-columns:1fr 1fr;padding:8px 12px 12px;gap:6px}
body[data-page="home"] .d2s-trust-row>span{min-height:52px;padding:7px 8px;border-radius:14px;gap:7px}
body[data-page="home"] .d2s-trust-row strong{font-size:10px}
body[data-page="home"] .d2s-trust-row small{font-size:9px;margin-top:2px}
body[data-page="home"] .d2s-trust-row svg{width:20px;height:20px}
}
@media(max-width:700px) and (max-height:740px){
body[data-page="home"] .hero{min-height:490px}
body[data-page="home"] .d2s-products{display:none}
body[data-page="home"] .d2s-hero-copy h1{font-size:32px}
}
@media(min-width:701px) and (max-height:700px){
body[data-page="home"] .hero{min-height:430px}
body[data-page="home"] .d2s-hero-copy h1{font-size:clamp(40px,8svh,64px)}
body[data-page="home"] .d2s-kicker{margin-bottom:8px}
body[data-page="home"] .d2s-products{margin-bottom:10px}
}

@media(min-width:701px){
body[data-page="home"] .d2s-hero-visual{background-size:auto max(66.67vw,calc((100svh - 160px)*1.62));background-position:right min(-9.24vw,calc((100svh - 160px)*-.23))}
}

/* Highlight the material takeoff service beside the main ordering offer. */
body[data-page="home"] .d2s-plan-promo{display:block;color:#07553d;font-size:clamp(19px,1.65vw,27px);font-weight:750;line-height:1.18;margin-top:9px;max-width:480px}
@media(max-width:700px){body[data-page="home"] .d2s-plan-promo{font-size:clamp(17px,4.7vw,21px);line-height:1.2;margin-top:6px}}
@media(min-width:701px) and (max-height:700px){body[data-page="home"] .d2s-plan-promo{font-size:clamp(18px,1.5vw,23px);margin-top:6px}}

/* Homepage service hierarchy from the approved mockup. */
body[data-page="home"] .d2s-hero-copy h1{font-size:clamp(36px,min(4.25vw,8svh),72px);line-height:1.02;letter-spacing:-.045em;margin-bottom:20px}
body[data-page="home"] .d2s-hero-copy h1 em{line-height:1.02;margin-top:6px}
body[data-page="home"] .d2s-hero-sub{font-size:clamp(15px,1.25vw,21px);color:#263c34;line-height:1.45;margin-bottom:0}
body[data-page="home"] .d2s-takeoff{margin:clamp(18px,3svh,34px) 0 24px;padding-top:18px;border-top:1px solid #dce6e0}
body[data-page="home"] .d2s-plan-promo{font-size:clamp(21px,2vw,32px);line-height:1.2;margin:0;max-width:none}
body[data-page="home"] .d2s-takeoff p{font-size:clamp(15px,1.25vw,20px);line-height:1.45;color:#263c34;margin:8px 0 0}
body[data-page="home"] .d2s-plan-cta{background:#fff;border:2px solid #07553d;color:#07553d}
body[data-page="home"] .d2s-main-cta,body[data-page="home"] .d2s-order-cta{min-height:52px;font-weight:750;font-size:clamp(13px,1.25vw,20px)}
body[data-page="home"] .d2s-trust-row>span{border:0;border-radius:0;border-right:1px solid #dce6e0;background:#fff}
body[data-page="home"] .d2s-trust-row>span:last-child{border-right:0}
@media(max-width:700px){
body[data-page="home"] .d2s-hero-copy h1{font-size:clamp(30px,8.5vw,48px);line-height:1.04;margin-bottom:12px}
body[data-page="home"] .d2s-hero-copy h1 em{line-height:1.04}
body[data-page="home"] .d2s-hero-sub{font-size:14px}
body[data-page="home"] .d2s-takeoff{margin:14px 0;padding-top:12px}
body[data-page="home"] .d2s-plan-promo{font-size:clamp(19px,5.1vw,24px)}
body[data-page="home"] .d2s-takeoff p{font-size:14px;margin-top:5px}
body[data-page="home"] .d2s-main-cta,body[data-page="home"] .d2s-order-cta{font-size:13px;min-height:46px}
body[data-page="home"] .d2s-trust-row>span{border:0}
}
@media(min-width:701px) and (max-height:650px){
body[data-page="home"] .d2s-takeoff{margin:14px 0;padding-top:12px}
body[data-page="home"] .d2s-hero-copy h1{margin-bottom:12px}
}

/* Keep the delivery photo aligned with the clean white and green homepage.
   The source is a 1578 x 997 mockup: show only its 900 x 665 photo area. */
body[data-page="home"] .hero{
  height:auto;
  min-height:calc(100svh - 84px);
  grid-template-rows:minmax(min-content,1fr) auto;
}
body[data-page="home"] .d2s-hero-visual{
  align-self:center;
  width:calc(100% - 28px);
  height:auto;
  min-height:0;
  aspect-ratio:900 / 665;
  margin:24px 28px 24px 0;
  border-radius:16px;
  background-color:#f3f7f5;
  background-size:175.333333% auto;
  background-position:right 43.674699%;
  filter:saturate(.78) contrast(.94);
}
body[data-page="home"] .d2s-hero-visual::before{
  pointer-events:none;
  background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.65) 4%,transparent 18%),
             linear-gradient(0deg,#fff 0%,transparent 12%);
}
@media(max-width:700px){
  body[data-page="home"] .hero{
    min-height:calc(100svh - 116px);
    grid-template-rows:auto auto auto;
  }
  body[data-page="home"] .d2s-hero-visual{
    width:calc(100% - 36px);
    margin:12px 18px 18px;
    border-radius:14px;
  }
  body[data-page="home"] .d2s-hero-visual::before{
    background:linear-gradient(180deg,rgba(255,255,255,.55),transparent 14%),
               linear-gradient(0deg,rgba(255,255,255,.65),transparent 14%);
  }
}
