
/* Photography belongs to the atmosphere; the centered brand stays dominant. */
[data-view=home] .atmosphere{opacity:.12}
[data-view=home] .workspace::after{opacity:.04}
[data-view=home] .carousel-home{isolation:isolate;overflow:clip;padding-bottom:46px;height:100%;box-sizing:border-box}
.shop-carousel{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none;background:#111}
.shop-photo{position:absolute;inset:0;opacity:0;transition:opacity 1.8s ease-in-out}
.shop-photo.is-current{opacity:1}
.shop-photo img{width:100%;height:100%;object-fit:cover;object-position:var(--photo-position,55% 48%);filter:saturate(.45) brightness(.48);transform:scale(1.02)}
.shop-photo.has-played img{animation:background-drift 10s linear both}
.shop-shade{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 44%,#08080870 0%,#08080838 48%,#080808bd 85%),linear-gradient(0deg,#080808f2 0%,#08080885 22%,transparent 50%,#080808a8 100%);pointer-events:none}

.background-controls{position:absolute;bottom:0;right:0;z-index:5;opacity:0;transition:opacity .25s}
@media(hover:hover){.carousel-home:hover .background-controls{opacity:.65}}
.background-controls:focus-within{opacity:1}
[data-carousel-pause]{min-width:96px;min-height:44px;border:0;background:transparent;color:#d8d3cc;cursor:pointer;font-size:11px;letter-spacing:.02em}
[data-carousel-pause]:hover{color:#fff}
.carousel-home button:focus-visible{outline:2px solid #eee;outline-offset:-3px}
.shop-carousel.is-paused .shop-photo img{animation-play-state:paused}
@keyframes background-drift{from{transform:scale(1.02)}to{transform:scale(1.065)}}
@media(max-width:760px){.shop-photo img{object-position:var(--photo-position-mobile,60% center);filter:saturate(.4) brightness(.42)}.shop-shade{background:radial-gradient(ellipse at 50% 42%,#08080885,transparent 65%),linear-gradient(0deg,#080808f5,#08080835 55%,#080808ac)}[data-view=home] .carousel-home{padding-bottom:36px}.background-controls{bottom:0}}
@media(prefers-reduced-motion:reduce){.shop-photo{transition:none}.shop-photo img{animation:none!important}}

[data-view=home] #content{z-index:2}

[data-view=home] #scene{overflow:hidden}
[data-view=home] .carousel-home .hero-logo{width:min(720px,calc((100svh - 470px)*1.5),75vw)}
@media(max-width:760px){[data-view=home] .carousel-home .hero-logo{width:min(440px,100%,calc((100svh - 410px)*1.5))}}

/* Make the promise the focal point of the message. */
[data-view=home] .carousel-home .home-copy h1{font-size:30px;font-weight:700;line-height:1.15;color:#d2ccc2;white-space:nowrap}
[data-view=home] .carousel-home .home-copy h1 br{display:none}
[data-view=home] .carousel-home .home-copy h1 span{display:inline-block;margin:0 0 0 8px;font-size:1em;font-weight:700;letter-spacing:-.025em;color:#e8dfce;text-shadow:0 2px 4px #000}
[data-view=home] .carousel-home .home-copy>p{margin-top:11px}
@media(max-width:760px){[data-view=home] .carousel-home .home-copy h1{font-size:25px}[data-view=home] .carousel-home .home-copy h1 span{font-size:1em;margin-left:6px}}

[data-view=home] .carousel-home .home-copy h1{font-size:clamp(25px,3.4vw,34px);line-height:1.15;white-space:normal}
[data-view=home] .carousel-home .home-copy h1 br{display:initial}
[data-view=home] .carousel-home .home-copy h1 span{margin-left:0}

.shop-shade::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 42% 42% at 50% 40%,#252525b8 0%,#0d0d0d88 45%,#0d0d0d30 72%,transparent 100%);pointer-events:none}

/* A clear route for work beyond Legacy’s residential focus. */
.empire-referral{display:flex;flex-direction:column;align-items:center;gap:5px;width:fit-content;max-width:95%;margin:18px auto 0;padding:12px 20px 0;border-top:1px solid #b9b5af40;color:#d8d8d6;text-decoration:none;line-height:1.45}
.empire-referral strong{font-size:15px;font-weight:600}
.empire-referral span{font-size:14px;color:#b9b5af}
.empire-referral b{color:#f5f5f3;font-weight:600}
.empire-referral svg{display:inline-block;width:15px;height:15px;vertical-align:-3px;margin-left:5px;color:#d65559}
.empire-referral:hover b,.empire-referral:focus-visible b{color:#fff;text-decoration:underline;text-underline-offset:4px}
.empire-referral:focus-visible{outline:2px solid #b9b5af;outline-offset:5px}
[data-view=home] .carousel-home .hero-logo{width:min(720px,calc((100svh - 530px)*1.5),75vw)}
@media(max-width:760px){[data-view=home] .carousel-home .hero-logo{width:min(440px,100%,calc((100svh - 480px)*1.5))}.empire-referral{padding:10px 0 0;margin-top:14px;max-width:100%;gap:4px}.empire-referral strong{font-size:14px}.empire-referral span{font-size:13px;max-width:320px}}

/* Fill the home page with the brand while keeping the complete lockup visible. */
[data-view=home] .carousel-home .hero-logo{width:min(840px,calc((100svh - 420px)*1.6437),82vw)}
@media(max-width:760px){[data-view=home] .carousel-home .hero-logo{width:min(440px,100%,calc((100svh - 410px)*1.6437))}}

/* Touch users must be able to find Pause without hover. */
@media(max-width:760px),(hover:none){.background-controls{opacity:1}.background-controls button{background:#171717d9;border:1px solid #7778;padding:8px 12px;color:#eee}}

/* Keep the work in frame on wide screens and narrow phones. */
.photo-welding{--photo-position:45% 48%;--photo-position-mobile:30% center}
.photo-ductwork{--photo-position:55% 48%;--photo-position-mobile:54% center}
.photo-curbs{--photo-position:50% 55%;--photo-position-mobile:68% center}
.photo-steel{--photo-position:55% 48%;--photo-position-mobile:64% center}

.photo-shop{--photo-position:50% 55%;--photo-position-mobile:58% center}
.photo-spiral{--photo-position:50% 50%;--photo-position-mobile:40% center}
.photo-gate{--photo-position:45% 55%;--photo-position-mobile:24% center}
.photo-truck{--photo-position:50% 65%;--photo-position-mobile:48% center}

/* Give phone-sized photography enough light to read behind the brand. */
@media(max-width:760px){.shop-photo img{filter:saturate(.5) brightness(.4)}.shop-shade{background:linear-gradient(0deg,#080808d9 0%,#08080835 28%,#08080824 70%,#08080880 100%)}.shop-shade::after{background:radial-gradient(ellipse 75% 35% at 50% 44%,#08080870,transparent 100%)}}
