/**
 * Checkers Elementor Widgets - frontend styles.
 *
 * Direction strategy
 * ------------------
 * 1. Layout uses CSS logical properties (inline-start/end, margin-inline,
 *    padding-block, inset-inline) so nearly everything mirrors from the `dir`
 *    attribute alone.
 * 2. `.chk-rtl` / `.chk-ltr` classes are printed by PHP for the handful of
 *    physical values logical properties cannot express (icon rotation,
 *    gradient angles, background positions).
 * 3. `.chk-no-mirror` pins media columns to the same physical side in both
 *    directions, while keeping the text direction intact.
 */

.chk {
	/* Shape and colour follow the Pikiz theme on checkersinc.com: warm
	   #fff5f0 page tint, near-black headings, #696767 body copy, pill buttons.
	   Typeface and accent stay ours. */
	--chk-accent: #e8632b;
	--chk-accent-soft: #fbe4d8;
	--chk-heading: #0c0610;
	--chk-text: #696767;
	--chk-page-bg: #fff5f0;
	--chk-section-bg: transparent;
	--chk-card-bg: #ffffff;
	--chk-border: #f0e3da;
	--chk-radius: 16px;
	--chk-radius-sm: 12px;
	--chk-btn-radius: 100px;
	--chk-shadow: 0 18px 40px -28px rgba(20, 24, 31, 0.35);
	--chk-inner: 1200px;
	--chk-gap: 28px;
	--chk-font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--chk-lh: 1.8;

	box-sizing: border-box;
	background-color: var(--chk-section-bg);
	color: var(--chk-text);
	font-family: var(--chk-font);
	padding-block: clamp(64px, 9vw, 140px);
	padding-inline: 20px;
}

.chk *,
.chk *::before,
.chk *::after {
	box-sizing: border-box;
}

/* Arabic typography preset. Falls back through common Arabic webfonts to the
   system Arabic UI face, so nothing is fetched from a third-party host. */
.chk-font-ar {
	--chk-font: "Tajawal", "Cairo", "Almarai", "Noto Kufi Arabic", "Segoe UI", "Dubai", "Geeza Pro", system-ui, sans-serif;
	--chk-lh: 1.9;
}

.chk-font-ar .chk-title,
.chk-font-ar .chk-eyebrow {
	letter-spacing: 0;
}

.chk-inner {
	margin-inline: auto;
	max-inline-size: var(--chk-inner);
	inline-size: 100%;
}

.chk img {
	max-inline-size: 100%;
	block-size: auto;
	display: block;
}

/* :where() keeps this reset at the specificity of `.chk` alone, so it still
   beats a theme's `ul, ol` rules but never outranks the component rules below
   (a plain `.chk ul` selector was silently zeroing their margins). */
.chk :where(ul, ol) {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chk :where(p) {
	margin: 0;
	color: var(--chk-text);
	font-size: 16px;
	line-height: var(--chk-lh);
}

/* ------------------------------------------------------------------ *
 * Section head
 * ------------------------------------------------------------------ */

.chk-head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-block-end: 40px;
}

.chk-head--center {
	align-items: center;
	text-align: center;
	margin-inline: auto;
	max-inline-size: 780px;
}

.chk-head--start {
	align-items: flex-start;
	text-align: start;
}

.chk-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--chk-eyebrow-color, var(--chk-accent));
	font-size: var(--chk-eyebrow-size, 12px);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* Small filled square marker before the label. */
.chk-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	inline-size: var(--chk-eyebrow-square, 0.75em);
	block-size: var(--chk-eyebrow-square, 0.75em);
	background: currentColor;
}

.chk-no-square .chk-eyebrow::before {
	display: none;
}

.chk-title {
	margin: 0;
	color: var(--chk-heading);
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.chk-head--center .chk-title {
	position: relative;
	padding-block-end: 18px;
}

.chk-head--center .chk-title::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	inline-size: var(--chk-rule-width, 54px);
	block-size: 3px;
	border-radius: 3px;
	background: var(--chk-accent);
}

.chk-no-rule .chk-head--center .chk-title {
	padding-block-end: 0;
}

.chk-no-rule .chk-head--center .chk-title::after {
	display: none;
}

.chk-rtl .chk-head--center .chk-title::after {
	transform: translateX(50%);
}

.chk-subtitle {
	max-inline-size: 62ch;
	font-size: 16px;
}

/* ------------------------------------------------------------------ *
 * Scroll text fill
 *
 * The copy is painted with a gradient clipped to the glyphs: everything before
 * --chk-fill-stop is inked, everything after stays muted. JavaScript moves the
 * stop as the section travels up the viewport. The stop defaults to 100%, so
 * with no JavaScript the text is simply fully inked.
 * ------------------------------------------------------------------ */

.chk-fill {
	/* Body copy by default; headings override the ink below. */
	--chk-fill-stop: 100%;
	--chk-fill-ink: var(--chk-text);
}

.chk-title.chk-fill,
.chk-panel__title.chk-fill,
.chk-item__title.chk-fill,
.chk-card__title.chk-fill,
.chk-step__title.chk-fill {
	--chk-fill-ink: var(--chk-heading);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
	.chk-fill-on .chk-fill {
		background-image: linear-gradient(
			var(--chk-fill-angle, 104deg),
			var(--chk-fill-ink, currentColor) 0%,
			var(--chk-fill-ink, currentColor) var(--chk-fill-stop),
			var(--chk-fill-muted, #ded5d0) calc(var(--chk-fill-stop) + var(--chk-fill-feather, 0%)),
			var(--chk-fill-muted, #ded5d0) 100%
		);
		background-clip: text;
		-webkit-background-clip: text;
		color: transparent;
		-webkit-text-fill-color: transparent;
		/* Repaint smoothly between rAF updates. */
		transition: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chk-fill-on .chk-fill {
		--chk-fill-stop: 100%;
	}
}

/* ------------------------------------------------------------------ *
 * Entrance animations (eyebrow, title)
 *
 * The hidden state is scoped to .chk-reveal, a class only JavaScript adds, so
 * with scripting off nothing is ever hidden. The section's own in-view class
 * releases the animation.
 * ------------------------------------------------------------------ */

.chk-enter {
	transition:
		opacity var(--chk-enter-dur, 0.8s) ease var(--chk-enter-delay, 0s),
		transform var(--chk-enter-dur, 0.8s) cubic-bezier(0.22, 0.68, 0.32, 1) var(--chk-enter-delay, 0s),
		filter var(--chk-enter-dur, 0.8s) ease var(--chk-enter-delay, 0s),
		letter-spacing var(--chk-enter-dur, 0.8s) ease var(--chk-enter-delay, 0s),
		clip-path var(--chk-enter-dur, 0.8s) cubic-bezier(0.22, 0.68, 0.32, 1) var(--chk-enter-delay, 0s);
}

.chk-reveal .chk-enter {
	opacity: 0;
}

.chk-reveal .chk-enter--up {
	transform: translateY(26px);
}

.chk-reveal .chk-enter--down {
	transform: translateY(-26px);
}

/* Logical slide: "start" comes from the left in LTR and the right in RTL. */
.chk-reveal.chk-ltr .chk-enter--start {
	transform: translateX(-34px);
}

.chk-reveal.chk-rtl .chk-enter--start {
	transform: translateX(34px);
}

.chk-reveal.chk-ltr .chk-enter--end {
	transform: translateX(34px);
}

.chk-reveal.chk-rtl .chk-enter--end {
	transform: translateX(-34px);
}

.chk-reveal .chk-enter--zoom {
	transform: scale(0.9);
}

.chk-reveal .chk-enter--blur {
	filter: blur(9px);
}

.chk-reveal .chk-enter--wipe {
	opacity: 1;
	clip-path: inset(0 100% 0 0);
}

.chk-rtl.chk-reveal .chk-enter--wipe {
	clip-path: inset(0 0 0 100%);
}

.chk-reveal .chk-enter--spacing {
	letter-spacing: 0.34em;
}

.chk-reveal.is-visible .chk-enter {
	opacity: 1;
	transform: none;
	filter: none;
	clip-path: inset(0 0 0 0);
}

.chk-reveal.is-visible .chk-enter--spacing {
	letter-spacing: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.chk-reveal .chk-enter {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		clip-path: none !important;
		letter-spacing: inherit !important;
		transition: none !important;
	}
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

.chk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-block-start: 30px;
}

.chk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 17px 36px;
	border-radius: var(--chk-btn-radius);
	border: 1px solid transparent;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.chk-btn--primary {
	background: var(--chk-heading);
	color: #ffffff;
}

.chk-btn--primary:hover,
.chk-btn--primary:focus-visible {
	background: var(--chk-accent);
	color: #ffffff;
	transform: translateY(-2px);
}

.chk-btn--ghost {
	background: transparent;
	border-color: var(--chk-heading);
	color: var(--chk-heading);
}

.chk-btn--ghost:hover,
.chk-btn--ghost:focus-visible {
	background: var(--chk-heading);
	color: #ffffff;
	transform: translateY(-2px);
}

.chk a:focus-visible,
.chk .chk-btn:focus-visible {
	outline: 2px solid var(--chk-accent);
	outline-offset: 3px;
}

/* ------------------------------------------------------------------ *
 * Icons
 * ------------------------------------------------------------------ */

.chk-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--chk-icon-color, var(--chk-accent));
	flex: 0 0 auto;
	line-height: 1;
}

.chk-icon svg {
	inline-size: 1em;
	block-size: 1em;
	fill: currentColor;
}

/* Every size below reads --chk-icon-size / --chk-icon-box first, so the Style
   tab's Icons section scales them all, and falls back to the per-style
   default when the control is left empty. */
.chk-icon--plain {
	font-size: var(--chk-icon-size, 26px);
}

.chk-icon--circle {
	font-size: var(--chk-icon-size, 22px);
	inline-size: var(--chk-icon-box, 58px);
	block-size: var(--chk-icon-box, 58px);
	border-radius: 50%;
	background: var(--chk-icon-bg, var(--chk-accent-soft));
}

.chk-icon--tile {
	font-size: var(--chk-icon-size, 18px);
	inline-size: var(--chk-icon-box, 44px);
	block-size: var(--chk-icon-box, 44px);
	border-radius: var(--chk-radius-sm);
	background: var(--chk-icon-bg, var(--chk-card-bg));
	border: 1px solid var(--chk-border);
}

.chk-icon--lg {
	font-size: var(--chk-icon-size, 34px);
}

/* Directional glyphs (arrows, chevrons) must be flipped in RTL; symmetric
   glyphs must not be. Elementor stores the icon class, so target arrows only. */
.chk-rtl .chk-icon i[class*="arrow"],
.chk-rtl .chk-icon i[class*="chevron"],
.chk-rtl .chk-icon i[class*="caret"],
.chk-rtl .chk-icon svg.chk-flip {
	transform: scaleX(-1);
}

.chk-no-mirror .chk-icon i,
.chk-no-mirror .chk-icon svg {
	transform: none;
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */

.chk-hero {
	--chk-section-bg: var(--chk-page-bg);
	background: var(--chk-section-bg);
	position: relative;
	overflow: hidden;
}

.chk-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}

.chk-hero--media-start .chk-hero__media {
	order: -1;
}

.chk-hero__body {
	min-inline-size: 0;
}

.chk-hero .chk-head {
	margin-block-end: 0;
}

.chk-hero .chk-title {
	font-size: clamp(32px, 4.2vw, 52px);
}

.chk-hero__media img {
	inline-size: 100%;
	border-radius: var(--chk-radius);
}

.chk-featurerow {
	display: grid;
	gap: clamp(20px, 4vw, 48px);
	margin-block-start: clamp(36px, 6vw, 64px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chk-cols-1 .chk-featurerow {
	grid-template-columns: minmax(0, 1fr);
}

.chk-cols-3 .chk-featurerow {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chk-featurerow__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	text-align: start;
}

.chk-featurerow__title {
	margin: 0 0 6px;
	color: var(--chk-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

/* ------------------------------------------------------------------ *
 * About
 * ------------------------------------------------------------------ */

.chk-about {
	--chk-section-bg: var(--chk-page-bg);
}

.chk-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.chk-about--media-end .chk-about__media {
	order: 2;
}

.chk-about__media img {
	inline-size: 100%;
	border-radius: var(--chk-radius);
	box-shadow: var(--chk-shadow);
}

.chk-about .chk-head {
	margin-block-end: 34px;
}

.chk-pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
}

.chk-pillar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	text-align: start;
}

.chk-pillar__title {
	margin: 0;
	color: var(--chk-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

/* ------------------------------------------------------------------ *
 * Solutions panels
 * ------------------------------------------------------------------ */

.chk-solutions {
	--chk-section-bg: #ffffff;
}

.chk-panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
}

.chk-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: clamp(24px, 3vw, 38px);
	border: 1px solid var(--chk-border);
	border-radius: 18px;
	background: #fdf6f2;
	text-align: center;
}

.chk-panel__title {
	margin: 0;
	color: var(--chk-heading);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
}

.chk-panel__text {
	max-inline-size: 46ch;
}

.chk-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
	inline-size: 100%;
	margin-block-start: 20px;
}

.chk-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px;
	border: 1px solid var(--chk-border);
	border-radius: var(--chk-radius);
	background: var(--chk-card-bg);
	text-align: start;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chk-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--chk-shadow);
}

.chk-item__body {
	min-inline-size: 0;
}

.chk-item__title {
	margin: 0 0 6px;
	color: var(--chk-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.chk-item__text {
	font-size: 14px;
}

/* ------------------------------------------------------------------ *
 * Value cards
 * ------------------------------------------------------------------ */

.chk-value {
	--chk-section-bg: var(--chk-page-bg);
}

.chk-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.5vw, 28px);
}

.chk-card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: clamp(20px, 2.4vw, 28px);
	border: 1px solid var(--chk-border);
	border-radius: var(--chk-radius);
	background: var(--chk-card-bg);
	text-align: start;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chk-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--chk-shadow);
}

.chk-value--stacked .chk-card {
	flex-direction: column;
}

.chk-card__title {
	margin: 0 0 8px;
	color: var(--chk-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.chk-card__text {
	font-size: 14px;
}

/* ------------------------------------------------------------------ *
 * Process steps
 * ------------------------------------------------------------------ */

.chk-process {
	--chk-section-bg: #ffffff;
}

.chk-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 40px);
}

.chk-step {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	text-align: start;
	position: relative;
}

.chk-step__marker {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-inline: auto;
}

.chk-step__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 96px;
	block-size: 96px;
	border-radius: 50%;
	border: 1px solid var(--chk-border);
	background: var(--chk-card-bg);
	color: var(--chk-icon-color, var(--chk-accent));
	font-size: var(--chk-icon-size, 30px);
	position: relative;
	z-index: 2;
}

.chk-step__circle svg {
	inline-size: 1em;
	block-size: 1em;
	fill: currentColor;
}

.chk-step__badge {
	position: absolute;
	inset-block-end: -6px;
	inset-inline-start: -10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 30px;
	block-size: 30px;
	padding-inline: 6px;
	border-radius: 50%;
	background: var(--chk-accent);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	/* Digits stay LTR even inside an RTL section. */
	direction: ltr;
	unicode-bidi: isolate;
}

/* Dashed connector: drawn from the previous circle to this one. `inset-inline-end`
   plus a logical translate means the same rule serves LTR and RTL. */
.chk-process--connected .chk-step + .chk-step .chk-step__marker::before {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 100%;
	inline-size: clamp(60px, 22vw, 320px);
	block-size: 1px;
	background-image: linear-gradient(to right, var(--chk-border) 0 8px, transparent 8px 16px);
	background-size: 16px 1px;
	transform: translateY(-50%);
	z-index: 1;
}

.chk-step__title {
	margin: 0;
	color: var(--chk-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.chk-step__text {
	font-size: 14px;
}

/* ------------------------------------------------------------------ *
 * Contact CTA
 * ------------------------------------------------------------------ */

.chk-contact {
	--chk-section-bg: #ffffff;
	padding-inline: 0;
	padding-block: 0;
}

.chk-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: stretch;
}

.chk-contact--media-end .chk-contact__media {
	order: 2;
}

.chk-contact__media {
	min-block-size: 320px;
}

.chk-contact__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.chk-contact__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: clamp(32px, 5vw, 72px);
}

.chk-contact__body .chk-head {
	margin-block-end: 28px;
}

.chk-contacts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.5vw, 30px);
}

.chk-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	text-align: start;
}

.chk-contact__text {
	min-inline-size: 0;
}

.chk-contact__label {
	display: block;
	margin-block-end: 4px;
	color: var(--chk-heading);
	font-size: 14px;
	font-weight: 700;
}

.chk-contact__value {
	display: block;
	color: var(--chk-text);
	font-size: 14px;
	line-height: 1.65;
}

/* Phone numbers / emails keep LTR run order but stay aligned to the
   reading edge of an RTL block. */
.chk-rtl .chk-contact__value--ltr {
	text-align: right;
}

.chk-ltr .chk-contact__value--ltr {
	text-align: left;
}

.chk-contact__link {
	text-decoration: none;
	color: inherit;
}

.chk-contact__link:hover .chk-contact__value {
	color: var(--chk-accent);
}

/* ------------------------------------------------------------------ *
 * Keep media on the same physical side in RTL when mirroring is off
 * ------------------------------------------------------------------ */

.chk-rtl.chk-no-mirror .chk-hero__grid,
.chk-rtl.chk-no-mirror .chk-about__grid,
.chk-rtl.chk-no-mirror .chk-contact__grid {
	direction: ltr;
}

.chk-rtl.chk-no-mirror .chk-hero__grid > *,
.chk-rtl.chk-no-mirror .chk-about__grid > *,
.chk-rtl.chk-no-mirror .chk-contact__grid > * {
	direction: rtl;
}

/* ------------------------------------------------------------------ *
 * Hero banner background
 * ------------------------------------------------------------------ */

.chk-hero--banner {
	/* Set through the token so the Section Background control still wins. */
	--chk-section-bg: var(--chk-page-bg);

	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.chk-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center right;
	pointer-events: none;
}

/* Mirror only the artwork, never the content, so the subject sits opposite
   the headline in both directions. */
.chk-hero--flip-bg.chk-rtl .chk-hero__bg {
	transform: scaleX(-1);
}

/* Readability scrim: fades the banner towards the text (start) side. */
.chk-hero--scrim::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		to right,
		var(--chk-scrim, var(--chk-page-bg)) 0%,
		transparent var(--chk-scrim-stop, 62%)
	);
	pointer-events: none;
}

.chk-rtl.chk-hero--scrim::before {
	background: linear-gradient(
		to left,
		var(--chk-scrim, var(--chk-page-bg)) 0%,
		transparent var(--chk-scrim-stop, 62%)
	);
}

.chk-hero--solo .chk-hero__grid {
	grid-template-columns: minmax(0, 1fr);
}

.chk-hero--solo .chk-hero__body {
	max-inline-size: 640px;
}

/* Keep the feature row inside the faded half so it never lands on the artwork. */
.chk-hero--banner.chk-hero--solo .chk-featurerow {
	max-inline-size: 640px;
	margin-block-start: clamp(28px, 4vw, 44px);
}

.chk-hero__bg {
	opacity: var(--chk-bg-opacity, 1);
}

.chk-about--solo .chk-about__grid,
.chk-contact--solo .chk-contact__grid {
	grid-template-columns: minmax(0, 1fr);
}

.chk-contact--solo .chk-contact__body {
	margin-inline: auto;
	max-inline-size: var(--chk-inner);
	inline-size: 100%;
}

.chk-solutions--1up .chk-panels {
	grid-template-columns: minmax(0, 1fr);
	max-inline-size: 720px;
	margin-inline: auto;
}

/* ------------------------------------------------------------------ *
 * Social links (hero)
 *
 * Two layouts from one markup: a vertical rail pinned to the section edge
 * with sideways labels, or an inline row under the buttons. The rail is
 * printed last in the DOM so that when it stops being absolutely positioned
 * on phones it falls below the copy rather than above the headline.
 * ------------------------------------------------------------------ */

.chk-social {
	/* Transparent by default; the Rail Background control paints it. */
	--chk-social-bg: transparent;
	--chk-social-color: var(--chk-heading);
	--chk-social-size: 15px;
}

.chk-social__list {
	display: flex;
	align-items: center;
}

.chk-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--chk-social-color);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.chk-social__link:hover,
.chk-social__link:focus-visible {
	color: var(--chk-accent);
}

.chk-social__icon {
	font-size: var(--chk-social-size);
	color: inherit;
}

/* Rail ------------------------------------------------------------- */

.chk-social--rail {
	position: absolute;
	inset-block-start: 50%;
	translate: 0 -50%;
	z-index: 2;
	padding-block: 30px;
	padding-inline: 14px;
	background: var(--chk-social-bg);
}

.chk-social--rail.chk-social--start {
	inset-inline-start: 0;
}

.chk-social--rail.chk-social--end {
	inset-inline-end: 0;
}

.chk-social--rail .chk-social__list {
	flex-direction: column;
	gap: 38px;
}

.chk-social--rail .chk-social__link {
	flex-direction: column;
}

/* Sideways label, reading top to bottom, as in the reference. */
.chk-social--rail .chk-social__label {
	writing-mode: vertical-rl;
}

.chk-social--rail.chk-social--bare .chk-social__list {
	gap: 26px;
}

/* Reserve room so the rail never sits on top of the copy. */
.chk-hero--rail-start .chk-inner {
	padding-inline-start: 68px;
}

.chk-hero--rail-end .chk-inner {
	padding-inline-end: 68px;
}

/* Inline row ------------------------------------------------------- */

.chk-social--inline {
	margin-block-start: 26px;
}

.chk-social--inline .chk-social__list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 22px;
}

/* ------------------------------------------------------------------ *
 * Hero animated illustration
 *
 * Inline SVG + CSS keyframes. No animation runtime, no network request, and
 * the artwork inherits currentColor so it retints with the section.
 * ------------------------------------------------------------------ */

.chk-hero__anim {
	position: absolute;
	z-index: 0;
	inline-size: var(--chk-hero-anim-size, 260px);
	block-size: var(--chk-hero-anim-size, 260px);
	max-inline-size: 46%;
	color: var(--chk-hero-anim-color, var(--chk-accent));
	opacity: var(--chk-hero-anim-opacity, 1);
	pointer-events: none;
	/* Keeps the line art legible over a busy photographic banner. */
	filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.85));
}

.chk-hero__anim svg {
	inline-size: 100%;
	block-size: 100%;
	overflow: visible;
}

.chk-hero__anim--end {
	inset-inline-end: 6%;
}

.chk-hero__anim--start {
	inset-inline-start: 6%;
}

.chk-hero__anim--center {
	inset-inline-start: 50%;
	translate: -50% 0;
}

.chk-hero__anim--top {
	inset-block-start: 14%;
}

.chk-hero__anim--middle {
	inset-block-start: 50%;
	translate: 0 -50%;
}

.chk-hero__anim--center.chk-hero__anim--middle {
	translate: -50% -50%;
}

.chk-hero__anim--bottom {
	inset-block-end: 8%;
}

.chk-hero__anim--center.chk-hero__anim--bottom {
	translate: -50% 0;
}

/* Mirrored in RTL so the rocket climbs away from the Arabic headline instead
   of into it. `translate` stays a separate property, so positioning survives. */
.chk-rtl:not(.chk-no-mirror) .chk-hero__anim {
	transform: scaleX(-1);
}

/* Rocket ------------------------------------------------------------ */

.chk-rocket {
	animation: chk-rocket-fly var(--chk-hero-anim-dur, 5s) cubic-bezier(0.45, 0, 0.55, 1) infinite;
	transform-origin: center;
}

.chk-rocket__streak {
	opacity: 0.25;
	animation: chk-rocket-streak calc(var(--chk-hero-anim-dur, 5s) / 6) ease-in-out infinite;
}

.chk-rocket__streak--2 {
	animation-delay: calc(var(--chk-hero-anim-dur, 5s) / 18);
}

.chk-rocket__streak--3 {
	animation-delay: calc(var(--chk-hero-anim-dur, 5s) / 9);
}

@keyframes chk-rocket-fly {
	0% {
		transform: rotate(45deg) translateY(70%);
		opacity: 0;
	}
	14% {
		opacity: 1;
	}
	72% {
		transform: rotate(45deg) translateY(-72%);
		opacity: 1;
	}
	86%,
	100% {
		transform: rotate(45deg) translateY(-118%);
		opacity: 0;
	}
}

@keyframes chk-rocket-streak {
	0%,
	100% {
		opacity: 0.18;
		transform: translateY(0);
	}
	50% {
		opacity: 0.75;
		transform: translateY(7px);
	}
}

/* Orbit ------------------------------------------------------------- */

.chk-orbit__ring {
	transform-origin: 60px 60px;
	animation: chk-orbit-spin var(--chk-hero-anim-dur, 5s) linear infinite;
}

.chk-orbit__ring--2 {
	animation-duration: calc(var(--chk-hero-anim-dur, 5s) * 1.6);
	animation-direction: reverse;
}

@keyframes chk-orbit-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Signal pulse ------------------------------------------------------ */

.chk-pulse__ring {
	transform-origin: 60px 60px;
	opacity: 0;
	animation: chk-pulse-out var(--chk-hero-anim-dur, 5s) ease-out infinite;
}

.chk-pulse__ring--2 {
	animation-delay: calc(var(--chk-hero-anim-dur, 5s) / 3);
}

.chk-pulse__ring--3 {
	animation-delay: calc(var(--chk-hero-anim-dur, 5s) / 1.5);
}

@keyframes chk-pulse-out {
	0% {
		transform: scale(0.4);
		opacity: 0.9;
	}
	80%,
	100% {
		transform: scale(2.6);
		opacity: 0;
	}
}

/* ------------------------------------------------------------------ *
 * Icon animation
 *
 * The effect class only sets --chk-anim-name; the animation is applied by the
 * trigger selectors below. With the switch off, or with JavaScript disabled on
 * the in-view trigger, no animation is ever applied and icons render statically
 * at full opacity.
 * ------------------------------------------------------------------ */

.chk-anim .chk-icon > i,
.chk-anim .chk-icon > svg {
	display: inline-block;
	animation-duration: var(--chk-anim-dur, 2.6s);
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: none;
	transform-origin: center;
	will-change: transform;
}

.chk-anim-stagger .chk-icon > i,
.chk-anim-stagger .chk-icon > svg {
	animation-delay: calc(var(--chk-i, 0) * var(--chk-anim-step, 0.18s));
}

.chk-anim--float {
	--chk-anim-name: chk-float;
}

.chk-anim--pulse {
	--chk-anim-name: chk-pulse;
}

.chk-anim--beat {
	--chk-anim-name: chk-beat;
}

.chk-anim--spin {
	--chk-anim-name: chk-spin;
}

.chk-anim--swing {
	--chk-anim-name: chk-swing;
}

.chk-anim--shake {
	--chk-anim-name: chk-shake;
}

.chk-anim--glow {
	--chk-anim-name: chk-glow;
}

.chk-anim--pop {
	--chk-anim-name: chk-pop;
}

.chk-anim--spin .chk-icon > i,
.chk-anim--spin .chk-icon > svg {
	animation-timing-function: linear;
}

/* Pop plays once instead of looping. */
.chk-anim--pop .chk-icon > i,
.chk-anim--pop .chk-icon > svg {
	animation-iteration-count: 1;
}

/* Triggers */
.chk-anim-on-always .chk-icon > i,
.chk-anim-on-always .chk-icon > svg,
.chk-anim-on-view.is-anim .chk-icon > i,
.chk-anim-on-view.is-anim .chk-icon > svg,
.chk-anim-on-hover .chk-icon:hover > i,
.chk-anim-on-hover .chk-icon:hover > svg,
.chk-anim-on-hover li:hover .chk-icon > i,
.chk-anim-on-hover li:hover .chk-icon > svg,
.chk-anim-on-hover .chk-panel:hover .chk-icon > i,
.chk-anim-on-hover .chk-panel:hover .chk-icon > svg {
	animation-name: var(--chk-anim-name);
}

/* Rotation reads more naturally when it follows the reading direction. */
.chk-rtl.chk-anim--spin .chk-icon > i,
.chk-rtl.chk-anim--spin .chk-icon > svg,
.chk-rtl.chk-anim--swing .chk-icon > i,
.chk-rtl.chk-anim--swing .chk-icon > svg {
	animation-direction: reverse;
}

@keyframes chk-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-7px);
	}
}

@keyframes chk-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.14);
	}
}

@keyframes chk-beat {
	0%,
	60%,
	100% {
		transform: scale(1);
	}
	15% {
		transform: scale(1.2);
	}
	30% {
		transform: scale(0.96);
	}
	45% {
		transform: scale(1.12);
	}
}

@keyframes chk-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes chk-swing {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(11deg);
	}
	75% {
		transform: rotate(-11deg);
	}
}

@keyframes chk-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	20% {
		transform: translateX(-4px);
	}
	40% {
		transform: translateX(4px);
	}
	60% {
		transform: translateX(-3px);
	}
	80% {
		transform: translateX(3px);
	}
}

@keyframes chk-glow {
	0%,
	100% {
		filter: drop-shadow(0 0 0 rgba(232, 99, 43, 0));
		transform: scale(1);
	}
	50% {
		filter: drop-shadow(0 0 10px rgba(232, 99, 43, 0.55));
		transform: scale(1.05);
	}
}

@keyframes chk-pop {
	0% {
		transform: scale(0.4) rotate(-12deg);
		opacity: 0;
	}
	70% {
		transform: scale(1.12) rotate(4deg);
		opacity: 1;
	}
	100% {
		transform: scale(1) rotate(0deg);
		opacity: 1;
	}
}

/* ------------------------------------------------------------------ *
 * Editor placeholder for a hidden section
 * ------------------------------------------------------------------ */

.chk-hidden-note {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 22px;
	border: 1px dashed #cdb9ac;
	border-radius: 10px;
	background: repeating-linear-gradient(45deg, #ffffff, #ffffff 10px, #faf4f0 10px, #faf4f0 20px);
	color: #7a6a5f;
	font-size: 13px;
	line-height: 1.6;
	text-align: start;
}

.chk-hidden-note strong {
	color: #14181f;
	font-size: 14px;
}

/* ------------------------------------------------------------------ *
 * Motion
 * ------------------------------------------------------------------ */

.chk-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.chk-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.chk *,
	.chk *::before,
	.chk *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.chk-reveal {
		opacity: 1;
		transform: none;
	}

	.chk-anim .chk-icon > i,
	.chk-anim .chk-icon > svg {
		animation-name: none !important;
		transform: none !important;
		filter: none !important;
		opacity: 1 !important;
	}

	.chk-rocket,
	.chk-rocket__streak,
	.chk-orbit__ring,
	.chk-pulse__ring {
		animation: none !important;
		opacity: 1;
	}

	.chk-rocket {
		transform: rotate(45deg);
	}
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.chk-panels,
	.chk-cards,
	.chk-steps,
	.chk-contacts,
	.chk-pillars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.chk-process--connected .chk-step + .chk-step .chk-step__marker::before {
		display: none;
	}
}

@media (max-width: 767px) {
	.chk-hero__grid,
	.chk-about__grid,
	.chk-contact__grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.chk-hero--media-start .chk-hero__media,
	.chk-about--media-end .chk-about__media,
	.chk-contact--media-end .chk-contact__media {
		order: 0;
	}

	.chk-featurerow,
	.chk-panels,
	.chk-cards,
	.chk-steps,
	.chk-contacts,
	.chk-pillars {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.chk-rtl.chk-no-mirror .chk-hero__grid,
	.chk-rtl.chk-no-mirror .chk-about__grid,
	.chk-rtl.chk-no-mirror .chk-contact__grid {
		direction: rtl;
	}

	.chk-contact__media {
		min-block-size: 240px;
	}

	/* On phones the artwork drops behind the copy as a watermark, so the
	   headline keeps full contrast instead of competing with the image. */
	.chk-hero--banner {
		--chk-bg-opacity: 0.34;

		min-block-size: 0;
	}

	.chk-hero--banner .chk-hero__bg {
		background-position: bottom center;
	}

	.chk-hero--scrim::before,
	.chk-rtl.chk-hero--scrim::before {
		background: linear-gradient(
			to bottom,
			var(--chk-scrim, var(--chk-page-bg)) 0%,
			transparent 100%
		);
		opacity: 0.55;
	}

	.chk-hero--banner.chk-hero--solo .chk-featurerow {
		max-inline-size: none;
	}

	.chk-hero__anim {
		display: none;
	}

	.chk-social--rail {
		position: static;
		translate: none;
		margin-block-start: 30px;
		padding-inline: 0;
		background: transparent;
	}

	.chk-social--rail .chk-social__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 22px;
	}

	.chk-social--rail .chk-social__link {
		flex-direction: row;
	}

	.chk-social--rail .chk-social__label {
		writing-mode: horizontal-tb;
	}

	.chk-hero--rail-start .chk-inner,
	.chk-hero--rail-end .chk-inner {
		padding-inline: 0;
	}
}
