/* Arix Labs site kit v1: the scroll stage.
   A filmed orbit, played as a numbered frame sequence on a canvas fixed behind the page.
   The page sets the look (fonts, colours, chapter heights); this file only styles the stage
   itself, the callout lines and the drag hint. Never edit per lead. */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--stage-bg, #0c1211) center / cover no-repeat;
  transition: opacity .2s linear;
}
.stage canvas { display: block; width: 100%; height: 100%; }

/* A soft vignette so text on either side always has something dark behind it. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 10, 9, .55), rgba(6, 10, 9, 0) 22%, rgba(6, 10, 9, 0) 68%, rgba(6, 10, 9, .62)),
    radial-gradient(130% 95% at 50% 45%, rgba(6, 10, 9, 0) 52%, rgba(6, 10, 9, .5) 100%);
}

.callouts {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.callout-halo { fill: none; stroke: rgba(4, 8, 7, .5); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.callout-line { fill: none; stroke: var(--stage-line, #f2f5f3); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.callout-ring {
  fill: rgba(4, 8, 7, .25);
  stroke: var(--stage-line, #f2f5f3);
  stroke-width: 1.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: callout-pulse 2.4s cubic-bezier(.16, 1, .3, 1) infinite;
}
.callout-dot { fill: var(--stage-accent, #f2f5f3); stroke: rgba(4, 8, 7, .6); stroke-width: 1; }
.callout-num { font: 700 11px/1 system-ui, sans-serif; fill: var(--stage-num, #0b1a19); text-anchor: middle; }
@keyframes callout-pulse {
  0% { transform: scale(.7); opacity: .95; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Chapters sit above the stage. Each one pins for its own height. */
.chapter { position: relative; z-index: 2; }
.chapter-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* The hero's slot is where the visitor can grab the object and turn it. */
[data-drag] { cursor: grab; touch-action: pan-y; }
[data-drag].is-grabbing { cursor: grabbing; }

.stage-hint {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--stage-hint, rgba(242, 245, 243, .78));
  user-select: none;
  pointer-events: none;
  transition: opacity .6s ease;
}
.stage-hint svg { width: 18px; height: 18px; flex: none; }
.stage-hint.is-used { opacity: 0; }

/* Callout labels fade in once the stage has settled on their chapter. */
[data-callout] { transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1); }
.chapter:not(.is-parked) [data-callout] { opacity: .0; transform: translateY(6px); }

/* Steps: only the step the stage is on shows. */
[data-step] { transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1); }
[data-steps] [data-step]:not(.is-active) { opacity: 0; transform: translateY(14px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .callout-ring { animation: none; }
  [data-callout], [data-step] { transition: none; }
}
/* kit end v1 */
