/* Approved sand-full fitting only; contract screens and other characters untouched. */
body[data-hero="sand-full"][data-page="home"] {
  --blue:#1c79c0;
  background-color:var(--blue);
  background-image:linear-gradient(to bottom,#1c79c0,#2482c6);
  background-repeat:no-repeat;
  background-size:100% var(--sand-picture-height,calc(100svh - 89px));
  background-position:center top var(--sand-picture-top,89px);
}
body[data-hero="sand-full"][data-page="home"] .topbar { background:#1c79c0; }
body[data-hero="sand-full"] .home-view {
  height:calc(100svh - var(--sand-home-top,89px));
  min-height:0;
  max-height:none;
}
body[data-hero="sand-full"] .hero-character {
  --sand-height:min(calc(55vw * 1.248447205),calc(790px * 1.248447205),calc(100svh - var(--sand-home-top,89px)));
  /* Enlarge the picture 14%, letting only its empty blue margins leave the
     viewport. Across the turn the character stays within y=7%..92%. */
  width:calc(var(--sand-height) * 1.14 * 1.99066874);
  height:calc(var(--sand-height) * 1.14);
  left:52%; top:auto; bottom:calc(var(--sand-height) * -.08); transform:translateX(-50%);
}
body[data-hero="sand-full"] .hero-character > img,
body[data-hero="sand-full"] .hero-character .hero-scrub-video {
  width:100%; height:100%; object-fit:contain;
  /* Discard only the stretched side padding, never scale or mirror the hero. */
  mask-image:linear-gradient(to right,transparent 28%,#000 32%,#000 68%,transparent 72%),linear-gradient(to bottom,transparent 5.4%,#000 7%);
  mask-composite:intersect;
}
body[data-hero="sand-full"] .scrub-controls { display:none; }
@media (min-width:761px) and (max-width:900px) and (min-height:900px) {
  body[data-hero="sand-full"] .hero-action { top:39%; bottom:auto; }
}
@media (max-width:760px) {
  body[data-hero="sand-full"] .home-view { height:auto; padding-bottom:0; }
  body[data-hero="sand-full"] .hero-stage {
    --sand-mobile-height:max(100px,min(calc((100vw - 24px) / .8436),calc(100svh - var(--sand-stage-top,291px) - 115px)));
    display:block; height:calc(115px + var(--sand-mobile-height)); margin-top:12px;
  }
  body[data-hero="sand-full"] .hero-character {
    position:absolute; width:calc(var(--sand-mobile-height) * 1.14 * 1.99066874);
    height:calc(var(--sand-mobile-height) * 1.14); margin:0;
    left:50%; top:calc(115px - var(--sand-mobile-height) * .06); bottom:auto; transform:translateX(-50%);
  }
  body[data-hero="sand-full"] .hero-action {
    position:absolute; top:0; bottom:auto; width:calc(50% - 5px); margin:0;
  }
  body[data-hero="sand-full"] .hero-action-left { left:0; right:auto; }
  body[data-hero="sand-full"] .hero-action-right { left:auto; right:0; }
}
