/* ==========================================================================
   CyberFox theme: front end and editor styles
   Colours follow the CyberFox design system (tokens.css), with a light and a
   dark set. The site follows the visitor's system setting; the header toggle
   lets them override it (stored as html[data-theme]).
   ========================================================================== */

:root {
	/* Brand (same in both themes) */
	--fox-sky: #24bee4;
	--fox-teal: #1cb8ab;
	--on-brand: #231f20;
	--gradient-brand: linear-gradient(200deg, var(--fox-sky), var(--fox-teal));

	/* Light theme */
	--bg: #ffffff;
	--bg-raised: #f2f7f8;
	--bg-band: #e8f2f4;
	--card: #f2f7f8;
	--card-band: #ffffff;
	--ink: #231f20;
	--ink-muted: #5b5859;
	--line: #dce5e7;
	--line-strong: #7c8588;
	--accent-text: #08707f;
	--fox-tint: #d3f1f6;
	--field-bg: #ffffff;
	--error: #b3261e;
	--header-bg: rgba(255, 255, 255, .88);
	--chat-bg: #e7eeef;
	--bubble-them: #ffffff;
	--bubble-us: #d3f1f6;
	--name-1: #08707f;
	--name-2: #a14a12;
	--name-3: #5b3fa8;
	--focus: var(--accent-text);

	--font: "League Spartan", "Spartan", "Futura", "Century Gothic", system-ui, sans-serif;
	--radius-sm: 2px;
	--radius-md: 4px;
	--radius-lg: 8px;
	--chamfer-sm: 8px;
	--chamfer-md: 16px;
	--chamfer-lg: 32px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section-y: clamp(64px, 9vw, 128px);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

/* Dark theme: system setting (unless the visitor chose light) ... */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #171415;
		--bg-raised: #1e1a1b;
		--bg-band: #0f0d0e;
		--card: #231f20;
		--card-band: #1e1a1b;
		--ink: #f4f1f1;
		--ink-muted: #a8a3a4;
		--line: #3a3435;
		--line-strong: #7a7475;
		--accent-text: #4fd3ee;
		--fox-tint: #0f3a42;
		--field-bg: #171415;
		--error: #ff8a80;
		--header-bg: rgba(23, 20, 21, .88);
		--chat-bg: #0f0d0e;
		--bubble-them: #262122;
		--bubble-us: #0f3a42;
		--name-1: #4fd3ee;
		--name-2: #f2a36b;
		--name-3: #b9a4f2;
		color-scheme: dark;
	}
}
/* ... or the visitor picked dark with the toggle. */
:root[data-theme="dark"] {
	--bg: #171415;
	--bg-raised: #1e1a1b;
	--bg-band: #0f0d0e;
	--card: #231f20;
	--card-band: #1e1a1b;
	--ink: #f4f1f1;
	--ink-muted: #a8a3a4;
	--line: #3a3435;
	--line-strong: #7a7475;
	--accent-text: #4fd3ee;
	--fox-tint: #0f3a42;
	--field-bg: #171415;
	--error: #ff8a80;
	--header-bg: rgba(23, 20, 21, .88);
	--chat-bg: #0f0d0e;
	--bubble-them: #262122;
	--bubble-us: #0f3a42;
	--name-1: #4fd3ee;
	--name-2: #f2a36b;
	--name-3: #b9a4f2;
	color-scheme: dark;
}

/* The footer is dark in both themes. */
.cfx-footer {
	--bg: #0f0d0e;
	--card: #231f20;
	--ink: #f4f1f1;
	--ink-muted: #a8a3a4;
	--line: #3a3435;
	--line-strong: #7a7475;
	--accent-text: #4fd3ee;
	--fox-tint: #0f3a42;
	--focus: #4fd3ee;
}

/* Logo swap: black wordmark on light, white wordmark on dark. */
.cfx-only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .cfx-only-dark { display: block !important; }
	:root:not([data-theme="light"]) .cfx-only-light { display: none !important; }
}
:root[data-theme="dark"] .cfx-only-dark { display: block !important; }
:root[data-theme="dark"] .cfx-only-light { display: none !important; }

/* Base ------------------------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .3s var(--ease);
}

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }

img { max-width: 100%; height: auto; }

body a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
body a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.cfx-section,
.cfx-footer {
	--sec-card: var(--card);
	background: var(--bg);
	color: var(--ink);
}
.cfx-section.is-raised { --sec-card: var(--bg); background: var(--bg-raised); }
.cfx-section.is-dark { --sec-card: var(--card-band); background: var(--bg-band); }

/* Spacing is set with gap, so reset block margins inside our sections. */
body .cfx-section *,
body .cfx-header *,
body .cfx-footer * { margin-block: 0; }

.cfx-section { padding-block: var(--section-y); position: relative; }

/* Sections sit flush against each other (WordPress adds a block gap by default). */
body .cfx-content > .cfx-section,
body .cfx-main > .cfx-section,
body .cfx-main > .wp-block-post-content,
body .cfx-main > .wp-block-post-featured-image + .wp-block-post-content { margin-block: 0; }
body .wp-site-blocks > .wp-block-template-part + .cfx-main,
body .wp-site-blocks > .cfx-main + .wp-block-template-part { margin-block-start: 0; }
.cfx-section:not(.is-dark):not(.is-raised):not(.cfx-clients) + .cfx-cta { padding-top: 0; }

.cfx-wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: border-box;
}

/* Type ------------------------------------------------------------------- */

.cfx-section h1, .cfx-section h2, .cfx-section h3,
.cfx-footer h2, .cfx-footer h3 {
	font-family: var(--font);
	color: var(--ink);
	letter-spacing: -0.01em;
}

.cfx-display {
	font-size: clamp(36px, 5.2vw, 56px);
	line-height: 1;
	font-weight: 700;
	text-wrap: balance;
}

.cfx-section h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }

.cfx-lead {
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.55;
	color: var(--ink-muted);
	max-width: 62ch;
	text-wrap: pretty;
}

.cfx-eyebrow,
.cfx-tag {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-text);
}

.cfx-caption { font-size: 12px; line-height: 16px; color: var(--ink-muted); }

.cfx-intro { display: grid; gap: 20px; max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px) !important; }

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

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

body .wp-block-button__link,
.cfx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	box-sizing: border-box;
	border: 1.5px solid transparent;
	border-radius: var(--radius-md);
	background: var(--fox-teal);
	color: var(--on-brand);
	font-family: var(--font);
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
body .wp-block-button__link:hover,
.cfx-btn:hover { background: var(--fox-sky); color: var(--on-brand); }
body .wp-block-button__link:active,
.cfx-btn:active { transform: translateY(1px); }

body .wp-block-button.is-style-outline > .wp-block-button__link,
.cfx-btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line-strong);
}
body .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.cfx-btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--fox-teal); }

/* Shared lists ----------------------------------------------------------- */

.cfx-ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.cfx-ticks li { position: relative; padding-left: 22px; line-height: 1.45; }
.cfx-ticks li::before {
	/* A tiny circuit trace: a short line ending in a dot. */
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 12px;
	height: 2px;
	background: var(--fox-teal);
}
.cfx-ticks li::after {
	content: "";
	position: absolute;
	left: 10px;
	top: calc(.62em - 2px);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fox-teal);
}

/* Grids ------------------------------------------------------------------ */

.cfx-grid { display: grid; gap: 24px; }
.cfx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cfx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cfx-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .cfx-grid--2, .cfx-grid--4 { grid-template-columns: 1fr; } }

.cfx-split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.cfx-split__a { display: grid; gap: 20px; }
@media (max-width: 900px) { .cfx-split { grid-template-columns: 1fr; } }

/* Cards: fills, not shadows. One chamfered corner. ----------------------- */

.cfx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.4vw, 32px);
	background: var(--sec-card);
	border-radius: var(--radius-md);
	clip-path: polygon(0 0, calc(100% - var(--chamfer-md)) 0, 100% var(--chamfer-md), 100% 100%, 0 100%);
}
.cfx-card p { color: var(--ink-muted); }
.cfx-card .cfx-tag { color: var(--accent-text); }

/* ==========================================================================
   Header
   ========================================================================== */

.wp-block-template-part:has(> .cfx-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	margin: 0;
}

.cfx-header {
	background: var(--header-bg);
	color: var(--ink);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.cfx-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.cfx-header__logo { flex: none; }
.cfx-header__logo img { display: block; height: 50px; width: auto; }
.cfx-header .cfx-nav { margin-left: auto; }
.cfx-header__cta { flex: none; }
.cfx-header__cta .wp-block-button__link { min-height: 44px; padding: 10px 18px; }

.cfx-theme-toggle {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: border-color .2s var(--ease), color .2s var(--ease);
}
.cfx-theme-toggle:hover { border-color: var(--fox-teal); color: var(--accent-text); }
.cfx-theme-toggle svg { width: 20px; height: 20px; }
.cfx-theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .cfx-theme-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .cfx-theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .cfx-theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .cfx-theme-toggle .i-moon { display: none; }

.cfx-nav,
.cfx-nav .wp-block-navigation-item__content { font-size: 15px; font-weight: 500; color: var(--ink); }
.cfx-nav .wp-block-navigation__container { gap: 28px; }
.cfx-nav .wp-block-navigation-item__content { text-decoration: none; padding-block: 8px; }
.cfx-nav .wp-block-navigation-item__content:hover { color: var(--accent-text); }
.cfx-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--accent-text); }

.cfx-nav .wp-block-navigation__submenu-container {
	background: var(--bg-raised) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius-md);
	padding: 8px !important;
	min-width: 260px !important;
	color: var(--ink) !important;
}
.cfx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 12px !important; border-radius: var(--radius-sm); }
.cfx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--fox-tint); color: var(--ink); }

.cfx-nav .wp-block-navigation__responsive-container-open,
.cfx-nav .wp-block-navigation__responsive-container-close { color: var(--ink); }
.cfx-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--bg) !important;
	color: var(--ink) !important;
	padding: 24px var(--gutter);
}
.cfx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 20px; }
.cfx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 24px; font-weight: 600; }
.cfx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; background: transparent !important; padding: 8px 0 0 16px !important; }
.cfx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 18px; font-weight: 400; color: var(--ink-muted); }

@media (max-width: 600px) {
	.cfx-header__inner { gap: 10px; }
	.cfx-header__logo img { height: 46px; }
	.cfx-header__cta .wp-block-button__link { padding: 8px 12px; font-size: 14px; min-height: 40px; }
	.cfx-theme-toggle { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .cfx-header__cta { display: none; } }

/* Scroll progress line */
.cfx-progress {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	height: 2px;
	z-index: 101;
	background: var(--fox-teal);
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
	pointer-events: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.cfx-hero {
	overflow: hidden;
	isolation: isolate;
	/* Brand device: one 45° corner cut, bottom right. */
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%);
}
.cfx-hero:not(.cfx-hero--page) {
	min-height: min(calc(100svh - var(--header-h)), 900px);
	display: flex;
	align-items: center;
	padding-block: clamp(56px, 8vw, 112px) clamp(120px, 14vw, 180px);
	box-sizing: border-box;
}

.cfx-hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(24px, 5vw, 80px);
	align-items: center;
}
.cfx-hero__copy { display: grid; gap: 24px; justify-items: start; }
.cfx-hero__copy .wp-block-buttons { margin-top: 8px !important; }

.cfx-hero__title {
	font-size: clamp(54px, 9.2vw, 128px) !important;
	line-height: .9 !important;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.cfx-hero--page .cfx-hero__title { font-size: clamp(40px, 6vw, 76px) !important; line-height: .98 !important; text-wrap: balance; }
.cfx-hero__note { font-size: 14px; color: var(--ink-muted); }

.cfx-hero__visual { display: flex; justify-content: center; }
.cfx-hero__mark { margin: 0; width: min(100%, 400px); }
.cfx-hero__mark img {
	display: block;
	width: 100%;
	height: auto;
	transform: perspective(900px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
	transition: transform .6s var(--ease);
	will-change: transform;
}

/* Circuit traces drawn by cyberfox.js */
.cfx-traces { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cfx-traces .t-line { fill: none; stroke: var(--fox-teal); stroke-width: 2; opacity: .55; stroke-linecap: round; stroke-linejoin: round; }
.cfx-traces .t-dot { fill: var(--fox-teal); }
.cfx-traces .t-pulse { fill: none; stroke: var(--fox-sky); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.cfx-traces.is-drawing .t-line { animation: cfx-draw 1.6s var(--ease) forwards; }
.cfx-traces.is-drawing .t-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: cfx-pop .4s var(--ease) forwards; }
.cfx-traces.is-live .t-pulse { animation: cfx-pulse var(--dur, 5s) linear infinite; animation-delay: var(--delay, 0s); }

@keyframes cfx-draw { to { stroke-dashoffset: 0; } }
@keyframes cfx-pop { to { transform: scale(1); } }
@keyframes cfx-pulse {
	0% { stroke-dashoffset: var(--len); opacity: 0; }
	8% { opacity: 1; }
	70% { opacity: 1; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes cfx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Inner-page hero */
.cfx-hero--page { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px); }
.cfx-hero--page .cfx-hero__grid { align-items: end; }
.cfx-hero__aside { align-self: stretch; display: flex; align-items: flex-end; }
.cfx-hero__aside > * { width: 100%; }
.cfx-glance .cfx-ticks li { color: var(--ink); }

@media (max-width: 900px) {
	.cfx-hero__grid { grid-template-columns: 1fr; }
	.cfx-hero:not(.cfx-hero--page) .cfx-hero__visual { display: none; }
	.cfx-hero:not(.cfx-hero--page) { min-height: 0; padding-bottom: 96px; }
	.cfx-traces { display: none; }
}

/* ==========================================================================
   Client logo wall
   ========================================================================== */

.cfx-clients { padding-block: 40px; border-bottom: 1px solid var(--line); }
.cfx-clients .cfx-wrap { display: grid; gap: 20px; }
.cfx-clients__label { font-size: 15px; color: var(--ink-muted); text-align: center; }
.cfx-marquee { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }

.cfx-logo { flex: none; font-size: 20px; font-weight: 600; color: var(--ink); opacity: .78; white-space: nowrap; }
.cfx-marquee .wp-block-image,
.cfx-marquee .cfx-logo-tile {
	flex: none;
	margin: 0;
	display: grid;
	place-items: center;
	width: 168px;
	height: 96px;
	padding: 10px 14px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.cfx-marquee .wp-block-image img {
	display: block;
	max-width: 100%;
	max-height: 76px;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform .3s var(--ease);
}
.cfx-marquee .wp-block-image:hover img { transform: scale(1.06); }

/* With JS the logos scroll in two rows moving in opposite directions. */
.cfx-marquee.is-running { display: grid; gap: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.cfx-marquee__row { display: flex; overflow: hidden; }
.cfx-marquee__track { display: flex; gap: 16px; align-items: center; flex: none; padding-right: 16px; animation: cfx-scroll var(--speed, 40s) linear infinite; }
.cfx-marquee__row:nth-child(2) .cfx-marquee__track { animation-direction: reverse; }
.cfx-marquee.is-running:hover .cfx-marquee__track { animation-play-state: paused; }
@keyframes cfx-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .cfx-marquee__track { animation: none; } }
@media (max-width: 600px) {
	.cfx-marquee .wp-block-image { width: 128px; height: 76px; }
	.cfx-marquee .wp-block-image img { max-height: 58px; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.cfx-service { cursor: pointer; transition: background-color .25s var(--ease); min-height: 100%; box-sizing: border-box; }
.cfx-service__img {
	margin: calc(-1 * clamp(20px, 2.4vw, 32px)) calc(-1 * clamp(20px, 2.4vw, 32px)) 8px !important;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 85% 10%, rgba(36, 190, 228, .18), transparent 60%),
		radial-gradient(90% 80% at 10% 100%, rgba(28, 184, 171, .16), transparent 60%),
		var(--bg-band);
	border-bottom: 1px solid var(--line);
}
.cfx-service__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cfx-service:hover .cfx-service__img img { transform: scale(1.04) translateY(-2px); }
.cfx-service h3 { font-size: 24px; }
.cfx-service .cfx-ticks { margin-top: 6px !important; }
.cfx-service .cfx-ticks li { font-size: 15px; color: var(--ink); }
.cfx-card__link { margin-top: auto !important; padding-top: 12px; }
.cfx-card__link a { font-weight: 600; color: var(--ink); text-decoration: none; }
.cfx-card__link a::after {
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 18px;
	height: 2px;
	margin-left: 10px;
	background: currentColor;
	transition: width .25s var(--ease);
}
.cfx-service:hover, .cfx-service:focus-within { background: var(--fox-tint); }
.cfx-service:hover .cfx-card__link a::after { width: 28px; }

.cfx-services__more { margin-top: 32px !important; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-muted); max-width: 70ch; }

/* ==========================================================================
   Goal picker: tabs, signal map and 30-day timeline (built by JS)
   ========================================================================== */

.cfx-tabs { display: grid; gap: 24px; }
.cfx-tab {
	position: relative;
	display: grid;
	gap: 18px;
	padding: clamp(24px, 3vw, 40px);
	background: var(--sec-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
	overflow: hidden;
}
.cfx-tab__title { font-size: 28px !important; }
.cfx-tab__summary { font-size: 18px; color: var(--ink-muted); max-width: 56ch; }
.cfx-tab .cfx-ticks li { font-size: 17px; }
.cfx-tab__channels { font-size: 14px; color: var(--ink-muted); }
.cfx-tab__meta { font-size: 14px; color: var(--ink-muted); padding-top: 16px; border-top: 1px solid var(--line); }

.cfx-tabs.is-ready { grid-template-columns: minmax(240px, 4fr) minmax(0, 9fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.cfx-tablist { display: grid; gap: 8px; position: sticky; top: calc(var(--header-h) + 24px); }
.cfx-tablist button {
	position: relative;
	display: grid;
	gap: 4px;
	width: 100%;
	text-align: left;
	padding: 18px 20px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	color: var(--ink-muted);
	font-family: var(--font);
	font-size: clamp(18px, 1.8vw, 24px);
	font-weight: 600;
	line-height: 1.15;
	cursor: pointer;
	overflow: hidden;
	transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.cfx-tablist button small { font-size: 13px; font-weight: 400; color: var(--ink-muted); line-height: 1.35; }
.cfx-tablist button:hover { color: var(--ink); border-color: var(--line-strong); transform: translateX(4px); }
.cfx-tablist button[aria-selected="true"] { color: var(--ink); border-color: var(--fox-teal); background: var(--sec-card); }
.cfx-tablist button::after {
	/* Auto-advance progress */
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: var(--fox-teal);
	transform-origin: 0 50%;
	transform: scaleX(0);
}
.cfx-tablist button[aria-selected="true"]::after { transform: scaleX(var(--prog, 0)); }
.cfx-tablist button[aria-selected="true"].is-pinned::after { transform: scaleX(1); }

.cfx-tabs.is-ready .cfx-tab[hidden] { display: none; }
.cfx-tabs.is-ready .cfx-tab__title,
.cfx-tabs.is-ready .cfx-tab__channels { display: none; }
.cfx-tabs.is-ready .cfx-tab { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(24px, 3vw, 48px); align-items: start; }
.cfx-tabs.is-ready .cfx-tab > * { grid-column: 1; }
.cfx-tabs.is-ready .cfx-tab > .cfx-signal { grid-column: 2; grid-row: 1 / span 4; }
.cfx-tabs.is-ready .cfx-tab > .cfx-timeline { grid-column: 1 / -1; }
.cfx-tabs.is-ready .cfx-tab__meta { display: none; }

/* Pointer spotlight */
.cfx-tab::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(28, 184, 171, .12), transparent 60%);
	opacity: 0;
	transition: opacity .3s var(--ease);
}
.cfx-tab:hover::before { opacity: 1; }

.cfx-tab.is-active .cfx-tab__summary,
.cfx-tab.is-active .cfx-ticks li,
.cfx-tab.is-active .wp-block-buttons { animation: cfx-in .45s var(--ease) both; }
.cfx-tab.is-active .cfx-ticks li { animation-delay: calc(120ms + var(--i, 0) * 110ms); }
.cfx-tab.is-active .wp-block-buttons { animation-delay: .5s; }

/* Signal map: channels routing into the goal */
.cfx-signal { position: relative; aspect-ratio: 1 / 1; max-height: 380px; width: 100%; justify-self: center; }
.cfx-signal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cfx-signal .s-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; opacity: .6; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.cfx-signal .s-pulse { fill: none; stroke: var(--fox-teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--pl, 7) var(--len); stroke-dashoffset: calc(var(--len) + var(--pl, 7)); opacity: 0; }
.cfx-tab.is-active .s-line { animation: cfx-draw .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
.cfx-tab.is-active .s-pulse { animation: cfx-sig 2.6s linear infinite; animation-delay: calc(1s + var(--i, 0) * .45s); }
@keyframes cfx-sig { 0% { stroke-dashoffset: calc(var(--len) + var(--pl, 7)); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.cfx-signal__hub {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	text-align: center;
	width: 30%;
	aspect-ratio: 1 / 1;
	padding: 10px;
	box-sizing: border-box;
	background: var(--gradient-brand);
	color: var(--on-brand);
	font-weight: 700;
	font-size: clamp(14px, 1.4vw, 17px);
	line-height: 1.15;
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
	border-radius: var(--radius-md);
}
.cfx-tab.is-active .cfx-signal__hub { animation: cfx-hub .6s var(--ease) both; }
@keyframes cfx-hub { from { transform: translate(-50%, -50%) scale(.8); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.cfx-signal__chip {
	position: absolute;
	transform: translate(-50%, -50%);
	padding: 8px 12px;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}
.cfx-tab.is-active .cfx-signal__chip { animation: cfx-chip .45s var(--ease) both; animation-delay: calc(200ms + var(--i, 0) * 90ms); }
@keyframes cfx-chip { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.cfx-signal__chip.is-lit { border-color: var(--fox-teal); background: var(--fox-tint); }

/* 30-day timeline */
.cfx-timeline { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.cfx-timeline__head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.cfx-timeline__track { position: relative; height: 2px; background: var(--line); margin: 8px 6px 0; }
.cfx-timeline__fill { position: absolute; inset: 0; background: var(--fox-teal); transform-origin: 0 50%; transform: scaleX(0); }
.cfx-tab.is-active .cfx-timeline__fill { animation: cfx-fill 1.6s var(--ease) .4s forwards; }
@keyframes cfx-fill { to { transform: scaleX(1); } }
.cfx-timeline__steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
.cfx-timeline__step { position: relative; padding-top: 20px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.cfx-timeline__step::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--sec-card);
	border: 2px solid var(--line-strong);
	box-sizing: border-box;
}
.cfx-tab.is-active .cfx-timeline__step::before { animation: cfx-dot-on .3s var(--ease) forwards; animation-delay: calc(.6s + var(--i, 0) * .45s); }
@keyframes cfx-dot-on { to { background: var(--fox-teal); border-color: var(--fox-teal); } }
.cfx-timeline__step span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px !important; }

@media (max-width: 1000px) {
	.cfx-tabs.is-ready { grid-template-columns: 1fr; }
	.cfx-tablist { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
	.cfx-tablist::-webkit-scrollbar { display: none; }
	.cfx-tablist button { flex: none; width: auto; font-size: 16px; padding: 10px 14px; white-space: nowrap; }
	.cfx-tablist button small { display: none; }
	.cfx-tablist button:hover { transform: none; }
	.cfx-tabs.is-ready .cfx-tab { grid-template-columns: 1fr; }
	.cfx-tabs.is-ready .cfx-tab > .cfx-signal { grid-column: 1; grid-row: auto; max-width: 340px; }
}
@media (max-width: 600px) { .cfx-timeline__steps { grid-template-columns: 1fr; } .cfx-timeline__track { display: none; } }

/* ==========================================================================
   Numbers
   ========================================================================== */

.cfx-numbers__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cfx-numbers .cfx-intro { margin-bottom: 0 !important; }
.cfx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.cfx-stat { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.cfx-stat__num { font-size: clamp(56px, 7vw, 96px); line-height: .9; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.cfx-stat__label { color: var(--ink-muted); max-width: 26ch; }
@media (max-width: 900px) { .cfx-numbers__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   The CyberFox Way
   Without JS (and in the editor): four columns on a line.
   With JS on wide screens: steps scroll past a pinned "stage" that shows
   what each step produces.
   ========================================================================== */

.cfx-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 40px; }
.cfx-steps::before,
.cfx-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.cfx-steps::after { background: var(--fox-teal); transform-origin: 0 50%; transform: scaleX(var(--draw, 1)); }
.cfx-step { position: relative; display: grid; gap: 12px; align-content: start; }
.cfx-step::before {
	content: "";
	position: absolute;
	top: -40px;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--bg-band);
	border: 2px solid var(--line-strong);
	box-sizing: border-box;
	transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
	z-index: 1;
}
.cfx-step.is-lit::before,
.cfx-steps:not(.is-tracking) .cfx-step::before { background: var(--fox-teal); border-color: var(--fox-teal); }
.cfx-step__num { font-size: 14px; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.cfx-step h3 { font-size: 26px !important; }
.cfx-step p:not(.cfx-step__num):not(.cfx-step__out) { color: var(--ink-muted); }
.cfx-step__out { font-size: 14px; color: var(--ink); padding: 10px 12px; background: var(--sec-card); border-left: 2px solid var(--fox-teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cfx-step__out strong { color: var(--accent-text); font-weight: 600; }

@media (max-width: 900px) {
	.cfx-steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: 48px; }
	.cfx-steps::before, .cfx-steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
	.cfx-steps::after { transform-origin: 50% 0; transform: scaleY(var(--draw, 1)); }
	.cfx-step::before { top: 4px; left: -40px; }
}

/* Scrollytelling (desktop, JS) */
.cfx-way { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cfx-way .cfx-steps { grid-template-columns: 1fr; padding: 0 0 0 44px; gap: 0; }
.cfx-way .cfx-steps::before, .cfx-way .cfx-steps::after { left: 7px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
.cfx-way .cfx-steps::after { transform-origin: 50% 0; transform: scaleY(var(--draw, 0)); }
.cfx-way .cfx-step { min-height: 52vh; padding-block: 8px 48px; box-sizing: border-box; cursor: pointer; opacity: .38; transition: opacity .4s var(--ease); }
.cfx-way .cfx-step:last-child { min-height: 40vh; }
.cfx-way .cfx-step::before { top: 12px; left: -44px; }
.cfx-way .cfx-step.is-current { opacity: 1; }
.cfx-way .cfx-step.is-current::before { transform: scale(1.35); box-shadow: 0 0 0 6px rgba(28, 184, 171, .18); }
.cfx-way .cfx-step h3 { font-size: clamp(28px, 3vw, 40px) !important; transition: color .3s var(--ease); }
.cfx-way .cfx-step:hover { opacity: .75; }
.cfx-way .cfx-step.is-current:hover { opacity: 1; }

.cfx-stage {
	position: sticky;
	top: calc(var(--header-h) + 40px);
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 16px;
	min-height: 440px;
	padding: 24px;
	box-sizing: border-box;
	background: var(--sec-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
}
.cfx-stage__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.cfx-stage__head b { color: var(--ink); font-size: 16px; }
.cfx-stage__dots { display: flex; gap: 6px; }
.cfx-stage__dots button { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; transition: background-color .3s var(--ease); }
.cfx-stage__dots button[aria-current="true"] { background: var(--fox-teal); }
.cfx-stage__screen { position: relative; min-height: 300px; }
.cfx-stage__foot { font-size: 14px; color: var(--ink-muted); min-height: 1.5em; }
.cfx-stage .cfx-viz { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.cfx-stage .cfx-viz.is-active { opacity: 1; transform: none; }

/* Inline visual for each step on small screens */
.cfx-step > .cfx-viz { position: relative; height: 220px; margin-top: 8px !important; padding: 12px; background: var(--sec-card); border: 1px solid var(--line); border-radius: var(--radius-md); }

.cfx-viz svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cfx-viz .v-grid { stroke: var(--line); stroke-width: 1; }
.cfx-viz .v-muted { fill: var(--line); }
.cfx-viz .v-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.cfx-viz .v-text { fill: var(--ink-muted); font-family: var(--font); font-size: 13px; font-weight: 500; }
.cfx-viz .v-strong { fill: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 600; }
.cfx-viz .v-teal { fill: var(--fox-teal); }
.cfx-viz .v-sky { fill: var(--fox-sky); }
.cfx-viz .v-tint { fill: var(--fox-tint); }
.cfx-viz .v-card { fill: var(--bg); stroke: var(--line); }

/* Research: bars grow, lens sweeps */
.cfx-viz .v-bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.08); transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.cfx-viz.is-active .v-bar { transform: scaleY(1); }
.cfx-viz .v-lens { transform: translateX(-40px); transition: transform 1.4s var(--ease) .3s; }
.cfx-viz.is-active .v-lens { transform: translateX(var(--lx, 120px)); }
/* Strategy: donut segments draw */
.cfx-viz .v-seg { fill: none; stroke-width: 26; stroke-dasharray: 0 999; transition: stroke-dasharray 1s var(--ease); transition-delay: calc(var(--i, 0) * 250ms); }
.cfx-viz.is-active .v-seg { stroke-dasharray: var(--d) 999; }
.cfx-viz .v-legend { opacity: 0; transition: opacity .4s var(--ease); transition-delay: calc(.6s + var(--i, 0) * 200ms); }
.cfx-viz.is-active .v-legend { opacity: 1; }
/* Implementation: checklist ticks */
.cfx-viz .v-row { opacity: .35; transition: opacity .3s var(--ease); transition-delay: calc(var(--i, 0) * 380ms); }
.cfx-viz.is-active .v-row { opacity: 1; }
.cfx-viz .v-check { fill: var(--line); transition: fill .3s var(--ease); transition-delay: calc(.2s + var(--i, 0) * 380ms); }
.cfx-viz.is-active .v-check { fill: var(--fox-teal); }
.cfx-viz .v-tick { fill: none; stroke: var(--on-brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--ease); transition-delay: calc(.3s + var(--i, 0) * 380ms); }
.cfx-viz.is-active .v-tick { stroke-dashoffset: 0; }
.cfx-viz .v-status { opacity: 0; transition: opacity .3s var(--ease); transition-delay: calc(.35s + var(--i, 0) * 380ms); }
.cfx-viz.is-active .v-status { opacity: 1; }
/* Optimisation: trend draws, winner badge pops */
.cfx-viz .v-trend { fill: none; stroke: var(--fox-teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.cfx-viz.is-active .v-trend { stroke-dashoffset: 0; }
.cfx-viz .v-area { opacity: 0; transition: opacity .8s var(--ease) 1s; }
.cfx-viz.is-active .v-area { opacity: .18; }
.cfx-viz .v-win { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); transition: opacity .3s var(--ease) 1.5s, transform .4s var(--ease) 1.5s; }
.cfx-viz.is-active .v-win { opacity: 1; transform: none; }
.cfx-viz .v-lose { transition: opacity .4s var(--ease) 1.5s; }
.cfx-viz.is-active .v-lose { opacity: .4; }

@media (prefers-reduced-motion: reduce) {
	.cfx-viz * { transition: none !important; }
}

.cfx-steps--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cfx-steps--compact { grid-template-columns: 1fr; } }

/* ==========================================================================
   Work / case studies
   ========================================================================== */

.cfx-case { gap: 12px; }
.cfx-case__client { font-size: 15px; font-weight: 600; color: var(--ink) !important; }
.cfx-case h3 { font-size: 26px !important; line-height: 1.15; text-wrap: balance; }
.cfx-case__result { margin-top: auto !important; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); font-size: 14px; color: var(--ink-muted) !important; }
.cfx-case--next { background: var(--fox-tint); }
.cfx-case--next p { color: var(--ink); }
.cfx-case--next .wp-block-buttons { margin-top: auto !important; padding-top: 12px; }

/* ==========================================================================
   Working with us: WhatsApp-style group chat
   ========================================================================== */

.cfx-culture .cfx-split { align-items: center; }
.cfx-promises { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 12px !important; }
.cfx-promises li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-muted); line-height: 1.45; }
.cfx-promises li:last-child { border-bottom: 1px solid var(--line); }
.cfx-promises strong { color: var(--ink); font-weight: 600; }

.cfx-chat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 14px 14px;
	height: 600px;
	box-sizing: border-box;
	background-color: var(--chat-bg);
	background-image: radial-gradient(rgba(124, 133, 136, .16) 1px, transparent 1.2px);
	background-size: 18px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
	margin-bottom: 12px !important;
	font-size: 15px;
	overflow: hidden;
}
.cfx-chat__head {
	position: relative;
	display: grid;
	grid-template-columns: 40px 1fr;
	column-gap: 12px;
	align-items: center;
	margin: 0 -14px 8px !important;
	padding: 12px 48px 12px 14px;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: 13px;
	line-height: 1.3;
}
.cfx-chat__head::before {
	content: "";
	grid-row: 1 / span 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gradient-brand);
}
.cfx-chat__head strong { display: block; font-size: 16px; font-weight: 600; }
.cfx-chat__head { color: var(--ink-muted); }
.cfx-chat__head strong { color: var(--ink); }
.cfx-chat__day {
	align-self: center;
	margin: 6px 0 !important;
	padding: 4px 10px;
	background: var(--bg);
	border-radius: var(--radius-md);
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-muted);
}
.cfx-msg {
	position: relative;
	max-width: 80%;
	padding: 7px 10px 8px;
	border-radius: var(--radius-md);
	line-height: 1.38;
	color: var(--ink);
	box-sizing: border-box;
}
.cfx-msg strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px !important; color: var(--name-1); }
.cfx-msg.n2 strong { color: var(--name-2); }
.cfx-msg.n3 strong { color: var(--name-3); }
.cfx-msg em {
	float: right;
	margin: 6px 0 -4px 12px !important;
	font-style: normal;
	font-size: 11px;
	color: var(--ink-muted);
	line-height: 1;
}
.cfx-msg.is-us em::after {
	/* read receipt */
	content: "";
	display: inline-block;
	width: 16px;
	height: 10px;
	margin-left: 3px;
	vertical-align: -1px;
	background: var(--accent-text);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5.5l2.6 2.6L9.5 2M6.5 8.1l.1.1L13 1.8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5.5l2.6 2.6L9.5 2M6.5 8.1l.1.1L13 1.8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cfx-msg.is-them { align-self: flex-start; background: var(--bubble-them); border-top-left-radius: 0; }
.cfx-msg.is-us { align-self: flex-end; background: var(--bubble-us); border-top-right-radius: 0; }
.cfx-msg.is-us strong { color: var(--accent-text); }
.cfx-msg.is-cont { border-radius: var(--radius-md); }
.cfx-msg.is-cont strong { display: none; }
.cfx-msg q { display: block; margin: 2px 0 6px !important; padding: 6px 8px; border-left: 3px solid var(--name-2); background: rgba(124, 133, 136, .12); border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-muted); quotes: none; }
.cfx-msg mark { background: none; color: inherit; }
.cfx-msg.has-creative mark { display: none; }

/* Photo album and ad creative previews (added by JS) */
.cfx-media { display: grid; gap: 3px; margin: 2px 0 6px !important; border-radius: var(--radius-sm); overflow: hidden; }
.cfx-media--photos { grid-template-columns: 1fr 1fr; width: 176px; max-width: 100%; }
.cfx-media--photos i {
	display: block;
	aspect-ratio: 1 / 1;
	background:
		linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18)),
		linear-gradient(135deg, #b9d9df, #8fb8c0);
	position: relative;
}
.cfx-media--photos i:nth-child(2) { background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18)), linear-gradient(135deg, #e6d3b8, #c9a77e); }
.cfx-media--photos i:nth-child(3) { background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18)), linear-gradient(135deg, #c9cfe6, #9aa4cf); }
.cfx-media--photos i:nth-child(4) { background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18)), linear-gradient(135deg, #cfe3c4, #9dbf8c); }
.cfx-media--photos i::after {
	/* simple "people" silhouettes so it reads as a photo */
	content: "";
	position: absolute;
	inset: 35% 18% 0;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55) 0 14%, transparent 15%), radial-gradient(circle at 70% 34%, rgba(255, 255, 255, .45) 0 12%, transparent 13%), radial-gradient(ellipse at 30% 95%, rgba(255, 255, 255, .45) 0 30%, transparent 31%), radial-gradient(ellipse at 70% 98%, rgba(255, 255, 255, .38) 0 26%, transparent 27%);
}
.cfx-media--photos b { grid-column: 2; grid-row: 2; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 20px; font-weight: 600; margin-top: -100% !important; aspect-ratio: 1 / 1; position: relative; }
.cfx-media--ad { width: 240px; max-width: 100%; background: #171415; color: #f4f1f1; padding: 14px; box-sizing: border-box; gap: 8px; border-radius: var(--radius-md); }
.cfx-media--ad small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #a8a3a4; }
.cfx-media--ad span { font-size: 20px; font-weight: 700; line-height: 1.05; }
.cfx-media--ad u { text-decoration: none; justify-self: start; padding: 6px 10px; background: var(--fox-teal); color: var(--on-brand); font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); }

.cfx-chat__body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 -14px !important;
	padding: 4px 14px 12px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}
.cfx-chat__body > * { flex: none; }
.cfx-chat__input {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 -14px -14px !important;
	padding: 10px 14px;
	background: var(--bg);
	border-top: 1px solid var(--line);
	color: var(--ink-muted);
	font-size: 14px;
}
.cfx-chat__input span { flex: 1; padding: 8px 12px; background: var(--chat-bg); border-radius: var(--radius-md); }
.cfx-chat__input i { width: 34px; height: 34px; border-radius: 50%; background: var(--fox-teal); flex: none; }

.cfx-chat.is-waiting .cfx-msg,
.cfx-chat.is-waiting .cfx-chat__day { display: none; }
.cfx-chat .is-shown { display: block !important; animation: cfx-in .3s var(--ease); }
.cfx-chat .cfx-chat__day.is-shown { display: inline-block !important; }
.cfx-typing { display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 12px; background: var(--bubble-them); border-radius: var(--radius-md); font-size: 12px; color: var(--ink-muted); }
.cfx-typing.is-us { align-self: flex-end; background: var(--bubble-us); }
.cfx-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); opacity: .4; animation: cfx-dot 1s infinite; }
.cfx-typing i:nth-child(2) { animation-delay: .15s; }
.cfx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cfx-dot { 50% { opacity: 1; transform: translateY(-2px); } }
.cfx-chat__replay { align-self: center; margin-top: 8px !important; padding: 6px 12px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); font: 600 13px/1 var(--font); cursor: pointer; }
.cfx-chat__replay:hover { border-color: var(--fox-teal); }

/* ==========================================================================
   FAQ (core Details block)
   ========================================================================== */

.cfx-accordion { display: grid; border-bottom: 1px solid var(--line); }
.cfx-accordion .wp-block-details { border-top: 1px solid var(--line); padding: 0; }
.cfx-accordion summary { list-style: none; position: relative; padding: 22px 48px 22px 0; font-size: 20px; font-weight: 600; line-height: 1.3; cursor: pointer; color: var(--ink); }
.cfx-accordion summary::-webkit-details-marker { display: none; }
.cfx-accordion summary::before,
.cfx-accordion summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--accent-text); transition: transform .25s var(--ease); }
.cfx-accordion summary::after { transform: rotate(90deg); }
.cfx-accordion details[open] summary::after { transform: rotate(0deg); }
.cfx-accordion details > p { padding: 0 48px 24px 0; color: var(--ink-muted); max-width: 64ch; }
.cfx-accordion details[open] > p { animation: cfx-in .3s var(--ease); }

/* ==========================================================================
   CTA + form (the page's one brand-gradient field)
   ========================================================================== */

.cfx-cta__panel {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
	padding: clamp(28px, 5vw, 72px) !important;
	background: var(--gradient-brand);
	color: var(--on-brand);
	border-radius: var(--radius-lg);
	clip-path: polygon(var(--chamfer-lg) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer-lg));
	width: calc(100% - 2 * var(--gutter));
	max-width: var(--wrap);
}
.cfx-cta__copy { display: grid; gap: 20px; }
.cfx-cta__copy h2, .cfx-cta__copy p, .cfx-cta__copy li, .cfx-cta__copy .cfx-lead { color: var(--on-brand); }
.cfx-cta .cfx-cta__copy .cfx-ticks li::before, .cfx-cta .cfx-cta__copy .cfx-ticks li::after { background: var(--on-brand); }
.cfx-cta__direct a { color: var(--on-brand); font-weight: 600; }
.cfx-cta__form { background: var(--bg); color: var(--ink); border-radius: var(--radius-md); padding: clamp(20px, 3vw, 36px); }
@media (max-width: 960px) { .cfx-cta__panel { grid-template-columns: 1fr; } }

/* Form ------------------------------------------------------------------- */

.cfx-form { display: grid; gap: 20px; font-family: var(--font); }
.cfx-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.cfx-form legend { font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--ink); padding: 0; margin-bottom: 4px; }
.cfx-form__hint { font-size: 14px; color: var(--ink-muted); }
.cfx-form__progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; display: none; }
.cfx-form__progress span { display: block; height: 100%; width: var(--step, 33%); background: var(--fox-teal); transition: width .35s var(--ease); }
.cfx-form__count { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); display: none; }
.cfx-form.is-stepped .cfx-form__progress, .cfx-form.is-stepped .cfx-form__count { display: block; }
.cfx-form.is-stepped .cfx-form__step:not(.is-current) { display: none; }
.cfx-form.is-stepped .cfx-form__step.is-current { animation: cfx-in .3s var(--ease); }
.cfx-form:not(.is-stepped) .cfx-form__step + .cfx-form__step { padding-top: 20px; border-top: 1px solid var(--line); }

.cfx-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cfx-choice { position: relative; display: block; cursor: pointer; }
.cfx-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cfx-choice span {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 12px 16px;
	box-sizing: border-box;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--field-bg);
	font-size: 16px;
	font-weight: 500;
	color: var(--ink);
	transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.cfx-choice:hover span { border-color: var(--fox-teal); }
.cfx-choice input:checked + span { background: var(--fox-tint); border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }
.cfx-choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) { .cfx-choices { grid-template-columns: 1fr; } }

.cfx-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.cfx-field { display: grid; gap: 6px; margin: 0; }
.cfx-field--wide { grid-column: 1 / -1; }
.cfx-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.cfx-field label span { font-weight: 400; color: var(--ink-muted); }
.cfx-field input,
.cfx-field textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--field-bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
}
.cfx-field input::placeholder, .cfx-field textarea::placeholder { color: var(--ink-muted); opacity: .8; }
.cfx-field textarea { min-height: 88px; resize: vertical; }
.cfx-field input:focus, .cfx-field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent-text); }
.cfx-field.is-invalid input { border-color: var(--error); }
.cfx-field__err { font-size: 13px; color: var(--error); }
@media (max-width: 480px) { .cfx-fields { grid-template-columns: 1fr; } }

.cfx-form__legal { font-size: 12px; color: var(--ink-muted); }
.cfx-form__error { padding: 12px 14px; border-left: 3px solid var(--error); background: rgba(179, 38, 30, .08); color: var(--ink); font-size: 14px; }
.cfx-form__nav { display: flex; gap: 12px; align-items: center; }
.cfx-form__nav [data-back] { margin-right: auto; }
.cfx-form__nav .cfx-btn { min-width: 132px; }
.cfx-form__nav [data-submit] { margin-left: auto; }
.cfx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.cfx-problem h3 { font-size: 24px !important; }
.cfx-features { gap: 0; border-top: 1px solid var(--line); }
.cfx-feature { display: grid; gap: 10px; align-content: start; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.cfx-feature p { color: var(--ink-muted); }
.cfx-feature h3 { font-size: 22px !important; }
.cfx-feature h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 18px; background: var(--fox-teal); }

.cfx-person { gap: 10px; }
.cfx-person__photo { margin: 0 0 8px !important; }
.cfx-person__photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); background: var(--fox-tint); }
.cfx-person__role { color: var(--ink-muted); }

.cfx-story .cfx-split__b { display: grid; gap: 18px; }
.cfx-story .cfx-split__b p:not(.cfx-lead) { color: var(--ink-muted); font-size: 17px; max-width: 62ch; }

.cfx-contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); width: 100%; }
.cfx-contact-item { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cfx-contact-item__value { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.cfx-contact-item__value a { color: var(--ink); text-decoration: none; }
.cfx-contact-item__value a:hover { color: var(--accent-text); text-decoration: underline; }
.cfx-contact-item__value br + a { font-size: 15px; font-weight: 500; color: var(--accent-text); }

.cfx-quote { margin: 0; }
.cfx-quote__text { font-size: 22px; line-height: 1.4; color: var(--ink) !important; }

/* Page head for posts, archives and text pages */
.cfx-page-head { padding-block: clamp(48px, 7vw, 96px); }
.cfx-page-head .cfx-wrap { display: grid; gap: 16px; }
.cfx-page-head__title { font-size: clamp(36px, 5vw, 64px) !important; line-height: 1.02; font-weight: 700; color: var(--ink); max-width: 20ch; text-wrap: balance; }
.cfx-page-head__meta { color: var(--ink-muted); font-size: 14px; }
.cfx-page-head .cfx-eyebrow a { color: inherit; text-decoration: none; }

/* Plain content (blog posts, privacy policy, any blocks outside our sections) */
.cfx-content > :not(.cfx-section):not(.alignfull):not(.alignwide),
.cfx-prose > :not(.cfx-section):not(.alignfull):not(.alignwide) { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.cfx-content > .alignwide { max-width: var(--wrap); margin-inline: auto; }
.cfx-prose { padding-block: clamp(40px, 6vw, 80px); font-size: 18px; line-height: 1.65; }
.cfx-prose > * + * { margin-block-start: 1.1em; }
.cfx-prose h2 { font-size: 30px; line-height: 1.15; margin-block-start: 1.8em; }
.cfx-prose h3 { font-size: 22px; line-height: 1.25; margin-block-start: 1.5em; }
.cfx-single__image { max-width: var(--wrap); margin: clamp(-48px, -4vw, -24px) auto 0 !important; padding-inline: var(--gutter); position: relative; z-index: 2; }
.cfx-single__image img { border-radius: var(--radius-lg); }

/* Archive grid */
.cfx-post-grid { list-style: none; padding: 0; margin: 0; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 900px) { .cfx-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cfx-post-grid { grid-template-columns: 1fr; } }
.cfx-post-card { display: grid; gap: 10px; align-content: start; }
.cfx-post-card__img { margin: 0 0 6px !important; }
.cfx-post-card__img img { border-radius: var(--radius-md); background: var(--bg-raised); }
.cfx-post-card__date { font-size: 13px; color: var(--ink-muted); }
.cfx-post-card__title { font-size: 22px !important; line-height: 1.2; }
.cfx-post-card__title a { color: var(--ink); text-decoration: none; }
.cfx-post-card__title a:hover { color: var(--accent-text); }
.cfx-post-card__excerpt { color: var(--ink-muted); }
.cfx-post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.cfx-pagination { margin-top: 48px !important; display: flex; gap: 12px; font-weight: 600; }

/* ==========================================================================
   Footer (dark in both themes)
   ========================================================================== */

.cfx-footer { padding-block: 72px 32px; }
.cfx-footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); padding-bottom: 56px; }
.cfx-footer__brand { display: grid; gap: 20px; justify-items: start; }
.cfx-footer__logo { margin: 0 !important; }
.cfx-footer__logo img { display: block; width: 150px; height: auto; }
.cfx-footer__about { color: var(--ink-muted); max-width: 40ch; }
.cfx-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cfx-footer__title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px !important; }
.cfx-footer__links { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--ink-muted); font-size: 15px; }
.cfx-footer__links a { color: var(--ink); text-decoration: none; }
.cfx-footer__links a:hover { color: var(--accent-text); text-decoration: underline; }
.cfx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; background: linear-gradient(var(--line), var(--line)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; font-size: 14px; color: var(--ink-muted); }
.cfx-footer__social { display: flex; gap: 20px; }
.cfx-footer__social a { color: var(--ink); text-decoration: none; }
.cfx-footer__social a:hover { color: var(--accent-text); }
@media (max-width: 900px) { .cfx-footer__top { grid-template-columns: 1fr; } .cfx-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cfx-footer__cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */

.cfx-wa {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 14px;
	background: var(--fox-teal);
	color: var(--on-brand) !important;
	font-family: var(--font);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	border-radius: var(--radius-md);
	clip-path: polygon(var(--chamfer-sm) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer-sm));
	transition: transform .3s var(--ease), background-color .2s var(--ease), opacity .3s var(--ease);
}
.cfx-wa:hover { background: var(--fox-sky); }
.cfx-wa.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .cfx-wa span { display: none; } .cfx-wa { padding: 12px; right: 14px; bottom: 14px; } }

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.cfx-traces .t-pulse, .cfx-signal .s-pulse { display: none; }
}

/* Goal picker subtitle lives in the tab button once JS runs */
.cfx-tab__sub { font-size: 14px; color: var(--ink-muted); }
.cfx-tabs.is-ready .cfx-tab__sub { display: none; }

@media (max-width: 600px) { .cfx-chat { height: 560px; } .cfx-msg { max-width: 88%; } }
@media (max-width: 600px) {
	.cfx-signal { max-width: 300px !important; margin-inline: auto; }
	.cfx-signal__chip { font-size: 11px; padding: 5px 7px; }
	.cfx-signal__hub { font-size: 12px; }
}

/* ==========================================================================
   Inner pages: shared bits
   ========================================================================== */

.cfx-glance__art { margin: calc(-1 * clamp(20px, 2.4vw, 32px)) calc(-1 * clamp(20px, 2.4vw, 32px)) 8px !important; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, rgba(36, 190, 228, .18), transparent 60%), var(--bg-band); border-bottom: 1px solid var(--line); }
.cfx-glance__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cfx-ticks--2col { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.cfx-ticks--2col li { font-size: 14px; }
@media (max-width: 480px) { .cfx-ticks--2col { grid-template-columns: 1fr; } }
.cfx-hero--page .cfx-hero__grid { align-items: center; }
.cfx-work__more { margin-top: 32px !important; }
.cfx-jump { flex-direction: column; align-items: stretch; }
.cfx-jump .wp-block-button__link { width: 100%; justify-content: flex-start; }

/* ==========================================================================
   Funnel explorer (performance marketing)
   ========================================================================== */

.cfx-funnel { display: grid; gap: 24px; }
.cfx-fstage { display: grid; gap: 14px; padding: clamp(20px, 3vw, 36px); background: var(--sec-card); border: 1px solid var(--line); border-radius: var(--radius-md); }
.cfx-fstage__title { font-size: 28px !important; }
.cfx-fstage__sub { font-size: 18px; color: var(--ink-muted); }
.cfx-fstage__kpi { font-size: 14px; color: var(--ink-muted); padding-top: 14px; border-top: 1px solid var(--line); }

.cfx-funnel.is-ready { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cfx-funnel__viz { position: relative; display: grid; gap: 8px; justify-items: center; }
.cfx-funnel__viz button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 76px;
	padding: 0 28px;
	box-sizing: border-box;
	border: 0;
	background: var(--sec-card);
	color: var(--ink-muted);
	font: 600 18px/1.1 var(--font);
	cursor: pointer;
	clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 22px 100%);
	transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.cfx-funnel__viz button:nth-child(1) { width: 100%; }
.cfx-funnel__viz button:nth-child(2) { width: calc(100% - 48px); }
.cfx-funnel__viz button:nth-child(3) { width: calc(100% - 96px); }
.cfx-funnel__viz button:nth-child(4) { width: calc(100% - 144px); }
.cfx-funnel__viz button small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cfx-funnel__viz button:hover { color: var(--ink); transform: scale(1.02); }
.cfx-funnel__viz button[aria-selected="true"] { background: var(--gradient-brand); color: var(--on-brand); }
.cfx-funnel__viz button[aria-selected="true"] small { opacity: .8; }
.cfx-funnel__drop { width: 10px; height: 46px; margin-top: 4px !important; background: linear-gradient(var(--fox-teal), transparent); border-radius: 2px; }
.cfx-funnel__drop::after { content: ""; display: block; width: 12px; height: 12px; margin: 50px 0 0 -1px; border-radius: 50%; background: var(--fox-teal); animation: cfx-drip 1.8s var(--ease) infinite; }
@keyframes cfx-drip { 0% { transform: translateY(-40px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
.cfx-funnel.is-ready .cfx-fstage[hidden] { display: none; }
.cfx-funnel.is-ready .cfx-fstage { animation: cfx-in .4s var(--ease); }
.cfx-funnel.is-ready .cfx-fstage .cfx-ticks li { animation: cfx-in .4s var(--ease) both; animation-delay: calc(100ms + var(--i, 0) * 90ms); }
@media (max-width: 900px) {
	.cfx-funnel.is-ready { grid-template-columns: 1fr; }
	.cfx-funnel__viz button { height: 60px; font-size: 16px; padding: 0 22px; }
	.cfx-funnel__drop { display: none; }
}

/* ==========================================================================
   Search results demo (SEO)
   ========================================================================== */

.cfx-serp__query { font-size: 18px; padding: 14px 16px; background: var(--sec-card); border: 1px solid var(--line); border-radius: var(--radius-md); }
.cfx-serp.is-ready .cfx-serp__query { display: none; }
.cfx-serp__app { display: grid; gap: 12px; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%); }
.cfx-serp__form { display: flex; gap: 8px; }
.cfx-serp__form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px 10px 40px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='%231cb8ab' stroke-width='2.5'/%3E%3Cpath d='M15 15l5 5' stroke='%231cb8ab' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 12px 50% / 18px no-repeat; color: var(--ink); font: 400 16px var(--font); }
.cfx-serp__form button { min-height: 46px; }
.cfx-serp__meta { font-size: 12px; color: var(--ink-muted); }
.cfx-serp__pack { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px; background: var(--sec-card); border-radius: var(--radius-md); }
.cfx-serp__map { position: relative; min-height: 132px; border-radius: var(--radius-sm); background: linear-gradient(115deg, transparent 47%, rgba(36, 190, 228, .35) 48% 52%, transparent 53%), linear-gradient(25deg, transparent 60%, rgba(124, 133, 136, .25) 61% 63%, transparent 64%), repeating-linear-gradient(0deg, rgba(124, 133, 136, .12) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(124, 133, 136, .12) 0 1px, transparent 1px 22px), var(--bg-band); overflow: hidden; }
.cfx-serp__pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--line-strong); }
.cfx-serp__pin.is-you { background: var(--fox-teal); box-shadow: 0 0 0 6px rgba(28, 184, 171, .25); }
.cfx-serp__places { display: grid; gap: 6px; align-content: start; }
.cfx-serp__place { display: grid; gap: 2px; padding: 6px 8px; border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-muted); transition: background-color .4s var(--ease); }
.cfx-serp__place b { font-size: 14px; color: var(--ink); }
.cfx-serp__place.is-you { background: var(--fox-tint); }
.cfx-serp__results { position: relative; display: grid; gap: 4px; }
.cfx-serp__result { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; padding: 10px; border-radius: var(--radius-md); transition: transform .7s var(--ease), background-color .4s var(--ease); background: transparent; }
.cfx-serp__result i { grid-row: 1 / span 3; width: 24px; height: 24px; border-radius: 50%; background: var(--line); }
.cfx-serp__result small { font-size: 12px; color: var(--ink-muted); }
.cfx-serp__result b { font-size: 16px; font-weight: 600; color: var(--accent-text); line-height: 1.25; }
.cfx-serp__result span { font-size: 13px; color: var(--ink-muted); line-height: 1.35; }
.cfx-serp__result.is-you { background: var(--fox-tint); }
.cfx-serp__result.is-you i { background: var(--gradient-brand); }
.cfx-serp__rank { position: absolute; right: 8px; top: 8px; padding: 4px 8px; background: var(--fox-teal); color: var(--on-brand); font: 700 12px var(--font); border-radius: var(--radius-sm); }
@media (max-width: 600px) { .cfx-serp__pack { grid-template-columns: 1fr; } .cfx-serp__map { min-height: 100px; } .cfx-serp__form { flex-direction: column; } }

/* ==========================================================================
   Content calendar (social)
   ========================================================================== */

.cfx-calendar { display: grid; gap: 16px; }
.cfx-calendar__formats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cfx-calendar__formats li { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.cfx-calendar.is-ready .cfx-calendar__formats { display: none; }
.cfx-cal__legend { display: flex; flex-wrap: wrap; gap: 8px; }
.cfx-cal__legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; color: var(--ink); font: 600 14px var(--font); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.cfx-cal__legend button i { width: 12px; height: 12px; border-radius: 2px; background: var(--c); }
.cfx-cal__legend button span { color: var(--ink-muted); font-weight: 500; }
.cfx-cal__legend button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.cfx-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cfx-cal__dow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 0 4px 4px; }
.cfx-cal__day { position: relative; min-height: 92px; padding: 8px; box-sizing: border-box; background: var(--sec-card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; color: var(--ink-muted); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cfx-cal__post { box-shadow: inset 0 0 0 1px rgba(35, 31, 32, .22); display: block; margin-top: 8px !important; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--c); color: #231f20; font-size: 12px; font-weight: 600; line-height: 1.2; transform-origin: left center; animation: cfx-chip-in .4s var(--ease) both; animation-delay: calc(var(--d, 0) * 28ms); }
@keyframes cfx-chip-in { from { opacity: 0; transform: scaleX(.4); } to { opacity: 1; transform: none; } }
.cfx-calendar.is-filtered .cfx-cal__day:not(.is-match) { opacity: .35; }
.cfx-calendar.is-filtered .cfx-cal__day.is-match { transform: translateY(-3px); border-color: var(--line-strong); }
@media (max-width: 700px) { .cfx-cal__day { min-height: 64px; padding: 4px; } .cfx-cal__post { font-size: 0; padding: 0; height: 10px; } .cfx-cal__dow { font-size: 10px; letter-spacing: 0; } }

/* ==========================================================================
   Before / after slider (website)
   ========================================================================== */

.cfx-compare { position: relative; display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px !important; background: var(--bg-band); }
.cfx-compare .wp-block-image { margin: 0; grid-area: 1 / 1; }
.cfx-compare .wp-block-image img { display: block; width: 100%; height: auto; }
.cfx-compare.is-ready .cfx-compare__after { clip-path: inset(0 0 0 var(--x, 50%)); }
.cfx-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: var(--fox-teal); pointer-events: none; }
.cfx-compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: var(--radius-md); background: var(--fox-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6' fill='none' stroke='%23231f20' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.cfx-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cfx-compare__range:focus-visible + .cfx-compare__handle::after { outline: 2px solid var(--focus); outline-offset: 3px; }
.cfx-compare__label { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: var(--radius-sm); font: 600 12px var(--font); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.cfx-compare__label--before { left: 12px; background: rgba(23, 20, 21, .75); color: #f4f1f1; }
.cfx-compare__label--after { right: 12px; background: var(--fox-teal); color: var(--on-brand); }

/* ==========================================================================
   Service finder (services hub)
   ========================================================================== */

.cfx-finder { display: grid; gap: 20px; }
.cfx-finder__q { display: grid; gap: 12px; }
.cfx-finder__options { list-style: none; padding: 0; display: grid; gap: 8px; }
.cfx-finder.is-ready .cfx-finder__q { display: none; }
.cfx-finder__app { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); background: var(--sec-card); border: 1px solid var(--line); border-radius: var(--radius-lg); clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%); min-height: 380px; box-sizing: border-box; }
.cfx-finder__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.cfx-finder__bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cfx-finder__bar span { display: block; height: 100%; width: var(--w, 0); background: var(--fox-teal); transition: width .35s var(--ease); }
.cfx-finder__app h3 { font-size: clamp(22px, 2.4vw, 28px) !important; }
.cfx-finder__opts { display: grid; gap: 8px; }
.cfx-finder__opts button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); font: 500 16px/1.3 var(--font); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); animation: cfx-in .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.cfx-finder__opts button::after { content: ""; width: 16px; height: 2px; background: currentColor; flex: none; opacity: .4; transition: width .2s var(--ease), opacity .2s var(--ease); }
.cfx-finder__opts button:hover { border-color: var(--fox-teal); transform: translateX(4px); }
.cfx-finder__opts button:hover::after { width: 24px; opacity: 1; }
.cfx-finder__back { justify-self: start; padding: 0; background: none; border: 0; color: var(--accent-text); font: 600 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cfx-finder__result { display: grid; gap: 14px; animation: cfx-in .45s var(--ease); }
.cfx-finder__pick { display: grid; gap: 8px; padding: 20px; background: var(--fox-tint); border-left: 3px solid var(--fox-teal); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.cfx-finder__pick b { font-size: 26px; line-height: 1.1; color: var(--ink); }
.cfx-finder__pick p { color: var(--ink); }
.cfx-finder__also { font-size: 14px; color: var(--ink-muted); }

/* ==========================================================================
   Ways to work with us
   ========================================================================== */

.cfx-engage { gap: 14px; }
.cfx-engage h3 { font-size: 26px !important; }
.cfx-engage .cfx-ticks li { color: var(--ink); font-size: 15px; }
.cfx-engage .wp-block-buttons { margin-top: auto !important; padding-top: 12px; }
.cfx-engage.is-featured { background: var(--fox-tint); }
.cfx-engage.is-featured p { color: var(--ink); }

/* ==========================================================================
   Milestones (about)
   ========================================================================== */

.cfx-milestones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 2px 12px; position: relative; scrollbar-width: none; cursor: grab; }
.cfx-milestones::-webkit-scrollbar { display: none; }
.cfx-milestones.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cfx-milestone { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; scroll-snap-align: start; background: var(--sec-card); border: 1px solid var(--line); border-radius: var(--radius-md); user-select: none; }
.cfx-milestone::before { content: ""; position: absolute; top: -29px; left: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--fox-teal); box-shadow: 0 0 0 5px rgba(28, 184, 171, .2); }
.cfx-milestone::after { content: ""; position: absolute; top: -23px; left: 38px; width: calc(100% + 20px - 38px + 24px); height: 2px; background: var(--line-strong); opacity: .5; }
.cfx-milestone:last-child::after { display: none; }
.cfx-milestone__when { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.cfx-milestone h3 { font-size: 24px !important; }
.cfx-milestone p:not(.cfx-milestone__when) { color: var(--ink-muted); }
.cfx-milestones__nav { display: flex; align-items: center; gap: 12px; margin-top: 16px !important; }
.cfx-milestones__nav button { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer; }
.cfx-milestones__nav button:hover { border-color: var(--fox-teal); }
.cfx-milestones__nav button:disabled { opacity: .35; cursor: default; }
.cfx-milestones__bar { flex: 1; height: 2px; background: var(--line); }
.cfx-milestones__bar span { display: block; height: 100%; width: var(--w, 20%); background: var(--fox-teal); transition: width .2s linear; }

/* ==========================================================================
   City network (about, contact)
   ========================================================================== */

.cfx-network-sec .cfx-split { align-items: center; }
.cfx-network__address { font-size: 15px; color: var(--ink-muted); padding-top: 16px; border-top: 1px solid var(--line); }
.cfx-network__address strong { color: var(--ink); }
.cfx-network__cities { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cfx-network__cities li { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.cfx-network.is-ready .cfx-network__cities { display: none; }
.cfx-net { position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 5 / 6; }
.cfx-net svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cfx-net .n-dot { fill: var(--line-strong); opacity: .28; }
.cfx-net .n-line { fill: none; stroke: var(--fox-teal); stroke-width: 1.6; opacity: .45; transition: opacity .3s var(--ease), stroke-width .3s var(--ease); }
.cfx-net .n-line.is-far { stroke-dasharray: 4 6; }
.cfx-net .n-pulse { fill: none; stroke: var(--fox-sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 var(--len); stroke-dashoffset: calc(var(--len) + 10); animation: cfx-sig 3.2s linear infinite; animation-delay: calc(var(--i, 0) * .4s); }
.cfx-net .n-line.is-hot { opacity: 1; stroke-width: 2.6; }
.cfx-net__city { position: absolute; transform: translate(-7px, -7px); display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); font: 600 14px var(--font); cursor: default; white-space: nowrap; }
.cfx-net__city i { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--fox-teal); box-sizing: border-box; flex: none; transition: transform .3s var(--ease), background-color .3s var(--ease); }
.cfx-net__city span { padding: 2px 6px; background: var(--bg); border-radius: var(--radius-sm); }
.cfx-net__city.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -7px); }
.cfx-net__city:hover i, .cfx-net__city:focus-visible i, .cfx-net__city.is-hot i { transform: scale(1.4); background: var(--fox-teal); }
.cfx-net__city.is-hq i { width: 22px; height: 22px; border-width: 0; background: var(--gradient-brand); border-radius: var(--radius-sm); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); }
.cfx-net__city.is-hq { transform: translate(-11px, -11px); font-size: 16px; }
.cfx-net__city.is-hq span { background: var(--fox-tint); }
.cfx-net__caption { position: absolute; left: 0; bottom: 0; font-size: 12px; color: var(--ink-muted); }

/* ==========================================================================
   Work page: case study details
   ========================================================================== */

.cfx-cases__list { display: grid; gap: clamp(48px, 7vw, 96px); }
.cfx-case-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.cfx-case-detail__meta { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 14px; padding: 24px; background: var(--sec-card); border-radius: var(--radius-md); clip-path: polygon(0 0, calc(100% - var(--chamfer-md)) 0, 100% var(--chamfer-md), 100% 100%, 0 100%); }
.cfx-case-detail__meta h3 { font-size: 26px !important; }
.cfx-case-detail__facts { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-muted); }
.cfx-case-detail__facts strong { display: block; color: var(--ink); font-weight: 600; }
.cfx-case-detail__story { display: grid; gap: 14px; }
.cfx-case-detail__story h2 { font-size: clamp(30px, 3.6vw, 44px) !important; line-height: 1.05; margin-bottom: 12px !important; text-wrap: balance; }
.cfx-case-detail__story > .cfx-tag { margin-top: 18px !important; }
.cfx-case-detail__story > p:not(.cfx-tag) { font-size: 18px; color: var(--ink-muted); max-width: 64ch; }
.cfx-case-detail__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cfx-result { display: grid; gap: 6px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.cfx-result__num { font-size: 32px; font-weight: 700; color: var(--ink); }
.cfx-result__label { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 900px) { .cfx-case-detail { grid-template-columns: 1fr; } .cfx-case-detail__meta { position: static; } .cfx-case-detail__results { grid-template-columns: 1fr; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Blog: featured first post, category chips, share links, related posts
   ========================================================================== */
body:not(.paged) .cfx-posts--home .cfx-post-grid > li:first-child { grid-column: 1 / -1; }
body:not(.paged) .cfx-posts--home .cfx-post-grid > li:first-child .cfx-post-card:has(.cfx-post-card__img img) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: center; }
body:not(.paged) .cfx-posts--home .cfx-post-grid > li:first-child .cfx-post-card:not(:has(.cfx-post-card__img img)) { max-width: 760px; }
body:not(.paged) .cfx-posts--home .cfx-post-grid > li:first-child .cfx-post-card__img { grid-row: 1 / span 3; margin: 0 !important; }
body:not(.paged) .cfx-posts--home .cfx-post-grid > li:first-child .cfx-post-card__title { font-size: clamp(26px, 3vw, 38px) !important; line-height: 1.1; }
@media (max-width: 760px) { body:not(.paged) .cfx-posts--home .cfx-post-grid > li:first-child .cfx-post-card { grid-template-columns: 1fr; } body:not(.paged) .cfx-posts--home .cfx-post-grid > li:first-child .cfx-post-card__img { grid-row: auto; } }
.cfx-post-card__img:empty, .cfx-post-card__img:not(:has(img)) { display: none; }

.cfx-cats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.cfx-cats li a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.cfx-cats li a:hover, .cfx-cats li.current-cat a { border-color: var(--fox-teal); background: var(--fox-tint); }

.cfx-post-after { max-width: 760px; margin: 0 auto !important; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); box-sizing: content-box; }
.cfx-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.cfx-share__label { font-weight: 600; color: var(--ink); margin: 0 !important; }
.cfx-share .wp-block-button__link { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.cfx-related .cfx-display { margin-bottom: 32px !important; }

/* Posts without a featured image get a branded placeholder */
.cfx-post-card:not(:has(.cfx-post-card__img img))::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 10;
	margin-bottom: 6px;
	border-radius: var(--radius-md);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100'%3E%3Cpath d='M-5 78 H58 L88 48' fill='none' stroke='%231cb8ab' stroke-width='2'/%3E%3Ccircle cx='88' cy='48' r='4' fill='%231cb8ab'/%3E%3Cpath d='M-5 88 H70 L104 54' fill='none' stroke='%2324bee4' stroke-width='2' opacity='.7'/%3E%3Ccircle cx='104' cy='54' r='4' fill='%2324bee4' opacity='.7'/%3E%3C/svg%3E") center / cover no-repeat,
		radial-gradient(120% 90% at 85% 10%, rgba(36, 190, 228, .22), transparent 60%),
		var(--bg-band);
	border: 1px solid var(--line);
}
body:not(.paged) .cfx-posts--home .cfx-post-grid > li:first-child .cfx-post-card:not(:has(.cfx-post-card__img img))::before { aspect-ratio: 21 / 8; }
@media (max-width: 600px) { .cfx-net__city { font-size: 11px; gap: 5px; } .cfx-net__city.is-hq { font-size: 13px; } }

/* ==========================================================================
   IMMERSIVE HOME (Lusion-inspired, CyberFox-branded)
   ========================================================================== */

/* Preloader ---------------------------------------------------------------- */
.cfx-loader { display: none; }
.cfx-loading .cfx-loader {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	background: #0f0d0e;
	color: #f4f1f1;
	transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}
.cfx-loading body { overflow: hidden; }
.cfx-loader__mark { position: absolute; left: 50%; top: calc(50% - 64px); width: 44px; height: auto; transform: translateX(-50%); opacity: .9; }
.cfx-loader__bar { width: 140px; height: 3px; background: rgba(244, 241, 241, .15); overflow: hidden; }
.cfx-loader__bar i { display: block; height: 100%; background: var(--fox-teal); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.cfx-loader__count { position: absolute; left: clamp(16px, 4vw, 40px); bottom: clamp(8px, 2vw, 24px); font: 700 clamp(96px, 18vw, 260px)/0.8 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #f4f1f1; }
.cfx-loader__meta { position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(16px, 3vw, 32px); font: 600 12px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; text-align: right; color: #a8a3a4; }
.cfx-loader.is-done { transform: translateY(-100%); pointer-events: none; }

/* Stage hero --------------------------------------------------------------- */
.cfx-hero--stage {
	padding-block: 12px 0;
	clip-path: none;
	overflow: visible;
	background: var(--bg);
}
.cfx-hero--stage .cfx-wrap { max-width: none; padding-inline: clamp(10px, 1.6vw, 24px); }
.cfx-arena {
	--ink: #f4f1f1;
	--ink-muted: #b4afb0;
	--accent-text: #4fd3ee;
	--line-strong: #8a8485;
	position: relative;
	display: grid;
	align-items: end;
	min-height: max(560px, min(calc(100svh - var(--header-h) - 76px), 900px));
	padding: clamp(24px, 4vw, 56px);
	box-sizing: border-box;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--radius-lg);
	clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
	background:
		radial-gradient(60% 70% at 72% 45%, rgba(28, 184, 171, .22), transparent 70%),
		radial-gradient(40% 50% at 90% 10%, rgba(36, 190, 228, .18), transparent 70%),
		#0f0d0e;
	color: var(--ink);
	cursor: crosshair;
}
.cfx-arena::after {
	/* scrim so the headline always reads */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(15, 13, 14, .7) 0%, rgba(15, 13, 14, .25) 45%, transparent 65%), linear-gradient(0deg, rgba(15, 13, 14, .55), transparent 40%);
}
.cfx-arena__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 0; display: block; }
.cfx-arena .cfx-hero__mark { position: absolute; right: 8%; top: 50%; width: min(34%, 380px); transform: translateY(-50%); margin: 0; z-index: 0; transition: opacity .6s var(--ease); }
.cfx-arena.has-3d .cfx-hero__mark { opacity: 0; }
.cfx-arena__copy { position: relative; z-index: 2; display: grid; gap: 20px; justify-items: start; max-width: 760px; pointer-events: none; }
.cfx-arena__copy a, .cfx-arena__copy .wp-block-buttons { pointer-events: auto; }
.cfx-arena__copy .cfx-hero__title { font-size: clamp(56px, 10.5vw, 168px) !important; line-height: .86 !important; color: #f4f1f1; }
.cfx-arena__copy .cfx-lead { color: #d6d2d3; max-width: 52ch; }
.cfx-arena .wp-block-button.is-style-outline > .wp-block-button__link { color: #f4f1f1; border-color: rgba(244, 241, 241, .5); }
.cfx-arena__hint { position: absolute; right: clamp(24px, 4vw, 56px); bottom: clamp(24px, 4vw, 56px); z-index: 2; max-width: 22ch; font-size: 13px; color: #a8a3a4; text-align: right; opacity: 0; transition: opacity .6s var(--ease); }
.cfx-arena.has-3d .cfx-arena__hint { opacity: 1; }

.cfx-arena__bar {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 14px clamp(14px, 2vw, 32px);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.cfx-arena__bar p:last-child { text-align: right; }
.cfx-arena__bar::before,
.cfx-arena__bar::after {
	/* the little "+" registration marks */
	content: "+";
	position: absolute;
	top: 8px;
	font: 400 16px/1 var(--font);
	color: var(--ink);
}
.cfx-arena__bar::before { left: 0; }
.cfx-arena__bar::after { right: 0; }
.cfx-arena__scroll a { color: var(--ink); text-decoration: none; }
@media (max-width: 700px) {
	.cfx-arena { min-height: 620px; align-items: end; }
	.cfx-arena .cfx-hero__mark { right: 50%; top: 22%; transform: translate(50%, -50%); width: 46%; }
	.cfx-arena__hint { display: none; }
	.cfx-arena__bar { grid-template-columns: 1fr 1fr; }
	.cfx-arena__bar p:first-child { display: none; }
}

/* Statement ---------------------------------------------------------------- */
.cfx-statement { padding-block: clamp(80px, 12vw, 180px) clamp(64px, 9vw, 128px); }
.cfx-statement__text {
	font-size: clamp(32px, 4.8vw, 72px) !important;
	line-height: 1.04 !important;
	font-weight: 600 !important;
	letter-spacing: -0.015em !important;
	max-width: 20ch;
	text-wrap: balance;
}
.cfx-statement__text .cfx-sw { color: var(--ink); opacity: .16; transition: opacity .25s linear; }
.cfx-statement__text .cfx-sw.is-on { opacity: 1; }
.cfx-statement__foot { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; margin-top: clamp(48px, 7vw, 96px) !important; padding-top: 24px; border-top: 1px solid var(--line); }
.cfx-statement__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cfx-statement__body { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 760px) { .cfx-statement__foot { grid-template-columns: 1fr; } }

/* Showcase cards ----------------------------------------------------------- */
.cfx-showcase__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px) !important; }
.cfx-showcase__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px) clamp(16px, 2vw, 32px); }
.cfx-show { position: relative; display: grid; gap: 16px; cursor: pointer; }
.cfx-show:nth-child(even) { margin-top: clamp(0px, 8vw, 120px) !important; }
.cfx-show__img {
	margin: 0 !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-lg);
	clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
	background:
		radial-gradient(90% 70% at 80% 10%, rgba(36, 190, 228, .28), transparent 60%),
		radial-gradient(80% 70% at 10% 100%, rgba(28, 184, 171, .22), transparent 60%),
		#0f0d0e;
}
.cfx-show__img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; transform: scale(1.001); transition: transform 1s var(--ease); }
.cfx-show:hover .cfx-show__img img { transform: scale(1.07) rotate(-1deg); }
.cfx-show__meta { display: grid; gap: 6px; }
.cfx-show__tags { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cfx-show__title { font-size: clamp(32px, 4vw, 60px) !important; line-height: 1 !important; font-weight: 700 !important; letter-spacing: -0.01em; }
.cfx-show__title a { color: var(--ink); text-decoration: none; }
.cfx-showcase__more { margin-top: clamp(32px, 5vw, 64px) !important; justify-content: center; }
@media (max-width: 760px) { .cfx-showcase__head, .cfx-showcase__grid { grid-template-columns: 1fr; } .cfx-show:nth-child(even) { margin-top: 0 !important; } }

/* Kinetic words ------------------------------------------------------------ */
.cfx-kinetic { padding-block: clamp(32px, 5vw, 72px); overflow: hidden; border-block: 1px solid var(--line); }
.cfx-kinetic__words { font: 700 clamp(48px, 9vw, 150px)/1 var(--font); letter-spacing: -0.02em; color: var(--ink); text-align: center; }
.cfx-kinetic.is-ready .cfx-kinetic__words { display: none; }
.cfx-kin__row { display: flex; width: max-content; will-change: transform; }
.cfx-kin__row span { transform: none !important; }
.cfx-kin__row + .cfx-kin__row { margin-top: .08em !important; }
.cfx-kin__row span { flex: none; padding-right: .45em; font: 700 clamp(56px, 10vw, 168px)/1.02 var(--font); letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); transform: skewX(var(--skew, 0deg)); }
.cfx-kin__row span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.cfx-kin__row span i { font-style: normal; color: var(--fox-teal); -webkit-text-stroke: 0; }

/* Portal CTA (dark in both themes) ------------------------------------------ */
.cfx-portal {
	--ink: #f4f1f1;
	--ink-muted: #a8a3a4;
	--line-strong: #7a7475;
	--accent-text: #4fd3ee;
	background: #0b0a0a;
	color: var(--ink);
	padding: 0;
	overflow: clip;
}
.cfx-portal__stage { position: relative; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 120px 24px; box-sizing: border-box; }
.cfx-portal.is-ready { height: 240vh; }
.cfx-portal.is-ready .cfx-portal__stage { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; }
.cfx-portal__ring {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(max(96vmin, 640px), 1080px, 140vw);
	aspect-ratio: 1;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(var(--ring, 1)) rotate(var(--spin, 0deg));
	will-change: transform, opacity;
	background: conic-gradient(#1cb8ab, #24bee4, #d3f1f6, #1cb8ab, #0f3a42, #24bee4, #1cb8ab);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px), #000 calc(100% - 1px), transparent);
	mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px), #000 calc(100% - 1px), transparent);
	contain: strict;
	opacity: var(--ring-o, 1);
	pointer-events: none;
	z-index: 0;
}
.cfx-portal__glow { position: absolute; inset: 0; background: radial-gradient(40vmin 40vmin at 50% 50%, rgba(28, 184, 171, .22), transparent 70%); pointer-events: none; z-index: 0; opacity: var(--ring-o, 1); }
.cfx-portal__stage > :not(.cfx-portal__ring):not(.cfx-portal__glow) { position: relative; z-index: 1; }
.cfx-portal__mark { margin: 0 0 8px !important; width: clamp(72px, 9vw, 120px); }
.cfx-portal__mark img { display: block; width: 100%; height: auto; transform: translate(var(--mx, 0px), calc(var(--my, 0px) + var(--bob, 0px))) rotate(var(--mr, 0deg)); transition: transform .4s var(--ease); }
.cfx-portal__kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cfx-portal__title { font-size: clamp(56px, 11vw, 190px) !important; line-height: .9 !important; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--ink); max-width: 11ch; transform: scale(var(--title-s, 1)); opacity: var(--title-o, 1); }
.cfx-portal .wp-block-buttons { justify-content: center; opacity: var(--title-o, 1); }
.cfx-portal .wp-block-button.is-style-outline > .wp-block-button__link { color: #f4f1f1; border-color: rgba(244, 241, 241, .5); }

/* Custom cursor ------------------------------------------------------------ */
.cfx-cursor, .cfx-cursor-ring { display: none; }
.has-cfx-cursor .cfx-cursor,
.has-cfx-cursor .cfx-cursor-ring { display: block; position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.has-cfx-cursor .cfx-cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.has-cfx-cursor .cfx-cursor-ring {
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	border: 1.5px solid #fff;
	display: grid;
	place-items: center;
	transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.cfx-cursor-ring span { font: 600 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s var(--ease); white-space: nowrap; }
.cfx-cursor-ring.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cfx-cursor-ring.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: #fff; }
.cfx-cursor-ring.is-label span { opacity: 1; }
.cfx-cursor-ring.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cfx-cursor.is-hidden, .cfx-cursor-ring.is-hidden { opacity: 0; }

/* Rolling letters on hover -------------------------------------------------- */
.cfx-roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; line-height: 1.2; }
.cfx-roll > span { display: inline-block; }
.cfx-roll > span > b { display: inline-block; font-weight: inherit; white-space: pre; transition: transform .45s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i, 0) * 18ms); text-shadow: 0 1.2em 0 currentColor; }
a:hover .cfx-roll > span > b,
button:hover .cfx-roll > span > b,
.cfx-show:hover .cfx-roll > span > b { transform: translateY(-1.2em); }

/* Word reveal for big headings ----------------------------------------------- */
.cfx-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em !important; }
.cfx-w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.is-in .cfx-w > span, .cfx-w.is-in > span { transform: none; }

/* Magnetic buttons */
.is-magnetic { transition: transform .35s var(--ease); will-change: transform; }

/* Header hides on the way down, returns on the way up */
.wp-block-template-part:has(> .cfx-header) { transition: transform .45s var(--ease); }
.cfx-header-hidden .wp-block-template-part:has(> .cfx-header) { transform: translateY(-110%); }

@media (prefers-reduced-motion: reduce) {
	.cfx-w > span { transform: none !important; }
	.cfx-portal.is-ready { height: auto; }
	.cfx-portal.is-ready .cfx-portal__stage { position: relative; height: auto; min-height: 100svh; }
}
.cfx-hero.cfx-hero--stage { min-height: 0 !important; display: block !important; padding: 12px 0 0 !important; clip-path: none !important; overflow: visible !important; }
.has-cfx-cursor, .has-cfx-cursor a, .has-cfx-cursor button, .has-cfx-cursor .cfx-arena, .has-cfx-cursor label, .has-cfx-cursor summary { cursor: none; }
.has-cfx-cursor input, .has-cfx-cursor textarea { cursor: text; }
.has-cfx-cursor .cfx-cursor-ring.is-label { mix-blend-mode: normal; background: var(--fox-teal); border-color: var(--fox-teal); }
.cfx-cursor-ring.is-label span { color: #231f20; }

/* ==========================================================================
   "Our brand buddies" logo wall (v2)
   ========================================================================== */
.cfx-clients { position: relative; padding-block: clamp(72px, 9vw, 136px); overflow: hidden; border-bottom: 1px solid var(--line); }
.cfx-clients::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(28, 184, 171, .16), transparent 70%);
	opacity: 0;
	transition: opacity .4s var(--ease);
}
.cfx-clients:hover::before { opacity: 1; }
.cfx-clients .cfx-wrap { position: relative; display: block; }
.cfx-clients__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px) !important; }
@media (max-width: 760px) { .cfx-clients__head { grid-template-columns: 1fr; gap: 16px; } }

.cfx-clients .cfx-marquee { gap: 20px; }
.cfx-clients .cfx-marquee.is-running { display: grid; gap: 22px; padding-block: 18px; margin-inline: calc(-1 * var(--gutter)) !important; overflow: hidden; justify-content: start; grid-template-columns: minmax(0, 1fr); }
.cfx-clients .cfx-marquee__row { display: flex; width: max-content; justify-self: start; overflow: visible; will-change: transform; }
.cfx-clients .cfx-marquee__track { animation: none !important; gap: 22px; padding-right: 22px; }

.cfx-clients .cfx-marquee .wp-block-image {
	width: 248px;
	height: 148px;
	padding: 18px 28px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: #ffffff;
	transform: perspective(700px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
	transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease), filter .3s var(--ease);
	cursor: pointer;
}
.cfx-clients .cfx-marquee .wp-block-image img { max-height: 108px; max-width: 100%; transform: none !important; }
.cfx-clients .cfx-marquee .wp-block-image.is-hot {
	transform: perspective(700px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-10px) scale(1.07);
	border-color: var(--fox-teal);
	box-shadow: 0 0 0 3px rgba(28, 184, 171, .22), 0 22px 40px -22px rgba(28, 184, 171, .65);
	z-index: 2;
}
.cfx-clients .cfx-marquee.has-hot .wp-block-image:not(.is-hot) { opacity: .5; filter: grayscale(.7); }
.cfx-logo-name { font: 700 22px/1.15 var(--font); color: #231f20; text-align: center; letter-spacing: -0.01em; }
@media (max-width: 600px) {
	.cfx-clients .cfx-marquee .wp-block-image { width: 172px; height: 106px; padding: 12px 18px; }
	.cfx-clients .cfx-marquee .wp-block-image img { max-height: 78px; }
	.cfx-logo-name { font-size: 17px; }
}

/* ==========================================================================
   Services showcase (v2): smaller cards, illustrations animate on hover
   ========================================================================== */
.cfx-showcase__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); align-items: start; }
.cfx-show { gap: 14px; }
.cfx-show:nth-child(even) { margin-top: clamp(0px, 4vw, 56px) !important; }
.cfx-show__img { aspect-ratio: 16 / 12; border-radius: var(--radius-md); clip-path: polygon(0 0, calc(100% - var(--chamfer-md)) 0, 100% var(--chamfer-md), 100% 100%, 0 100%); transition: transform .5s var(--ease); }
.cfx-show__img img, .cfx-show__img svg { display: block; width: 100%; height: 100%; padding: 6%; box-sizing: border-box; object-fit: contain; transform: none !important; }
.cfx-show:hover .cfx-show__img, .cfx-show:focus-within .cfx-show__img { transform: translateY(-6px); }
.cfx-show__title { font-size: clamp(24px, 2.1vw, 32px) !important; line-height: 1.05 !important; }
.cfx-show__tags { font-size: 11px; }
@media (max-width: 1100px) { .cfx-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cfx-show:nth-child(even) { margin-top: clamp(0px, 6vw, 56px) !important; } }
@media (max-width: 600px) { .cfx-showcase__grid { grid-template-columns: 1fr; } .cfx-show:nth-child(even) { margin-top: 0 !important; } }

/* Animated parts inside the inline illustrations */
.cfx-anim svg * { transform-box: fill-box; }
.cfx-anim .a-bar { transform-origin: 50% 100%; }
.cfx-anim .a-line { stroke-dasharray: 100; stroke-dashoffset: 0; }
.cfx-anim .a-check { stroke-dasharray: 100; }
.cfx-anim .a-dot, .cfx-anim .a-tile, .cfx-anim .a-heart, .cfx-anim .a-ping, .cfx-anim .a-chip, .cfx-anim .a-kpi, .cfx-anim .a-ripple, .cfx-anim .a-cta, .cfx-anim .a-submit { transform-origin: center; }
.cfx-anim .a-fill, .cfx-anim .a-shrink, .cfx-anim .a-typed, .cfx-anim .a-hl { transform-origin: 0 50%; }
.cfx-anim .a-query { clip-path: inset(0 0 0 0); }
.cfx-anim .a-caret { opacity: 0; }
.cfx-anim .a-shadow { transform-origin: center; }

.is-animating .a-bar { animation: a-grow .8s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--i, 0) * 70ms); }
.is-animating .a-line { animation: a-draw 1.1s .25s var(--ease) both; }
.is-animating .a-dot { animation: a-pop .5s 1.2s cubic-bezier(.2, .9, .3, 1.6) both; }
.is-animating .a-kpi { animation: a-lift .6s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(.35s + var(--i, 0) * 150ms); }
.is-animating .a-fill { animation: a-widen .9s .55s var(--ease) both; }
.is-animating .a-shrink { animation: a-narrow .9s .7s var(--ease) both; }
.is-animating .a-up { animation: a-nudge-up .6s 1s ease-in-out 2; }
.is-animating .a-down { animation: a-nudge-down .6s 1.1s ease-in-out 2; }
.is-animating .a-chip { animation: a-pop .45s cubic-bezier(.2, .9, .3, 1.6) both; animation-delay: calc(.9s + var(--i, 0) * 120ms); }

.is-animating .a-query { animation: a-type 1s steps(34, end) both; }
.is-animating .a-caret { animation: a-blink .5s 1s 4 both; }
.is-animating .a-lens { animation: a-nudge-up .4s .9s ease-in-out 2; }
.is-animating .a-rank { animation: a-climb .9s 1s cubic-bezier(.2, .9, .3, 1.15) both; }
.is-animating .a-row { animation: a-shift .9s 1s var(--ease) both; }
.is-animating .a-pin { animation: a-drop .7s 1.6s cubic-bezier(.3, 1.4, .5, 1) both; }
.is-animating .a-shadow { animation: a-shadow .7s 1.6s var(--ease) both; }

.is-animating .a-tile { animation: a-pop .5s cubic-bezier(.2, .9, .3, 1.5) both; animation-delay: calc(var(--i, 0) * 55ms); }
.is-animating .a-play { animation: a-pop .4s .55s cubic-bezier(.2, .9, .3, 1.6) both; }
.is-animating .a-note { animation: a-slide .6s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(.5s + var(--i, 0) * 180ms); }
.is-animating .a-heart { animation: a-beat .7s 1s ease-in-out 3; }
.is-animating .a-ping { animation: a-beat .6s 1.3s ease-in-out 3; }
.is-animating .a-reel { animation: a-wobble .8s .2s ease-in-out both; }

.is-animating .a-hl { animation: a-widen .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
.is-animating .a-cursor { animation: a-cursor 1.1s cubic-bezier(.5, 0, .2, 1) both; }
.is-animating .a-cta { animation: a-press .35s 1s ease-in-out both; }
.is-animating .a-ripple { animation: a-ripple .7s 1.05s ease-out both; }
.is-animating .a-typed { animation: a-widen .45s var(--ease) both; animation-delay: calc(1.3s + var(--i, 0) * 280ms); }
.is-animating .a-field { animation: a-flash .45s ease-in-out both; animation-delay: calc(1.3s + var(--i, 0) * 280ms); }
.is-animating .a-submit { animation: a-press .35s 2.25s ease-in-out both; }
.is-animating .a-check { animation: a-draw .45s 2.45s var(--ease) both; }

@keyframes a-grow { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
@keyframes a-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes a-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes a-lift { 0% { transform: translateY(14px); opacity: .3; } 60% { transform: translateY(-6px) scale(1.04); opacity: 1; } 100% { transform: none; } }
@keyframes a-widen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes a-narrow { from { transform: scaleX(1.6); } to { transform: scaleX(1); } }
@keyframes a-nudge-up { 50% { transform: translateY(-5px); } }
@keyframes a-nudge-down { 50% { transform: translateY(5px); } }
@keyframes a-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes a-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes a-climb { from { transform: translateY(150px); } to { transform: none; } }
@keyframes a-shift { from { transform: translateY(-58px); } to { transform: none; } }
@keyframes a-drop { from { transform: translateY(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-shadow { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-beat { 25% { transform: scale(1.3); } 50% { transform: scale(.95); } }
@keyframes a-wobble { 30% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }
@keyframes a-cursor { from { transform: translate(190px, 110px); } 80% { transform: translate(0, 0); } 90% { transform: translate(0, 0) scale(.88); } to { transform: none; } }
@keyframes a-press { 50% { transform: scale(.93); } }
@keyframes a-ripple { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes a-flash { 50% { stroke: #1cb8ab; stroke-width: 3px; } }
@media (prefers-reduced-motion: reduce) { .is-animating * { animation: none !important; } }

/* Showcase titles: wrap normally, teal underline on hover (no letter roll) */
.cfx-show__title a { text-decoration: none; background: linear-gradient(var(--fox-teal), var(--fox-teal)) 0 100% / 0 3px no-repeat; transition: background-size .45s var(--ease), color .3s var(--ease); }
.cfx-show:hover .cfx-show__title a, .cfx-show__title a:focus-visible { background-size: 100% 3px; }
.cfx-show { cursor: pointer; }

/* The CyberFox Way: keep the sticky picture panel on narrower windows too */
@media (max-width: 1000px) {
	.cfx-way { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
	.cfx-way .cfx-steps { padding-left: 36px; }
	.cfx-way .cfx-step::before { left: -36px; }
	.cfx-way .cfx-step { min-height: 62vh; }
	.cfx-way .cfx-step h3 { font-size: clamp(24px, 3.4vw, 32px) !important; }
	.cfx-stage { padding: 16px; min-height: 380px; top: calc(var(--header-h) + 24px); }
	.cfx-stage__screen { min-height: 260px; }
	.cfx-stage .cfx-viz { font-size: 13px; }
}

/* Brand buddies: name tag under the hovered logo (keeps the logo itself visible) */
.cfx-clients .cfx-marquee .wp-block-image { position: relative; overflow: visible; }
.cfx-clients .cfx-marquee .wp-block-image::after {
	content: attr(data-name);
	position: absolute;
	left: 50%;
	top: calc(100% + 6px);
	transform: translate(-50%, -4px);
	padding: 4px 10px;
	border-radius: var(--radius-sm, 4px);
	background: var(--fox-teal);
	color: #231f20;
	font: 600 12px/1.2 var(--font);
	letter-spacing: .02em;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease);
	z-index: 3;
}
.cfx-clients .cfx-marquee .wp-block-image.is-hot::after { opacity: 1; transform: translate(-50%, 0); }
.cfx-clients .cfx-marquee.has-hot .wp-block-image:not(.is-hot) { opacity: .62; filter: grayscale(.45); }
.cfx-clients .cfx-marquee .wp-block-image img { object-fit: contain; }
.cfx-clients .cfx-marquee.is-running { padding-bottom: 38px; }

/* ==========================================================================
   Inner pages: immersive kit
   ========================================================================== */

/* Arena hero, page size */
.cfx-arena--page { min-height: max(520px, min(calc(82svh - var(--header-h)), 780px)); }
.cfx-hero--inner .cfx-arena__copy { max-width: 900px; }
.cfx-hero--inner .cfx-arena__copy .cfx-hero__title { font-size: clamp(44px, 7vw, 112px) !important; line-height: .92 !important; text-wrap: balance; }
.cfx-hero--inner .cfx-arena__copy .cfx-lead { max-width: 60ch; }
.cfx-hero--inner .cfx-eyebrow { color: #4fd3ee; }
.cfx-arena__bar a { color: inherit; text-decoration: none; }
.cfx-arena__bar a:hover { color: var(--fox-teal); }

/* Arena with a service illustration instead of the 3D shapes */
.cfx-arena--art { cursor: default; }
.cfx-arena--art .cfx-arena__copy { max-width: min(760px, 54%); }
.cfx-arena__art { position: absolute; right: clamp(20px, 4vw, 64px); top: 50%; width: min(42%, 600px); margin: 0; z-index: 0; transform: translateY(-50%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.cfx-arena__art img, .cfx-arena__art svg { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.cfx-arena--art .cfx-arena__hint { opacity: 1; }
.cfx-arena--art::after { background: linear-gradient(90deg, rgba(15, 13, 14, .75) 0%, rgba(15, 13, 14, .35) 46%, transparent 60%), linear-gradient(0deg, rgba(15, 13, 14, .5), transparent 40%); }
@media (max-width: 900px) {
	.cfx-arena--art { align-content: end; padding-top: min(62vw, 420px); }
	.cfx-arena--art .cfx-arena__copy { max-width: none; }
	.cfx-arena__art { left: 50%; right: auto; top: 24px; width: min(86%, 460px); transform: translateX(-50%); }
	.cfx-arena--art::after { background: linear-gradient(0deg, rgba(15, 13, 14, .85) 40%, transparent 75%); }
}

/* Showcase with three cards (related services) */
.cfx-showcase--3 .cfx-showcase__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfx-showcase--3 .cfx-show:nth-child(even) { margin-top: clamp(0px, 4vw, 56px) !important; }
@media (max-width: 900px) { .cfx-showcase--3 .cfx-showcase__grid { grid-template-columns: 1fr; } .cfx-showcase--3 .cfx-show:nth-child(even) { margin-top: 0 !important; } }

/* Big interactive rows */
.cfx-rows { border-top: 1px solid var(--line); counter-reset: row; }
.cfx-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(90px, 1.2fr) minmax(0, 5fr) minmax(0, 4fr);
	gap: clamp(16px, 3vw, 48px);
	align-items: center;
	padding: clamp(22px, 3vw, 40px) clamp(4px, 1.4vw, 20px);
	border-bottom: 1px solid var(--line);
	isolation: isolate;
	overflow: hidden;
}
.cfx-row::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--gradient-brand);
	clip-path: inset(0 100% 0 0);
	transition: clip-path .55s cubic-bezier(.65, 0, .35, 1);
}
.cfx-row::after {
	content: "";
	position: absolute;
	right: clamp(8px, 1.6vw, 24px);
	top: 50%;
	width: 18px;
	height: 18px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg) scale(.8);
	opacity: 0;
	transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.cfx-row.has-link { cursor: pointer; padding-right: clamp(40px, 5vw, 72px); }
.cfx-row.has-link::after { opacity: .35; }
.cfx-row__label { margin: 0 !important; font: 600 13px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); transition: color .3s var(--ease); }
.cfx-row__title { margin: 0 !important; font-size: clamp(26px, 3.6vw, 52px) !important; line-height: 1 !important; letter-spacing: -0.01em; transition: transform .55s cubic-bezier(.65, 0, .35, 1), color .3s var(--ease); overflow-wrap: anywhere; }
.cfx-row__title a { color: inherit; text-decoration: none; }
.cfx-row__text { margin: 0 !important; color: var(--ink-muted); transition: color .3s var(--ease), opacity .3s var(--ease); }
.cfx-row:hover::before, .cfx-row:focus-within::before { clip-path: inset(0 0 0 0); }
.cfx-row:hover .cfx-row__title, .cfx-row:focus-within .cfx-row__title { transform: translateX(clamp(8px, 1.4vw, 20px)); color: #231f20; }
.cfx-row:hover .cfx-row__label, .cfx-row:hover .cfx-row__text, .cfx-row:focus-within .cfx-row__label, .cfx-row:focus-within .cfx-row__text { color: #231f20; }
.cfx-row:hover::after { opacity: 1; color: #231f20; transform: translateY(-50%) rotate(45deg) scale(1); }
.cfx-rows-sec .cfx-intro { margin-bottom: clamp(28px, 4vw, 56px); }
@media (max-width: 760px) {
	.cfx-row { grid-template-columns: 1fr; gap: 8px; }
}
.cfx-contact-rows .cfx-row__title { font-size: clamp(24px, 3.4vw, 48px) !important; }

/* Our Work: the logo wall */
.cfx-wall-sec { overflow: hidden; }
.cfx-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); padding-bottom: 36px; }
@media (max-width: 1000px) { .cfx-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cfx-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cfx-wall .wp-block-image {
	position: relative;
	display: grid;
	place-items: center;
	margin: 0;
	aspect-ratio: 5 / 3;
	padding: clamp(14px, 2vw, 28px);
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	transform: perspective(700px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
	transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), opacity .5s var(--ease), filter .3s var(--ease);
}
.cfx-wall .wp-block-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cfx-wall .wp-block-image.is-hot {
	transform: perspective(700px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-8px) scale(1.05);
	border-color: var(--fox-teal);
	box-shadow: 0 0 0 3px rgba(28, 184, 171, .22), 0 22px 40px -22px rgba(28, 184, 171, .65);
	z-index: 2;
}
.cfx-wall.has-hot .wp-block-image:not(.is-hot) { opacity: .62; filter: grayscale(.45); }
.cfx-wall .wp-block-image::after {
	content: attr(data-name);
	position: absolute;
	left: 50%;
	top: calc(100% + 6px);
	transform: translate(-50%, -4px);
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	background: var(--fox-teal);
	color: #231f20;
	font: 600 12px/1.2 var(--font);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease);
	z-index: 3;
}
.cfx-wall .wp-block-image.is-hot::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) {
	.cfx-wall:not(.is-in) .wp-block-image { opacity: 0; transform: translateY(24px); }
	.cfx-wall.is-in .wp-block-image { transition-delay: calc(var(--i, 0) * 45ms); }
	.cfx-wall.is-in.has-hot .wp-block-image { transition-delay: 0s; }
}

/* Template page heads (blog, posts, archives, search, privacy, 404): framed dark panel */
.cfx-page-head, .cfx-hero--page {
	position: relative;
	margin: 12px clamp(10px, 1.6vw, 24px) 0;
	border-radius: var(--radius-lg);
	clip-path: polygon(0 0, calc(100% - var(--chamfer-lg)) 0, 100% var(--chamfer-lg), 100% 100%, 0 100%);
	background:
		radial-gradient(50% 80% at 85% 30%, rgba(28, 184, 171, .22), transparent 70%),
		radial-gradient(35% 60% at 100% 0%, rgba(36, 190, 228, .18), transparent 70%),
		#0f0d0e !important;
	overflow: hidden;
	isolation: isolate;
}
.cfx-page-head::before, .cfx-hero--page::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: linear-gradient(rgba(244, 241, 241, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 241, 241, .05) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 90% at 80% 40%, #000, transparent 75%);
	mask-image: radial-gradient(70% 90% at 80% 40%, #000, transparent 75%);
}
.cfx-page-head { padding-block: clamp(72px, 10vw, 150px) clamp(48px, 6vw, 88px); }
.cfx-page-head .cfx-page-head__title, .cfx-page-head h1 { font-size: clamp(44px, 7vw, 108px) !important; line-height: .94 !important; color: #f4f1f1 !important; max-width: 16ch; }
.cfx-page-head .cfx-lead, .cfx-page-head p { color: #d6d2d3; }
.cfx-page-head a { color: #f4f1f1; }
/* Logo wall: equal tiles, last row centred */
.cfx-wall { display: flex; flex-wrap: wrap; justify-content: center; --cols: 5; --g: clamp(12px, 1.6vw, 22px); gap: var(--g); }
.cfx-wall .wp-block-image { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols)); aspect-ratio: 5 / 3; display: block; padding: 0; }
.cfx-wall .wp-block-image img { position: absolute; inset: 14%; width: 72% !important; height: 72% !important; max-width: none; max-height: none; object-fit: contain; }
.cfx-wall .wp-block-image .cfx-logo-name { position: absolute; inset: 0; display: grid; place-items: center; }
@media (max-width: 1000px) { .cfx-wall { --cols: 4; } }
@media (max-width: 760px) { .cfx-wall { --cols: 3; } }
@media (max-width: 520px) { .cfx-wall { --cols: 2; } }
.cfx-hero--inner .cfx-arena:not(.cfx-arena--art) .cfx-arena__copy { max-width: min(860px, 60%); }
@media (min-width: 901px) { .cfx-hero--inner .cfx-arena:not(.cfx-arena--art) .cfx-hero__mark { right: 5%; width: min(28%, 320px); } }
@media (max-width: 900px) { .cfx-hero--inner .cfx-arena:not(.cfx-arena--art) .cfx-arena__copy { max-width: none; } }
.cfx-contact-rows .cfx-row { grid-template-columns: minmax(90px, 1fr) minmax(0, 6fr) minmax(0, 4fr); }
.cfx-contact-rows .cfx-row__title { font-size: clamp(22px, 2.7vw, 40px) !important; overflow-wrap: normal; word-break: normal; }
@media (max-width: 760px) { .cfx-contact-rows .cfx-row { grid-template-columns: 1fr; } .cfx-contact-rows .cfx-row__title { overflow-wrap: anywhere; } }
/* Dark page panels: force light text in both themes */
.cfx-page-head, .cfx-hero--page { --ink: #f4f1f1; --ink-muted: #b4afb0; --accent-text: #4fd3ee; --line: rgba(244, 241, 241, .18); color: #f4f1f1; }
.cfx-hero--page .cfx-hero__title, .cfx-hero--page h1 { color: #f4f1f1 !important; font-size: clamp(44px, 7vw, 108px) !important; line-height: .94 !important; }
.cfx-hero--page .cfx-lead, .cfx-hero--page p { color: #d6d2d3; }
.cfx-hero--page .cfx-eyebrow, .cfx-page-head .cfx-eyebrow { color: #4fd3ee; }
.cfx-hero--page .wp-block-button.is-style-outline > .wp-block-button__link, .cfx-page-head .wp-block-button.is-style-outline > .wp-block-button__link { color: #f4f1f1; border-color: rgba(244, 241, 241, .5); }
.cfx-page-head .cfx-cats a, .cfx-page-head .wp-block-categories a { color: #f4f1f1 !important; border-color: rgba(244, 241, 241, .35) !important; background: transparent !important; }
.cfx-page-head .cfx-cats a:hover, .cfx-page-head .wp-block-categories a:hover { background: var(--fox-teal) !important; border-color: var(--fox-teal) !important; color: #231f20 !important; }
.cfx-hero--page { margin-bottom: clamp(40px, 6vw, 88px); }

@media (max-width: 900px) {
	.cfx-hero--inner .cfx-arena:not(.cfx-arena--art) { padding-top: min(58vw, 380px); align-content: end; }
	.cfx-hero--inner .cfx-arena:not(.cfx-arena--art) .cfx-hero__mark { top: min(29vw, 190px); width: min(36%, 200px); }
	.cfx-hero--inner .cfx-arena:not(.cfx-arena--art)::after { background: linear-gradient(0deg, rgba(15, 13, 14, .85) 45%, transparent 80%); }
}
