/* ==========================================================================
   HERO ORBIT — shared hero artwork (About, Approach)
   The orb sitting in the horizon, flanked by industry chips. Extracted from
   css/about/about.css so more than one page can use it. Driven by
   js/hero-orbit.js. Load this AFTER the page stylesheet.
   `.ab-hero-art` is the historical About-page hook; `.hero-art` is the
   neutral one new pages should use.
   ========================================================================== */
/* ==========================================================================
   HERO GRAPHIC — the orb sitting in the horizon, flanked by industry chips
   Geometry is laid out at a fixed 920x620 and scaled to fit by main-about.js,
   so every offset below stays a plain pixel value.
   ========================================================================== */
.ab-hero-art,
.hero-art {
  position: relative;
  min-height: 470px;
  /* the scene runs into the right gutter, as on the artboard; .ab-hero clips it */
  overflow: visible;
}
.ah-scene-shift {
  position: absolute;
  inset: 0;
}
.ah-scene {
  position: absolute;
  left: 56%;
  top: 50%;
  width: 920px;
  height: 620px;
  transform: translate(-50%, -50%) scale(var(--ahk, 1));
  transform-origin: 50% 50%;
}
.ah-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ah-arc {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}
.ah-arc-2 {
  stroke: rgba(255, 255, 255, 0.07);
}
.ah-shelf {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}
.ah-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(190, 200, 255, 0.55);
}

/* --- the core --- */
.ah-core {
  position: absolute;
  left: 460px;
  top: 314px;
  width: 138px;
  height: 138px;
  margin: -69px 0 0 -69px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at 50% 45%, #8b7bff 0%, #5b3fe4 58%, #3b1fb8 100%);
  box-shadow: 0 0 0 26px rgba(99, 78, 255, 0.12),
    0 0 0 54px rgba(99, 78, 255, 0.07), 0 0 90px 10px rgba(110, 78, 255, 0.55);
}
.ah-core img {
  width: 62px;
  height: 62px;
  filter: brightness(0) invert(1);
}

/* --- industry chips: a near pair and a far pair, level with the core --- */
.ah-chip {
  position: absolute;
  top: 314px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  color: rgba(255, 255, 255, 0.82);
}
.ah-chip svg {
  width: 46%;
  height: 46%;
}
/* near pair — larger and brighter */
.ah-chip--i1,
.ah-chip--i2 {
  width: 86px;
  height: 86px;
  margin-top: -43px;
}
.ah-chip--i1 {
  left: 244px;
  margin-left: -43px;
}
.ah-chip--i2 {
  left: 676px;
  margin-left: -43px;
}
/* far pair — smaller and dimmer, so the row reads as depth */
.ah-chip--o1,
.ah-chip--o2 {
  width: 62px;
  height: 62px;
  margin-top: -31px;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}
.ah-chip--o1 {
  left: 106px;
  margin-left: -31px;
}
.ah-chip--o2 {
  left: 814px;
  margin-left: -31px;
}

@media (max-width: 1080px) {
  .ab-hero-art,
  .hero-art {
    min-height: 380px;
  }
}
@media (max-width: 560px) {
  .ab-hero-art,
  .hero-art {
    min-height: 300px;
  }
}

/* ==========================================================================
   HERO GRAPHIC — motion
   The story: each industry lights up in turn and sends a signal down the
   horizon into the core. Only transform/opacity animate, so it stays on the
   compositor; main-about.js drives the cycle and stops it off-screen.
   ========================================================================== */

/* chips arrive on a stagger, then hold. --enter/--lift/--sc compose into one
   transform so the entrance and the active lift never fight each other. */
.ah-chip {
  --enter: 16px;
  --lift: 0px;
  --sc: 0.94;
  opacity: 0;
  transform: translateY(calc(var(--enter) + var(--lift))) scale(var(--sc));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease,
    border-color 0.35s ease, color 0.35s ease, background 0.35s ease,
    box-shadow 0.35s ease;
}
.ah-scene.is-in .ah-chip {
  --enter: 0px;
  --sc: 1;
  opacity: 1;
}
.ah-scene.is-in .ah-chip--o1 { transition-delay: 0.28s; }
.ah-scene.is-in .ah-chip--i1 { transition-delay: 0.06s; }
.ah-scene.is-in .ah-chip--i2 { transition-delay: 0.14s; }
.ah-scene.is-in .ah-chip--o2 { transition-delay: 0.36s; }

.ah-chip.is-active {
  --lift: -6px;
  color: #fff;
  border-color: rgba(150, 120, 255, 0.6);
  background: linear-gradient(
    160deg,
    rgba(124, 92, 255, 0.3),
    rgba(124, 92, 255, 0.08)
  );
  box-shadow: 0 0 0 1px rgba(150, 120, 255, 0.22),
    0 16px 36px -14px rgba(99, 78, 255, 0.75);
}

/* the signal that runs along the horizon into the notch */
.ah-pulse {
  position: absolute;
  top: 418px;
  left: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #cdc2ff;
  box-shadow: 0 0 12px 3px rgba(150, 120, 255, 0.85);
  pointer-events: none;
  animation: ahRun var(--dur, 900ms) cubic-bezier(0.4, 0, 0.25, 1) forwards;
}
@keyframes ahRun {
  0% {
    transform: translateX(var(--from)) scale(0.5);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateX(var(--to)) scale(1);
    opacity: 0;
  }
}

/* the core answers each signal with a ring */
.ah-core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(170, 150, 255, 0.75);
  opacity: 0;
  pointer-events: none;
}
.ah-core.is-pinged::before {
  animation: ahPing 0.9s ease-out;
}
@keyframes ahPing {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.95);
  }
}

/* a slow breath under the core, so the scene is never completely still */
.ah-glow {
  position: absolute;
  left: 460px;
  top: 314px;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(112, 82, 255, 0.4),
    rgba(112, 82, 255, 0) 68%
  );
  animation: ahBreathe 6s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes ahBreathe {
  from {
    transform: scale(1);
    opacity: 0.65;
  }
  to {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-chip {
    --enter: 0px;
    --sc: 1;
    opacity: 1;
    transition: none;
  }
  .ah-glow,
  .ah-pulse,
  .ah-core.is-pinged::before {
    animation: none;
  }
  .ah-pulse {
    display: none;
  }
}
