/* Animasi Orbit Ekosistem Brand PUSKANAS
   Sumber: puskanas-brand-orbit-clockwise.zip
   Dipangkas dari versi demo standalone: aturan global (body, *, .page-shell)
   dihapus karena situs utama sudah punya reset sendiri di style.css. */

:root {
  --brand-blue: #0d6efd;
  --brand-blue-dark: #0757c7;
  --surface: rgba(255, 255, 255, 0.96);
  --text-secondary: #607089;
  --orbit-duration: 20s;
  --bg:#f6f7f9;
  /* dalam persen lebar stage (cqi), bukan px/vw tetap — supaya radius
     dan ukuran card selalu proporsional terhadap stage-nya sendiri,
     berapa pun lebar .photo-slot pembungkusnya di tiap breakpoint */
  --orbit-radius: 31.6cqi;
  --card-width: 35.6cqi;
  --card-height: 15.2cqi;
  --motion-easing: linear;
}

.brand-orbit__stage {
  position: relative;
  width: 500px;
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;

  border-radius: 20px;
  background-color: var(--bg);
  
}

.brand-orbit__stage::before,
.brand-orbit__stage::after {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  content: "";
  filter: blur(2px);
}

.brand-orbit__stage::before {
  top: -24%;
  left: -16%;
  width: 58%;
  aspect-ratio: 1;
  border: 24px solid rgba(13, 110, 253, 0.035);
}

.brand-orbit__stage::after {
  right: -21%;
  bottom: -23%;
  width: 64%;
  aspect-ratio: 1;
  border: 28px solid rgba(255, 171, 45, 0.045);
}

.brand-orbit__glow {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 145, 255, 0.14), rgba(68, 145, 255, 0) 68%);
  transform: translate(-50%, -50%);
}

.brand-orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.brand-orbit__ring--outer {
  width: 67.6cqi;
  height: 67.6cqi;
  border: 2px solid rgba(13, 110, 253, 0.35);
  box-shadow:
    0 0 0 7px rgba(13, 110, 253, 0.035),
    0 0 35px rgba(13, 110, 253, 0.08);
}

.brand-orbit__ring--outer::before,
.brand-orbit__ring--outer::after {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
  content: "";
}

.brand-orbit__ring--outer::before {
  top: 11%;
  left: 10%;
}

.brand-orbit__ring--outer::after {
  right: 10%;
  bottom: 11%;
}

.brand-orbit__ring--inner {
  width: 154px;
  height: 154px;
  border: 1px dashed rgba(13, 110, 253, 0.24);
}

.brand-orbit__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: clamp(78px, 21cqi, 104px);
  min-height: clamp(78px, 21cqi, 104px);
  display: grid;
  place-items: center;
  align-content: center;
  padding: clamp(10px, 3cqi, 14px);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 45px rgba(16, 68, 139, 0.13),
    inset 0 0 0 7px rgba(13, 110, 253, 0.035);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.brand-orbit__hub-icon {
  width: clamp(22px, 6.4cqi, 30px);
  height: clamp(22px, 6.4cqi, 30px);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  color: var(--brand-blue);
}

.brand-orbit__hub-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.brand-orbit__hub h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(11px, 3cqi, 14px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900, #14161f);
}

.brand-orbit__hub p {
  margin: clamp(4px, 1cqi, 6px) 0 0;
  color: var(--text-secondary);
  font-size: clamp(8px, 2cqi, 9px);
  font-weight: 600;
}

.brand-orbit__item {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  animation: orbitClockwise var(--orbit-duration) var(--motion-easing) infinite;
  animation-delay: var(--orbit-delay);
  transform-origin: 0 0;
  will-change: transform;
}

.brand-orbit__counter-rotation {
  width: 0;
  height: 0;
  animation: keepCardUpright var(--orbit-duration) var(--motion-easing) infinite;
  animation-delay: var(--orbit-delay);
  transform-origin: 0 0;
  will-change: transform;
}

.brand-card {
  width: var(--card-width);
  height: var(--card-height);
  display: grid;
  place-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(13, 110, 253, 0.11);
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 15px 34px rgba(28, 65, 119, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -50%);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    scale 220ms ease;
  backdrop-filter: blur(10px);
}

.brand-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.brand-orbit__control {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-blue-dark);
  box-shadow: 0 10px 25px rgba(28, 65, 119, 0.12);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  backdrop-filter: blur(10px);
  font: inherit;
}

.brand-orbit__control:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 14px 30px rgba(28, 65, 119, 0.17);
}

.brand-orbit__control:active {
  transform: translateY(0);
}

.brand-orbit__control:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.34);
  outline-offset: 3px;
}

.brand-orbit__stage.is-paused .brand-orbit__item,
.brand-orbit__stage.is-paused .brand-orbit__counter-rotation {
  animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
  .brand-orbit__stage:hover .brand-card {
    border-color: rgba(13, 110, 253, 0.18);
  }

  .brand-card:hover {
    box-shadow:
      0 20px 42px rgba(28, 65, 119, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.96);
    scale: 1.025;
  }
}

@keyframes orbitClockwise {
  from {
    transform: rotate(0deg) translateX(var(--orbit-radius));
  }

  to {
    transform: rotate(360deg) translateX(var(--orbit-radius));
  }
}

@keyframes keepCardUpright {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.brand-orbit__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .brand-orbit__item,
  .brand-orbit__counter-rotation {
    animation-play-state: paused;
  }

  .brand-card,
  .brand-orbit__control {
    transition: none;
  }
}
