/* One composited background per art direction keeps the photographs together. */
.hero{
  height:auto;
  min-height:0;
  aspect-ratio:1440 / 676;
  background:#02a7e8 url('assets/hero-desktop.jpg') center / 100% 100% no-repeat;
}
.hero-sky,.hero-building,.hero-city,.hero-person{display:none}
.hero-content{top:25%;left:31.3%;width:36%;padding:0}
.hero-lead{
  max-width:85%;
  font-size:2.083333vw;
  line-height:1.4;
  white-space:nowrap;
  padding-bottom:.972222vw;
  margin:0 auto .694444vw;
}
.hero h1{font-size:5.555556vw;line-height:1.3;letter-spacing:.07em;white-space:nowrap}
.hero-line{font-size:.735em}
.hero>.actions{
  display:flex;top:73.22%;bottom:auto;left:20.9%;width:58.2%;gap:2.5vw;
}
.hero .button{
  width:48%;height:5.555556vw;min-height:44px;padding:0 .9vw;
  font-size:1.736111vw;gap:.833333vw;white-space:nowrap;
}
.trouble-panel{container-type:inline-size}
.trouble-man{
  background-size:99cqw auto;
  background-position:40cqw -7.6cqw;
  opacity:.2;
}
@media(max-width:760px){
  .hero{aspect-ratio:390 / 760;background-image:url('assets/hero-mobile.jpg')}
  .hero-content{top:7.236842%;left:34%;width:63%;padding-right:2.564103vw}
  .hero-lead{max-width:100%;font-size:4.615385vw;padding-bottom:3.333333vw;margin-bottom:4.615385vw;line-height:1.4}
  .hero h1{font-size:10vw;line-height:1.5;letter-spacing:.02em}
  .hero-line{font-size:.74359em}
  .hero>.actions{display:grid;top:auto;bottom:8.552632%;left:6%;width:88%;gap:3.846154vw}
  .hero .button{width:100%;height:16.410256vw;min-height:50px;font-size:5.384615vw;padding:0 4vw;gap:2.564103vw}
  .trouble-panel{padding-top:190px}
  .trouble-man{
    background-size:600px 400px;
    background-position:center -25px;
    opacity:.28;
    mask-image:linear-gradient(#000 0 180px,transparent 360px);
  }
}
/* Medium portrait tablets use the horizontal composition, not an oversized phone. */
@media(min-width:601px) and (max-width:760px){
  .hero{aspect-ratio:1440 / 676;background-image:url('assets/hero-desktop.jpg')}
  .hero-content{top:25%;left:31.3%;width:36%;padding:0}
  .hero-lead{max-width:85%;font-size:2.083333vw;padding-bottom:.972222vw;margin:0 auto .694444vw}
  .hero h1{font-size:5.555556vw;line-height:1.3;letter-spacing:.07em}
  .hero-line{font-size:.735em}
  .hero>.actions{display:flex;top:73.22%;bottom:auto;left:20.9%;width:58.2%;gap:2.5vw}
  .hero .button{width:48%;height:5.555556vw;min-height:38px;font-size:1.736111vw;gap:.833333vw;padding:0 .9vw}
  .hero .button img{transform:scale(.75);margin-inline:-3px}
}
/* Figma background exports retain masks, gradient stops and layer rotations. */
.support{background:#518fc5 url('assets/support-background.webp') center/100% 100% no-repeat}
.support:after,.properties:before{display:none}
.properties{background:#83c7e9 url('assets/property-background.webp') center/100% 100% no-repeat}
.cta-section{background:url('assets/cta-background.webp') center/cover no-repeat}
.about{background:var(--paper) url('assets/footer-background.webp') center bottom/100% auto no-repeat}
.case{background-image:none}
.case-right-corners{position:absolute;inset:0;pointer-events:none}
.case-right-corners:before,.case-right-corners:after{content:'';position:absolute;right:-6px;width:34px;height:44px;background:url('assets/5406e.svg') center/contain no-repeat}
.case-right-corners:before{top:-7px;transform:scaleX(-1)}
.case-right-corners:after{bottom:-7px;transform:rotate(180deg)}
.case-carousel{margin-top:40px}
.case-photos{display:block;max-width:none;margin:0 -24px;padding:0 0 14px;overflow:hidden}
.case-photo-track{display:flex;width:max-content;animation:case-photo-scroll 36s linear infinite;will-change:transform}
.case-photo-group{display:flex;align-items:flex-start;gap:45px;padding-right:45px}
.case-photo{flex:0 0 clamp(240px,23.25vw,335px);width:clamp(240px,23.25vw,335px)}
.case-photo:nth-child(even){margin-top:50px}
.photo-motion-toggle{display:block;margin:10px 0 0 auto;background:transparent;color:var(--navy);font-size:13px;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:8px 4px}
.case-carousel:hover .case-photo-track,.case-carousel:focus-within .case-photo-track,.case-carousel.is-paused .case-photo-track{animation-play-state:paused}
@keyframes case-photo-scroll{to{transform:translateX(-50%)}}
@media(max-width:760px){
 .support{background-size:auto 100%}
 .properties{background-size:auto 100%;background-position:32% center}
 .about{background-size:auto 1015px}
 .case-photo-group{gap:22px;padding-right:22px}
 .case-photo{flex-basis:240px;width:240px}
 .case-photo:nth-child(even){margin-top:28px}
 .case-photo-track{animation-duration:30s}
}
@media(prefers-reduced-motion:reduce){
 .case-photo-track{animation:none;will-change:auto}
 .case-photos{overflow-x:auto}
 .case-photo-group[aria-hidden],.photo-motion-toggle{display:none}
}
/* Original Figma composites: portrait feathering and transparent triangular edges. */
.badges-pop>div{animation:badge-double-pop 1.1s cubic-bezier(.22,.8,.3,1) .3s both;transform-origin:center}
.badges-pop>div:nth-child(2){animation-delay:.48s}
.badges-pop>div:nth-child(3){animation-delay:.66s}
@keyframes badge-double-pop{
 0%,40%,78%,100%{transform:scale(1)}
 20%{transform:scale(1.15)}
 60%{transform:scale(1.1)}
}
@media(prefers-reduced-motion:reduce){.badges-pop>div{animation:none;transform:none}}
.trouble{background:linear-gradient(#5ba2e8 0 246px,transparent 246px);padding-bottom:85px}
/* Raise the sloping navy edge to the FV, allowing for the panel's capped width. */
.trouble:before{top:calc(-4.14vw + min(3.6432vw,44.8px) - 2px)}
.attraction-building{top:-205px}
.trouble:after{inset:165px 0 0;height:auto;background:url('assets/solution-background.webp') center bottom/100% 100% no-repeat}
.trouble-panel:before{inset:-6px -15px -24px;background:url('assets/trouble-panel.webp') center/100% 100% no-repeat;clip-path:none}
.trouble-man,.trouble-texture{display:none}
.worry-next{background:none}
.among{bottom:-6px}
@media(max-width:760px){
 .trouble{padding-bottom:90px}
 .attraction-building{top:-230px}
 .trouble:after{inset:165px 0 0;height:auto;background-size:100% 100%}
 .trouble-panel{padding-top:190px}
 .trouble-panel:before{inset:0;background-color:#f1f1f1;background-image:linear-gradient(transparent 280px,#f1f1f1 400px),url('assets/trouble-panel.webp');background-size:100% 100%,auto 400px;background-position:center,right top;background-repeat:no-repeat;clip-path:polygon(0 0,100% 0,100% calc(100% - 45px),50% 100%,0 calc(100% - 45px))}
 .worry-next{background:url('assets/17051.svg') center/100% auto no-repeat}
 .among{bottom:-6px}
}
