/* Wider hero column for the model. Dashes draw first; the 3D build renders on top of them. */
.hero:has(.statehouse-figure){gap:24px}
.hero-art.statehouse-figure{width:100%;max-width:none;margin:0;justify-self:stretch}
/* Bleed into the right margin, leaving room for the model to swing past its box. */
@media(min-width:1100px){.hero-art.statehouse-figure{--bleed:clamp(0px,(100vw - 1180px)/2 - 38px,100px);width:calc(100% + var(--bleed));margin-right:calc(-1 * var(--bleed))}}
/* The 3D canvas is larger than its box (see scene.js) so the model is never cut off; it can
   pass the screen edge on narrow phones, so clip sideways overflow at the page. */
main:has(.statehouse-figure){overflow-x:clip}
.statehouse-object{position:relative;width:100%;aspect-ratio:5/4;isolation:isolate;cursor:grab}
.statehouse-object:active{cursor:grabbing}
.statehouse-object>img,.statehouse-object>canvas{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
.statehouse-object>img{z-index:1;pointer-events:none;visibility:hidden}
.statehouse-object>canvas.statehouse-dashes{z-index:2;pointer-events:none;visibility:visible;transition:opacity .45s ease}
.statehouse-object>canvas.statehouse-dashes.is-out{opacity:0}
.statehouse-object>canvas:not(.statehouse-dashes){z-index:3;visibility:hidden;pointer-events:none}
.statehouse-object[data-state="assembling"]>canvas,.statehouse-object[data-state="ready"]>canvas{visibility:visible}
.statehouse-object[data-state="fallback"]>canvas:not(.statehouse-dashes){visibility:hidden}
.statehouse-object.no-dashes[data-state="fallback"]>img{visibility:visible}
@media(max-width:860px){.hero:has(.statehouse-figure){grid-template-columns:1fr;gap:16px}.hero-art.statehouse-figure{max-width:620px;justify-self:center}}
/* J/105 layer: after the State House turns back into dashes, the dashes flow into the boat and it builds here. */
.statehouse-object>.boat-layer{position:absolute;inset:0;z-index:4;pointer-events:none}
.boat-layer>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;visibility:hidden;touch-action:pan-y}
.statehouse-object[data-boat="assembling"] .boat-layer>canvas,.statehouse-object[data-boat="ready"] .boat-layer>canvas{visibility:visible}
.statehouse-object[data-boat="ready"]>.boat-layer{pointer-events:auto}
.statehouse-object[data-state="dashes"]>canvas:not(.statehouse-dashes){visibility:hidden}
/* Thomas Point Shoal Lighthouse layer: third in the loop, same rules as the boat. */
.statehouse-object>.lighthouse-layer{position:absolute;inset:0;z-index:4;pointer-events:none}
.lighthouse-layer>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;visibility:hidden;touch-action:pan-y}
.statehouse-object[data-light="assembling"] .lighthouse-layer>canvas,.statehouse-object[data-light="ready"] .lighthouse-layer>canvas{visibility:visible}
.statehouse-object[data-light="ready"]>.lighthouse-layer{pointer-events:auto}
/* Bigger, and pulled left so it sits partly behind the headline and form (they stay on top).
   Its height roughly matches the text column beside it. */
.hero:has(.statehouse-figure) > .hero-copy { position: relative; z-index: 2; }
.hero-art.statehouse-figure { position: relative; z-index: 0; }
@media (min-width: 861px) {
  .hero:has(.statehouse-figure) { gap: 0; }
  .hero-art.statehouse-figure { --pull: clamp(80px, 14vw, 220px); width: calc(100% + var(--pull)); margin-left: calc(-1 * var(--pull)); }
}
@media (min-width: 1100px) {
  .hero-art.statehouse-figure { width: calc(100% + var(--pull) + var(--bleed)); margin-right: calc(-1 * var(--bleed)); }
}
