/* Hosting group pages, server-scene hero (Nov 25 2026). Loaded only when the
   scene preview is on (?scene=on, cookie hz_scene; ships with the settings
   row hosting_scenes=1). The masthead sits in one inset stage: copy on the
   left, a small three.js server scene for the group on the right
   (public/hosting-scenes/scenes.js). Fonts and colours are the page's own. */

.hx .xh-hero:has(.xs-stage) { padding-top: clamp(5.5rem, 8vw, 6.5rem); }
.hx .xh-hero-biz { padding-bottom: clamp(1rem, 3vw, 2rem); }
.hx .xh-hero-biz .xs-stage { margin-bottom: 0; }

.hx .xs-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  border: 1px solid var(--xh-hair-2);
  border-radius: 20px;
  background: var(--xh-sunk);
  overflow: hidden;
}

.hx .xs-stage .xh-head {
  align-items: flex-start;
  max-width: none;
  margin: 0;
  text-align: left;
}
.hx .xs-stage .xh-h1 { font-size: clamp(2.75rem, 5vw, 4.75rem); }
.hx .xs-stage .xh-lede { margin-inline: 0; max-width: 46ch; font-size: clamp(1rem, 1.05vw, 1.0625rem); }
.hx .xs-stage .xh-actions { justify-content: flex-start; }

.hx .xs-scene {
  position: relative;
  align-self: stretch;
  min-height: 460px;
  margin: calc(-1 * clamp(2.5rem, 5vw, 4.5rem)) calc(-1 * clamp(1.5rem, 4vw, 4rem)) calc(-1 * clamp(2.5rem, 5vw, 4.5rem)) 0;
  touch-action: pan-y;
}
.hx .xs-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1);
}
.hx .xs-scene.is-on canvas { opacity: 1; }
.hx .xs-scene.is-off { display: none; }

.hx .xs-pause {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--xh-hair-2);
  border-radius: 8px;
  background: var(--xh-card);
  color: var(--xh-ink-2);
  opacity: 0;
  transition: opacity .3s, color .2s;
  cursor: pointer;
}
.hx .xs-scene.is-on .xs-pause { opacity: .8; }
.hx .xs-pause:hover, .hx .xs-pause:focus-visible { opacity: 1; color: var(--xh-ink); }
.hx .xs-pause svg { width: 12px; height: 12px; }
.hx .xs-pause .i-play { display: none; }
.hx .xs-pause[aria-pressed="true"] .i-play { display: block; }
.hx .xs-pause[aria-pressed="true"] .i-pause { display: none; }

@media (max-width: 900px) {
  .hx .xs-stage { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; border-radius: 16px; }
  .hx .xs-scene { min-height: 300px; margin: 0 calc(-1 * clamp(1.5rem, 4vw, 4rem)); }
}

/* Plain pages (Dec 1 2026): status, platform, integrations, help, API docs,
   legal. Their mastheads are centred; inside the stage they read left like
   the hosting ones. Gate: Support\PageScenes (page_scenes=1). */
.hx .xs-page {
  --xh-ink: hsl(var(--color-base));
  --xh-ink-2: var(--hx-ink-2);
  --xh-hair-2: var(--hx-hair-2);
  --xh-card: var(--hl-surface);
  --xh-sunk: hsl(var(--color-base) / 0.035);
  text-align: left;
}
.hx .xs-mast:is(.xb-mast, .xk-mast, .xm-hero) {
  padding-top: clamp(5.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hx .xm .xs-mast.xm-hero { padding-top: clamp(5.5rem, 8vw, 6.5rem); }
.hx .xs-page .xs-copy { min-width: 0; }
.hx .xs-page .xs-copy > * { margin-left: 0; margin-right: 0; }
.hx .xs-page :is(.xb-mast-h1, .xk-h1, .xm-h1) {
  max-width: 13ch;
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
  text-align: left;
}
.hx .xs-page :is(.xb-mast-lede, .xk-lede, .xm-lede) {
  max-width: 46ch;
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  text-align: left;
}
.hx .xs-page :is(.xb-byline, .xm-facts) { justify-content: flex-start; }
.hx .xs-page .xk-search { max-width: none; margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.hx .xs-page .xk-search + * { justify-content: flex-start; text-align: left; }
.hx .xs-page .xs-scene { min-height: 440px; }
@media (max-width: 900px) {
  .hx .xs-page .xs-scene { min-height: 280px; }
  .hx .xs-page :is(.xb-mast-h1, .xk-h1, .xm-h1) { max-width: none; }
}
.hx .xs-page :is(.xk-popular, .xk-live) { justify-content: flex-start; text-align: left; }
