/* ==========================================================================
   ORBITAL BAY — the homepage lifecycle ring's centre (preview, 2026-10-05)
   A small isometric Lotus floor (tools/orbital-bay/build.js). Each stage's
   Build a Program module drops onto it as the arc reaches that stage.
   Without JS every module stands on the floor; orbital-bay.js adds
   .obay--live and places them stage by stage.
   ========================================================================== */

/* A bigger centre in both states, so the floor reads and the text fits under it */
.orbital--bay .orbital__center,
.orbital--bay .orbital__center--detail {
  width: 62cqmin;   /* 322px at 520 base */
  height: 62cqmin;
}

.orbital--bay .orbital__center-inner {
  justify-content: flex-start;
  padding: 2.6cqmin 2cqmin 0;
}

.orbital__bay {
  width: 84%;
  flex: none;
  margin-bottom: 0.4cqmin;
  line-height: 0;
}

.orbital__bay .obay {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The text sits under the floor; the drawing replaces the stage icon */
.orbital--bay .orbital__center-icon {
  display: none;
}

.orbital--bay .orbital__center-default,
.orbital--bay .orbital__center-detail {
  justify-content: flex-start;
  height: auto;
  padding: 0;
  max-width: 38cqmin;
}

.orbital--bay .orbital__center-default[hidden],
.orbital--bay .orbital__center-detail[hidden] {
  inset: auto 0 0;
}

.orbital--bay .orbital__center-num {
  margin-bottom: 0.4cqmin;
}

.orbital--bay .orbital__center-title {
  margin-bottom: 0.6cqmin;
}

.orbital--bay .orbital__center-desc {
  font-size: max(10px, 2.15cqmin);
  line-height: var(--leading-snug);
}

/* The top node's label goes above it, clear of the bigger centre */
.orbital__node[data-pos="top"] .orbital__node-title {
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* ── Floor states ── */
.obay-mod,
.obay-ghost {
  transition: opacity 0.35s var(--ease-out);
}

.obay--live .obay-mod {
  opacity: 0;
}

.obay--live .obay-mod.is-on {
  opacity: 1;
}

/* Hovering a stage the arc hasn't reached yet previews its module faintly */
.obay--live .obay-mod.is-peek:not(.is-on) {
  opacity: 0.35;
}

.obay--live .obay-ghost.is-filled {
  opacity: 0;
}

/* The current stage's slot is marked in saffron under its module */
.obay-ghost.is-current {
  opacity: 1;
  fill: var(--color-saffron);
  fill-opacity: 0.18;
  stroke: var(--color-saffron);
  stroke-dasharray: none;
  stroke-width: 1.4;
}

.obay-mod.is-new {
  animation: obayDrop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes obayDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .obay-mod,
  .obay-ghost {
    transition: none;
  }

  .obay-mod.is-new {
    animation: none;
  }
}
