/* Courageous home hero: scroll built estate (cbcbuild/buildhero.js) */
.bhero{position:relative;height:900svh;background:#0d0c0b}
.bhero .hero--build{position:sticky;top:0;height:100svh;min-height:0}
.bhero__media{position:absolute;inset:0;z-index:-1;overflow:hidden;background:#0d0c0b}
.bhero__media picture,.bhero__media img{display:block;width:100%;height:100%;object-fit:cover}
.bhero__cv{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .4s ease}
.bhero__cv.on{opacity:1}
.bhero__shade{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:var(--shadeA,1);
  background:linear-gradient(180deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.06) 22%,rgba(0,0,0,0) 46%,rgba(0,0,0,.18) 64%,rgba(0,0,0,.62) 100%)}
.bhero__steps{position:absolute;left:var(--gut);bottom:clamp(28px,7svh,72px);width:min(460px,calc(100% - 2 * var(--gut)));opacity:var(--railA,0);pointer-events:none}
.bhero__rail{position:relative;display:flex;justify-content:space-between;margin:0 0 22px;height:10px}
.bhero__rail::before{content:"";position:absolute;left:0;right:0;top:4px;height:1px;background:rgba(255,255,255,.28)}
.bhero__railfill{position:absolute;left:0;right:0;top:4px;height:1px;background:var(--copper,#c8875a);transform-origin:0 50%;transform:scaleX(0)}
.bhero__rail i{position:relative;width:9px;height:9px;border-radius:50%;background:#0d0c0b;border:1px solid rgba(255,255,255,.5);transition:background .3s,border-color .3s}
.bhero__rail i.on{background:var(--copper,#c8875a);border-color:var(--copper,#c8875a)}
.bhero__caps{position:relative;min-height:9.5em}
.bhero__cap{position:absolute;left:0;right:0;top:0;opacity:0;transform:translate3d(0,14px,0);transition:opacity .45s ease,transform .45s ease}
.bhero__cap.on{opacity:1;transform:none}
.bhero__n{font:500 13px/1.2 var(--body);letter-spacing:.18em;text-transform:uppercase;color:#f3ece4;margin:0 0 10px;text-shadow:0 1px 14px rgba(0,0,0,.7)}
.bhero__n b{color:var(--copper,#c8875a);font-weight:600;margin-right:10px}
.bhero__t{font:600 clamp(34px,4.4vw,64px)/.9 var(--display);text-transform:uppercase;letter-spacing:-.02em;color:#fff;margin:0 0 12px;text-shadow:0 2px 22px rgba(0,0,0,.5)}
.bhero__d{font:500 clamp(15px,1.15vw,18px)/1.5 var(--body);color:#f3ece4;max-width:36ch;margin:0;text-shadow:0 1px 12px rgba(0,0,0,.8)}
.bhero__end{position:absolute;left:var(--gut);right:var(--gut);bottom:clamp(48px,12svh,132px);opacity:0;visibility:hidden}
.bhero__end p{font:600 clamp(40px,7vw,120px)/.86 var(--display);text-transform:uppercase;letter-spacing:-.025em;color:#fff;margin:0 0 clamp(18px,3svh,32px);text-shadow:0 2px 22px rgba(0,0,0,.45)}
.bhero__end p em{font-style:normal;color:var(--copper,#c8875a)}
.bhero__end span{display:block;font:500 clamp(16px,1.3vw,20px)/1.5 var(--body);color:#f3ece4;max-width:34ch;margin:0 0 22px;text-shadow:0 1px 12px rgba(0,0,0,.8)}
@media (max-width:700px){
  .bhero{height:820svh}
  .bhero__steps{bottom:calc(env(safe-area-inset-bottom,0px) + 96px)}
  .bhero__caps{min-height:10.5em}
  .bhero__t{font-size:clamp(30px,9vw,40px)}
  .bhero__end{bottom:calc(env(safe-area-inset-bottom,0px) + 96px)}
  .bhero__end p{font-size:clamp(38px,12vw,56px)}
}
@media (max-aspect-ratio:9/10){
  .bhero__media{background:#a9bbd9}
  .bhero__media img{object-fit:contain;object-position:50% 100%}
}
/* stand alone build sections on service pages (no .hero class, so the home hero script leaves them alone) */
.bhero .bhero__stage{position:sticky;top:0;height:100svh;overflow:hidden;isolation:isolate}
.bhero .bhero__stage .hero__inner{position:absolute;left:var(--gut);right:var(--gut);top:clamp(88px,14svh,150px)}
.bhero .bhero__stage .hero__title{font:600 clamp(40px,7vw,120px)/.86 var(--display);text-transform:uppercase;letter-spacing:-.025em;color:#fff;text-shadow:0 2px 22px rgba(0,0,0,.45);margin:0}
/* a 720p film is never stretched: it plays in a frame no wider than its own pixels */
.bhero--fit .bhero__media{inset:auto;top:50%;left:50%;width:min(100%,1280px,177.78svh);aspect-ratio:16/9;height:auto;transform:translate(-50%,-50%);border-radius:4px}
.bhero--fit .bhero__shade{display:none}
.bhero--fit{height:400svh}
.bhero--fit .bhero__stage .hero__inner{top:clamp(72px,9svh,110px)}
.bhero--fit .bhero__stage .hero__title{font-size:clamp(32px,4.6vw,72px)}
@media (max-aspect-ratio:9/10){ .bhero--fit .bhero__media{background:#0d0c0b} .bhero--fit .bhero__media img{object-fit:cover} }
