/* Non-inherited lengths avoid invalidating styles throughout the landing on each frame. */
@property --hero-frame-width {syntax:"<length>";inherits:false;initial-value:1498px;}
@property --hero-card-side {syntax:"<length>";inherits:false;initial-value:7px;}
/* One shared frame keeps the header, hero and landing grid aligned while scrolling. */
html[data-hero-frame] body:has(#hero.cloud-card)>main,
html[data-hero-frame] body:has(#hero.cloud-card) #navbar .hp-header-row,
html[data-hero-frame] body:has(#hero.cloud-card) .ds-announcement .ds-announcement-inner {
  width:min(var(--hero-frame-width,1498px),100%)!important;
  max-width:none!important;
  margin-inline:auto!important;
}
html[data-hero-frame] body:has(#hero.cloud-card)>footer.ds-footer {
  width:min(var(--hero-frame-width,1498px),100%)!important;
  max-width:none!important;
}
html[data-hero-frame] body:has(#hero.cloud-card) #navbar .hp-menu-grid {
  width:min(var(--hero-frame-width,1498px),100%)!important;
  max-width:none!important;
}
/* Account for the grid border so the opening card matches Cloudflare's outer inset. */
html[data-hero-frame] body:has(#hero.cloud-card) #hero.cloud-card {
  width:calc(100% - 2 * var(--hero-card-side,7px))!important;
  margin-inline:var(--hero-card-side,7px)!important;
}
@media(max-width:767px){html[data-hero-frame] body:has(#hero.cloud-card) #hero.cloud-card {width:calc(100% - 2 * var(--hero-card-side,3px))!important;margin-inline:var(--hero-card-side,3px)!important;}}
/* Rounded corners, the bottom scroll cue and the height remain unchanged. */

/* The browser owns scroll progress: no delayed JS interpolation after input stops. */
@keyframes hero-frame-scroll {
  from {--hero-frame-width:var(--hero-expanded-width);}
  to {--hero-frame-width:var(--hero-base-width);}
}
@keyframes hero-inset-scroll {
  from {--hero-card-side:var(--hero-side-start);}
  to {--hero-card-side:var(--hero-side-end);}
}
html[data-hero-frame-native] body:has(#hero.cloud-card)>main,
html[data-hero-frame-native] body:has(#hero.cloud-card) #navbar .hp-header-row,
html[data-hero-frame-native] body:has(#hero.cloud-card) .ds-announcement-inner,
html[data-hero-frame-native] body:has(#hero.cloud-card)>footer.ds-footer,
html[data-hero-frame-native] body:has(#hero.cloud-card) #navbar .hp-menu-grid {
  animation:hero-frame-scroll 1s cubic-bezier(.4,0,.2,1) both;
  animation-timeline:scroll(root block);
  animation-range:0px var(--hero-scroll-distance);
}
html[data-hero-frame-native] body:has(#hero.cloud-card) #hero.cloud-card {
  animation:hero-inset-scroll 1s cubic-bezier(.4,0,.2,1) both;
  animation-timeline:scroll(root block);
  animation-range:0px var(--hero-scroll-distance);
}

/* Preserve section space while letting the browser skip offscreen rendering work. */
html[data-hero-frame] .landing-render-section {
  content-visibility:auto;
  contain-intrinsic-block-size:auto var(--landing-section-height,800px);
}
