/* The image-edge mask travels with the photograph at every viewport width. */
.home-hero{
 --hero-height:clamp(620px,37vw,840px);
 height:var(--hero-height);
 display:block;
 padding:0;
 background:#19384c;
}
.hero-ambient{
 position:absolute;inset:0;z-index:0;pointer-events:none;
 /* Use only the factory area at the source's left; do not duplicate the cabinets. */
 background:var(--hero-image,url('assets/scene-factory.png')) left 52% / 280% auto no-repeat;
 opacity:.68;
}
.hero-slide>img{
 position:absolute;inset:auto 0 0 auto;z-index:1;
 width:min(82%,calc(var(--hero-height) * 2.12));height:auto;max-width:none;
 aspect-ratio:1659 / 948;object-fit:contain;object-position:right bottom;
 -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.2) 9%,#000 32%);
 mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.2) 9%,#000 32%);
}
.hero-shade{
 z-index:2;display:block;
 background:linear-gradient(90deg,rgba(9,31,47,.91) 0%,rgba(12,39,57,.86) 21%,rgba(16,44,61,.63) 38%,rgba(16,44,61,.16) 61%,rgba(16,44,61,0) 82%);
}
.hero-copy{
 z-index:3;position:absolute;inset:0;width:min(1520px,calc(100% - 120px));
 padding:40px 0;align-items:flex-start;
}
.hero-copy h1{max-width:10em;line-height:1.2;letter-spacing:0;color:#fff}
.hero-title-intro{display:block;font-size:clamp(36px,2.8vw,62px);font-weight:600;line-height:1.4}
.hero-copy h1 strong{display:block;font-size:clamp(54px,4vw,72px);line-height:1.2;font-weight:700;letter-spacing:.015em;margin-top:8px}
.hero-copy p{max-width:28em;font-size:19px;line-height:1.85;margin-top:26px;color:#edf4f8}
.hero-copy .actions{margin-top:31px;gap:13px}
.hero-copy .btn{min-height:52px;padding:14px 24px}
.hero-copy .btn:not(.secondary){background:#ffbc4d;color:#182e42}
.hero-copy .btn:not(.secondary):hover{background:#ffcc78;filter:none}
.hero-copy .btn:active{transform:translateY(1px)}
.hero-context{border-top:1px solid #bad0df42;padding-top:21px;margin-top:32px;font-size:13px;color:#e6f0f5;gap:24px}
.hero-context span+span:before{background:#8cb8ca;top:10px}
.hero-image-note{z-index:4;bottom:18px;right:26px;background:#153246cc;color:#f3f7fa}
@media(min-width:2200px){
 .hero-copy{width:min(1760px,calc(100% - 160px))}
 .hero-copy p{font-size:21px}
 .hero-context{font-size:14px}
}
@media(max-width:1100px) and (min-width:768px){
 .home-hero{--hero-height:660px}
 .hero-copy{width:calc(100% - 64px)}
 .hero-title-intro{font-size:38px}
 .hero-copy h1 strong{font-size:58px}
 .hero-copy p{font-size:17px}
 .hero-shade{background:linear-gradient(90deg,rgba(9,31,47,.93),rgba(12,39,57,.82) 34%,rgba(16,44,61,.19) 75%,transparent)}
}
@media(max-width:767px){
 .home-hero{height:auto;min-height:0;display:flex;flex-direction:column;gap:0;background:#17384d}
 .hero-ambient{bottom:22%;background-position:left center;opacity:.48}
 .hero-slide>img{
  position:relative;inset:auto;order:2;width:100%;height:auto;aspect-ratio:1659 / 948;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 25%);mask-image:linear-gradient(180deg,transparent 0%,#000 25%);
  margin-top:-28px;
 }
 .hero-shade{display:block;background:linear-gradient(180deg,rgba(9,31,47,.83),rgba(13,40,57,.65) 43%,transparent 85%);z-index:1}
 .hero-copy{position:relative;inset:auto;order:1;width:calc(100% - 40px);padding:34px 0 22px;z-index:3}
 .hero-title-intro{font-size:clamp(29px,7.5vw,44px);line-height:1.45}
 .hero-copy h1 strong{font-size:clamp(42px,11.5vw,60px);margin-top:4px}
 .hero-copy p{font-size:16px;line-height:1.8;margin-top:19px}
 .hero-copy .actions{margin-top:23px;gap:9px}
 .hero-copy .btn{font-size:13px;min-height:48px;padding:12px 15px}
 .hero-context{font-size:11px;gap:18px;padding-top:17px;margin-top:23px;flex-wrap:wrap}
 .hero-context span+span:before{top:9px;left:-10px}
 .hero-image-note{font-size:11px;right:13px;bottom:11px}
}
@media(prefers-reduced-motion:reduce){.hero-copy .btn{transition:none}}
@media print{.home-hero{--hero-height:450px;height:450px}.hero-title-intro{font-size:35px}.hero-copy h1 strong{font-size:65px}}

/* Slide content, controls and no-script first-frame fallback. */
.hero-slides{position:absolute;inset:0;z-index:1;pointer-events:none}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .5s cubic-bezier(.16,1,.3,1),visibility 0s .5s}
.hero-slide.is-active{opacity:1;visibility:visible;transition-delay:0s}
.hero-slide[data-hero-slide="maintenance"] .hero-ambient{background-size:420% auto}
.hero-copy{padding-bottom:96px}
.hero-mobile-media{display:none}
.hero-carousel-controls{position:absolute;z-index:5;bottom:21px;left:max(60px,calc((100% - 1520px)/2));display:flex;align-items:center;gap:12px;color:#fff;max-width:calc(100% - 120px)}
.hero-carousel-picks{display:flex;gap:0}
.hero-pick,.hero-step{border:0;background:transparent;color:#edf5fa;min-height:44px;cursor:pointer;border-radius:5px;transition:background .15s,color .15s}
.hero-pick{padding:0;width:32px;display:inline-flex;align-items:center;justify-content:center}
.hero-dot{display:block;width:6px;height:6px;border-radius:50%;background:#d8e7ef;opacity:.65;transition:width .2s,background .2s,opacity .2s}
.hero-pick[aria-current=true] .hero-dot{width:18px;border-radius:8px;background:#ffbc4d;opacity:1}
.hero-pick:hover,.hero-step:hover{background:#ffffff1f}
.hero-pick:hover .hero-dot{opacity:1}
.hero-pick:focus-visible,.hero-step:focus-visible{outline:2px solid #ffca70;outline-offset:3px}
.hero-pick:active,.hero-step:active{transform:translateY(1px)}
.hero-step{display:inline-flex;align-items:center;justify-content:center;width:40px;flex:0 0 40px;padding:10px}
.hero-step svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hero-step[aria-pressed=true] .icon-pause,.hero-step[aria-pressed=false] .icon-play{display:none}
.hero-carousel-playback{display:flex;align-items:center;gap:2px}
.home-hero{touch-action:pan-y}
@media(min-width:2200px){.hero-carousel-controls{left:max(80px,calc((100% - 1760px)/2))}}
@media(max-width:1100px) and (min-width:768px){
 .hero-carousel-controls{left:32px;max-width:calc(100% - 64px);gap:10px}
 .hero-pick{padding:0}
}
@media(max-width:767px){
 .home-hero{--hero-controls-height:60px;display:flex;flex-direction:column}
 .hero-copy{order:1;padding-bottom:20px}
 .hero-mobile-media{display:block;order:2;width:100%;aspect-ratio:1659/948;margin-top:-26px;pointer-events:none}
 .hero-slide>img{position:absolute;inset:auto 0 var(--hero-controls-height) auto;order:initial;margin:0;width:100%;height:auto}
 .hero-ambient{bottom:0}
 .hero-carousel-controls{position:relative;inset:auto;order:3;width:100%;max-width:none;min-height:var(--hero-controls-height);padding:8px 20px;background:#102d40;display:flex;flex-wrap:nowrap;gap:12px;align-items:center;justify-content:flex-start}
 .hero-carousel-picks{width:auto;gap:0}
 .hero-pick{flex:0 0 44px;width:44px;justify-content:center;padding:0}
 .hero-carousel-playback{width:auto;margin-left:auto}
 .hero-step[data-hero-prev],.hero-step[data-hero-next]{display:none}
 .hero-step[data-hero-play]{width:44px;flex-basis:44px}
 .hero-image-note{bottom:calc(var(--hero-controls-height) + 11px)}
 .home-hero:not([data-current-slide]) .hero-slide>img{bottom:0}
 .home-hero:not([data-current-slide]) .hero-image-note{bottom:11px}
}
@media(prefers-reduced-motion:reduce){.hero-slide,.hero-step,.hero-pick{transition:none}}
@media print{.hero-carousel-controls{display:none}}
