/* Insight Bay /physics hero v3 (12 Nov 2026). Furniture for physics-hero-v3.js: Newton's cannonball as a live instrument.
   Three planes: the page's own star field and nebula behind, the planet and shots (one canvas, full hero), small labels on top. */

.sx-hero { position: relative; overflow: clip; }

/* the three facts: three cells at every width (the fourth was removed) */
@media (min-width: 720px) { .sx-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719.98px) { .sx-facts > .sx-fact:last-child { grid-column: 1 / -1; } }

/* the figure is the hero's background plane on wide screens */
.px-hero-fig { margin: 0; max-width: none; }
@media (min-width: 1000px) {
  .px-hero-fig { position: absolute; z-index: 1; left: calc(50% - 50vw); width: 100vw; top: calc(-1 * (4.25rem + clamp(3rem, 8vh, 6rem))); bottom: calc(-1 * clamp(3.5rem, 9vh, 6.5rem)); pointer-events: none; margin: 0;
    opacity: calc(1 - var(--pxh-leave, 0) * .85); transform: translate3d(0, calc(var(--pxh-leave, 0) * -4%), 0); }
  .px-hero-fig .px-cannon { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; pointer-events: auto; cursor: crosshair; touch-action: pan-y; }
  /* text sits above the canvas; the empty space between lets a drag reach it */
  .sx-hero > .ib-container { pointer-events: none; }
  .sx-hero-grid > div:first-child, .sx-facts { pointer-events: auto; }
  .px-cannon-static { position: absolute; right: 4%; top: 50%; width: 36rem; max-width: 46%; transform: translateY(-50%); }
}
@media (max-width: 999.98px) {
  body.sx-page .sx-hero { padding-top: 4.5rem; }
  .px-hero-fig { position: relative; order: -1; height: clamp(13rem, 56vw, 20rem); margin-top: 0; }
  .px-hero-fig .px-cannon { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; cursor: crosshair; touch-action: pan-y; }
  .sx-hero-grid { gap: 1.5rem; }
}

/* labels: small, on top, generated by JS */
.pxh-hud {
  position: absolute; z-index: 2; pointer-events: none; width: 16.5rem;
  font-family: var(--ib-font-mono); color: var(--ib-ink-soft);
  transform: translate3d(calc(var(--pxh-x, 0) * 1px), calc(var(--pxh-y, 0) * 1px), 0);
}
.pxh-row { display: flex; align-items: baseline; gap: .6rem; font-size: .75rem; letter-spacing: .08em; line-height: 1.7; }
.pxh-l { min-width: 3.6rem; color: var(--ib-ink-muted); text-transform: none; }
.pxh-n { min-width: 5.2ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--ib-ink); font-size: 1.05rem; letter-spacing: 0; }
.pxh-u { color: var(--ib-ink-muted); min-width: 2.6rem; }
.pxh-dim .pxh-n { color: var(--ib-ink-soft); }
.pxh-res { height: 2.2rem; align-items: center; }
.pxh-res .pxh-n { color: var(--ib-accent); font-size: 1.45rem; min-width: 7.2ch; }
.pxh-res.is-orbit .pxh-n { text-transform: uppercase; letter-spacing: .12em; font-size: 1.05rem; text-align: right; }
.pxh-note { margin-top: .35rem; font-size: .6875rem; letter-spacing: .06em; color: var(--ib-ink-muted); opacity: .8; }

.px-hero-fig .px-cannon-cap {
  position: absolute; z-index: 2; margin: 0; pointer-events: none; justify-content: flex-start; width: 16.5rem;
  transform: translate3d(calc(var(--pxh-x, 0) * 1px), calc(var(--pxh-y, 0) * 1px), 0);
}
.pxh-hint {
  position: absolute; z-index: 2; pointer-events: none; width: max-content;
  font-family: var(--ib-font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ib-ink-muted);
  padding: .3rem .65rem; border: 1px solid var(--ib-line-strong); border-radius: 62.4375rem; background: rgba(12, 11, 10, .55);
  transition: opacity .4s cubic-bezier(.23, 1, .32, 1), transform .4s cubic-bezier(.23, 1, .32, 1);
}
.pxh-hint.is-gone { opacity: 0; transform: translateY(4px); }
.sx-hero.is-aiming { user-select: none; -webkit-user-select: none; }

@media (min-width: 1000px) {
  .pxh-hud { right: clamp(2rem, 7vw, 7rem); top: 6rem; }
  .px-hero-fig .px-cannon-cap { right: clamp(2rem, 7vw, 7rem); top: calc(6rem + 7.7rem); }
  .pxh-hint { right: clamp(2rem, 7vw, 7rem); top: calc(6rem + 9.8rem); }
}
@media (max-width: 999.98px) {
  .pxh-hud { right: 0; top: 0; width: 12.6rem; }
  .pxh-l { min-width: 2.9rem; }
  .pxh-u { min-width: 2.2rem; }
  .pxh-row { font-size: .6875rem; line-height: 1.55; }
  .pxh-n { font-size: .95rem; }
  .pxh-res .pxh-n { font-size: 1.2rem; }
  .pxh-note { display: none; }
  .px-hero-fig .px-cannon-cap { left: 0; top: 0; flex-direction: column; align-items: flex-start; gap: .1rem; font-size: .6875rem; }
  .pxh-hint { left: 0; bottom: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .px-hero-fig, .pxh-hud, .px-hero-fig .px-cannon-cap { transform: none !important; transition: none; }
  .pxh-hint { transition: none; }
}

/* the caption's own words stay in the DOM; the live caption is generated beside them */
.px-hero-fig .px-cannon-cap [data-cannon-v] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pxh-nl { color: var(--ib-accent); font-variant-numeric: tabular-nums; }

/* text and facts always above the planet */
.sx-hero-grid > div:first-child, .sx-hero .sx-facts { position: relative; z-index: 3; }
