/* Section: Why us. 2x2 reasons with icon discs; orbital line art in both side margins. */

.abs-why {
	--why-bg: #fcfcfc;
	--why-ink: #000000;
	--why-muted: #525252;
	--why-line: #e5e5e5;
	--why-art-line: #d6d6d6;
	--why-disc: #f0f0f0;
	--px: 0;
	--py: 0;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--why-bg);
	color: var(--why-ink);
	padding: clamp(64px, 6vw, 88px) 24px clamp(64px, 6.5vw, 96px);
}

/* ---------- Side art ---------- */

.abs-why__art {
	position: absolute;
	z-index: -1;
	top: 50%;
	height: auto;
	transform: translateY(-50%);
	overflow: visible;
	pointer-events: none;
}

.abs-why__art--left {
	left: 0;
	width: clamp(180px, calc((100vw - 960px) / 2 + 30px), 360px);
	aspect-ratio: 360 / 744;
}

.abs-why__art--right {
	right: 0;
	width: clamp(200px, calc((100vw - 960px) / 2 + 50px), 425px);
	aspect-ratio: 425 / 744;
}

.abs-why__layer {
	transform: translate(calc(var(--px) * 10px), calc(var(--py) * 8px));
	transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.abs-why__layer[data-depth="0.4"] {
	transform: translate(calc(var(--px) * 4px), calc(var(--py) * 3px));
}

.abs-why__arc,
.abs-why__rule {
	fill: none;
	stroke: var(--why-art-line);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.abs-why__arc--faint {
	stroke: #e6e6e6;
}

.abs-why__arc--dotted {
	stroke: #bdbdbd;
	stroke-dasharray: 0.0035 0.0045;
}

.abs-why__rule--h {
	stroke: #dcdcdc;
}

.abs-why__dot {
	fill: var(--why-ink);
}

.abs-why__dot--soft {
	fill: #dedede;
}

.abs-why__pulse {
	fill: none;
	stroke: var(--why-ink);
	stroke-width: 1;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}

.abs-why__orbit {
	transform-box: view-box;
	transform-origin: var(--x) var(--y);
	transform: rotate(var(--from));
}

.abs-why__sphere {
	opacity: 0.95;
}

/* ---------- Entrance + ambient motion (only when motion is welcome) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.abs-why.is-armed .abs-why__arc:not(.abs-why__arc--dotted),
	.abs-why.is-armed .abs-why__rule {
		stroke-dasharray: 1;
		stroke-dashoffset: 1;
	}

	.abs-why.is-armed .abs-why__arc--dotted,
	.abs-why.is-armed .abs-why__dot,
	.abs-why.is-armed .abs-why__sphere {
		opacity: 0;
	}

	.abs-why.is-armed .abs-why__sphere {
		transform-box: fill-box;
		transform-origin: center;
		transform: scale(0.92);
	}

	.abs-why.is-in .abs-why__arc:not(.abs-why__arc--dotted),
	.abs-why.is-in .abs-why__rule {
		stroke-dashoffset: 0;
		transition: stroke-dashoffset 2.2s cubic-bezier(0.65, 0, 0.35, 1);
	}

	.abs-why.is-in .abs-why__rule { transition-duration: 1.4s; }
	.abs-why.is-in .abs-why__arc--2 { transition-delay: 0.15s; }
	.abs-why.is-in .abs-why__arc--3 { transition-delay: 0.3s; }

	.abs-why.is-in .abs-why__sphere {
		opacity: 0.95;
		transform: scale(1);
		transition: opacity 1.6s ease, transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.abs-why.is-in .abs-why__arc--dotted,
	.abs-why.is-in .abs-why__dot {
		opacity: 1;
		transition: opacity 0.6s ease 1.3s;
	}

	.abs-why.is-in .abs-why__orbit {
		animation: abs-why-orbit var(--dur) ease-in-out 1.6s infinite alternate;
	}

	.abs-why.is-in .abs-why__pulse {
		animation: abs-why-pulse 3.2s ease-out 2s infinite;
	}

	.abs-why.is-in .abs-why__pulse--late {
		animation-delay: 3.6s;
	}

	.abs-why.is-in .abs-why__art--right .abs-why__pulse { animation-delay: 2.8s; }
	.abs-why.is-in .abs-why__art--right .abs-why__pulse--late { animation-delay: 4.4s; }

	/* Streaks of light travelling along the arcs and rules */
	.abs-why.is-in .abs-why__comet,
	.abs-why.is-in .abs-why__beam {
		opacity: 1;
		animation: abs-why-travel var(--dur) linear var(--delay, 2s) infinite;
	}

	.abs-why.is-in .abs-why__comet--rev,
	.abs-why.is-in .abs-why__beam--rev {
		animation-direction: reverse;
	}

	/* Dotted ring turns slowly */
	.abs-why.is-in .abs-why__spin {
		animation: abs-why-spin var(--dur) linear 1.4s infinite;
	}

	/* Spheres and soft dots float; the top dot glides along its rule */
	.abs-why.is-in .abs-why__float {
		animation: abs-why-float var(--dur) ease-in-out 1.6s infinite alternate;
	}

	.abs-why.is-in .abs-why__slide {
		animation: abs-why-float var(--dur) cubic-bezier(0.65, 0, 0.35, 1) 1.8s infinite alternate;
	}
}

.abs-why__comet,
.abs-why__beam {
	fill: none;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	opacity: 0;
	pointer-events: none;
}

.abs-why__comet {
	stroke: #000;
	stroke-width: 1.4;
	stroke-dasharray: 0.045 0.955;
	stroke-dashoffset: 0;
	stroke-opacity: 0.55;
}

.abs-why__beam {
	stroke: #000;
	stroke-width: 1.4;
	stroke-dasharray: 0.14 0.86;
	stroke-dashoffset: 0.14;
	stroke-opacity: 0.6;
}

.abs-why__spin {
	transform-box: view-box;
	transform-origin: var(--x) var(--y);
}

@keyframes abs-why-travel {
	from { stroke-dashoffset: 1; }
	to   { stroke-dashoffset: 0; }
}

@keyframes abs-why-spin {
	to { transform: rotate(360deg); }
}

@keyframes abs-why-float {
	from { transform: translateY(0); }
	to   { transform: translateY(var(--dy)); }
}

@keyframes abs-why-orbit {
	from { transform: rotate(var(--from)); }
	to   { transform: rotate(var(--to)); }
}

@keyframes abs-why-pulse {
	0%   { opacity: 0.55; transform: scale(1); }
	75%  { opacity: 0; transform: scale(4); }
	100% { opacity: 0; transform: scale(4); }
}

/* ---------- Content ---------- */

.abs-why__inner {
	position: relative;
	max-width: 960px;
	margin-inline: auto;
}

.abs-why__label {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-family: var(--font-label, "Geist", system-ui, sans-serif);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #262626;
}

.abs-why__label::before {
	content: "";
	width: 22px;
	height: 1px;
	background: currentColor;
}

.abs-why__heading {
	max-width: 13.5em;
	margin: 18px 0 0;
	font-family: var(--font-head, "Geist", system-ui, sans-serif);
	font-size: clamp(32px, 3.75vw, 46px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.035em;
	color: var(--why-ink);
	text-wrap: balance;
}

.abs-why__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: clamp(32px, 3.5vw, 44px) 0 0;
	padding: 0;
	list-style: none;
}

/* The cross divider: one vertical, one horizontal hairline */
.abs-why__grid::before,
.abs-why__grid::after {
	content: "";
	position: absolute;
	background: var(--why-line);
	pointer-events: none;
}

.abs-why__grid::before {
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
}

.abs-why__grid::after {
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
}

.abs-why__item {
	display: flex;
	align-items: flex-start;
	gap: clamp(18px, 2.4vw, 28px);
	margin: 0;
	padding: 12px 32px 30px 0;
}

.abs-why__item:nth-child(even) {
	padding-left: clamp(24px, 3.2vw, 32px);
	padding-right: 0;
}

.abs-why__item:nth-child(n + 3) {
	padding-top: 28px;
	padding-bottom: 12px;
}

.abs-why__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: clamp(60px, 5.2vw, 70px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--why-disc);
	color: var(--why-ink);
}

.abs-why__icon .abs-icon {
	width: 46%;
	height: 46%;
	stroke-width: 1.5;
	object-fit: contain;
}

.abs-why__body {
	min-width: 0;
	padding-top: 2px;
}

.abs-why__num {
	display: block;
	font-family: var(--font-label, "Geist", system-ui, sans-serif);
	font-size: 14px;
	line-height: 1;
	color: #525252;
	font-variant-numeric: tabular-nums;
}

.abs-why__title {
	margin: 10px 0 0;
	font-family: var(--font-head, "Geist", system-ui, sans-serif);
	font-size: clamp(20px, 1.6vw, 21px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--why-ink);
}

.abs-why__text {
	max-width: 30em;
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--why-muted);
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1240px) {
	.abs-why__art { opacity: 0.55; }
}

@media (max-width: 900px) {
	.abs-why__art--left { display: none; }
	.abs-why__art--right {
		top: 0;
		width: 240px;
		transform: translate(38%, -30%);
		opacity: 0.6;
	}
}

@media (max-width: 680px) {
	.abs-why__grid { grid-template-columns: 1fr; }

	.abs-why__grid::before,
	.abs-why__grid::after { display: none; }

	.abs-why__item,
	.abs-why__item:nth-child(even),
	.abs-why__item:nth-child(n + 3) {
		padding: 24px 0;
		border-top: 1px solid var(--why-line);
	}

	.abs-why__item:last-child { padding-bottom: 0; }
}
