/* Xenishio Arc: global styles. Tokens only; no new hex values. */

html {
	scroll-padding-top: 96px;
}

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--ink);
}

/* Focus: visible 2px outline on every interactive element. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Lucide icon rendered as a mask so it inherits currentColor. */
.xa-icon {
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--xa-icon) center / contain no-repeat;
	mask: var(--xa-icon) center / contain no-repeat;
}

/* ( LABEL ) eyebrow. */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--coral-text);
}

.is-style-eyebrow::before {
	content: "( ";
}

.is-style-eyebrow::after {
	content: " )";
}

.is-style-dark-band .is-style-eyebrow,
.has-ink-background-color .is-style-eyebrow {
	color: var(--wp--preset--color--accent-bright);
}

/* Buttons. */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.wp-block-button.is-style-outline-ink .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--ink);
	padding: 13.5px 22.5px;
}

.wp-block-button.is-style-outline-ink .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-tint);
}

.wp-block-button.is-style-on-dark .wp-block-button__link {
	background: var(--wp--preset--color--accent-bright);
	color: var(--wp--preset--color--on-bright);
}

.wp-block-button.is-style-on-dark .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-bright-hover);
}

.wp-block-button.is-style-coral .wp-block-button__link {
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--on-bright);
}

.wp-block-button.is-style-coral .wp-block-button__link:hover {
	background: var(--wp--preset--color--coral-hover);
}

/* The one dark band per page: inset, 36px radius. */
.is-style-dark-band {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--dark-ink);
	border-radius: var(--wp--custom--radius--band);
	margin-inline: clamp(8px, 1.5vw, 20px);
}

/* Entrance motion: fadeUp when 15% visible. */
@keyframes xa-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.xa-js :is(.xa-reveal, [data-reveal]) {
	opacity: 0;
}

.xa-js :is(.xa-reveal, [data-reveal]).is-in {
	animation: xa-fade-up 0.8s var(--wp--custom--ease--out) both;
	animation-delay: calc(var(--xa-i, 0) * 0.12s);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.xa-js :is(.xa-reveal, [data-reveal]) {
		opacity: 1;
	}
}

/* Generic template content clears the fixed header. */
.xa-main--page {
	padding-top: var(--wp--custom--hero-pad-top);
	padding-bottom: var(--wp--custom--section-pad-y);
}

/* Sections butt against each other; spacing lives inside each section. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Heading lines that rise in (.xa-rise-lines, split by site.js). */
@keyframes xa-rise {
	from {
		transform: translateY(105%);
	}

	to {
		transform: none;
	}
}

.xa-js .xa-rise-lines:not(.is-split) {
	visibility: hidden;
}

.xa-rise {
	display: block;
	overflow: hidden;
	padding-bottom: 0.05em;
}

.xa-rise > span {
	display: block;
	animation: xa-rise 1.1s var(--wp--custom--ease--out) both;
}

/* Cursor spotlight (.xa-spot). */
.xa-spot.is-spot {
	background-image: radial-gradient(520px circle at var(--xa-spot-x) var(--xa-spot-y), color-mix(in srgb, var(--wp--preset--color--accent-bright) 22%, transparent), transparent 70%);
}

.xa-magnetic a,
.xa-magnetic button {
	transition: transform 0.35s var(--wp--custom--ease--out), background-color 0.25s, color 0.25s;
}

/* ---------- Section primitives shared by page blocks and patterns ---------- */
.xa-sec {
	padding: clamp(80px, 10vw, 150px) var(--wp--custom--section-pad-x);
}

.xa-sec--flush {
	padding-top: 0;
}

.xa-sec.alignfull,
.xa-sec.wp-block-group {
	margin-block: 0;
}

.xa-wrap {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
}

.xa-wrap--wide {
	max-width: 1440px;
}

.xa-wrap--narrow {
	max-width: 1100px;
}

.xa-dark {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--dark-ink);
}

.xa-darker {
	background: var(--wp--preset--color--on-bright);
	color: var(--wp--preset--color--dark-ink);
}

.xa-k {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent);
}

.xa-k--coral {
	color: var(--wp--preset--color--coral-text);
}

.xa-k--bright,
:is(.xa-dark, .xa-darker) .xa-k {
	color: var(--wp--preset--color--accent-bright);
}

.xa-h2 {
	margin: 0;
	font-size: clamp(40px, 5.4vw, 84px);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 0.95;
	text-wrap: balance;
}

.xa-h2--sm {
	font-size: clamp(40px, 5vw, 76px);
}

.xa-h2 .xa-hl,
.xa-hl {
	color: var(--wp--preset--color--accent);
}

:is(.xa-dark, .xa-darker) .xa-hl {
	color: var(--wp--preset--color--accent-bright);
}

.xa-lede {
	max-width: 480px;
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	text-wrap: pretty;
}

:is(.xa-dark, .xa-darker) .xa-lede {
	color: var(--wp--preset--color--dark-muted);
}

.xa-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}

.xa-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.xa-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.xa-stack--lg {
	gap: 22px;
}

.xa-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

/* Pill buttons as plain links/buttons (outside core/button). */
.xa-btn {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	padding: 17px 27px;
	border: 1.5px solid transparent;
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bg);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.xa-btn:hover,
.xa-btn:focus-visible {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.xa-btn--green {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.xa-btn--green:hover,
.xa-btn--green:focus-visible {
	background: var(--wp--preset--color--accent-hover);
}

.xa-btn--outline {
	background: transparent;
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
}

.xa-btn--outline:hover,
.xa-btn--outline:focus-visible {
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--ink);
}

.xa-btn--bright {
	background: var(--wp--preset--color--accent-bright);
	color: var(--wp--preset--color--on-bright);
	font-weight: 700;
}

.xa-btn--bright:hover,
.xa-btn--bright:focus-visible {
	background: var(--wp--preset--color--accent-bright-hover);
	color: var(--wp--preset--color--on-bright);
}

.xa-btn--ghost {
	background: transparent;
	border-color: var(--wp--preset--color--dark-line);
	color: var(--wp--preset--color--dark-ink);
	font-size: 15px;
	padding: 14px 22px;
}

.xa-btn--ghost:hover,
.xa-btn--ghost:focus-visible {
	border-color: var(--wp--preset--color--accent-bright);
	background: var(--wp--preset--color--dark-deep);
	color: var(--wp--preset--color--dark-ink);
}

.xa-btn--coral {
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--on-bright);
	font-weight: 700;
}

.xa-btn--coral:hover,
.xa-btn--coral:focus-visible {
	background: var(--wp--preset--color--coral-hover);
	color: var(--wp--preset--color--on-bright);
}

.xa-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

/* Breadcrumb trail (mono). */
.xa-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
}

.xa-crumbs a {
	color: inherit;
	text-decoration: none;
}

.xa-crumbs a:hover {
	color: var(--wp--preset--color--accent);
}

.xa-crumbs [aria-current] {
	color: var(--wp--preset--color--accent);
}

/* Entrance used in heroes. */
.xa-in {
	animation: xa-fade-up 0.9s var(--wp--custom--ease--out) both;
	animation-delay: calc(var(--xa-d, 0) * 0.1s);
}

/* Inline icon sized to text. */
.xa-ico {
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.18em;
	background: currentColor;
	-webkit-mask: var(--xa-icon) center / contain no-repeat;
	mask: var(--xa-icon) center / contain no-repeat;
}

/* 3D tilt cards (.xa-tilt, driven by site.js). */
.xa-tilt {
	transform-style: preserve-3d;
	transition: transform 0.3s var(--wp--custom--ease--out);
}

/* Patterns own their spacing. */
:is(.xa-sec, .xa-pat) :where(.is-layout-flow, .is-layout-constrained) > *,
:is(.xa-sec, .xa-pat).is-layout-flow > * {
	margin-block: 0;
}

/* Segmented pill control (xa/segmented). Works with site.js tabs. */
.xa-seg {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 6px;
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--preset--color--surface-2);
}

.xa-seg > button {
	padding: 12px 22px;
	border: 0;
	border-radius: var(--wp--custom--radius--full);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

.xa-seg > button[aria-selected="true"],
.xa-seg > button[aria-pressed="true"] {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bg);
}

.xa-swap {
	animation: xa-fade-up 0.5s var(--wp--custom--ease--out) both;
}

/* Check-bullet list items: <ul class="xa-checks">. */
.xa-checks {
	--chk-bg: var(--wp--preset--color--accent-soft);
	--chk-ink: var(--wp--preset--color--accent);
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(.xa-dark, .xa-darker) .xa-checks,
.xa-checks--dark {
	--chk-bg: var(--wp--preset--color--dark-chip);
	--chk-ink: var(--wp--preset--color--accent-bright);
}

.xa-checks > li {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: center;
}

.xa-checks > li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--chk-bg);
}

.xa-checks > li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	background: var(--chk-ink);
	-webkit-mask: url("../icons/check.svg") center / contain no-repeat;
	mask: url("../icons/check.svg") center / contain no-repeat;
}

/* core/button variants used by page patterns. */
.xa-btn-go .wp-block-button__link {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 18px 28px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-size: 16px;
	font-weight: 600;
	transition: gap 0.25s var(--wp--custom--ease--out), background-color 0.25s;
}

.xa-btn-go .wp-block-button__link::after {
	content: "→";
}

.xa-btn-go .wp-block-button__link:hover {
	gap: 18px;
	background: var(--wp--preset--color--accent-hover);
	color: var(--wp--preset--color--white);
}

.xa-btn-sweep .wp-block-button__link {
	padding: 17px 27px;
	border: 1.5px solid var(--wp--preset--color--ink);
	background: linear-gradient(var(--wp--preset--color--ink), var(--wp--preset--color--ink)) no-repeat left / 0% 100%;
	color: var(--wp--preset--color--ink);
	font-size: 16px;
	font-weight: 600;
	transition: background-size 0.45s var(--wp--custom--ease--out), color 0.3s;
}

.xa-btn-sweep .wp-block-button__link:hover,
.xa-btn-sweep .wp-block-button__link:focus-visible {
	background-size: 100% 100%;
	color: var(--wp--preset--color--bg);
}

.xa-btn-circle .wp-block-button__link {
	display: flex;
	width: 160px;
	height: 160px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.xa-btn-circle .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-hover);
	color: var(--wp--preset--color--white);
}


/* Case-study card themes (xa_case "card theme" meta): bg / stripe / ink / text-on. */
.xa-ct {
	--ct-bg: var(--wp--preset--color--accent);
	--ct-line: color-mix(in srgb, var(--wp--preset--color--white) 14%, transparent);
	--ct-ink: var(--wp--preset--color--accent-soft);
	--ct-on: var(--wp--preset--color--dark-ink);
}

.xa-ct--coral {
	--ct-bg: var(--wp--preset--color--coral);
	--ct-line: color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent);
	--ct-ink: var(--wp--preset--color--ink);
	--ct-on: var(--wp--preset--color--ink);
}

.xa-ct--soft {
	--ct-bg: var(--wp--preset--color--accent-soft);
	--ct-line: color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent);
	--ct-ink: var(--wp--preset--color--accent);
	--ct-on: var(--wp--preset--color--ink);
}

.xa-ct--ink {
	--ct-bg: var(--wp--preset--color--ink);
	--ct-line: var(--wp--preset--color--dark-surface-2);
	--ct-ink: var(--wp--preset--color--dark-muted);
	--ct-on: var(--wp--preset--color--dark-ink);
}

.xa-ct--pale {
	--ct-bg: var(--wp--preset--color--dark-ink);
	--ct-line: color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent);
	--ct-ink: var(--wp--preset--color--muted);
	--ct-on: var(--wp--preset--color--ink);
}

.xa-ct--dark {
	--ct-bg: var(--wp--preset--color--dark-deep);
	--ct-line: var(--wp--preset--color--dark-line);
	--ct-ink: var(--wp--preset--color--dark-muted);
	--ct-on: var(--wp--preset--color--dark-ink);
}

.xa-ct--gold {
	--ct-bg: var(--wp--preset--color--gold-soft);
	--ct-line: color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent);
	--ct-ink: var(--wp--preset--color--ink);
	--ct-on: var(--wp--preset--color--ink);
}

.xa-ct--bright {
	--ct-bg: var(--wp--preset--color--accent-bright);
	--ct-line: color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent);
	--ct-ink: var(--wp--preset--color--ink);
	--ct-on: var(--wp--preset--color--ink);
}

.xa-ct--coral-soft {
	--ct-bg: var(--wp--preset--color--coral-soft);
	--ct-line: color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent);
	--ct-ink: var(--wp--preset--color--coral-text);
	--ct-on: var(--wp--preset--color--ink);
}

.xa-ct--muted {
	--ct-bg: var(--wp--preset--color--surface-2);
	--ct-line: var(--wp--preset--color--line);
	--ct-ink: var(--wp--preset--color--muted);
	--ct-on: var(--wp--preset--color--ink);
}

/* Striped placeholder in a card theme (replaced by an image when set). */
.xa-ct-art {
	position: relative;
	overflow: hidden;
	background-color: var(--ct-bg);
	background-image: repeating-linear-gradient(135deg, var(--ct-line) 0 1px, transparent 1px 14px);
	background-size: cover;
	background-position: center;
}

/* Visually hidden, still read by assistive tech. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
