/* Storefront hero. Everything is scoped to #top so nothing leaks into the rest of the page.
   The headline, line and buttons reuse the .hero__* rules in site.css. */
#top { --hb: #05090e; --hline: var(--sc-hairline-strong); --hmute: var(--text); --tr-h: 1.5rem; position: relative; height: 440svh; background: var(--hb); }
#top .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--hb); isolation: isolate; }
#top .artboard { position: absolute; inset: var(--bar-h) 0 var(--tr-h); display: flex; align-items: center; justify-content: center; }
#top canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
#top #loading { position: absolute; top: 56%; left: 0; right: 0; margin: 0; padding: 12px; text-align: center; font-size: 14px; color: var(--hmute); }
#top #loading[hidden] { display: none; }
/* No scroll cue drives this copy, so the paragraph is simply shown. */
#top .hero__lede { clip-path: none; max-width: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (orientation: portrait) {
  /* One column that fits any phone height: headline, the picture (takes the space left),
     buttons. The paragraph and the extra buttons make room, as on the old hero. */
  #top { height: 400svh; }
  #top .stage { display: flex; flex-direction: column; gap: 0.75rem; padding: var(--bar-h) var(--sc-gutter) calc(1rem + env(safe-area-inset-bottom)); }
  #top .hero__copy { display: contents; }
  #top .hero__title { order: 1; }
  #top .artboard { order: 2; }
  #top .hero__foot { order: 3; }
  #top .hero__title, #top .hero__foot { position: relative; z-index: 20; }
  #top .hero__scrim { display: none; }
  #top .hero__lede { font-size: 1rem; line-height: 1.45; }
  #top .hero__l1 { font-size: clamp(1.5rem, 6.6vw, 2.8rem); }
  #top .hero__actions .btn { min-height: 2.9rem; padding-block: 0.75rem; }
  #top .hero__foot { max-width: none; gap: 0; }
  #top .artboard { position: relative; inset: auto; flex: 1 1 0; min-height: min(9rem, 19svh); margin: 0 calc(var(--sc-gutter) * -1); }
}
@media (orientation: portrait) and (max-height: 740px) {
  /* A short phone screen: the buttons keep their room. */
  #top .artboard { min-height: 7.5rem; }
}
/* Landscape: size the copy to the window height too, so it always fits beside the picture. */
@media (orientation: landscape) {
  #top .hero__copy { top: calc(var(--bar-h) + 1.25rem); gap: 1.25rem; }
  #top .hero__foot { gap: 1.25rem; }
  #top .hero__l1 { font-size: min(6rem, 5.2vw, 10.5vh); }
  #top .hero__l2 { margin-top: 1.25rem; font-size: min(2.8rem, 2.5vw, 5vh); }
}