/* ==========================================================================
   Value Section Block
   ========================================================================== */

.pillar-value-section {
	background: #ffffff;
	color: #111111;
	overflow: hidden;
}

.pillar-value-section__inner {
	position: relative;
	max-width: 1320px;
	min-height: var(--pillar-value-section-height, 45vh);
	margin: 0 auto;
	padding: var(--pillar-value-section-padding-y, 8vh) clamp(1.5rem, 4vw, 3.5rem);
}

.pillar-value-section__body {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	min-height: clamp(220px, 28vh, 320px);
}

.pillar-value-section--has-graphic .pillar-value-section__body {
	grid-template-columns: minmax(0, 62%) minmax(0, 1fr);
}

.pillar-value-section__copy {
	position: relative;
	z-index: 2;
	max-width: 780px;
}

.pillar-value-section__subtitle {
	margin: 0 0 1.25rem;
	font-size: clamp(0.65rem, 1vw, 0.75rem);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pillar-yellow, #ffa800);
}

.pillar-value-section__title {
	max-width: 100%;
	font-size: clamp(1.4rem, 2.35vw, 2.05rem);
	font-weight: 700;
	line-height: 1.24;
	letter-spacing: -0.01em;
	color: #111111;
}

.pillar-value-section__title p {
	margin: 0;
}

.pillar-value-section__title p + p {
	margin-top: 0.15em;
}

.pillar-value-section__graphic {
	position: absolute;
	top: 50%;
	right: clamp(-4rem, -6vw, -2rem);
	z-index: 1;
	width: min(58vw, 560px);
	pointer-events: none;
	transform: translateY(-52%);
}

.pillar-value-section__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.pillar-value-section__ring {
	fill: none;
}

.pillar-value-section__ring--outer,
.pillar-value-section__ring--middle {
	stroke: rgba(17, 17, 17, 0.14);
	stroke-width: 1;
}

.pillar-value-section__ring--inner {
	stroke: #111111;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.pillar-value-section__ring--outer {
	stroke-dasharray: 942;
	stroke-dashoffset: 942;
}

.pillar-value-section__ring--middle {
	stroke-dasharray: 660;
	stroke-dashoffset: 660;
}

.pillar-value-section__ring--inner {
	stroke-dasharray: 322;
	stroke-dashoffset: 322;
}

.pillar-value-section__arc-wrap {
	opacity: 0;
	transform-origin: 0 0;
}

.pillar-value-section__arc {
	fill: none;
	stroke: var(--pillar-yellow, #ffa800);
	stroke-width: 4.5;
	stroke-linecap: round;
	stroke-dasharray: 22 78;
	stroke-dashoffset: 0;
	transform: rotate(-90deg);
	transform-origin: 0 0;
}

.pillar-value-section__graphic-label {
	fill: #111111;
	font-family: var(--pillar-font, "Montserrat", sans-serif);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0;
}

.pillar-value-section__footer {
	position: relative;
	z-index: 2;
	margin-top: clamp(2rem, 4vh, 3rem);
}

.pillar-value-section__footer-line {
	width: 100%;
	height: 1px;
	margin-bottom: clamp(1rem, 2vh, 1.35rem);
	background: rgba(17, 17, 17, 0.14);
	transform-origin: left center;
	transform: scaleX(0);
}

.pillar-value-section__footer-meta {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.pillar-value-section__footer-label {
	margin: 0;
	font-size: clamp(0.65rem, 1vw, 0.75rem);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #111111;
}

.pillar-value-section__footer-accent {
	display: block;
	width: clamp(88px, 12vw, 130px);
	height: 4px;
	background: var(--pillar-yellow, #ffa800);
	border-radius: 2px;
}

.pillar-value-section.is-inview .pillar-value-section__ring--outer {
	animation: pillar-value-draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pillar-value-section.is-inview .pillar-value-section__ring--middle {
	animation: pillar-value-draw 1.25s cubic-bezier(0.4, 0, 0.2, 1) 0.12s forwards;
}

.pillar-value-section.is-inview .pillar-value-section__ring--inner {
	animation: pillar-value-draw 1s cubic-bezier(0.4, 0, 0.2, 1) 0.28s forwards;
}

.pillar-value-section.is-inview .pillar-value-section__arc-wrap {
	animation:
		pillar-value-arc-fade-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.75s forwards,
		pillar-value-arc-spin 22s linear 1.45s infinite;
}

.pillar-value-section.is-inview .pillar-value-section__graphic-label--create,
.pillar-value-section.is-inview .pillar-value-section__graphic-label--protect {
	animation: pillar-value-fade-in 0.55s ease forwards;
}

.pillar-value-section.is-inview .pillar-value-section__graphic-label--create {
	animation-delay: 0.95s;
}

.pillar-value-section.is-inview .pillar-value-section__graphic-label--protect {
	animation-delay: 1.08s;
}

.pillar-value-section.is-inview .pillar-value-section__footer-line {
	animation: pillar-value-line-grow 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes pillar-value-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes pillar-value-arc-fade-in {
	to {
		opacity: 1;
	}
}

@keyframes pillar-value-arc-spin {
	from {
		transform: rotate(0deg);
	}

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

@keyframes pillar-value-fade-in {
	to {
		opacity: 1;
	}
}

@keyframes pillar-value-line-grow {
	to {
		transform: scaleX(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pillar-value-section__ring,
	.pillar-value-section__arc-wrap,
	.pillar-value-section__graphic-label,
	.pillar-value-section__footer-line {
		animation: none !important;
		stroke-dashoffset: 0;
		opacity: 1;
		transform: none;
	}

	.pillar-value-section__arc {
		transform: rotate(-90deg);
	}
}

.wp-block-acf-value-section {
	margin: 0;
	max-width: none;
}

@media (max-width: 900px) {
	.pillar-value-section--has-graphic .pillar-value-section__body {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-bottom: clamp(200px, 34vw, 260px);
	}

	.pillar-value-section__graphic {
		top: auto;
		right: clamp(-2rem, -4vw, -1rem);
		bottom: 0;
		width: min(88vw, 420px);
		transform: translateY(0);
	}
}

@media (max-width: 640px) {
	.pillar-value-section__footer-line {
		transform: scaleX(1);
	}
}
