.hero-actions{
  position:absolute;
  z-index:5;
  left:clamp(24px,5.4vw,104px);
  bottom:clamp(32px,4.5vh,52px);
  display:flex;
  align-items:center;
  gap:12px;
  max-width:calc(100% - 48px);
  font-family:RockHero,"Helvetica Neue",Arial,sans-serif;
}

.hero-action{
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 24px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:1px;
  color:#fff;
  background:rgba(7,9,9,.28);
  box-shadow:0 8px 24px rgba(0,0,0,.16);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  font-size:11px;
  font-weight:600;
  line-height:1;
  letter-spacing:.07em;
  text-align:center;
  text-decoration:none;
  text-shadow:0 1px 8px rgba(0,0,0,.35);
  text-transform:uppercase;
  white-space:nowrap;
  transition:transform .22s ease,background .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease;
}

.hero-action--primary{
  border-color:#dbe5b5;
  background:#dbe5b5;
  color:#151817;
  text-shadow:none;
}

.hero-action:hover{
  transform:translateY(-2px);
  border-color:#fff;
  background:rgba(255,255,255,.14);
  color:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.24);
}

.hero-action--primary:hover{
  border-color:#fff;
  background:#fff;
  color:#111;
}

.hero-action:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

.hero-inner .hero-actions{
  position:static;
  max-width:none;
  margin-top:30px;
}

/* Open every page on a true, full-viewport hero. */
.hero.hero--video,
.hero.floor-plans-video-hero,
.renders-page .hero.renders-video-hero,
.hero.models-hero{
  height:100vh;
  height:100svh;
  min-height:0;
  max-height:none;
}

.hero.hero--video .hero-media,
.hero.floor-plans-video-hero .hero-media,
.renders-page .hero.renders-video-hero .hero-media{
  height:100%;
  min-height:0;
  padding-bottom:0;
  box-sizing:border-box;
  aspect-ratio:auto;
}

.hero.models-hero{padding:0}
.hero.models-hero .hero-inner{height:100%}
.hero.models-hero .hero-inner>div{width:calc(100vw - 48px);max-width:780px;min-width:0}
.hero.models-hero .hero-inner p{max-width:100%;overflow-wrap:anywhere}

.hero.hero--video .hero-caption,
.hero.floor-plans-video-hero .hero-caption,
.renders-page .hero.renders-video-hero .hero-caption{
  bottom:clamp(126px,14vh,158px);
}

.home-page .hero--video .hero-caption-title,
.floor-plans-page .floor-plans-video-hero .hero-caption-title,
.renders-page .renders-video-hero .hero-caption-title,
.walkthrough-page .hero--video .hero-caption-title,
.walkthrough-page .hero-static-copy .hero-caption-title{
  max-width:1050px;
  margin:0;
  color:#f4f5f2;
  font-family:SCRDSans,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:clamp(50px,5.4vw,82px);
  font-weight:300;
  line-height:.97;
  letter-spacing:-.044em;
  text-transform:none;
  white-space:normal;
}

.hero.models-hero h1{
  max-width:720px;
  font-size:clamp(44px,4.1vw,64px);
  line-height:.98;
  letter-spacing:-.025em;
  white-space:pre-line;
}

.hero.models-hero .hero-inner>div>p{
  max-width:590px;
  font-size:clamp(13px,1.15vw,17px);
  line-height:1.55;
  letter-spacing:.035em;
  white-space:pre-line;
}

.walkthrough-page .hero-media::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(0deg,rgba(5,8,7,.64),rgba(5,8,7,.08) 66%,transparent);
}

.walkthrough-page .hero-captions{
  z-index:2;
  background:transparent;
}

.hero-static-copy{
  position:absolute;
  z-index:4;
  left:clamp(24px,5.4vw,104px);
  right:clamp(24px,5vw,96px);
  bottom:clamp(126px,14vh,158px);
  color:#fff;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.48));
}

.hero-static-copy .hero-caption-title{
  max-width:1050px;
  margin:0;
  color:#f4f5f2;
  font-family:SCRDSans,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:clamp(50px,5.4vw,82px);
  font-weight:300;
  line-height:.98;
  letter-spacing:-.044em;
  text-transform:none;
}

.hero-static-copy .hero-caption-title span{display:block}

/* The landing message stays centred while the walkthrough plays behind it. */
.home-page .hero.hero--video{
  min-height:560px;
}

.home-page .hero-media::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(8,12,11,.25),rgba(8,12,11,.48) 50%,rgba(8,12,11,.3));
}

.home-page .home-hero-copy{
  position:absolute;
  z-index:2;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:96px 24px;
  text-align:center;
}

.home-page .home-hero-copy h1{
  max-width:1000px;
  margin:0;
  color:#f4f5f2;
  font-family:SCRDSans,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:clamp(50px,5.4vw,82px);
  font-weight:300;
  line-height:1.02;
  letter-spacing:-.044em;
  text-transform:none;
  text-shadow:0 2px 16px rgba(0,0,0,.25);
  white-space:normal;
}

.home-page .home-hero-copy h1 span{display:block}

.home-page .home-hero-copy>p{
  max-width:540px;
  margin:24px 0 0;
  font-family:SCRDSans,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:clamp(16px,1.4vw,20px);
  font-weight:400;
  line-height:1.5;
  letter-spacing:0;
  text-transform:none;
  text-shadow:0 1px 12px rgba(0,0,0,.45);
  white-space:normal;
  text-wrap:balance;
}

.home-page .home-hero-copy .hero-actions{
  position:static;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  max-width:100%;
  margin-top:30px;
}

/* Restrained hero entrances, timed to begin after the page shutters open. */
@keyframes hero-copy-rise{
  from{opacity:0;transform:translate3d(0,18px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}

@keyframes hero-actions-rise{
  from{opacity:0;transform:translate3d(0,12px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}

.page-transition-enabled .hero-motion-ready .hero-caption{
  transform:translate3d(0,14px,0);
  transition:transform .72s cubic-bezier(.22,1,.36,1);
  will-change:opacity,transform;
}

.page-transition-enabled.page-transition-complete .hero-motion-ready .hero-caption.is-active{
  transform:translate3d(0,0,0);
}

.page-transition-enabled .hero-motion-ready .hero-caption .hero-caption-label,
.page-transition-enabled .hero-motion-ready .hero-caption .hero-caption-title span{
  opacity:0;
  transform:translate3d(0,16px,0);
  transition:opacity .52s ease,transform .72s cubic-bezier(.22,1,.36,1);
}

.page-transition-enabled.page-transition-complete .hero-motion-ready .hero-caption.is-active .hero-caption-label,
.page-transition-enabled.page-transition-complete .hero-motion-ready .hero-caption.is-active .hero-caption-title span{
  opacity:1;
  transform:translate3d(0,0,0);
}

.page-transition-enabled.page-transition-complete .hero-motion-ready .hero-caption.is-active .hero-caption-label{transition-delay:.03s}
.page-transition-enabled.page-transition-complete .hero-motion-ready .hero-caption.is-active .hero-caption-title span:first-child{transition-delay:.1s}
.page-transition-enabled.page-transition-complete .hero-motion-ready .hero-caption.is-active .hero-caption-title span:nth-child(2){transition-delay:.17s}

.page-transition-enabled:not(.page-transition-complete) .hero-static-copy .hero-caption-label,
.page-transition-enabled:not(.page-transition-complete) .hero-static-copy .hero-caption-title span,
.page-transition-enabled:not(.page-transition-complete) .hero.models-hero .hero-inner>div>h1,
.page-transition-enabled:not(.page-transition-complete) .hero.models-hero .hero-inner>div>p,
.page-transition-enabled:not(.page-transition-complete) .hero .hero-actions{
  opacity:0;
  transform:translate3d(0,16px,0);
}

.page-transition-enabled.page-transition-complete .hero-static-copy .hero-caption-label{
  animation:hero-copy-rise .58s .04s cubic-bezier(.22,1,.36,1) backwards;
}

.page-transition-enabled.page-transition-complete .hero-static-copy .hero-caption-title span:first-child{
  animation:hero-copy-rise .72s .12s cubic-bezier(.22,1,.36,1) backwards;
}

.page-transition-enabled.page-transition-complete .hero-static-copy .hero-caption-title span:nth-child(2){
  animation:hero-copy-rise .72s .2s cubic-bezier(.22,1,.36,1) backwards;
}

.page-transition-enabled.page-transition-complete .hero.models-hero .hero-inner>div>h1{
  animation:hero-copy-rise .72s .08s cubic-bezier(.22,1,.36,1) backwards;
}

.page-transition-enabled.page-transition-complete .hero.models-hero .hero-inner>div>p{
  animation:hero-copy-rise .68s .2s cubic-bezier(.22,1,.36,1) backwards;
}

.page-transition-enabled.page-transition-complete .hero .hero-actions{
  animation:hero-actions-rise .68s .48s cubic-bezier(.22,1,.36,1) backwards;
}

.hero.models-hero .hero-copy,
.hero.models-hero .hero-copy.is-changing{
  opacity:1;
  transform:none;
}

.hero.models-hero .hero-copy>h1,
.hero.models-hero .hero-copy>p{
  opacity:1;
  transform:translate3d(0,0,0);
  transition:opacity .42s ease,transform .58s cubic-bezier(.22,1,.36,1);
}

.hero.models-hero .hero-copy.is-changing>h1,
.hero.models-hero .hero-copy.is-changing>p{
  opacity:0;
  transform:translate3d(0,12px,0);
}

@media(max-width:900px){
  .hero.models-hero .hero-inner>div{
    width:340px;
    max-width:calc(100vw - 48px);
  }
  .hero-actions{bottom:30px}
  .hero--video .hero-caption,
  .floor-plans-video-hero .hero-caption,
  .renders-video-hero .hero-caption{bottom:138px}
  .hero-static-copy{bottom:134px}
  .home-page .hero--video .hero-caption-title,
  .floor-plans-page .floor-plans-video-hero .hero-caption-title,
  .renders-page .renders-video-hero .hero-caption-title,
  .walkthrough-page .hero--video .hero-caption-title,
  .walkthrough-page .hero-static-copy .hero-caption-title{font-size:clamp(44px,7.5vw,58px)}
  .hero.models-hero h1{font-size:clamp(34px,6vw,46px)}
  .hero.models-hero .hero-inner>div>p{font-size:12px;line-height:1.5}
}

@media(max-width:600px){
  .home-page .home-hero-copy h1{font-size:clamp(36px,10vw,48px)}
  .home-page .home-hero-copy>p{max-width:320px;margin-top:22px}
  .home-page .home-hero-copy .hero-actions{width:min(280px,100%);margin-top:26px;gap:12px}
  .home-page .home-hero-copy .hero-action{width:100%;min-width:0;min-height:48px}
  .hero.models-hero .hero-inner>div{
    flex:0 1 auto;
    width:340px;
    max-width:calc(100vw - 40px);
  }
  .hero.models-hero .hero-inner p{white-space:normal}
  .hero-actions{
    left:24px;
    right:24px;
    bottom:24px;
    max-width:none;
    flex-direction:column;
    align-items:flex-start;
    gap:9px;
  }
  .hero-action{min-width:210px;min-height:45px;padding:0 18px;font-size:10px}
  .hero--video .hero-caption,
  .floor-plans-video-hero .hero-caption,
  .renders-video-hero .hero-caption{bottom:172px}
  .home-page .hero-caption-title,
  .floor-plans-page .floor-plans-video-hero .hero-caption-title,
  .renders-page .renders-video-hero .hero-caption-title,
  .walkthrough-page .hero--video .hero-caption-title,
  .hero-static-copy .hero-caption-title{font-size:clamp(36px,9.4vw,48px)}
  .hero.models-hero h1{font-size:clamp(30px,8vw,38px)}
  .hero.models-hero .hero-inner>div>p{font-size:11px}
  .hero-static-copy{left:24px;right:24px;bottom:170px}
  .hero-inner .hero-actions{margin-top:24px}
}

@media(prefers-reduced-motion:reduce){
  .hero-action{transition:none}
  .hero-motion-ready .hero-caption,
  .hero-motion-ready .hero-caption-label,
  .hero-motion-ready .hero-caption-title span,
  .hero-static-copy .hero-caption-label,
  .hero-static-copy .hero-caption-title span,
  .hero.models-hero .hero-copy>h1,
  .hero.models-hero .hero-copy>p,
  .hero .hero-actions{
    animation:none!important;
    transition:none!important;
    opacity:1!important;
    transform:none!important;
  }
}

/* Service heroes share the landing page's centred text-and-action layout. */
.hero.floor-plans-video-hero,
.renders-page .hero.renders-video-hero,
.walkthrough-page .hero.hero--video,
.hero.models-hero{
  height:auto;
  min-height:max(560px,100svh);
}

.hero.floor-plans-video-hero .hero-media,
.renders-page .hero.renders-video-hero .hero-media,
.walkthrough-page .hero.hero--video .hero-media{
  height:auto;
  min-height:inherit;
  display:grid;
  align-items:center;
}

.hero .service-hero-copy,
.hero.models-hero .hero-inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width:none;
  box-sizing:border-box;
  padding:96px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero .service-hero-copy .hero-captions{
  position:relative;
  inset:auto;
  display:grid;
  width:100%;
  max-width:1050px;
  background:transparent;
}

/* Overlapping grid cells reserve the tallest caption's space during fades. */
.hero .service-hero-copy .hero-captions .hero-caption{
  position:relative;
  inset:auto;
  grid-area:1 / 1;
  align-self:center;
  min-width:0;
}

.hero .service-hero-copy .hero-caption-title{margin-inline:auto}

.hero.models-hero .hero-inner{height:auto;min-height:inherit;gap:0}
.hero.models-hero .hero-inner>div{
  width:100%;
  max-width:1000px;
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero .service-hero-copy .hero-actions,
.hero.models-hero .hero-inner .hero-actions{
  position:static;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  max-width:100%;
  margin-top:30px;
}

/* Keep the existing full-banner contrast overlays behind the moved copy. */
.floor-plans-video-hero .hero-media::before,
.renders-video-hero .hero-media::before{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(0deg,rgba(8,12,11,.28),transparent 62%);
}
.renders-video-hero .hero-media::before{
  background:linear-gradient(90deg,rgba(8,12,11,.58),rgba(8,12,11,.27) 52%,transparent 85%),linear-gradient(0deg,rgba(8,12,11,.28),transparent 62%);
}

@media(max-width:900px){
  .floor-plans-video-hero .hero-media::before,
  .renders-video-hero .hero-media::before{
    background:linear-gradient(0deg,rgba(8,12,11,.66),rgba(8,12,11,.08) 76%,transparent);
  }
}

@media(max-width:600px){
  .hero .service-hero-copy .hero-actions,
  .hero.models-hero .hero-inner .hero-actions{
    width:min(280px,100%);
    margin-top:26px;
    gap:12px;
  }
  .hero .service-hero-copy .hero-action,
  .hero.models-hero .hero-inner .hero-action{
    width:100%;
    min-width:0;
    min-height:48px;
    box-sizing:border-box;
  }
}
