/**
 * ARC Creative Co. — theme styles
 *
 * Design direction (from the approved build document):
 *   Established national performance-marketing company with modern operating
 *   discipline. Confident whitespace, strong grid, modular proof sections,
 *   documentary case-study visuals, clear conversion paths.
 *   Avoid: generic stock photography, neon effects, over-animation, clutter.
 *
 * Colour contract — this is the part that is easy to get wrong:
 *   --primary       #FF1062  the exact brand pink. 3.63:1 on warm white, so it
 *                            is used ONLY for large display type, accents,
 *                            active states, data highlights, icons and rules.
 *                            It is AA-valid for normal text on the dark canvas
 *                            (5.05:1) — that is the one place it may set copy.
 *   --primary-ink   #C80047  5.63:1 on warm white. Links, small text, and any
 *                            button that puts white on pink (5.92:1).
 *
 * Do not "simplify" these into one token. #FF1062 on white for body text fails
 * WCAG AA, and white-on-#FF1062 buttons fail at 3.82:1. The split is the fix.
 */

/* --------------------------------------------------------------- reset */

/*
 * Global border-box. Under the default content-box, a width:100% card plus
 * padding overflows its column, and the whole page scrolls sideways on a
 * phone. That exact bug shipped on Xcelerated and had to be found the hard
 * way. It costs one rule to never have it.
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Media should never be able to push the viewport wider than the screen. */
img,
svg,
video,
canvas,
iframe {
	max-width: 100%;
}

/*
 * height:auto belongs ONLY on things whose height derives from their own
 * intrinsic ratio — images and video. It does NOT belong on an iframe.
 *
 * Third-party embeds set their own height, from script, after load: Calendly
 * injects an iframe and sizes it to its container. `iframe { height: auto }`
 * overrode that and collapsed the booking widget to its 150px default inside an
 * 830px box — the booking page looked broken while every markup check passed,
 * because the markup WAS correct. A reset aimed at images silently broke a
 * revenue path.
 */
img,
video,
canvas {
	height: auto;
}

/* --------------------------------------------------------------- base */

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

/*
 * "Strong numeric treatment" from the design direction. Tabular figures keep
 * metrics from shifting width digit to digit — the difference between a stat
 * row that looks engineered and one that looks like it wobbles.
 */
.metric-value,
.stat-value,
table,
time,
.tabular {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* --------------------------------------------------------- focus rings */

/*
 * A visible focus ring on every interactive element. Keyboard users are not
 * an edge case, and the browser default disappears against the brand pink.
 */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-ink);
	outline-offset: 2px;
	border-radius: var(--wp--custom--radius--sm);
}

/* On the dark canvas the ink pink is too dark to read as a ring — brand pink
   is 5.05:1 there and reads clearly. */
.is-dark-section :where(a, button, input, select, textarea, summary):focus-visible {
	outline-color: var(--wp--preset--color--primary);
}

/* ------------------------------------------------------ dark sections */

/*
 * A dark canvas needs its link colour rewired: --primary-ink (#C80047) drops to
 * ~1.7:1 on #0E0E10 and is effectively invisible. Brand pink is AA here.
 */
.is-dark-section {
	color: #E8E8EC;
}

.is-dark-section :where(h1, h2, h3, h4) {
	color: #FFFFFF;
}

.is-dark-section a:not(.wp-element-button) {
	color: var(--wp--preset--color--primary);
}

.is-dark-section .has-muted-color {
	color: #A9A9B2 !important;
}

/* --------------------------------------------------------- eyebrow */

/*
 * The compact label from the design direction — every major section opens with
 * one. Uppercase with wide tracking, never large enough to compete with the
 * heading beneath it.
 */
.eyebrow {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-ink);
}

.is-dark-section .eyebrow {
	color: var(--wp--preset--color--primary);
}

/* --------------------------------------------------- responsive stacking */

/*
 * WordPress columns do not stack below the editor's own breakpoint unless the
 * block opts in, and a hand-authored pattern often does not. Forcing it here
 * means a new pattern cannot ship a desktop-only layout by omission — which is
 * precisely how Xcelerated ended up "not responsive at all".
 */
@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-direction: column !important;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}

	/* A CTA that is hard to hit is not a CTA. */
	.wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.wp-block-buttons .wp-block-button__link {
		display: block;
		text-align: center;
	}
}

/* --------------------------------------------------------------- header */

/*
 * NOTE: no backdrop-filter here, deliberately.
 *
 * A backdrop-filter (or transform, or will-change) on the header creates a
 * containing block for position:fixed descendants. WordPress's mobile nav
 * overlay is position:fixed — so the "full screen" menu gets trapped inside
 * the header's box and renders as a ~94px letterbox. That bug cost real time
 * on Xcelerated. If a frosted header is ever wanted, the overlay must move
 * out of this subtree first.
 */
.site-header {
	position: relative;
	z-index: 10;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.site-header__inner {
	gap: var(--wp--preset--spacing--50);
}

/* The site-title is a fallback only — it shows when no logo is set, so a fresh
   install is never headless. Once the logo exists, hide the duplicate. */
.wp-block-site-logo + .site-header__fallback-title {
	display: none;
}

.site-nav .wp-block-navigation-item__content {
	font-weight: 500;
	text-decoration: none;
	color: var(--wp--preset--color--foreground);
}

.site-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary-ink);
}

/* Active state uses the exact brand pink — this is a "data highlight"/active
   use, not body copy, so #FF1062 is within its contrast budget. */
.site-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary-ink);
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--wp--preset--color--primary);
}

/*
 * The CTA exists twice: a real button for desktop, and a nav-link inside the
 * mobile overlay (a wp:navigation cannot contain a button block). Show exactly
 * one at a time — 600px is core's own overlay breakpoint.
 *
 * Specificity note: core ships
 *     .wp-block-navigation .wp-block-navigation-item { display: flex }
 * at (0,2,0). A bare `.nav-cta` is (0,1,0) and loses, so the CTA rendered
 * TWICE on desktop — once in the nav, once as the button. `.site-nav li.nav-cta`
 * is (0,2,1) and wins outright rather than relying on load order.
 */
.site-nav li.nav-cta {
	display: none;
}

@media (max-width: 599px) {
	/* .site-header__cta alone (0,1,0) ties core's .wp-block-buttons{display:flex}
	   and loses on load order, leaving the hamburger AND the button on screen.
	   Scoping to .site-header takes it to (0,2,0). */
	.site-header .site-header__cta {
		display: none;
	}

	.site-nav li.nav-cta {
		display: flex;
	}

	.site-nav li.nav-cta .wp-block-navigation-item__content {
		color: var(--wp--preset--color--primary-ink);
		font-weight: 700;
	}
}

/* --------------------------------------------------------------- footer */

.footer-logo {
	margin: 0 0 var(--wp--preset--spacing--50);
}

.footer-blurb {
	color: #A9A9B2;
	max-width: 34ch;
}

.footer-heading {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: #FFFFFF;
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-list li {
	margin-bottom: var(--wp--preset--spacing--30);
}

/*
 * #D6D6DB, not the brand pink and not --muted.
 *
 * theme.json sets the global link colour to --primary-ink (#C80047), which is
 * ~1.7:1 on this canvas — effectively invisible. A footer of pink links would
 * also be visual noise. Zinc reads as AA (13.3:1) and stays quiet.
 */
.footer-list a {
	color: #D6D6DB;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
}

.footer-list a:hover {
	color: #FFFFFF;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-rule {
	margin: var(--wp--preset--spacing--80) 0 var(--wp--preset--spacing--50);
	border: 0;
	height: 1px;
}

.footer-legal {
	color: #8E8E98;
	margin: 0;
}

/* ============================================================== patterns */

/* --------------------------------------------------------------- hero */

/*
 * Dark canvas hero.
 *
 * The first version was warm-white text-on-a-page and read as a competent
 * template rather than an agency that sells performance. The fix is not
 * decoration — it is contrast and rhythm: the page now opens dark, breathes
 * warm white through the middle, and closes dark. The eye gets structure.
 */
.arc-hero {
	position: relative;
	overflow: hidden;
	padding-top: var(--wp--preset--spacing--90);
	padding-bottom: var(--wp--preset--spacing--90);
}

/*
 * "Strong grid" from the design direction, made literal — a faint engineering
 * grid behind the hero. It reads as measured and technical rather than
 * decorative, and it is the cheapest honest way to look data-literate without
 * inventing a chart. Masked so it fades out rather than ending on a hard line.
 */
.arc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(120% 90% at 30% 40%, #000 40%, transparent 78%);
	mask-image: radial-gradient(120% 90% at 30% 40%, #000 40%, transparent 78%);
	pointer-events: none;
}

.arc-hero__inner {
	position: relative;
	z-index: 1;
}

/*
 * Editorial scale. Tighter tracking and leading than the global heading style —
 * at display size the default spacing reads loose and web-templatey. This is
 * the single biggest difference between "big text" and "editorial".
 */
.arc-hero__title {
	max-width: 15ch;
	line-height: 0.98;
	letter-spacing: -0.035em;
}

.arc-hero__lede {
	max-width: 52ch;
	margin-top: var(--wp--preset--spacing--50);
	color: #A9A9B2;
}

/* ------------------------------------------------- growth system schematic */

/*
 * Deliberately carries NO numbers. See the note in hero.php: a metric here
 * would read as a client result, and inventing one is precisely what the
 * claims rule forbids. This argues architecture, which is what ARC sells.
 */
.arc-system {
	/* Sits below the centred hero stack now, not beside it. Capped and centred
	   so the diagram keeps a sane aspect instead of stretching to 1320px. */
	margin: var(--wp--preset--spacing--90) auto 0;
	max-width: 940px;
	position: relative;
	z-index: 1;
}

.arc-system__stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1.15fr) 46px minmax(0, 1fr);
	align-items: center;
	gap: 0;
}

.arc-system__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.arc-system__label {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6E6E78;
	margin-bottom: 4px;
}

.arc-system__label--core {
	color: var(--wp--preset--color--primary);
}

/* An input channel: hairline, quiet, deliberately unremarkable — these are the
   parts most agencies sell in isolation. */
.arc-system__node {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #C9C9D2;
	background: rgba(255, 255, 255, 0.02);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arc-system__node--out {
	border-color: rgba(255, 16, 98, 0.5);
	color: #FFFFFF;
	background: rgba(255, 16, 98, 0.08);
	font-weight: 600;
}

/* The core: the only filled block. The whole point of the graphic is that the
   middle is where the value is. */
.arc-system__core {
	border: 1px solid rgba(255, 16, 98, 0.42);
	border-radius: 10px;
	padding: 14px;
	background: linear-gradient(180deg, rgba(255, 16, 98, 0.12), rgba(255, 16, 98, 0.03));
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.arc-system__core-row {
	font-size: 0.75rem;
	font-weight: 600;
	color: #FFFFFF;
	padding: 7px 9px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.06);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arc-system__wires svg {
	display: block;
	width: 100%;
	height: 260px;
}

.arc-system__wires path {
	fill: none;
	stroke: rgba(255, 255, 255, 0.22);
	stroke-width: 1.25;
}

.arc-system__wires path.is-live {
	stroke: var(--wp--preset--color--primary);
	stroke-width: 1.75;
}

/*
 * One restrained motion cue on the output wires only — the doc bans
 * "over-animation", so this is a slow dash crawl, not a light show. It reads as
 * signal flowing out of the system. Honoured prefers-reduced-motion below.
 */
.arc-system__wires path.is-live {
	stroke-dasharray: 5 7;
	animation: arc-flow 2.4s linear infinite;
}

@keyframes arc-flow {
	to { stroke-dashoffset: -24; }
}

.arc-system__cap {
	margin: var(--wp--preset--spacing--50) auto 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #6E6E78;
	max-width: 56ch;
	text-align: center;
}

/*
 * Below the columns breakpoint the schematic would squash into unreadable
 * slivers. Hide it rather than ship a broken diagram: the hero copy carries the
 * message on its own, and a mangled graphic is worse than none.
 */
@media (max-width: 781px) {
	.arc-system {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.arc-system__wires path.is-live {
		animation: none;
	}
}

/*
 * The gated proof line. It renders as an empty <p> when the claim is not
 * verified, so :empty collapses it — otherwise an unverified claim leaves a
 * mysterious gap that looks like a broken template.
 */
.arc-proof-line {
	color: var(--wp--preset--color--muted);
	border-left: 2px solid var(--wp--preset--color--primary);
	padding-left: var(--wp--preset--spacing--40);
	max-width: 56ch;
}

.arc-proof-line:empty {
	display: none;
}

/* -------------------------------------------------------- authority strip */

.arc-authority__rail {
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
}

.arc-authority__item {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--foreground);
	white-space: nowrap;
}

/* A hairline in the brand pink — a graphic use, so #FF1062 is in budget. */
.arc-authority__item::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 2px;
	margin-right: 0.6em;
	vertical-align: middle;
	background: var(--wp--preset--color--primary);
}

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

.arc-card-grid {
	gap: var(--wp--preset--spacing--50);
}

.arc-case-card {
	height: 100%;
	background: var(--wp--preset--color--surface);
	transition: border-color var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.arc-case-card:hover {
	border-color: var(--wp--preset--color--primary);
}

.arc-case-card h3 a,
.arc-case-card h2 a {
	color: inherit;
	text-decoration: none;
}

.arc-case-card h3 a:hover,
.arc-case-card h2 a:hover {
	color: var(--wp--preset--color--primary-ink);
}

.arc-case-card__services {
	margin-top: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

/* -------------------------------------------------------------- engines */

.arc-engines__head {
	text-align: center;
}

.arc-engines__head .eyebrow {
	/* the eyebrow is a block with a bottom margin; centring needs the text, not
	   the box, since it has no width of its own */
	text-align: center;
}

.arc-engines__title {
	letter-spacing: -0.03em;
}

/*
 * An even 3 x 2, declared — not auto-fit.
 *
 * The dividers are the container's own background showing through a 1px gap,
 * so six cells read as one module. Six separately-bordered cards produce
 * doubled 2px dividers and a floaty, templated look; this produces a crisp
 * single hairline and an object with edges.
 */
.arc-engines__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin: var(--wp--preset--spacing--80) auto 0;
	max-width: 1180px;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
}

.arc-engine {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) var(--wp--preset--spacing--80);
	background: var(--wp--preset--color--surface);
	text-decoration: none;
	color: inherit;
	isolation: isolate;
	transition: background var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

/*
 * The pink wash sweeps up from the bottom on hover rather than snapping on.
 * Kept to a 4% tint — the doc bans "excessive neon effects", and this brand
 * pink at any real opacity would drown the text it sits under.
 */
.arc-engine::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(255, 16, 98, 0) 30%, rgba(255, 16, 98, 0.05) 100%);
	opacity: 0;
	transition: opacity var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.arc-engine:hover::before,
.arc-engine:focus-visible::before {
	opacity: 1;
}

/* A pink rule that grows across the top edge on hover — the "active state" use
   the doc reserves the exact brand colour for. */
.arc-engine::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 2px;
	width: 100%;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 260ms var(--wp--custom--ease--out);
}

.arc-engine:hover::after,
.arc-engine:focus-visible::after {
	transform: scaleX(1);
}

/*
 * The index number. Large, tabular, and set in the heading face — this is the
 * "strong numeric treatment" the design direction asks for, and the one place
 * on a claims-gated site where a number is safe: it counts engines, it does not
 * claim a result.
 */
.arc-engine__index {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--primary);
	font-variant-numeric: tabular-nums;
	display: flex;
	align-items: center;
	gap: 0.75em;
}

/* A hairline trailing the number, so the eye reads across the cell. */
.arc-engine__index::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--wp--preset--color--line);
	transition: background var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.arc-engine:hover .arc-engine__index::after {
	background: rgba(255, 16, 98, 0.3);
}

.arc-engine__title {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: var(--wp--custom--tracking--snug);
	color: var(--wp--preset--color--foreground);
	transition: color var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.arc-engine:hover .arc-engine__title {
	color: var(--wp--preset--color--primary-ink);
}

.arc-engine__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* The arrow sits at the bottom of the cell regardless of copy length, so the
   six cells share a baseline instead of ragging. */
.arc-engine__go {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--50);
	display: block;
	line-height: 0;
}

.arc-engine__go svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--wp--preset--color--line-strong);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke var(--wp--custom--duration--base) var(--wp--custom--ease--out),
	            transform 260ms var(--wp--custom--ease--out);
}

.arc-engine:hover .arc-engine__go svg,
.arc-engine:focus-visible .arc-engine__go svg {
	stroke: var(--wp--preset--color--primary);
	transform: translateX(5px);
}

/* The whole cell is the link, so the ring belongs on the cell — and inset, or
   it would be clipped by the module's overflow:hidden. */
.arc-engine:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary-ink);
}

/* 3 -> 2 -> 1. Explicit steps; nothing is left to auto-fit's judgement. */
@media (max-width: 1023px) {
	.arc-engines__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 639px) {
	.arc-engines__grid {
		grid-template-columns: 1fr;
	}

	.arc-engine {
		padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	}
}

@media (prefers-reduced-motion: reduce) {
	.arc-engine,
	.arc-engine::before,
	.arc-engine::after,
	.arc-engine__go svg,
	.arc-engine__title {
		transition: none;
	}
}

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

.arc-steps {
	display: grid;
	gap: 0;
}

.arc-step {
	align-items: flex-start;
	padding: var(--wp--preset--spacing--60) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.arc-step:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/*
 * The step number in brand pink at display scale. This is the "strong numeric
 * treatment" the design direction asks for, and a large-text use of #FF1062 —
 * 5.05:1 on this canvas, which clears AA outright.
 */
.arc-step__num {
	flex: 0 0 auto;
	min-width: 2.2ch;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	font-variant-numeric: tabular-nums;
}

.arc-step__body {
	flex: 1 1 auto;
}

.arc-step__text {
	color: #A9A9B2;
	margin-top: var(--wp--preset--spacing--30);
	max-width: 68ch;
}

/* ------------------------------------------------------- industry list */

.arc-industry-list__item {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.arc-industry-list__item a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--wp--preset--spacing--50) 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--snug);
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

.arc-industry-list__item a::after {
	content: "→";
	color: var(--wp--preset--color--primary);
	transition: transform var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.arc-industry-list__item a:hover {
	color: var(--wp--preset--color--primary-ink);
}

.arc-industry-list__item a:hover::after {
	transform: translateX(4px);
}

/* ----------------------------------------------------------- credentials */

.arc-credential {
	margin: var(--wp--preset--spacing--40) 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.arc-credential:empty {
	display: none;
}

/* ------------------------------------------------------ Calendly embeds */

/*
 * /connect/ and /network/ are live booking pages. Their Calendly markup is
 * preserved byte-for-byte — this styles AROUND the widget and never touches it.
 *
 * The widget renders in an iframe: its internals cannot be styled from here at
 * all (cross-origin), and trying would silently do nothing. Colours inside the
 * booking UI come from Calendly's own data-url parameters, which is why
 * /connect/ already carries text_color=ff0e63&primary_color=ff0e63.
 *
 * The one real risk is the inline min-width:320px — on a 320px viewport with
 * page padding, that overflows. The wrapper below lets the widget shrink
 * without editing the embed.
 */
.arc-booking {
	padding: var(--wp--preset--spacing--70) 0 var(--wp--preset--spacing--90);
}

.arc-booking__frame {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--30);
	overflow: hidden;
}

/*
 * Override ONLY the inline min-width — the one thing that can overflow a 320px
 * phone. The inline height stays exactly as Calendly set it.
 */
.arc-booking .calendly-inline-widget {
	min-width: 0 !important;
	width: 100%;
}

/* The injected iframe must fill the container Calendly sized. Without this it
   inherits whatever the cascade last said about iframes. */
.arc-booking .calendly-inline-widget iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (max-width: 480px) {
	.arc-booking__frame {
		padding: 0;
		border: 0;
	}
}

/* ==================================================== section rhythm */

/*
 * One centred head for every section.
 *
 * The first pass used asymmetric 42/58 columns — a short heading stranded in a
 * narrow left column against a wall of body copy on the right. Each section was
 * individually defensible and the page as a whole read lopsided, because the
 * optical weight sat left in every single band with nothing balancing it.
 *
 * A single centred measure gives the page one spine. It also lets the modules
 * below (the engines grid, the step rail, the work cards) do the visual work,
 * which is where the interest should come from.
 */
.arc-head {
	max-width: 860px;
	margin-inline: auto;
	text-align: center;
}

.arc-head .eyebrow {
	text-align: center;
}

.arc-head h2 {
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.arc-head p {
	margin-inline: auto;
	max-width: 62ch;
}

/* --------------------------------------------------------- hero, centred */

.arc-hero__stack {
	max-width: 940px;
	margin-inline: auto;
	text-align: center;
}

.arc-hero__stack .eyebrow {
	text-align: center;
}

.arc-hero__title {
	max-width: 18ch;
	margin-inline: auto;
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.arc-hero__lede {
	max-width: 60ch;
	margin-inline: auto;
	margin-top: var(--wp--preset--spacing--50);
	color: #A9A9B2;
}

.arc-hero__actions {
	justify-content: center;
}

/* The gated proof line is centred with the stack; its accent rule becomes a
   top border rather than a left one, or it would break the symmetry. */
.arc-hero .arc-proof-line {
	border-left: 0;
	border-top: 2px solid var(--wp--preset--color--primary);
	padding-left: 0;
	padding-top: var(--wp--preset--spacing--40);
	margin-inline: auto;
	max-width: 52ch;
	text-align: center;
}

/* ------------------------------------------------------- the step rail */

/*
 * Five steps as one horizontal rail with a connecting spine, centred.
 *
 * A vertical stack of five numbered rows is the obvious build and it reads as a
 * list of chores. A rail reads as a process — which is the actual claim the
 * section makes ("Strategy before activity"). The spine is a single line behind
 * the markers, so the eye follows the sequence rather than reading five
 * unrelated blocks.
 */
.arc-rail {
	margin-top: var(--wp--preset--spacing--80);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--wp--preset--spacing--50);
	position: relative;
}

/* The spine. Sits behind the markers and stops short of the first and last so
   it never dangles past the ends. */
.arc-rail::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.14),
		rgba(255, 16, 98, 0.55),
		rgba(255, 255, 255, 0.14)
	);
}

.arc-rail__step {
	position: relative;
	text-align: center;
	padding-top: 0;
}

.arc-rail__marker {
	position: relative;
	z-index: 1;
	width: 34px;
	height: 34px;
	margin: 0 auto var(--wp--preset--spacing--50);
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 16, 98, 0.5);
	background: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	font-variant-numeric: tabular-nums;
}

.arc-rail__title {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: var(--wp--custom--tracking--snug);
	color: #FFFFFF;
	text-wrap: balance;
}

.arc-rail__text {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #A9A9B2;
}

/*
 * Below the rail breakpoint five columns become five unreadable slivers, so it
 * becomes a vertical spine — same idea, rotated, rather than a different design.
 */
@media (max-width: 899px) {
	.arc-rail {
		grid-template-columns: 1fr;
		gap: 0;
		max-width: 460px;
		margin-inline: auto;
	}

	.arc-rail::before {
		top: 17px;
		bottom: 17px;
		left: 17px;
		right: auto;
		width: 1px;
		height: auto;
		background: linear-gradient(
			to bottom,
			rgba(255, 255, 255, 0.14),
			rgba(255, 16, 98, 0.55),
			rgba(255, 255, 255, 0.14)
		);
	}

	.arc-rail__step {
		display: grid;
		grid-template-columns: 34px 1fr;
		gap: var(--wp--preset--spacing--50);
		text-align: left;
		padding-bottom: var(--wp--preset--spacing--60);
	}

	.arc-rail__marker {
		margin: 0;
	}

	.arc-rail__step:last-child {
		padding-bottom: 0;
	}
}

/* -------------------------------------------------------- work cards */

.arc-work-grid {
	margin-top: var(--wp--preset--spacing--80);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--50);
}

@media (max-width: 1023px) {
	.arc-work-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 639px) {
	.arc-work-grid {
		grid-template-columns: 1fr;
	}
}

.arc-work-grid .wp-block-post {
	display: flex;
}

/* The empty state carries real weight here: with no case studies published, a
   bare sentence looks like a bug. */
.arc-work-empty {
	margin-top: var(--wp--preset--spacing--80);
	border: 1px dashed var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
	text-align: center;
	color: var(--wp--preset--color--muted);
	max-width: 640px;
	margin-inline: auto;
}

/* ------------------------------------------------- centred list sections */

.arc-industry-grid {
	margin-top: var(--wp--preset--spacing--80);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
	max-width: 1180px;
	margin-inline: auto;
}

.arc-industry-cell {
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	text-align: center;
	text-decoration: none;
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--snug);
	transition: background var(--wp--custom--duration--base) var(--wp--custom--ease--out),
	            color var(--wp--custom--duration--base) var(--wp--custom--ease--out);
	display: grid;
	place-items: center;
	min-height: 108px;
}

.arc-industry-cell:hover,
.arc-industry-cell:focus-visible {
	background: rgba(255, 16, 98, 0.04);
	color: var(--wp--preset--color--primary-ink);
	outline: none;
}

@media (max-width: 899px) {
	.arc-industry-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 519px) {
	.arc-industry-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------- credential badges */

/*
 * The official Google Ads and Meta certification badges, centred as a pair.
 *
 * Both sit behind the claims gate, so this row renders EMPTY until each claim
 * is verified — :empty collapses it rather than leaving a padded void that
 * reads as a broken template.
 *
 * The artwork is the platforms' own issued badges. Nothing here restyles them:
 * no tint, no filter, no cropping. A recoloured certification badge is a
 * modified trademark, and both programmes prohibit it.
 */
.arc-certs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--wp--preset--spacing--70);
	margin-top: var(--wp--preset--spacing--80);
}

.arc-certs:empty {
	display: none;
	margin: 0;
}

.arc-cert {
	display: grid;
	place-items: center;
}

/*
 * Sized by HEIGHT, not width. The two badges have very different aspect ratios
 * — Google's is a wide lockup (640x400), Meta's is a circle (400x401) — so
 * matching widths would leave Meta towering over Google. Equal optical height
 * is what makes a mismatched pair sit level.
 */
.arc-cert__badge {
	height: 82px;
	width: auto;
	max-width: 100%;
}

@media (max-width: 479px) {
	.arc-certs {
		gap: var(--wp--preset--spacing--60);
	}

	.arc-cert__badge {
		height: 64px;
	}
}

/* A centred variant of the gated proof line, for centred section heads. */
.arc-proof-line--centred {
	border-left: 0;
	border-top: 2px solid var(--wp--preset--color--primary);
	padding-left: 0;
	padding-top: var(--wp--preset--spacing--40);
	margin-inline: auto;
	max-width: 52ch;
	text-align: center;
}

/* ------------------------------------------------- sample report */

/*
 * Every value in this mockup is a grey bar, deliberately.
 *
 * A dashboard with real-looking numbers on an agency homepage reads as "our
 * results", and inventing those is exactly what the claims rule forbids. Redact
 * the figures and the artwork shows a prospect the SHAPE of what they receive
 * each month without asserting a single value. Greyed artwork cannot claim a
 * result — which is what makes it safe to show at all.
 */
.arc-report {
	margin: var(--wp--preset--spacing--80) auto 0;
	max-width: 1000px;
}

.arc-report__frame {
	position: relative;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--lg);
	overflow: hidden;
}

/* Labelled, so nobody mistakes it for live client data. */
.arc-report__flag {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--full);
	padding: 4px 10px;
}

.arc-report__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--background);
}

.arc-report__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	flex: 0 0 auto;
}

.arc-report__spacer { flex: 1 1 auto; }

/* Every redacted element is the same family of grey bar. */
.arc-report__crumb,
.arc-report__lab,
.arc-report__val,
.arc-report__line,
.arc-report__readhead {
	display: block;
	border-radius: 3px;
	background: #E4E2DE;
}

.arc-report__crumb { height: 7px; }
.arc-report__lab   { height: 7px; margin-bottom: 9px; }
.arc-report__val   { height: 15px; background: #D2D0CB; }
.arc-report__line  { height: 6px; margin-top: 6px; }
.arc-report__readhead { height: 9px; background: #D2D0CB; margin-bottom: 16px; }

.w-24 { width: 24px; } .w-32 { width: 32px; } .w-40 { width: 40px; }
.w-48 { width: 48px; } .w-56 { width: 56px; } .w-64 { width: 64%; }
.w-72 { width: 72px; } .w-88 { width: 88%; } .w-100 { width: 100%; }

.arc-report__body {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 0;
}

.arc-report__panel {
	padding: var(--wp--preset--spacing--50);
	border-right: 1px solid var(--wp--preset--color--line);
}

.arc-report__tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: var(--wp--preset--spacing--50);
}

.arc-report__tile {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	padding: 11px;
}

.arc-report__chart svg {
	display: block;
	width: 100%;
	height: 92px;
}

.arc-report__chart line {
	stroke: var(--wp--preset--color--line);
	stroke-width: 1;
}

/*
 * The trend line is the ONE pink element. It carries no scale and no axis
 * values, so it reads as "you get a trend" rather than "this is our number" —
 * the shape is generic on purpose.
 */
.arc-report__chart .line {
	fill: none;
	stroke: var(--wp--preset--color--primary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.arc-report__chart .area {
	fill: rgba(255, 16, 98, 0.07);
	stroke: none;
}

.arc-report__axis {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
}

/*
 * The interpretation panel — the actual point of the section.
 *
 * The copy says a dashboard without interpretation is not reporting, so the
 * written read-out sits beside the chart as an equal, not beneath it as a
 * footnote. These four keys are the only readable text in the mockup, because
 * they are the deliverable: what changed, why, the risk, the next action.
 */
.arc-report__read {
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--background);
}

.arc-report__note {
	margin-bottom: 14px;
}

.arc-report__note:last-child { margin-bottom: 0; }

.arc-report__key {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-ink);
	margin-bottom: 7px;
}

.arc-report__cap {
	margin: var(--wp--preset--spacing--50) auto 0;
	max-width: 62ch;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

/* Side by side collapses to stacked; the read-out keeps its border as a rule. */
@media (max-width: 767px) {
	.arc-report__body {
		grid-template-columns: 1fr;
	}

	.arc-report__panel {
		border-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}

	.arc-report__tiles {
		grid-template-columns: 1fr;
	}
}

/* ============================================== service & industry pages */

.arc-svc-hero {
	position: relative;
	overflow: hidden;
}

/* Same faint engineering grid as the home hero, so an inner page reads as the
   same site rather than a different template. */
.arc-svc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 78%);
	mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 78%);
	pointer-events: none;
}

.arc-svc-hero > * { position: relative; z-index: 1; }

.arc-svc-hero__title {
	max-width: 20ch;
	margin-inline: auto;
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

/*
 * The engagement list, as the same connected module the homepage uses.
 *
 * First pass was two columns of loose hairline rows. It was tidy and it was
 * flat — the inner pages had a dark hero and then nothing but white, so they
 * read as a lesser template than the home page. Same construction as the
 * engines grid instead: cells on a 1px gap over a tinted container, so the
 * dividers are the container showing through and ten items read as one
 * specification block with edges rather than a list floating on a page.
 */
.arc-includes {
	margin: var(--wp--preset--spacing--80) auto 0;
	max-width: 1000px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	list-style: none;
	padding: 0;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
}

.arc-includes li {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	border: 0;
	background: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--foreground);
	transition: background var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.arc-includes li:hover {
	background: rgba(255, 16, 98, 0.035);
}

/* A pink tick per row — graphic use, so the exact brand colour is in budget. */
.arc-includes li::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	margin-top: 0.55em;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

/* An odd count would leave a hole in the grid where the container tint shows
   through as a stray block. Fill the last cell so the module keeps its edges. */
.arc-includes li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

@media (max-width: 719px) {
	.arc-includes { grid-template-columns: 1fr; }
	.arc-includes li { padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50); }
}

/* The "built around the complete growth path" note — the honest caveat on every
   service page. Deliberately quiet rather than a sales panel. */
.arc-caveat {
	margin: var(--wp--preset--spacing--80) auto 0;
	max-width: 760px;
	border-left: 2px solid var(--wp--preset--color--primary);
	padding: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	text-align: left;
}

.arc-caveat__key {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-ink);
	margin-bottom: var(--wp--preset--spacing--30);
}

/*
 * Static variant of the engines module.
 *
 * The About page's operating principles reuse the engine-cell look but are NOT
 * links. The first build faked that with <a> + pointer-events:none +
 * tabindex="-1", which is a lie to assistive tech: the anchors still exist in
 * the accessibility tree, so a screen reader announces six links that go
 * nowhere. Non-interactive content gets a <div> and this class instead.
 */
.arc-engines__grid--static .arc-engine {
	cursor: default;
}

/*
 * The static cells KEEP the hover wash and the pink top rule — that highlight
 * is the depth, and a non-interactive card is still allowed to respond to the
 * pointer. What they must not do is imply navigation, so only the arrow (the
 * "go somewhere" affordance) is dropped. Hover feedback is decoration; an arrow
 * is a promise.
 */
.arc-engines__grid--static .arc-engine__go {
	display: none;
}


/* ------------------------------------------- inner page band rhythm */

/*
 * The home page alternates dark -> warm white -> surface -> dark, and that
 * alternation is what gives it depth. Inner pages were dark hero -> white ->
 * dark, so the middle read as one flat plane. Putting the engagement band on
 * warm white lets the white module sit ON something instead of floating in it.
 */
.arc-svc-band {
	background: var(--wp--preset--color--background);
}

/* The caveat gets the same tinted-panel treatment as the home page's cards
   rather than a bare left rule on flat white. */
.arc-caveat {
	margin: var(--wp--preset--spacing--80) auto 0;
	max-width: 860px;
	border: 1px solid var(--wp--preset--color--line);
	border-left: 3px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--60);
	text-align: left;
	box-shadow: var(--wp--preset--shadow--sm);
}

.arc-caveat p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.65;
}

/* An off-site nav item gets a quiet outbound marker, so leaving the site is a
   choice rather than a surprise. */
.nav-external .wp-block-navigation-item__content::after {
	content: "↗";
	display: inline-block;
	margin-left: 0.35em;
	font-size: 0.8em;
	opacity: 0.55;
}

/* ============================================== strategy call form */

.arc-form-wrap {
	margin: var(--wp--preset--spacing--80) auto 0;
	max-width: 860px;
}

.arc-form {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--70);
	box-shadow: var(--wp--preset--shadow--md);
	text-align: left;
}

.arc-fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 var(--wp--preset--spacing--70);
}

.arc-legend {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-ink);
	padding: 0 0 var(--wp--preset--spacing--40);
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin-bottom: var(--wp--preset--spacing--50);
}

.arc-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--50);
}

.arc-field--wide { grid-column: 1 / -1; }

.arc-field label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--foreground);
}

.arc-req { color: var(--wp--preset--color--primary-ink); }

.arc-hint {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

/*
 * --line-strong (#8C8A85), not --line. A 1px #E6E4E0 border on white is ~1.2:1
 * and effectively invisible; WCAG 1.4.11 wants 3:1 for the boundary of a
 * control. An input a user cannot find is not an accessible input.
 */
.arc-field input,
.arc-field select,
.arc-field textarea {
	width: 100%;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--foreground);
}

.arc-field textarea { resize: vertical; min-height: 84px; }

.arc-field input:focus-visible,
.arc-field select:focus-visible,
.arc-field textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-ink);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--primary-ink);
}

/* Error state is never colour alone — the message carries the meaning, per
   WCAG 1.4.1. The red border is reinforcement, not the signal. */
.arc-field [aria-invalid="true"] {
	border-color: #B3261E;
}

.arc-err {
	margin: var(--wp--preset--spacing--20) 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: #B3261E;
	min-height: 0;
}

.arc-err:empty { display: none; }

/*
 * The honeypot. Off-screen rather than display:none — some bots skip hidden
 * fields, and a field they never fill catches nobody. aria-hidden + tabindex=-1
 * keep it away from real users and screen readers entirely.
 */
.arc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.arc-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--wp--preset--spacing--30);
	align-items: start;
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
}

.arc-consent input { margin-top: 0.2em; width: 17px; height: 17px; accent-color: var(--wp--preset--color--primary-ink); }
.arc-consent label { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.arc-consent .arc-err { grid-column: 2; }

.arc-submit-error {
	margin: var(--wp--preset--spacing--50) 0 0;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid #B3261E;
	border-radius: var(--wp--custom--radius--md);
	background: #FCF0F1;
	color: #B3261E;
	font-size: var(--wp--preset--font-size--small);
}

.arc-actions { margin-top: var(--wp--preset--spacing--60); }

.arc-submit {
	width: 100%;
	padding: var(--wp--preset--spacing--40);
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--primary-ink);
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	cursor: pointer;
}

.arc-submit:hover { background: color-mix(in srgb, var(--wp--preset--color--primary-ink) 88%, #000); }
.arc-submit:disabled { opacity: 0.6; cursor: default; }

/* The doc forbids promising a free strategy, a guaranteed result, or an
   immediate proposal. This note says what the call actually is. */
.arc-note {
	margin: var(--wp--preset--spacing--40) 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	text-align: center;
}

@media (max-width: 639px) {
	.arc-form { padding: var(--wp--preset--spacing--50); }
	.arc-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- service page depth */

.arc-why p {
	margin-inline: auto;
	max-width: 68ch;
}

.arc-why p + p { margin-top: var(--wp--preset--spacing--50); }

/* The method blocks: numbered, ruled, one per row — a spec sheet rather than
   a card grid, so they read at length without becoming a wall. */
.arc-method {
	margin: var(--wp--preset--spacing--80) auto 0;
	max-width: 900px;
	display: grid;
	gap: 1px;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
}

.arc-method__row {
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--60);
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
	text-align: left;
}

.arc-method__n {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	font-variant-numeric: tabular-nums;
	padding-top: 0.15em;
}

.arc-method__h {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--snug);
	color: var(--wp--preset--color--foreground);
}

.arc-method__p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.65;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 599px) {
	.arc-method__row { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--30); padding: var(--wp--preset--spacing--50); }
}

/* "What good looks like" — a checklist on the dark canvas. */
.arc-good {
	margin: var(--wp--preset--spacing--70) auto 0;
	max-width: 760px;
	list-style: none;
	padding: 0;
	text-align: left;
}

.arc-good li {
	display: flex;
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
	padding: var(--wp--preset--spacing--40) 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #E8E8EC;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.arc-good li::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 9px;
	margin-top: 0.35em;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: rotate(-45deg);
}

/*
 * FAQs use <details>, not JS.
 *
 * Native disclosure gives keyboard support, screen-reader semantics and
 * in-page find for free — and crucially the answer text is in the DOM whether
 * open or shut, so it is indexable. A JS accordion that injects answers on
 * click hides the exact content the page is trying to rank for.
 */
.arc-faq {
	margin: var(--wp--preset--spacing--80) auto 0;
	max-width: 860px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
	background: var(--wp--preset--color--line);
	display: grid;
	gap: 1px;
	text-align: left;
}

.arc-faq details { background: var(--wp--preset--color--surface); }

.arc-faq summary {
	cursor: pointer;
	list-style: none;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--foreground);
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
	transition: color var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.arc-faq summary::-webkit-details-marker { display: none; }

.arc-faq summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.arc-faq details[open] summary::after { transform: rotate(45deg); }
.arc-faq summary:hover { color: var(--wp--preset--color--primary-ink); }

.arc-faq p {
	margin: 0;
	padding: 0 var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
	max-width: 74ch;
}

/* The shared ARC Labs partner line, common to all three Cortez sites. */
.footer-legal__sep { margin: 0 0.5em; opacity: 0.45; }

/*
 * #D6D6DB, not the brand pink. theme.json sets the global link colour to
 * --primary-ink (#C80047), which is ~1.7:1 on this canvas — invisible.
 */
.footer-legal__partner {
	color: #D6D6DB;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-legal__partner:hover {
	color: #FFFFFF;
	border-bottom-color: var(--wp--preset--color--primary);
}

/* ================================================== mega menu */

/*
 * Built ON core's wp:navigation-submenu rather than as a bespoke dropdown.
 *
 * Core already handles the parts that are easy to get wrong and invisible when
 * you do: aria-expanded, Escape to close, focus management, click-outside, and
 * the mobile overlay behaviour. Hand-rolling a "mega menu" means re-implementing
 * all of it, usually badly. This is CSS on top of a working submenu.
 */
@media (min-width: 600px) {
	/*
	 * For the panel to span the header, EVERY ancestor between it and
	 * .site-header must be position:static — one positioned element in between
	 * silently becomes the containing block instead.
	 *
	 * Core sets .wp-block-navigation__container to position:relative, which was
	 * anchoring the panel to the nav list rather than the header. Note that
	 * .site-nav IS that container — same element, not a parent — so a
	 * descendant selector matches nothing. It has to be the compound selector.
	 */
	/*
	 * EVERY ancestor between the panel and .site-header must be static, or the
	 * first non-static one silently becomes the containing block.
	 *
	 * Walking the real DOM (rather than assuming it) turned up three wrappers I
	 * had missed — core nests the nav inside its responsive-overlay machinery
	 * even on desktop, and all three are position:relative:
	 *
	 *   nav.wp-block-navigation
	 *     └ .wp-block-navigation__responsive-container      <- relative
	 *         └ .wp-block-navigation__responsive-close
	 *             └ .wp-block-navigation__responsive-dialog <- relative
	 *                 └ .wp-block-navigation__responsive-container-content
	 *                     └ ul.wp-block-navigation__container
	 *                         └ li  <- the panel hangs off here
	 *
	 * The dialog was the containing block. Fixing the li and the ul was correct
	 * and irrelevant; the culprit was three levels up.
	 *
	 * Desktop only — the mobile overlay genuinely needs this positioning, and
	 * flattening it there would break the full-screen menu.
	 */
	.site-header nav.wp-block-navigation,
	.site-header .wp-block-navigation__responsive-container,
	.site-header .wp-block-navigation__responsive-dialog,
	.site-header .wp-block-navigation__responsive-container-content,
	.site-header .site-nav.wp-block-navigation__container,
	.site-header .site-nav .wp-block-navigation__container,
	.site-header .site-header__right,
	.site-header .site-header__inner {
		position: static !important;
	}

	.site-nav .arc-mega {
		position: static;
	}

	/*
	 * The panel is positioned against the HEADER, not the menu item — that is
	 * what makes it a mega menu rather than a dropdown. The header must
	 * therefore be the containing block, which is why .site-header carries
	 * position:relative (and, deliberately, no backdrop-filter — see the header
	 * section above).
	 */
	/*
	 * Specificity: core ships
	 *   .wp-block-navigation .has-child .wp-block-navigation__submenu-container
	 *   { width: 0; left: -1px; }
	 * at (0,3,0). `li.arc-mega > …` is (0,2,1) and LOSES — which is why the panel
	 * kept computing to width:34px/left:-1px no matter what this rule said. The
	 * width:0 is core's closed state; it opens by animating width, so losing this
	 * fight means the panel never gets a width at all.
	 *
	 * `.site-header .wp-block-navigation li.arc-mega.has-child > …` is (0,5,1)
	 * and wins outright rather than depending on stylesheet order.
	 */
	.site-header .wp-block-navigation li.arc-mega.has-child > .wp-block-navigation__submenu-container {
		display: grid !important;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		min-width: 0;
		border: 0;
		border-top: 1px solid var(--wp--preset--color--line);
		border-bottom: 1px solid var(--wp--preset--color--line);
		border-radius: 0;
		background: var(--wp--preset--color--surface);
		box-shadow: 0 18px 40px rgba(20, 20, 22, 0.10);
		padding: var(--wp--preset--spacing--70) max(var(--wp--preset--spacing--40), calc((100vw - 1320px) / 2 + var(--wp--preset--spacing--40)));
		display: grid;
		gap: 1px;
		background-image: none;
	}

	.site-header .wp-block-navigation li.arc-mega--services.has-child > .wp-block-navigation__submenu-container {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-header .wp-block-navigation li.arc-mega--industries.has-child > .wp-block-navigation__submenu-container {
		grid-template-columns: repeat(3, 1fr);
	}

	/*
	 * 11 rows over 4 columns rather than 3 — case-study labels are short (a
	 * client type, not a sentence) so they tile tighter, and 4 columns keeps the
	 * panel to three rows instead of four.
	 */
	.site-header .wp-block-navigation li.arc-mega--work.has-child > .wp-block-navigation__submenu-container {
		grid-template-columns: repeat(4, 1fr);
	}

	@media (max-width: 1099px) {
		.site-header .wp-block-navigation li.arc-mega--work.has-child > .wp-block-navigation__submenu-container {
			grid-template-columns: repeat(3, 1fr);
		}
	}

	/* Each row: label + the description core renders from the block attribute. */
	.site-nav .arc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item {
		display: block;
	}

	.site-nav .arc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		/* Core renders the anchor as a flex row, which put the description beside
		   the label and overlapped both. Stack them. */
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
		white-space: normal;
		padding: var(--wp--preset--spacing--40);
		border-radius: var(--wp--custom--radius--md);
		font-family: var(--wp--preset--font-family--heading);
		font-size: var(--wp--preset--font-size--medium);
		font-weight: 600;
		letter-spacing: var(--wp--custom--tracking--snug);
		color: var(--wp--preset--color--foreground);
		transition: background var(--wp--custom--duration--fast) var(--wp--custom--ease--out),
		            color var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
	}

	.site-nav .arc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	.site-nav .arc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
		background: rgba(255, 16, 98, 0.05);
		color: var(--wp--preset--color--primary-ink);
	}

	.site-nav .arc-mega .wp-block-navigation-item__description {
		display: block;
		margin-top: 3px;
		font-family: var(--wp--preset--font-family--body);
		font-size: var(--wp--preset--font-size--x-small);
		font-weight: 400;
		line-height: 1.45;
		color: var(--wp--preset--color--muted);
	}

	/* The "All services / All industries" row closes the panel with a way out. */
	.site-nav .arc-mega__all .wp-block-navigation-item__content {
		color: var(--wp--preset--color--primary-ink) !important;
		font-size: var(--wp--preset--font-size--small) !important;
	}

	.site-nav .arc-mega__all .wp-block-navigation-item__content::after {
		content: " →";
	}

	/* Core's chevron, aligned with our type. */
	.site-nav .arc-mega > .wp-block-navigation-item__content .wp-block-navigation__submenu-icon {
		margin-left: 0.3em;
	}
}

/*
 * Mobile: inside the full-screen overlay core stacks submenus vertically and
 * opens them on tap. Descriptions are hidden there — in a narrow column they
 * triple the height of the menu and bury the links they are meant to clarify.
 */
@media (max-width: 599px) {
	.site-nav .arc-mega .wp-block-navigation-item__description {
		display: none;
	}
}

/* --------------------------------------- engine card with sub-links */

/*
 * The Paid Media card covers two platforms, so the whole cell cannot be one
 * link. It keeps the card look but hands the pointer to two real destinations.
 */
.arc-engine--multi {
	cursor: default;
}

/* No arrow on the card itself — the sub-links carry their own. An arrow here
   would promise a destination the card no longer has. */
.arc-engine--multi > .arc-engine__go {
	display: none;
}

/* The card is not a link, so it should not do the link hover. The sub-links do. */
.arc-engine--multi:hover::before,
.arc-engine--multi:hover::after {
	opacity: 0;
	transform: scaleX(0);
}

.arc-engine__subs {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--50);
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
	/* the hairline frame must not inherit the padding-top used for spacing */
	margin-top: var(--wp--preset--spacing--50);
	padding-top: 0;
}

.arc-engine__sub {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
	transition: background var(--wp--custom--duration--fast) var(--wp--custom--ease--out),
	            color var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
}

.arc-engine__sub svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--wp--preset--color--line-strong);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke var(--wp--custom--duration--fast) var(--wp--custom--ease--out),
	            transform 220ms var(--wp--custom--ease--out);
}

.arc-engine__sub:hover,
.arc-engine__sub:focus-visible {
	background: rgba(255, 16, 98, 0.05);
	color: var(--wp--preset--color--primary-ink);
	outline: none;
}

.arc-engine__sub:hover svg,
.arc-engine__sub:focus-visible svg {
	stroke: var(--wp--preset--color--primary);
	transform: translateX(3px);
}

.arc-engine__sub:focus-visible {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary-ink);
}

/*
 * Seven industries in a three-column grid leaves one empty cell, and because the
 * dividers are the container showing through a 1px gap, that hole renders as a
 * stray grey block rather than as whitespace. Span the last cell instead — the
 * same fix the engagement list needed for odd counts.
 */
.arc-industry-grid > :last-child:nth-child(3n + 1) {
	grid-column: 1 / -1;
}

@media (max-width: 899px) {
	/* two columns: an odd last cell spans instead of stranding */
	.arc-industry-grid > :last-child:nth-child(2n + 1) {
		grid-column: 1 / -1;
	}
}

/* ------------------------------------------------------ legal pages */

.arc-legal {
	max-width: 720px;
	margin-inline: auto;
	text-align: left;
}

.arc-legal__lede {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--wp--preset--color--foreground);
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin-bottom: var(--wp--preset--spacing--60);
}

.arc-legal h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--snug);
	margin: var(--wp--preset--spacing--70) 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--foreground);
}

.arc-legal h2:first-of-type { margin-top: 0; }

.arc-legal p {
	margin: 0 0 var(--wp--preset--spacing--40);
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

.arc-legal code {
	font-size: 0.9em;
	padding: 0.1em 0.35em;
	border-radius: 3px;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--line);
}

/* ------------------------------------------- mega menu: hover bridge */

/*
 * The panel is anchored to the HEADER (top:100%), not to the menu item — that
 * is what makes it full-width. The side effect: the item's bottom edge and the
 * panel's top edge are ~42px apart, and that gap is dead. Moving the cursor
 * from "Services" down into the panel crosses it, hover is lost, and the panel
 * shuts before you can click anything. The menu looked finished and was unusable.
 *
 * Two fixes, both needed:
 *
 * 1. BRIDGE — extend the item's hover box down to the header's bottom edge with
 *    padding, and cancel the layout effect with an equal negative margin. The
 *    item stays visually the same size; its hover area now reaches the panel, so
 *    there is no gap to fall through.
 *
 * 2. CLOSE DELAY — hold the panel open briefly after hover ends, so a cursor
 *    that clips a corner on the way down does not lose it. Opening stays
 *    instant; only closing is forgiving. Anything above ~250ms starts feeling
 *    like the menu is stuck.
 */
@media (min-width: 600px) {
	.site-header .site-nav li.arc-mega {
		/* reaches the header's bottom edge, where the panel begins */
		padding-bottom: 44px;
		margin-bottom: -44px;
	}

	/* Forgiving on the way out... */
	.site-header .wp-block-navigation li.arc-mega.has-child > .wp-block-navigation__submenu-container {
		transition: opacity 120ms linear 220ms, visibility 0s linear 340ms;
	}

	/* ...instant on the way in. */
	.site-header .wp-block-navigation li.arc-mega.has-child:hover > .wp-block-navigation__submenu-container,
	.site-header .wp-block-navigation li.arc-mega.has-child:focus-within > .wp-block-navigation__submenu-container {
		transition: opacity 120ms linear 0s, visibility 0s linear 0s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header .wp-block-navigation li.arc-mega.has-child > .wp-block-navigation__submenu-container {
		transition: visibility 0s linear 220ms;
	}
}
