/*------------------------------------------------------------------
[ AB Home v2 — Clients orbit ]
Figma: 976:10193 · canvas 800 × 770 (centred), light background.
Cards slowly orbit the centre (outer ring clockwise, inner ring
counter-clockwise) and counter-rotate so the logos always stay level.
The fade-in animation is on .ab-hv2-orb__anim (not on the section),
so the light background never fades over the dark page.
*/

.ab-hv2-section.ab-hv2-orb {
	--orb-scale: 1;
	--orb-outer: 180s; /* one full turn */
	--orb-inner: 140s;
	padding: 46px 0 123px;
	background: #fafafb;
	overflow: hidden;
}

.ab-hv2-orb__canvas {
	position: relative;
	width: 800px;
	height: 770px;
	margin: 0 0 0 calc(50% - 400px);
	transform-origin: 50% 0;
	transform: scale(var(--orb-scale));
}

.ab-hv2-section .ab-hv2-orb__canvas > img {
	position: absolute;
	max-width: none;
	height: auto;
	pointer-events: none;
}

.ab-hv2-section .ab-hv2-orb__ring--outer { left: 40px;  top: 26px;  width: 720px; }
.ab-hv2-section .ab-hv2-orb__ring--inner { left: 185px; top: 171px; width: 430px; }
.ab-hv2-section .ab-hv2-orb__glow        { left: 230px; top: 216px; width: 340px; animation: ab-hv2-orb-glow 4s ease-in-out infinite; }

/* ── Centre mark with a slowly pulsing shadow ────── */
.ab-hv2-orb__center {
	position: absolute;
	z-index: 2;
	left: 340px;
	top: 326px;
	width: 120px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #eaeaf0;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 16px rgba(23, 15, 51, 0.08), 0 12px 30px rgba(101, 59, 243, 0.18);
	animation: ab-hv2-orb-pulse 4s ease-in-out infinite;
}

.ab-hv2-section .ab-hv2-orb__center img { width: 48px; height: auto; margin-top: 1px; }

@keyframes ab-hv2-orb-pulse {
	0%, 100% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 16px rgba(23, 15, 51, 0.08), 0 12px 30px rgba(101, 59, 243, 0.18); }
	50%      { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 20px rgba(23, 15, 51, 0.10), 0 16px 46px rgba(101, 59, 243, 0.34); }
}

@keyframes ab-hv2-orb-glow {
	0%, 100% { opacity: .85; transform: scale(1); }
	50%      { opacity: 1;   transform: scale(1.06); }
}

/* ── Orbiting arms ───────────────────────────────── */
.ab-hv2-section .ab-hv2-orb__list {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ab-hv2-orb__arm {
	position: absolute;
	left: 400px;
	top: 386px;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	transform: rotate(var(--a));
	animation: ab-hv2-orb-cw var(--orb-outer) linear infinite;
}

.ab-hv2-orb__arm--inner { animation: ab-hv2-orb-ccw var(--orb-inner) linear infinite; }

.ab-hv2-orb__pos {
	position: absolute;
	left: var(--r);
	top: 0;
	width: 0;
	height: 0;
}

/* the card turns back by the arm angle → stays horizontal */
.ab-hv2-orb__card,
.ab-hv2-section .ab-hv2-orb__dot {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
	animation: ab-hv2-orb-cw-counter var(--orb-outer) linear infinite;
}

.ab-hv2-orb__arm--inner .ab-hv2-orb__card,
.ab-hv2-section .ab-hv2-orb__arm--inner .ab-hv2-orb__dot { animation-name: ab-hv2-orb-ccw-counter; animation-duration: var(--orb-inner); }

@keyframes ab-hv2-orb-cw          { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg)); } }
@keyframes ab-hv2-orb-ccw         { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) - 360deg)); } }
@keyframes ab-hv2-orb-cw-counter  { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); } }
@keyframes ab-hv2-orb-ccw-counter { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) + 360deg)); } }

.ab-hv2-section .ab-hv2-orb__dot { width: 26px; max-width: none; height: auto; }

.ab-hv2-orb__card {
	z-index: 3;
	height: 56px;
	padding: 0 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ececf1;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 16px rgba(23, 15, 51, 0.08);
	transition: box-shadow .25s ease;
}

.ab-hv2-orb__card:hover {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 24px rgba(101, 59, 243, 0.16);
}

.ab-hv2-section .ab-hv2-orb__card img {
	display: block;
	max-width: 100%;
	object-fit: contain;
}

/* pause the orbit while the pointer is over it */
.ab-hv2-orb__canvas:hover .ab-hv2-orb__arm,
.ab-hv2-orb__canvas:hover .ab-hv2-orb__card,
.ab-hv2-orb__canvas:hover .ab-hv2-orb__dot { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	.ab-hv2-orb__arm,
	.ab-hv2-orb__card,
	.ab-hv2-section .ab-hv2-orb__dot,
	.ab-hv2-orb__center,
	.ab-hv2-section .ab-hv2-orb__glow { animation: none; }
}

/* ── Responsive: scale the whole canvas ──────────── */
@media (max-width: 860px) {
	.ab-hv2-section.ab-hv2-orb { --orb-scale: .8; padding-bottom: 60px; }
	.ab-hv2-orb__canvas { margin-bottom: calc(770px * (var(--orb-scale) - 1)); }
}

@media (max-width: 680px) {
	.ab-hv2-section.ab-hv2-orb { --orb-scale: .6; }
}

@media (max-width: 500px) {
	.ab-hv2-section.ab-hv2-orb { --orb-scale: .5; }
}
