/* Calcuera hero carousel: full-bleed slides, grotesk text centred low, dots with a progress ring */
.cx.hero{position:relative;overflow:hidden;color:var(--cx-cream);background:var(--cx-pista);min-height:max(520px,88svh)}
@media(min-width:900px){.cx.hero{min-height:max(560px,75svh)}}

.cx .hero-slide{position:absolute;inset:0;display:flex;align-items:flex-end;opacity:0;visibility:hidden;transition:opacity 1.1s ease,visibility 0s linear 1.1s}
.cx .hero-slide.is-active{opacity:1;visibility:visible;transition:opacity 1.1s ease,visibility 0s}
.cx .hero-media{position:absolute;inset:0}
.cx .hero-media img,.cx .hero-media svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cx .hero-media svg{background:#C9D3CE;fill:#8FA29A}
.cx .hero-img-mobile{display:none}
@media(max-width:749px){.cx .hero-img-mobile{display:block}.cx .hero-img-mobile+.hero-img-main{display:none}}
.cx .hero-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,20,19,var(--shade,.45)) 0%,rgba(10,20,19,calc(var(--shade,.45)*.35)) 35%,rgba(10,20,19,0) 60%),linear-gradient(to bottom,rgba(10,20,19,.25),rgba(10,20,19,0) 20%)}

.cx .hero-content{position:relative;z-index:1;width:100%;display:grid;justify-items:center;text-align:center;gap:clamp(.35rem,.5vw,.6rem);padding-block:0 clamp(3.25rem,4.2vw,4.5rem)}
.cx .hero-slide .hero-content>*{opacity:0;transform:translateY(10px);transition:opacity .7s ease,transform .7s ease}
.cx .hero-slide.is-active .hero-content>*{opacity:1;transform:none}
.cx .hero-slide.is-active .hero-content>*:nth-child(2){transition-delay:.12s}
.cx .hero-slide.is-active .hero-content>*:nth-child(3){transition-delay:.22s}
.cx .hero-slide.is-active .hero-content>*:nth-child(4){transition-delay:.32s}
/* Hero text: clean grotesk, white, centred low. Shared by the carousel and the image banner */
.cx{--cx-grotesk:"Inter Tight","Helvetica Neue",Helvetica,Arial,system-ui,sans-serif}
.cx .hero-eyebrow{font-family:var(--cx-grotesk);font-size:clamp(.72rem,.7vw,.85rem);letter-spacing:.04em;color:#fff;opacity:.9}
.cx .hero-title{font-family:var(--cx-grotesk);font-weight:400;font-size:clamp(1.85rem,2.3vw,2.9rem);line-height:1.08;letter-spacing:-.025em;text-transform:none;max-width:none;color:#fff;margin:0}
@media(min-width:750px){.cx .hero-title{white-space:nowrap}}
.cx .hero-text{font-family:var(--cx-grotesk);font-weight:400;font-size:clamp(.95rem,1vw,1.25rem);line-height:1.3;letter-spacing:-.01em;max-width:44ch;color:#fff}
.cx .hero-ctas{display:flex;justify-content:center;flex-wrap:wrap;gap:clamp(.9rem,1.3vw,1.65rem);margin-top:clamp(1.6rem,2.6vw,3.3rem);width:100%}
.cx .hero-btn{display:flex;justify-content:center;align-items:center;width:clamp(9rem,11.6vw,14.5rem);height:clamp(2.6rem,2.4vw,3rem);border:1px solid #fff;color:#fff;background:transparent;font-family:var(--cx-grotesk);font-size:clamp(.85rem,.85vw,1.05rem);font-weight:400;letter-spacing:-.005em;text-transform:none;transition:background .25s,color .25s}
.cx .hero-btn:hover{background:#fff;color:var(--cx-ink)}
@media(max-width:479px){.cx .hero-btn{width:calc(50% - .45rem)}}

/* Dots with progress ring */
.cx .hero-dots{position:absolute;z-index:2;bottom:clamp(1rem,2.2vw,1.6rem);right:max(16px,env(safe-area-inset-right,0px));display:flex;gap:.35rem}
@media(max-width:749px){.cx .hero-dots{right:auto;left:50%;transform:translateX(-50%);bottom:.9rem}}
.cx .hero-dot{position:relative;width:26px;height:26px;display:grid;place-items:center;color:var(--cx-cream)}
.cx .hero-dot svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke:currentColor;stroke-width:1.4}
.cx .hero-dot .dot-track{opacity:0}
.cx .hero-dot .dot-ring{stroke-dasharray:62.83;stroke-dashoffset:62.83}
.cx .hero-dot .dot-pip{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.55;transition:opacity .3s}
.cx .hero-dot:hover .dot-pip,.cx .hero-dot.is-active .dot-pip{opacity:1}
.cx .hero-dot.is-active .dot-track{opacity:.25}
.cx .hero-dot.is-active .dot-ring{animation:cx-ring var(--hero-dur,5s) linear forwards}
@keyframes cx-ring{from{stroke-dashoffset:62.83}to{stroke-dashoffset:0}}

@media(prefers-reduced-motion:reduce){
  .cx .hero-slide,.cx .hero-slide .hero-content>*{transition:none}
  .cx .hero-dot.is-active .dot-ring{animation:none;stroke-dashoffset:0}
}

/* Phones: hero photos are two squares side by side, so frame the left one instead of the join in the middle */
@media(max-width:749px){.cx .hero-img-main{object-position:var(--hero-x,16%) 50%}}
