/**
 * Cole Digital Media - front end styles.
 * Loaded after hello-elementor reset.css + theme.css.
 */

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */

:root {
	--cdm-bg: #fafaf8;
	--cdm-bg-alt: #f4f3ee;
	--cdm-text: #000000;
	--cdm-muted: #707070;
	--cdm-icon: #ac9c8d;
	--cdm-noise: #558192;

	--cdm-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--cdm-font-ui: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cdm-font-body: Arial, Helvetica, sans-serif;

	--cdm-container: 1200px;
	--cdm-gutter: 36px;
	--cdm-content: 1128px;

	--cdm-header-h: 102px;
	--cdm-header-h-sm: 74px;
	--cdm-header-bg: #f7f5ef;

	/* WordPress pushes <html> down for the admin bar, but the header is
	   absolutely positioned against the initial containing block, so it has to
	   offset itself. 0 for logged out visitors. */
	--cdm-admin-bar: 0px;

	--cdm-radius-card: 12px;
	--cdm-radius-pill: 140px;
	--cdm-shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.45);

	--cdm-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */

html {
	overflow-x: hidden;
}

body.admin-bar {
	--cdm-admin-bar: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--cdm-admin-bar: 46px;
	}
}

body {
	margin: 0;
	font-family: var(--cdm-font-body);
	font-size: 16px;
	line-height: 28px;
	font-weight: 400;
	color: var(--cdm-text);
	background-color: var(--cdm-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: var(--cdm-text);
	font-weight: 500;
}

h1,
h2,
h4,
h5 {
	font-family: var(--cdm-font-display);
}

h1 {
	font-size: 50px;
	line-height: 60px;
}

h2 {
	font-size: 46px;
	line-height: 1.2;
}

h3 {
	font-family: var(--cdm-font-ui);
	font-size: 20px;
	line-height: 30px;
}

h4 {
	font-size: 32px;
	line-height: 1.25;
}

h5 {
	font-size: 24px;
	line-height: 1.3;
}

h6 {
	font-family: var(--cdm-font-ui);
	font-size: 16px;
	line-height: 1.4;
}

p {
	margin: 0 0 18px;
}

p:last-child {
	margin-bottom: 0;
}

/* Rich text blocks: 18px between children, nothing at the ends. Matches the
   rhythm of the reference build and lets widget-level line-height win. */
.elementor-widget-text-editor p,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
	margin: 0;
}

.elementor-widget-text-editor p+p,
.elementor-widget-text-editor p+ul,
.elementor-widget-text-editor p+ol,
.elementor-widget-text-editor ul+p,
.elementor-widget-text-editor ol+p,
.elementor-widget-text-editor blockquote+p {
	margin-top: 18px;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
	padding-left: 18px;
}

a {
	color: inherit;
	text-decoration: none;
	transition: opacity var(--cdm-transition), color var(--cdm-transition);
}

a:hover {
	opacity: 0.65;
}

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



strong,
b {
	font-weight: 600;
}

.screen-reader-text,
.cdm-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	clip: auto;
	width: auto;
	height: auto;
	padding: 12px 20px;
	background: #fff;
	color: #000;
}

/* ---------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------- */

.cdm-container {
	width: 100%;
	max-width: var(--cdm-container);
	margin: 0 auto;
	padding: 0 var(--cdm-gutter);
}

/* ---------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------- */

.cdm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cdm-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.3px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	padding: 14px 34px;
	border: 1px solid var(--cdm-text);
	border-radius: 130px;
	background: var(--cdm-text);
	color: #fff;
	cursor: pointer;
	transition: background var(--cdm-transition), color var(--cdm-transition);
}

.cdm-btn:hover {
	opacity: 1;
	background: transparent;
	color: var(--cdm-text);
}

.cdm-btn--outline {
	background: transparent;
	color: var(--cdm-text);
	font-size: 14px;
	letter-spacing: 1.4px;
	padding: 12px 29px;
	border-radius: var(--cdm-radius-pill);
}

.cdm-btn--outline:hover {
	background: var(--cdm-text);
	color: #fff;
}

/* Inline text link with arrow, used on cards and the About block. */
.cdm-textlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--cdm-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 17px;
	text-transform: uppercase;
	color: var(--cdm-text);
}

.cdm-textlink i,
.cdm-textlink .cdm-arrow {
	font-size: 11px;
	transition: transform var(--cdm-transition);
}

.cdm-textlink:hover i,
.cdm-textlink:hover .cdm-arrow {
	transform: translateX(4px);
}

/* ---------------------------------------------------------------
   5. Header
   --------------------------------------------------------------- */

.cdm-header {
	position: fixed;
	top: var(--cdm-admin-bar);
	left: 0;
	width: 100%;
	z-index: 100;
	background: var(--cdm-header-bg);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	transition: height var(--cdm-transition),
		background-color var(--cdm-transition),
		box-shadow var(--cdm-transition);
}

/* Sticky: shrink a little and lift off the page once you start scrolling. */
.cdm-header.is-stuck {
	background: rgba(247, 245, 239, 0.92);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	box-shadow: 0 10px 30px -18px rgba(24, 23, 20, 0.45);
}

.cdm-header.is-stuck .cdm-header__inner,
.cdm-header.is-stuck .cdm-nav__list>li {
	height: var(--cdm-header-h-sm);
}

.cdm-header.is-stuck .cdm-header__logo img {
	width: 200px;
}

.cdm-header__inner {
	display: flex;
	transition: height var(--cdm-transition);
	align-items: center;
	justify-content: space-between;
	height: var(--cdm-header-h);
	max-width: var(--cdm-container);
	margin: 0 auto;
	padding: 0 var(--cdm-gutter);
}

.cdm-header__logo img {
	width: clamp(190px, 17vw, 240px);
	height: auto;
	display: block;
	transition: width var(--cdm-transition);
}

.cdm-header__logo:hover {
	opacity: 1;
}

.cdm-nav {
	display: flex;
	align-items: center;
}

.cdm-nav__list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cdm-nav__list>li {
	position: static;
	display: flex;
	align-items: center;
	height: var(--cdm-header-h);
	transition: height var(--cdm-transition);
}

.cdm-nav__list>li>a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0 14px;
	font-family: var(--cdm-font-ui);
	font-size: 14px;
	font-weight: 400;
	line-height: 14px;
	color: var(--cdm-text);
}

.cdm-nav__list>li.menu-item-has-children>a::after {
	content: "\f107";
	font-family: "uncodeicon";
	font-size: 12px;
	line-height: 1;
	transition: transform var(--cdm-transition);
}

.cdm-nav__list>li.menu-item-has-children:hover>a::after {
	transform: rotate(180deg);
}

/* CTA button in the nav */
.cdm-nav__list>li.cdm-nav__cta {
	padding-left: 14px;
}

.cdm-nav__list>li.cdm-nav__cta>a {
	padding: 12px 29px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	border: 1px solid var(--cdm-text);
	border-radius: var(--cdm-radius-pill);
}

.cdm-nav__list>li.cdm-nav__cta>a:hover {
	opacity: 1;
	background: var(--cdm-text);
	color: #fff;
}

/* --- Mega menu --- */

.cdm-mega {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, -12px);
	width: var(--cdm-container);
	max-width: calc(100vw - 32px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--cdm-transition), transform var(--cdm-transition), visibility var(--cdm-transition);
	z-index: 120;
}

.cdm-nav__list>li:hover>.cdm-mega,
.cdm-nav__list>li:focus-within>.cdm-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.cdm-mega__panel {
	background: var(--cdm-bg);
	padding: var(--cdm-gutter);
}

.cdm-mega__label {
	display: block;
	font-family: var(--cdm-font-ui);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 4px;
	line-height: 12px;
	text-transform: uppercase;
	margin-bottom: 48px;
}

.cdm-mega__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px 36px;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 740px;
}

.cdm-mega__list a {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.cdm-mega__list a:hover {
	opacity: 1;
}

.cdm-mega__icon {
	flex: 0 0 41px;
	width: 41px;
	height: 41px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	background: var(--cdm-icon);
	color: #fff;
	font-size: 20px;
	line-height: 1;
}

.cdm-mega__text {
	display: flex;
	flex-direction: column;
	font-family: var(--cdm-font-ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 18px;
}

.cdm-mega__desc {
	font-weight: 400;
	line-height: normal;
	color: var(--cdm-muted);
	margin-top: 4px;
	max-width: 231px;
}

.cdm-mega__list a:hover .cdm-mega__text {
	opacity: 0.65;
}

/* --- Mobile toggle --- */

.cdm-nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.cdm-nav-toggle span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--cdm-text);
	transition: transform var(--cdm-transition), opacity var(--cdm-transition);
}

body.cdm-nav-open .cdm-nav-toggle span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

body.cdm-nav-open .cdm-nav-toggle span:nth-child(2) {
	opacity: 0;
}

body.cdm-nav-open .cdm-nav-toggle span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------------------------------------------------------------
   6. Footer
   --------------------------------------------------------------- */

.cdm-footer {
	background: #171717;
	color: #e7e1e7;
	text-align: left;

	/* The design sets DM Sans across the whole footer; Poppins is the loaded
	   equivalent, so it carries the headings, blurb and links alike. */
	font-family: var(--cdm-font-ui);
}

.cdm-footer__main {
	max-width: var(--cdm-container);
	margin: 0 auto;
	padding: 68px var(--cdm-gutter) 76px;
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.9fr) minmax(0, 0.78fr);
	align-items: start;
	gap: clamp(40px, 7vw, 110px);
	font-size: 15px;
}

.cdm-footer__col {
	min-width: 0;
}

/* Elementor's kit rule `.elementor-kit-7 h2` is specificity 0,1,1, so a bare
   `.cdm-footer__heading` (0,1,0) loses to it no matter the load order. The
   extra `.cdm-footer` takes this to 0,2,0 and wins without !important. */
.cdm-footer .cdm-footer__heading {
	margin: 0 0 22px;
	font-family: var(--cdm-font-display);
	font-size: 36px;
	line-height: 1.2;
	font-weight: 500;
	color: #f7f2f7;
	letter-spacing: normal;
}

.cdm-footer__about {
	margin: 0;
	max-width: 470px;
	color: #bbadbd;
	font-size: 16px;
	line-height: 1.75;
}

.cdm-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 13px;
}

.cdm-footer__menu li {
	margin: 0;
	line-height: 1.35;
}

.cdm-footer__menu a {
	color: #e4dae5;
	font-size: 15px;
	line-height: 1.35;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--cdm-transition);
}

.cdm-footer__menu a:hover,
.cdm-footer__menu a:focus-visible {
	color: #efb9a2;
	opacity: 1;
}

.cdm-footer__bar {
	max-width: var(--cdm-container);
	margin: 0 auto;
	padding: 0 var(--cdm-gutter) 44px;
	font-size: 12px;
	line-height: 1.6;
	color: #8c8390;
}

/* Footer responsive (mirrors design/home.html) */

@media (max-width: 800px) {
	.cdm-footer__main {
		padding: 58px var(--cdm-gutter);
		grid-template-columns: 1fr 1fr;
		gap: 45px 35px;
	}

	.cdm-footer__col:first-child {
		grid-column: 1 / -1;
	}

	.cdm-footer__about {
		font-size: 17px;
	}
}

@media (max-width: 480px) {
	.cdm-footer__main {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	.cdm-footer__col:first-child {
		grid-column: auto;
	}

	.cdm-footer .cdm-footer__heading {
		font-size: 28px;
	}

	.cdm-footer__menu a {
		font-size: 17px;
	}
}

/* ---------------------------------------------------------------
   7. Animated noise gradient background
   --------------------------------------------------------------- */

.cdm-noise {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.cdm-noise canvas {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 900ms ease;
}

.cdm-noise.is-loaded canvas {
	opacity: 1;
}

/* ---------------------------------------------------------------
   8. Section dividers (ported from the reference build)
   --------------------------------------------------------------- */

.cdm-divider {
	position: absolute;
	left: 0;
	width: 100%;
	line-height: 0;
	pointer-events: none;
	z-index: 1;
}

.cdm-divider--bottom {
	bottom: 0;
	height: 120px;
}

.cdm-divider--top {
	top: 0;
	height: 80px;
}

.cdm-divider svg {
	display: block;
	width: 100%;
	height: 100%;
}

.cdm-divider--bottom svg {
	vertical-align: bottom;
}

/* ---------------------------------------------------------------
   9. Elementor overrides
   --------------------------------------------------------------- */

.elementor-section.elementor-section-boxed>.elementor-container,
.e-con {
	--container-max-width: var(--cdm-container);
}

/* The header is fixed and .cdm-header-spacer reserves its height, so the hero
   starts right below it. */

.cdm-section {
	position: relative;
}

/* Cards */
.cdm-card {
	background: var(--cdm-bg-alt);
	border-radius: var(--cdm-radius-card);
	box-shadow: var(--cdm-shadow-card);
}

/* Icon boxes inside cards */
.cdm-card .elementor-icon-box-title,
.cdm-iconbox .elementor-icon-box-title {
	font-family: var(--cdm-font-ui);
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
}

.cdm-card .elementor-icon-box-description,
.cdm-iconbox .elementor-icon-box-description {
	font-size: 13px;
	line-height: 22.75px;
}

.cdm-card .elementor-icon,
.cdm-iconbox .elementor-icon {
	color: var(--cdm-icon);
	font-size: 48px;
}

/* Elementor buttons styled like the reference */
.elementor-button.cdm-btn,
.cdm-btn-wrap .elementor-button {
	font-family: var(--cdm-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	padding: 14px 34px;
	border: 1px solid var(--cdm-text);
	border-radius: 130px;
	background: var(--cdm-text);
	color: #fff;
	transition: background var(--cdm-transition), color var(--cdm-transition);
}

.cdm-btn-wrap .elementor-button:hover {
	background: transparent;
	color: var(--cdm-text);
}

/* Elementor text editor inherits body font */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-icon-list .elementor-icon-list-text {
	font-family: var(--cdm-font-body);
}

/* Bullet list in "How We Work Together" */
.cdm-list .elementor-icon-list-item {
	align-items: flex-start;
}

.cdm-list .elementor-icon-list-text {
	font-size: 16px;
	line-height: 28px;
}

/* Brand logo strip */
.cdm-brand img {
	width: 240px;
	max-width: 100%;
	margin: 0 auto;
}

/* FAQ */
.cdm-faq__q {
	font-family: var(--cdm-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 28px;
	margin: 0 0 2px;
}

.cdm-faq__a {
	font-size: 16px;
	line-height: 28px;
	margin: 0;
}

/* Testimonials */
.cdm-quote cite {
	font-style: normal;
	display: block;
}

/* --- Pages not built with Elementor (posts, archives, search, 404) ---
   The header is absolutely positioned, so give default templates room. --- */

.cdm-header-spacer {
	height: var(--cdm-header-h);
}

body:not(.elementor-page) main.site-main {
	max-width: var(--cdm-container);
	margin: 0 auto;
	padding: 72px var(--cdm-gutter) 108px;
}

body:not(.elementor-page) .entry-title {
	font-family: var(--cdm-font-display);
	font-size: 46px;
	line-height: 55.2px;
	margin-bottom: 18px;
}

/* --- Decoration layer (noise canvas + SVG dividers) --- */

.cdm-section {
	position: relative;
	overflow: hidden;
}

.cdm-section>.e-con,
.cdm-section>.e-con-inner {
	position: relative;
	z-index: 1;
}

.elementor-element.cdm-bg-layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: auto !important;
	pointer-events: none;
}

.cdm-bg-layer>.elementor-widget-container {
	position: absolute;
	inset: 0;
}

/* --- Elementor button variants --- */

.cdm-textlink-el,
.cdm-textlink-el .elementor-button-wrapper {
	line-height: 17px;
}

.cdm-textlink-el .elementor-button {
	display: inline-flex;
	align-items: center;
	background: transparent;
	border: 0;
	padding: 0;
	line-height: 17px;
	fill: currentColor;
}

.cdm-textlink-el .elementor-button-icon {
	font-size: 11px;
	transition: transform var(--cdm-transition);
}

.cdm-textlink-el .elementor-button:hover {
	color: var(--cdm-text);
	opacity: 0.65;
}

.cdm-textlink-el .elementor-button:hover .elementor-button-icon {
	transform: translateX(4px);
}

.cdm-btn-el .elementor-button {
	line-height: 1;
}

/* --- Cards --- */

.cdm-card .elementor-icon-box-wrapper {
	display: block;
}

.cdm-card .elementor-icon-box-icon {
	margin-bottom: 0;
}

.cdm-card .elementor-icon-box-title {
	margin: 0;
}

/* --- Brand logos --- */

.cdm-brand .elementor-widget-container,
.cdm-brand figure,
.cdm-brand img {
	margin: 0 auto;
}

/* --- Hero text column --- */

.cdm-hero__text {
	max-width: 100%;
}

/* ---------------------------------------------------------------
   10. Responsive
   --------------------------------------------------------------- */

@media (max-width: 1024px) {
	h1 {
		font-size: 40px;
		line-height: 48px;
	}

	h2 {
		font-size: 36px;
	}

}

@media (max-width: 880px) {
	.cdm-nav-toggle {
		display: flex;
	}

	/* Keep the logo and the toggle above the full screen nav panel. */
	.cdm-header__logo,
	.cdm-nav-toggle {
		position: relative;
		z-index: 95;
	}

	.cdm-nav {
		position: fixed;
		inset: var(--cdm-admin-bar) 0 0;
		background: var(--cdm-bg);
		flex-direction: column;
		justify-content: flex-start;
		padding: calc(var(--cdm-header-h) + 24px) 24px 48px;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity var(--cdm-transition), transform var(--cdm-transition), visibility var(--cdm-transition);
		z-index: 90;
	}

	body.cdm-nav-open .cdm-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	body.cdm-nav-open {
		overflow: hidden;
	}

	.cdm-nav__list {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 4px;
	}

	.cdm-nav__list>li {
		display: block;
		height: auto;
	}

	.cdm-nav__list>li>a {
		padding: 14px 0;
		font-size: 18px;
		justify-content: space-between;
	}

	.cdm-nav__list>li.cdm-nav__cta {
		padding-left: 0;
		margin-top: 16px;
	}

	.cdm-nav__list>li.cdm-nav__cta>a {
		justify-content: center;
		font-size: 13px;
	}

	.cdm-mega {
		position: static;
		transform: none;
		width: 100%;
		max-width: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		display: none;
	}

	.cdm-nav__list>li.is-open>.cdm-mega {
		display: block;
	}

	.cdm-mega__panel {
		padding: 0 0 16px;
		box-shadow: none;
		background: transparent;
	}

	.cdm-mega__label {
		display: none;
	}

	.cdm-mega__list {
		grid-template-columns: 1fr;
		gap: 10px;
		max-width: none;
	}

	.cdm-divider--bottom {
		height: 90px;
	}

	.cdm-divider--top {
		height: 60px;
	}
}

@media (max-width: 640px) {
	:root {
		--cdm-gutter: 24px;
	}

	h1 {
		font-size: 34px;
		line-height: 42px;
	}

	h2 {
		font-size: 30px;
	}

}

/* ---------------------------------------------------------------
   11. Design refresh: header bar + editorial hero
   Mirrors design/home.html. Rules that fight Elementor's generated
   post CSS (specificity 0,3,0) are marked !important on purpose.
   --------------------------------------------------------------- */

/* --- Header bar --- */

.cdm-header-spacer {
	height: var(--cdm-header-h);
}

.cdm-nav__list>li>a {
	font-size: 16px;
	padding: 0 16px;
}

.cdm-nav__list>li+li {
	margin-left: 11px;
}

.cdm-nav__list>li.cdm-nav__cta {
	padding-left: 22px;
}

.cdm-nav__list>li.cdm-nav__cta>a {
	padding: 15px 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.3px;
	border-width: 1.5px;
	border-radius: 100px;
	white-space: nowrap;
}

.cdm-mega__panel {
	background: #fff;
	box-shadow: 0 25px 36px rgba(0, 0, 0, 0.075);
	padding: 50px var(--cdm-gutter) 60px;
}

/* --- Hero --- */

.cdm-hero {
	--cdm-hero-pad: clamp(44px, 7vh, 92px);

	min-height: calc(100vh - var(--cdm-header-h));
	min-height: calc(100svh - var(--cdm-header-h));
	display: flex;
	align-items: center;

	/* Elementor drives the container's flex with custom properties. */
	--justify-content: center;
	--align-items: center;

	background-color: #f8f5ef;
	isolation: isolate;
}

/* Photograph and cream wash sit in their own layers so GSAP can drift the
   photo without touching the gradient. */
.cdm-hero::before,
.cdm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.cdm-hero::before {
	background-image: var(--cdm-hero-image, none);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(var(--cdm-hero-zoom, 1));
	transform-origin: 60% 50%;
	z-index: -2;
}

.cdm-hero::after {
	background-image: linear-gradient(90deg,
			rgba(248, 245, 239, 0.98) 0%,
			rgba(248, 245, 239, 0.93) 29%,
			rgba(248, 245, 239, 0.70) 43%,
			rgba(248, 245, 239, 0.18) 57%,
			rgba(248, 245, 239, 0) 73%);
	z-index: -1;
}

/* The hero carries a photograph now, so the noise canvas and the swoosh
   divider underneath it would only muddy it. */
.cdm-hero>.cdm-bg-layer {
	display: none !important;
}

.cdm-hero>.cdm-section__inner {
	--padding-top: var(--cdm-hero-pad) !important;
	--padding-bottom: var(--cdm-hero-pad) !important;
	width: 100%;
}

.cdm-hero .cdm-hero__text {
	--width: 56% !important;

	max-width: 680px;
}

/* Headline: scales with both the width and the height of the viewport so the
   whole hero clears the fold at every desktop/laptop resolution. */
.cdm-hero h1.elementor-heading-title {
	font-size: clamp(34px, min(4.5vw, 8vh), 60px) !important;
	line-height: 1.08 !important;
	letter-spacing: -0.02em;
}

.cdm-hero .elementor-widget-text-editor {
	font-size: clamp(16px, 1.2vw, 18px) !important;
	line-height: 1.75 !important;
	font-family: var(--cdm-font-ui) !important;
	max-width: 620px;
	margin-top: clamp(16px, 2.2vh, 26px) !important;
}

.cdm-hero .cdm-btn-el {
	margin-top: clamp(22px, 3.6vh, 40px) !important;
}

.cdm-hero .elementor-button {
	padding: 17px 40px !important;
	letter-spacing: 2px !important;
	transition: transform var(--cdm-transition), background-color var(--cdm-transition), color var(--cdm-transition);
}

.cdm-hero .elementor-button:hover {
	transform: translateY(-3px);
}

/* --- GSAP intro: hide the hero items until the timeline runs --- */

html.cdm-js .cdm-hero__text>.elementor-element {
	opacity: 0;
	will-change: transform, opacity;
}

html.cdm-hero-ready .cdm-hero__text>.elementor-element {
	opacity: 1;
	will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
	html.cdm-js .cdm-hero__text>.elementor-element {
		opacity: 1;
	}

	.cdm-header {
		transition: none;
	}
}

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

@media (max-width: 1024px) {
	.cdm-hero::before {
		background-position: 72% center;
	}

	/* Narrower viewports crop the photo hard, so the cream wash has to hold
	   further across for the copy to stay legible. */
	.cdm-hero::after {
		background-image: linear-gradient(90deg,
				rgba(248, 245, 239, 0.99) 0%,
				rgba(248, 245, 239, 0.96) 42%,
				rgba(248, 245, 239, 0.72) 62%,
				rgba(248, 245, 239, 0.22) 80%,
				rgba(248, 245, 239, 0) 96%);
	}

	.cdm-hero .cdm-hero__text {
		--width: 72% !important;
	}
}

@media (max-width: 880px) {
	:root {
		--cdm-header-h: 80px;
	}

	.cdm-header.is-stuck .cdm-header__inner {
		height: var(--cdm-header-h);
	}

	.cdm-header.is-stuck .cdm-header__logo img {
		width: clamp(170px, 42vw, 200px);
	}

	.cdm-header__logo img {
		width: clamp(170px, 42vw, 200px);
	}

	.cdm-nav__list>li+li {
		margin-left: 0;
	}

	.cdm-nav__list>li.cdm-nav__cta {
		padding-left: 0;
	}
}

/* Mobile is the deliberate exception: the hero is allowed to run past the
   fold so the headline stays readable. */
@media (max-width: 720px) {
	.cdm-hero {
		min-height: 0;
	}

	/* Drop the photo into the lower band so the copy sits on clean cream and
	   the subject is not hidden behind it. */
	.cdm-hero::before {
		inset: 30% 0 0;
		background-position: 58% center;
	}

	.cdm-hero::after {
		background-image: linear-gradient(180deg,
				rgba(248, 245, 239, 1) 0%,
				rgba(248, 245, 239, 1) 34%,
				rgba(248, 245, 239, 0.55) 44%,
				rgba(248, 245, 239, 0.12) 56%,
				rgba(248, 245, 239, 0) 100%);
	}

	.cdm-hero>.cdm-section__inner {
		--padding-top: 56px !important;
		--padding-bottom: 240px !important;
	}

	.cdm-hero .cdm-hero__text {
		--width: 100% !important;

		max-width: 100%;
	}

	.cdm-hero h1.elementor-heading-title {
		font-size: clamp(34px, 8.6vw, 48px) !important;
	}

	.cdm-hero .elementor-widget-text-editor {
		max-width: 100%;
	}
}

/* ---------------------------------------------------------------
   12. Services grid ("What We Do")
   Mirrors design/home.html. Rendered by the Services Grid widget
   (inc/elementor/widgets/class-services-widget.php) via
   template-parts/components/services.php.
   --------------------------------------------------------------- */

.cdm-services {
	--cdm-services-cols: 2;
	--cdm-services-accent: #ac715f;
	--cdm-services-icon-bg: #f3e9dd;
	--cdm-services-line: #d9d4cc;
	--cdm-services-hover: #f9eee7;
	--cdm-services-desc: #65615b;

	width: 100%;
}

/* The section container is set to align-items:center, so the widget has to
   claim the full width itself. */
.elementor-widget-cdm-services {
	width: 100%;
}

/* --- Eyebrow --- */

.cdm-eyebrow {
	display: inline-block;
	margin: 0 0 0;
	padding-bottom: 9px;
	border-bottom: 1px solid currentColor;
	font-family: var(--cdm-font-ui);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.015em;
	line-height: 1.5;
	color: var(--cdm-services-accent);
}

.cdm-eyebrow--plain {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 18px;
}

/* --- Heading block --- */

.cdm-services__intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 65px;
	align-items: end;
	margin-bottom: 58px;
	text-align: left;
}

.cdm-services__heading {
	font-family: var(--cdm-font-display);
	font-size: clamp(34px, 4.2vw, 58px);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.03em;
	max-width: 670px;
	margin: 14px 0 0;
}

.cdm-services__lede {
	max-width: 530px;
	margin: 0 0 8px;
	font-family: var(--cdm-font-ui);
	font-size: 18px;
	line-height: 1.85;
	color: #615e57;
}

/* --- The grid --- */

.cdm-services__grid {
	display: grid;
	grid-template-columns: repeat(var(--cdm-services-cols, 2), minmax(0, 1fr));
	border-top: 1px solid var(--cdm-services-line);
	border-left: 1px solid var(--cdm-services-line);
}

/* Column count without an inline style, so the breakpoints below and
   Elementor's own responsive control can still override it. */
.cdm-services__grid[data-cols="1"] {
	--cdm-services-cols: 1;
}

.cdm-services__grid[data-cols="3"] {
	--cdm-services-cols: 3;
}

.cdm-services__grid[data-cols="4"] {
	--cdm-services-cols: 4;
}

.cdm-service-tile {
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	min-height: 180px;
	padding: 36px 30px;
	border-right: 1px solid var(--cdm-services-line);
	border-bottom: 1px solid var(--cdm-services-line);
	color: inherit;
	text-decoration: none;
	background-color: transparent;
	transition: background-color var(--cdm-transition), transform var(--cdm-transition);
}

.cdm-service-tile--link:hover,
.cdm-service-tile--link:focus-visible {
	background-color: var(--cdm-services-hover);
	transform: translateY(-2px);
	opacity: 1;
}

.cdm-service-tile__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 7px;
	background: var(--cdm-services-icon-bg);
	color: var(--cdm-services-accent);
	transition: background-color var(--cdm-transition), color var(--cdm-transition);
}

.cdm-service-tile--link:hover .cdm-service-tile__icon {
	background: var(--cdm-services-accent);
	color: #fff;
}

.cdm-service-tile__text {
	flex: 1;
}

.cdm-service-tile__title {
	display: block;
	margin: 2px 0 13px;
	font-family: var(--cdm-font-ui);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
}

.cdm-service-tile__desc {
	display: block;
	font-family: var(--cdm-font-body);
	font-size: 15px;
	line-height: 1.7;
	color: var(--cdm-services-desc);
}

.cdm-service-tile__arrow {
	flex: none;
	display: grid;
	place-items: center;
	margin-top: 2px;
	color: var(--cdm-services-accent);
	transition: transform var(--cdm-transition);
}

.cdm-service-tile--link:hover .cdm-service-tile__arrow {
	transform: translate(3px, -3px);
}

/* --- Discovery links --- */

.cdm-services__discovery {
	margin-top: 45px;
	text-align: left;
}

.cdm-services__links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px 25px;
}

.cdm-services__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #d8c8b9;
	font-family: var(--cdm-font-ui);
	font-size: 14px;
	line-height: 1.8;
	color: #775849;
	text-decoration: none;
	transition: color var(--cdm-transition), border-color var(--cdm-transition);
}

.cdm-services__link svg {
	flex: none;
	transition: transform var(--cdm-transition);
}

.cdm-services__link:hover {
	color: var(--cdm-text);
	border-bottom-color: var(--cdm-text);
	opacity: 1;
}

.cdm-services__link:hover svg {
	transform: translate(2px, -2px);
}

/* --- GSAP reveal: hold the pieces back until the timeline runs --- */

html.cdm-js .cdm-services--animate:not(.is-revealed) [data-cdm-anim] {
	opacity: 0;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
	.cdm-services__intro {
		gap: 40px;
	}

	.cdm-services__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cdm-services__grid[data-cols="3"],
	.cdm-services__grid[data-cols="4"] {
		--cdm-services-cols: 2;
	}
}

@media (max-width: 720px) {
	.cdm-services__intro {
		display: block;
		margin-bottom: 38px;
	}

	.cdm-services__heading {
		margin-bottom: 24px;
	}

	.cdm-services__lede {
		margin-top: 23px;
		font-size: 16px;
	}

	.cdm-services__grid {
		--cdm-services-cols: 1;
	}

	.cdm-service-tile {
		min-height: 0;
		padding: 27px 19px;
		gap: 16px;
	}

	.cdm-service-tile__icon {
		width: 46px;
		height: 46px;
	}

	.cdm-service-tile__title {
		font-size: 16px;
	}

	.cdm-service-tile__desc {
		font-size: 14px;
	}

	.cdm-services__links {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {

	html.cdm-js .cdm-services--animate [data-cdm-anim] {
		opacity: 1;
	}

	.cdm-service-tile,
	.cdm-service-tile__icon,
	.cdm-service-tile__arrow,
	.cdm-services__link {
		transition: none;
	}
}
/* ---------------------------------------------------------------
   13. Editorial About section
   Mirrors design/home.html (.about-editorial). Rendered by the About
   Editorial widget (inc/elementor/widgets/class-about-widget.php) via
   template-parts/components/about.php.

   The portrait is a background layer that bleeds off the left edge, with a
   gradient fading it into the section colour. --cdm-about-bg drives both, so
   they can never drift apart.
   --------------------------------------------------------------- */

.cdm-about {
	--cdm-about-bg: #efe8df;
	--cdm-about-accent: #7b665c;
	--cdm-about-copy: #3a352f;
	--cdm-about-heading: #181714;
	--cdm-about-image-w: 67%;
	--cdm-about-image-pos: 40% 50%;

	/* Driven by GSAP (assets/js/about.js); the fallbacks are the rest state. */
	--cdm-about-zoom: 1;
	--cdm-about-shift: 0%;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	min-height: 690px;
	display: flex;
	align-items: center;
	padding: 100px 0;
	background: var(--cdm-about-bg);
}

/* The Elementor container is a flex column, so the widget has to claim the
   full width itself - same as the services widget. */
.elementor-widget-cdm-about {
	width: 100%;
}

/* --- Portrait --- */

.cdm-about__image {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--cdm-about-image-w);
	z-index: -2;
	overflow: hidden;
}

/* ::before carries the image so the entrance tween can own clip-path on the
   parent while the scroll scrub owns the transform here.

   The overhang is horizontal only. `cover` here is height-driven, so bleeding
   the box vertically too would scale the photo up ~8% and crop it tighter
   than the design - widening it costs no zoom at all, and still leaves room
   for the parallax shift - 5% of overhang against a 3% shift. */
.cdm-about__image::before {
	content: "";
	position: absolute;
	inset: 0 -5%;
	background-image: var(--cdm-about-image);
	background-size: cover;
	background-position: var(--cdm-about-image-pos);
	background-repeat: no-repeat;
	transform: translate3d(var(--cdm-about-shift), 0, 0) scale(var(--cdm-about-zoom));
	transform-origin: 40% 50%;
	will-change: transform;
}

.cdm-about__fade {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(239, 232, 223, 0) 0%,
		rgba(239, 232, 223, 0) 30%,
		rgba(239, 232, 223, 0.42) 47%,
		var(--cdm-about-bg) 65%,
		var(--cdm-about-bg) 100%
	);
}

/* --- Layout --- */

/* The widget is the full-bleed section (the portrait has to reach the viewport
   edge), so the layout grid doubles as the wrap.

   This one is the design's .wrap (1300 with 50px margins), not the theme's
   1200 .cdm-container. The copy column has to clear the gradient before it
   starts - at 1200 the column lands at 528px and the 70px heading wraps with
   2px to spare. The wider wrap puts the column back at the design's 610px and
   starts it at the same x, so only the ragged right edge moves. */
.cdm-about__layout {
	position: relative;
	width: min(1300px, calc(100% - 100px));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.08fr 1fr;
	gap: 30px;
	align-items: center;
}

.cdm-about__content {
	max-width: 610px;
	padding: 28px 0 28px 20px;
}

/* --- Eyebrow --- */

.cdm-about__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-family: var(--cdm-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.17em;
	line-height: 1.5;
	color: var(--cdm-about-accent);
}

.cdm-about__eyebrow-rule {
	flex: 0 0 auto;
	width: 42px;
	height: 1px;
	background: currentColor;
	transform-origin: left center;
}

/* --- Heading + copy --- */

/* Doubled up on purpose: Elementor's kit writes `.elementor-kit-N h2`, which
   out-specifies a lone class. The widget's own typography control still wins,
   it matches this specificity and loads later. */
.cdm-about .cdm-about__heading {
	margin: 16px 0 28px;
	font-family: var(--cdm-font-display);
	font-size: clamp(42px, 4.9vw, 70px);
	font-weight: 500;
	line-height: 1.13;
	letter-spacing: -0.04em;
	color: var(--cdm-about-heading);
}

.cdm-about__copy p {
	max-width: 560px;
	margin: 0 0 22px;
	font-family: var(--cdm-font-ui);
	font-size: clamp(16px, 1.25vw, 19px);
	line-height: 1.85;
	color: var(--cdm-about-copy);
}

.cdm-about__copy p:last-child {
	margin-bottom: 0;
}

/* --- Link --- */

.cdm-about__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 30px;
	padding-bottom: 7px;
	font-family: var(--cdm-font-ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	color: var(--cdm-about-heading);
	border-bottom: 1px solid currentColor;
	transition: color var(--cdm-transition), gap var(--cdm-transition);
}

.cdm-about__link:hover,
.cdm-about__link:focus-visible {
	color: var(--cdm-about-accent);
	gap: 14px;
}

.cdm-about__link-icon {
	flex: 0 0 auto;
}

/* --- GSAP guard ---
   Only hide things while the browser has JS and the script has yet to run.
   .is-revealed is added the moment about.js takes over - including when it
   bails out because GSAP never loaded or motion is reduced. */

html.cdm-js .cdm-about--animate:not(.is-revealed) [data-cdm-anim] {
	opacity: 0;
}

/* Backstop for about.js itself failing to load, which .is-revealed cannot
   cover. The failsafe timer in wp_head sets .cdm-hero-ready unconditionally
   after 2.5s, so the copy can never be stranded invisible. Both classes are
   on the selector to match the guard's specificity - the guard's :not() adds
   a class of its own - so this wins by coming later. Harmless in the normal
   case: by then GSAP owns these as inline styles, which beat both. */
html.cdm-js.cdm-hero-ready .cdm-about--animate [data-cdm-anim] {
	opacity: 1;
}

/* --- Responsive --- */

@media (max-width: 1000px) {
	.cdm-about {
		min-height: 0;
		padding: 80px 0;
	}

	.cdm-about__content {
		padding-left: 0;
	}
}

@media (max-width: 900px) {

	/* Stacked: the portrait becomes a band above the copy, so it no longer
	   needs the gradient to separate itself from the text. */
	.cdm-about {
		display: block;
		padding: 0 0 66px;
	}

	.cdm-about__image {
		position: relative;
		width: 100%;
		height: 440px;
		z-index: 0;
	}

	.cdm-about__image::before {
		background-position: center 42%;
	}

	.cdm-about__fade {
		display: none;
	}

	.cdm-about__layout {
		display: block;
		width: 100%;
	}

	.cdm-about__spacer {
		display: none;
	}

	/* The band is full-bleed now, so the copy takes the gutters itself. */
	.cdm-about__content {
		max-width: 780px;
		padding: 45px var(--cdm-gutter) 0;
	}
}

@media (max-width: 600px) {
	.cdm-about__image {
		height: 290px;
	}

	.cdm-about__content {
		padding-top: 34px;
	}

	.cdm-about__layout {
		--cdm-gutter: 22px;
	}

	.cdm-about .cdm-about__heading {
		font-size: 42px;
		margin-bottom: 22px;
	}

	.cdm-about__copy p {
		font-size: 16px;
		line-height: 1.75;
	}
}

@media (prefers-reduced-motion: reduce) {

	html.cdm-js .cdm-about--animate [data-cdm-anim] {
		opacity: 1;
	}

	.cdm-about__image::before {
		transform: none;
		will-change: auto;
	}

	.cdm-about__link {
		transition: none;
	}
}

/* ---------------------------------------------------------------
   14. Client testimonials
   Mirrors design/home.html. Rendered by the Testimonials widget
   (inc/elementor/widgets/class-testimonials-widget.php) via
   template-parts/components/testimonials.php.
   --------------------------------------------------------------- */

.cdm-testimonials {
	--cdm-testimonials-cols: 3;
	--cdm-testimonials-gap: 18px;
	--cdm-testimonials-card-h: 330px;
	--cdm-testimonials-accent: #ac715f;
	--cdm-testimonials-quote: #2b2721;
	--cdm-testimonials-source: #312c26;
	--cdm-testimonials-rule: rgba(0, 0, 0, 0.13);

	/* The three card tints from the design, cycled in DOM order. */
	--cdm-testimonials-tint-1: #f7f4ee;
	--cdm-testimonials-tint-2: #f8e6dc;
	--cdm-testimonials-tint-3: #f3e2d6;

	width: 100%;
}

/* The section container is set to align-items:center, so the widget has to
   claim the full width itself. */
.elementor-widget-cdm-testimonials {
	width: 100%;
}

/* --- Heading block --- */

.cdm-testimonials__head {
	margin-bottom: 52px;
	text-align: left;
}

.cdm-testimonials__eyebrow {
	color: var(--cdm-testimonials-accent);
	margin-bottom: 14px;
}

.cdm-testimonials__heading {
	font-family: var(--cdm-font-display);
	font-size: clamp(34px, 4.2vw, 58px);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.03em;
	max-width: 670px;
	margin: 0;
}

/* --- The grid --- */

.cdm-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(var(--cdm-testimonials-cols, 3), minmax(0, 1fr));
	gap: var(--cdm-testimonials-gap);
	align-items: stretch;
}

/* Column count without an inline style, so the breakpoints below and
   Elementor's own responsive control can still override it. */
.cdm-testimonials__grid[data-cols="1"] {
	--cdm-testimonials-cols: 1;
}

.cdm-testimonials__grid[data-cols="2"] {
	--cdm-testimonials-cols: 2;
}

/* --- Cards --- */

.cdm-testimonials__card {
	display: flex;
	flex-direction: column;
	min-height: var(--cdm-testimonials-card-h);
	padding: 34px;
	background: var(--cdm-testimonials-tint-1);

	/* GSAP drifts the cards on scroll (assets/js/testimonials.js), which is a
	   transform, so give the compositor a hint without pinning will-change on
	   for the life of the page. */
	backface-visibility: hidden;
}

/* nth-child(3n+x) rather than nth-child(x): a fourth quote picks the first
   tint back up instead of falling through to the untinted default. */
.cdm-testimonials__card:nth-child(3n + 2) {
	background: var(--cdm-testimonials-tint-2);
}

.cdm-testimonials__card:nth-child(3n + 3) {
	background: var(--cdm-testimonials-tint-3);
}

/* --- The quote glyph --- */

.cdm-testimonials__glyph {
	display: block;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	margin-bottom: 18px;
	color: var(--cdm-testimonials-accent);

	/* The icon set is drawn with a 1.5 stroke on a 24x24 grid. At 46px that
	   reads thin next to the design's heavy serif glyph, so thicken it here
	   rather than shipping a second icon. */
	stroke-width: 1.35;
}

/* --- The quote --- */

.cdm-testimonials__quote {
	flex: 1 1 auto;

	/* Reset the UA blockquote indent - the card's padding owns the inset. */
	margin: 0;
	padding: 0;
	border: 0;
	quotes: none;
}

.cdm-testimonials__quote p {
	margin: 0;
	font-family: var(--cdm-font-ui);
	font-size: 17px;
	line-height: 1.82;
	color: var(--cdm-testimonials-quote);
}

/* --- Attribution --- */

.cdm-testimonials__source {
	flex: 0 0 auto;
	margin-top: 26px;
	padding-top: 22px;

	/* The rule is its own element so GSAP can wipe it out from the left. The
	   border would have to animate width, which reflows the card. */
	position: relative;
}

.cdm-testimonials__rule {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 1px;
	background: var(--cdm-testimonials-rule);
	transform-origin: left center;
}

.cdm-testimonials__source cite {
	display: block;
	font-family: var(--cdm-font-ui);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.5;
	color: var(--cdm-testimonials-source);
}

/* --- GSAP guard ---
   Only hide things while the browser has JS and the script has yet to run.
   .is-revealed is added the moment testimonials.js takes over - including
   when it bails out because GSAP never loaded or motion is reduced. */

html.cdm-js .cdm-testimonials--animate:not(.is-revealed) [data-cdm-anim] {
	opacity: 0;
}

/* Backstop for testimonials.js itself failing to load, which .is-revealed
   cannot cover. The failsafe timer in wp_head sets .cdm-hero-ready
   unconditionally after 2.5s, so the quotes can never be stranded invisible.
   Both classes are on the selector to match the guard's specificity - the
   guard's :not() adds a class of its own - so this wins by coming later.
   Harmless in the normal case: by then GSAP owns these as inline styles,
   which beat both. */
html.cdm-js.cdm-hero-ready .cdm-testimonials--animate [data-cdm-anim] {
	opacity: 1;
}

/* --- Responsive --- */

@media (max-width: 1000px) {
	.cdm-testimonials__grid {
		--cdm-testimonials-cols: 1;
	}

	.cdm-testimonials__card {
		min-height: 230px;
	}

	.cdm-testimonials__head {
		margin-bottom: 42px;
	}
}

@media (max-width: 600px) {
	.cdm-testimonials__card {
		padding: 28px 24px;
	}

	.cdm-testimonials__glyph {
		width: 38px;
		height: 38px;
		margin-bottom: 14px;
	}

	.cdm-testimonials__quote p {
		font-size: 16px;
		line-height: 1.75;
	}
}

@media (prefers-reduced-motion: reduce) {

	html.cdm-js .cdm-testimonials--animate [data-cdm-anim] {
		opacity: 1;
	}

	.cdm-testimonials__card {
		transform: none;
	}
}

/* ---------------------------------------------------------------
   15. Process ("How We Work Together")
   Mirrors design/home.html. Rendered by the Process widget
   (inc/elementor/widgets/class-process-widget.php) via
   template-parts/components/process.php.
   --------------------------------------------------------------- */

.cdm-process {
	--cdm-process-gap: 100px;
	--cdm-process-text: #ffffff;
	--cdm-process-eyebrow: #f6ece3;
	--cdm-process-marker: #f1d9c7;
	--cdm-process-rule: rgba(255, 255, 255, 0.27);

	width: 100%;
	color: var(--cdm-process-text);
}

/* The section container is set to align-items:center, so the widget has to
   claim the full width itself. */
.elementor-widget-cdm-process {
	width: 100%;
}

/* --- The two columns ---
   The design's split is deliberately uneven: the list column is the wider of
   the two so six ruled rows never wrap into a ragged second line. */
.cdm-process__grid {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: var(--cdm-process-gap);
	align-items: start;
}

/* --- Copy column --- */

.cdm-process__eyebrow {
	color: var(--cdm-process-eyebrow);
	margin-bottom: 14px;
}

/* Doubled up on purpose: Elementor's kit writes `.elementor-kit-N h2`, which
   out-specifies a lone class. The widget's own typography control still wins,
   it matches this specificity and loads later. Same trick as the About
   heading above. */
.cdm-process .cdm-process__heading {
	font-family: var(--cdm-font-display);
	font-size: clamp(42px, 4.9vw, 70px);
	font-weight: 500;
	line-height: 1.13;
	letter-spacing: -0.04em;
	color: inherit;
	margin: 0 0 28px;
}

.cdm-process__intro p {
	font-family: var(--cdm-font-ui);
	font-size: 17px;
	line-height: 1.9;
	color: inherit;
	margin: 0 0 22px;
}

.cdm-process__intro p:last-child {
	margin-bottom: 0;
}

/* --- List column --- */

/* Doubled up for the same reason, against `.elementor-kit-N h3`. */
.cdm-process .cdm-process__list-title {
	font-family: var(--cdm-font-display);
	font-size: clamp(24px, 2.2vw, 29px);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: inherit;
	margin: 0 0 28px;
}

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

/* --- A row ---
   position:relative so the hairline can sit on the row's own bottom edge
   rather than being a border GSAP would have to reflow to animate. */
.cdm-process__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 17px;
	padding: 16px 0;
	font-family: var(--cdm-font-ui);
	line-height: 1.65;
}

.cdm-process__rule {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 1px;
	background: var(--cdm-process-rule);
	transform-origin: left center;
}

/* --- The row marker ---
   The design's typographic four point star, as inline SVG so its stroke can
   draw itself in. Filled rather than stroked: at 18px a 1.5 stroke on a 24x24
   grid reads as a hollow outline instead of the design's solid glyph, so the
   fill carries the shape and the stroke is what animates. */
.cdm-process__marker {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--cdm-process-marker);
	fill: currentColor;
	stroke-width: 1;

	/* Optically centre the glyph on the first line of text rather than its
	   box, which sits high next to a 1.65 line-height. */
	margin-top: 0.42em;
}

.cdm-process__item-text {
	font-size: 16px;
	color: inherit;
}

/* --- The closing line --- */

.cdm-process__closing {
	font-family: var(--cdm-font-display);
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 500;
	line-height: 1.35;
	color: inherit;
	margin: 32px 0 0;
}

/* --- GSAP guard ---
   Only hide things while the browser has JS and the script has yet to run.
   .is-revealed is added the moment process.js takes over - including when it
   bails out because GSAP never loaded or motion is reduced. */

html.cdm-js .cdm-process--animate:not(.is-revealed) [data-cdm-anim] {
	opacity: 0;
}

/* Backstop for process.js itself failing to load, which .is-revealed cannot
   cover. The failsafe timer in wp_head sets .cdm-hero-ready unconditionally
   after 2.5s, so the section can never be stranded invisible. Both classes
   are on the selector to match the guard's specificity - the guard's :not()
   adds a class of its own - so this wins by coming later. Harmless in the
   normal case: by then GSAP owns these as inline styles, which beat both. */
html.cdm-js.cdm-hero-ready .cdm-process--animate [data-cdm-anim] {
	opacity: 1;
}

/* --- Responsive --- */

@media (max-width: 1000px) {
	.cdm-process {
		--cdm-process-gap: 45px;
	}

	.cdm-process .cdm-process__heading {
		margin-bottom: 22px;
	}
}

@media (max-width: 720px) {
	.cdm-process__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cdm-process__intro p {
		font-size: 16px;
	}

	.cdm-process .cdm-process__heading {
		font-size: 42px;
	}

	.cdm-process .cdm-process__list-title {
		margin-bottom: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {

	html.cdm-js .cdm-process--animate [data-cdm-anim] {
		opacity: 1;
	}

	.cdm-process__copy,
	.cdm-process__list {
		transform: none;
	}
}

/* ---------------------------------------------------------------
   16. Brands ("Brands We've Worked With")
   Mirrors design/home.html. Rendered by the Brands widget
   (inc/elementor/widgets/class-brands-widget.php) via
   template-parts/components/brands.php.
   --------------------------------------------------------------- */

.cdm-brands {
	--cdm-brands-cols: 4;
	--cdm-brands-gap: 14px;
	--cdm-brands-text: #000000;
	--cdm-brands-accent: #ac715f;
	--cdm-brands-muted: #65615b;
	--cdm-brands-tile: #ffffff;
	--cdm-brands-tile-border: #e9e4dd;
	--cdm-brands-tile-radius: 14px;
	--cdm-brands-tile-min-h: 164px;
	--cdm-brands-logo-h: 94px;
	--cdm-brands-grayscale: 1;

	width: 100%;
	color: var(--cdm-brands-text);
}

/* The section container is set to align-items:center, so the widget has to
   claim the full width itself. Same as the other section widgets. */
.elementor-widget-cdm-brands {
	width: 100%;
}

/* --- Intro --- */

.cdm-brands__intro {
	max-width: 800px;
}

.cdm-brands__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cdm-brands-accent);
	margin-bottom: 14px;
}

/* The design's eyebrow is plain text; the marker is the same four point
   sparkle the services and process sections use, so the three eyebrows read
   as one family. Filled rather than stroked, and sized off the label. */
.cdm-brands__eyebrow-marker {
	flex: 0 0 auto;
	fill: currentColor;
	stroke-width: 0;
}

/* Doubled up on purpose: Elementor's kit writes `.elementor-kit-N h2`, which
   out-specifies a lone class. The widget's own typography control still wins,
   it matches this specificity and loads later. Same trick as the About and
   Process headings above. */
.cdm-brands .cdm-brands__heading {
	font-family: var(--cdm-font-display);
	font-size: clamp(40px, 4.6vw, 64px);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.01em;
	color: inherit;
	margin: 0 0 20px;
}

.cdm-brands__copy p {
	font-family: var(--cdm-font-ui);
	font-size: 18px;
	line-height: 1.8;
	color: var(--cdm-brands-muted);
	margin: 0;
}

.cdm-brands__copy p + p {
	margin-top: 14px;
}

/* --- The logo wall --- */

.cdm-brands__grid {
	display: grid;
	grid-template-columns: repeat(var(--cdm-brands-cols), minmax(0, 1fr));
	gap: var(--cdm-brands-gap);
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
}

/* Column count for the shortcode / non-Elementor path. A class rather than an
   inline custom property on purpose: inline styles beat the media queries
   below, which would strand the grid at the desktop count on a phone. The
   Elementor widget sets --cdm-brands-cols per breakpoint instead. */

.cdm-brands--cols-1 {
	--cdm-brands-cols: 1;
}

.cdm-brands--cols-2 {
	--cdm-brands-cols: 2;
}

.cdm-brands--cols-3 {
	--cdm-brands-cols: 3;
}

.cdm-brands--cols-4 {
	--cdm-brands-cols: 4;
}

.cdm-brands--cols-5 {
	--cdm-brands-cols: 5;
}

.cdm-brands--cols-6 {
	--cdm-brands-cols: 6;
}

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

.cdm-brands__tile {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--cdm-brands-tile-min-h);
	height: 100%;
	padding: 25px 22px;
	background: var(--cdm-brands-tile);
	border: 1px solid var(--cdm-brands-tile-border);
	border-radius: var(--cdm-brands-tile-radius);
	overflow: hidden;
	text-decoration: none;
	transition: border-color var(--cdm-transition), box-shadow var(--cdm-transition),
		transform var(--cdm-transition);
}

.cdm-brands__logo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: var(--cdm-brands-logo-h);
	max-height: var(--cdm-brands-logo-h);
	object-fit: contain;
	/* Greyscale at rest, as in the design: eight logos in eight different
	   brand palettes would fight the section instead of sitting in it. */
	filter: grayscale(var(--cdm-brands-grayscale));
	transition: filter var(--cdm-transition), opacity var(--cdm-transition);
}

/* --- Hover: the one brand you point at comes back to colour --- */

.cdm-brands__tile:hover,
.cdm-brands__tile:focus-visible {
	border-color: var(--cdm-brands-accent);
	box-shadow: 0 18px 38px -24px rgba(0, 0, 0, 0.35);
	transform: translateY(-3px);
}

.cdm-brands__tile:hover .cdm-brands__logo,
.cdm-brands__tile:focus-visible .cdm-brands__logo {
	filter: grayscale(0);
}

/* --- The sheen ---
   Its own element rather than a background gradient on the tile, so GSAP can
   sweep it across on reveal (and on hover) without repainting the tile. Parked
   off to the left and moved with a transform only. */
.cdm-brands__sheen {
	position: absolute;
	top: 0;
	left: 0;
	width: 55%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transform: translate3d(-120%, 0, 0) skewX(-14deg);
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(172, 113, 95, 0.16) 50%,
		rgba(255, 255, 255, 0) 100%
	);
}

/* --- GSAP guard ---
   Only hide things while the browser has JS and the script has yet to run.
   .is-revealed is added the moment brands.js takes over - including when it
   bails out because GSAP never loaded or motion is reduced. */

html.cdm-js .cdm-brands--animate:not(.is-revealed) [data-cdm-anim] {
	opacity: 0;
}

/* Backstop for brands.js itself failing to load, which .is-revealed cannot
   cover. The failsafe timer in wp_head sets .cdm-hero-ready unconditionally
   after 2.5s, so the section can never be stranded invisible. Both classes
   are on the selector to match the guard's specificity - the guard's :not()
   adds a class of its own - so this wins by coming later. Harmless in the
   normal case: by then GSAP owns these as inline styles, which beat both. */
html.cdm-js.cdm-hero-ready .cdm-brands--animate [data-cdm-anim] {
	opacity: 1;
}

/* --- Responsive --- */

@media (max-width: 1000px) {
	.cdm-brands {
		--cdm-brands-cols: 3;
	}

	.cdm-brands .cdm-brands__heading {
		font-size: 44px;
	}
}

@media (max-width: 720px) {
	.cdm-brands {
		--cdm-brands-cols: 2;
		--cdm-brands-gap: 12px;
		--cdm-brands-tile-min-h: 120px;
		--cdm-brands-logo-h: 80px;
	}

	.cdm-brands .cdm-brands__heading {
		font-size: 38px;
	}

	.cdm-brands__copy p {
		font-size: 16px;
	}

	.cdm-brands__grid {
		margin-top: 30px;
	}

	.cdm-brands__tile {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {

	html.cdm-js .cdm-brands--animate [data-cdm-anim] {
		opacity: 1;
	}

	.cdm-brands__sheen {
		display: none;
	}
}

/* ---------------------------------------------------------------
   17. Work / portfolio ("The work speaks for itself.")
   Mirrors design/home.html. Rendered by the Work widget
   (inc/elementor/widgets/class-work-widget.php) via
   template-parts/components/work.php.
   --------------------------------------------------------------- */

.cdm-work {
	--cdm-work-cols: 3;
	--cdm-work-gap: 20px;
	--cdm-work-text: #181714;
	--cdm-work-accent: #ac715f;
	--cdm-work-muted: #68635c;
	--cdm-work-card: #ffffff;
	--cdm-work-card-border: #e1d8cd;
	--cdm-work-card-radius: 3px;
	--cdm-work-ratio: 4 / 3.7;
	--cdm-work-stagger: 16px;

	/* The design's placeholder palette, one tone per card. */
	--cdm-work-tone-1: #db8e81;
	--cdm-work-tone-2: #efbba4;
	--cdm-work-tone-3: #f8d9c9;
	--cdm-work-tone-4: #ac715f;
	--cdm-work-tone-5: #e0cfbf;
	--cdm-work-tone-6: #70674f;

	width: 100%;
	color: var(--cdm-work-text);
}

/* The section container is set to align-items:center, so the widget has to
   claim the full width itself. Same as the other section widgets. */
.elementor-widget-cdm-work {
	width: 100%;
}

/* --- Intro ---
   Heading left, the one intro line pushed right and baseline aligned with it,
   as in the design. */

.cdm-work__intro {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 45px;
}

.cdm-work__intro-main {
	min-width: 0;
}

.cdm-work__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--cdm-font-ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.015em;
	color: var(--cdm-work-accent);
	margin: 0 0 14px;
}

/* The same four point sparkle the services, process and brands eyebrows use,
   so every eyebrow on the page reads as one family. Filled rather than
   stroked, and sized off the label. */
.cdm-work__eyebrow-marker {
	flex: 0 0 auto;
	fill: currentColor;
	stroke-width: 0;
}

/* Doubled up on purpose: Elementor's kit writes `.elementor-kit-N h2`, which
   out-specifies a lone class. The widget's own typography control still wins,
   it matches this specificity and loads later. Same trick as the About,
   Process and Brands headings above. */
.cdm-work .cdm-work__heading {
	font-family: var(--cdm-font-display);
	font-size: clamp(40px, 4.6vw, 64px);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.04em;
	color: inherit;
	margin: 0;
}

.cdm-work__copy {
	flex: 0 1 420px;
	max-width: 420px;
	padding-bottom: 7px;
}

.cdm-work__copy p {
	font-family: var(--cdm-font-ui);
	font-size: 17px;
	line-height: 1.8;
	color: var(--cdm-work-muted);
	margin: 0;
}

.cdm-work__copy p + p {
	margin-top: 14px;
}

/* --- The grid --- */

.cdm-work__grid {
	display: grid;
	grid-template-columns: repeat(var(--cdm-work-cols), minmax(0, 1fr));
	gap: var(--cdm-work-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Column count for the shortcode / non-Elementor path. A class rather than an
   inline custom property on purpose: inline styles beat the media queries
   below, which would strand the grid at the desktop count on a phone. The
   Elementor widget sets --cdm-work-cols per breakpoint instead. */

.cdm-work--cols-1 {
	--cdm-work-cols: 1;
}

.cdm-work--cols-2 {
	--cdm-work-cols: 2;
}

.cdm-work--cols-3 {
	--cdm-work-cols: 3;
}

.cdm-work--cols-4 {
	--cdm-work-cols: 4;
}

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

/* The design drops the second and fifth card so the three across grid reads
   as editorial rather than as a table. Lives on the list item, not the card,
   so the card's own hover transform - and the one GSAP writes on reveal -
   stay free of it. */
.cdm-work--stagger .cdm-work__item:nth-child(2),
.cdm-work--stagger .cdm-work__item:nth-child(5) {
	transform: translateY(var(--cdm-work-stagger));
}

.cdm-work__card {
	display: block;
	height: 100%;
	padding: 10px 10px 22px;
	background: var(--cdm-work-card);
	border: 1px solid var(--cdm-work-card-border);
	border-radius: var(--cdm-work-card-radius);
	box-shadow: 0 8px 30px rgba(85, 67, 49, 0.05);
	text-decoration: none;
	color: inherit;
	transition: transform var(--cdm-transition), box-shadow var(--cdm-transition),
		border-color var(--cdm-transition);
}

/* --- The image well --- */

.cdm-work__well {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	aspect-ratio: var(--cdm-work-ratio);
	overflow: hidden;
	border-radius: var(--cdm-work-card-radius);
	text-align: center;
}

/* The design's inset hairline frame. */
.cdm-work__well::after {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	pointer-events: none;
	z-index: 2;
}

.cdm-work__well--tone-1 {
	background: var(--cdm-work-tone-1);
	color: #ffffff;
}

.cdm-work__well--tone-2 {
	background: var(--cdm-work-tone-2);
	color: #4b3a30;
}

.cdm-work__well--tone-3 {
	background: var(--cdm-work-tone-3);
	color: #4b3a30;
}

.cdm-work__well--tone-4 {
	background: var(--cdm-work-tone-4);
	color: #ffffff;
}

.cdm-work__well--tone-5 {
	background: var(--cdm-work-tone-5);
	color: #4b3a30;
}

.cdm-work__well--tone-6 {
	background: var(--cdm-work-tone-6);
	color: #ffffff;
}

/* --- Placeholder (no image picked yet) --- */

.cdm-work__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 1;
	padding: 0 24px;
}

.cdm-work__glyph {
	opacity: 0.78;
	stroke-width: 1.2;
}

.cdm-work__label {
	font-family: var(--cdm-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}

.cdm-work__hint {
	font-family: var(--cdm-font-ui);
	font-size: 12px;
	line-height: 1.5;
	opacity: 0.78;
}

/* --- A real image fills the well --- */

.cdm-work__well.has-image {
	background: #f4ede5;
}

.cdm-work__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Caption --- */

.cdm-work__caption {
	padding: 21px 13px 0;
}

.cdm-work .cdm-work__title {
	font-family: var(--cdm-font-ui);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
	margin: 0 0 9px;
}

.cdm-work__description {
	font-family: var(--cdm-font-ui);
	font-size: 13px;
	line-height: 1.6;
	color: #777777;
	margin: 0;
}

/* --- The link affordance, only on cards that link somewhere --- */

.cdm-work__arrow {
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.92);
	color: #181714;
	opacity: 0;
	transform: translate3d(0, 8px, 0);
	transition: opacity var(--cdm-transition), transform var(--cdm-transition);
}

/* --- Hover --- */

a.cdm-work__card:hover,
a.cdm-work__card:focus-visible {
	transform: translateY(-4px);
	border-color: var(--cdm-work-accent);
	box-shadow: 0 22px 44px -26px rgba(85, 67, 49, 0.4);
}

a.cdm-work__card:hover .cdm-work__arrow,
a.cdm-work__card:focus-visible .cdm-work__arrow {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

a.cdm-work__card:hover .cdm-work__image,
a.cdm-work__card:focus-visible .cdm-work__image {
	transform: scale(1.05);
}

/* --- The sheen ---
   Its own element rather than a background gradient on the well, so GSAP can
   sweep it across on reveal without repainting the card. Parked off to the
   left and moved with a transform only. */
.cdm-work__sheen {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 55%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transform: translate3d(-120%, 0, 0) skewX(-14deg);
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.42) 50%,
		rgba(255, 255, 255, 0) 100%
	);
}

/* --- GSAP guard ---
   Only hide things while the browser has JS and the script has yet to run.
   .is-revealed is added the moment work.js takes over - including when it
   bails out because GSAP never loaded or motion is reduced. */

html.cdm-js .cdm-work--animate:not(.is-revealed) [data-cdm-anim] {
	opacity: 0;
}

/* Backstop for work.js itself failing to load, which .is-revealed cannot
   cover. The failsafe timer in wp_head sets .cdm-hero-ready unconditionally
   after 2.5s, so the section can never be stranded invisible. Both classes
   are on the selector to match the guard's specificity - the guard's :not()
   adds a class of its own - so this wins by coming later. Harmless in the
   normal case: by then GSAP owns these as inline styles, which beat both. */
html.cdm-js.cdm-hero-ready .cdm-work--animate [data-cdm-anim] {
	opacity: 1;
}

/* --- Responsive --- */

@media (max-width: 1000px) {
	.cdm-work {
		--cdm-work-cols: 2;
	}

	.cdm-work .cdm-work__heading {
		font-size: 44px;
	}

	.cdm-work__intro {
		display: block;
	}

	.cdm-work__copy {
		max-width: none;
		margin-top: 18px;
		padding-bottom: 0;
	}
}

@media (max-width: 720px) {
	.cdm-work {
		--cdm-work-cols: 1;
		--cdm-work-gap: 16px;
	}

	.cdm-work .cdm-work__heading {
		font-size: 38px;
	}

	.cdm-work__copy p {
		font-size: 16px;
	}

	.cdm-work__intro {
		margin-bottom: 32px;
	}

	/* One column: the drop would just look like a broken gap. */
	.cdm-work--stagger .cdm-work__item:nth-child(2),
	.cdm-work--stagger .cdm-work__item:nth-child(5) {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	html.cdm-js .cdm-work--animate [data-cdm-anim] {
		opacity: 1;
	}

	.cdm-work__sheen {
		display: none;
	}

	.cdm-work__image,
	a.cdm-work__card:hover .cdm-work__image {
		transition: none;
		transform: none;
	}
}

/* ---------------------------------------------------------------
   18. Final CTA + consultation form ("It's Time to Level Up Your Brand")
   Mirrors design/home.html. Rendered by the CTA widget
   (inc/elementor/widgets/class-cta-widget.php) via
   template-parts/components/cta.php.

   The form inside the card is a real WPForms form (inc/forms.php), so the
   second half of this section styles WPForms' classic markup. WPForms is set
   to its base stylesheet only - structure and validation colours, none of
   its field styling - so everything the design asks for is written here
   rather than fought with.
   --------------------------------------------------------------- */

.cdm-cta {
	--cdm-cta-text: #181714;
	--cdm-cta-accent: #ac715f;
	--cdm-cta-muted: #665e56;
	--cdm-cta-card: #f7f3ef;
	--cdm-cta-card-border: #e5dcd3;
	--cdm-cta-card-width: 750px;
	--cdm-cta-card-radius: 18px;
	--cdm-cta-field-bg: #ffffff;
	--cdm-cta-field-border: #c7bbb1;
	--cdm-cta-label: #26231f;
	--cdm-cta-input: #181714;
	--cdm-cta-button: #050505;
	--cdm-cta-button-text: #ffffff;

	width: 100%;
	text-align: center;
	color: var(--cdm-cta-text);
}

/* The section container is set to align-items:center, so the widget has to
   claim the full width itself. Same as the other section widgets. */
.elementor-widget-cdm-cta {
	width: 100%;
}

/* --- Intro --- */

.cdm-cta__intro {
	max-width: 850px;
	margin: 0 auto;
}

.cdm-cta__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--cdm-font-ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.015em;
	color: var(--cdm-cta-muted);
	margin: 0 0 24px;
}

/* The same four point sparkle every other eyebrow on the page uses, so they
   all read as one family. Filled rather than stroked, and sized off the
   label. */
.cdm-cta__eyebrow-marker {
	flex: 0 0 auto;
	fill: currentColor;
	stroke-width: 0;
	color: var(--cdm-cta-accent);
}

/* Doubled up on purpose: Elementor's kit writes `.elementor-kit-N h2`, which
   out-specifies a lone class. The widget's own typography control still wins,
   it matches this specificity and loads later. Same trick as the About,
   Process, Brands and Work headings above. */
.cdm-cta .cdm-cta__heading {
	font-family: var(--cdm-font-display);
	font-size: clamp(38px, 4.2vw, 56px);
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -0.03em;
	color: inherit;
	max-width: 850px;
	margin: 0 auto 28px;
}

.cdm-cta__copy {
	max-width: 850px;
	margin: 0 auto;
}

.cdm-cta__copy p {
	font-family: var(--cdm-font-ui);
	font-size: 18px;
	line-height: 1.8;
	color: var(--cdm-cta-muted);
	margin: 0;
}

.cdm-cta__copy p + p {
	margin-top: 14px;
}

/* --- The form card ---
   The design's panel: warm linen fill, a hairline border and one soft drop
   shadow, left aligned inside a centred section. */

.cdm-cta__card {
	position: relative;
	width: min(var(--cdm-cta-card-width), 100%);
	margin: 40px auto 0;
	padding: 36px;
	text-align: left;
	background: var(--cdm-cta-card);
	border: 1px solid var(--cdm-cta-card-border);
	border-radius: var(--cdm-cta-card-radius);
	box-shadow: 0 16px 55px rgba(31, 25, 21, 0.055);
	/* Keeps the sheen's sweep inside the card's rounded corners. */
	overflow: hidden;
}

/* The light GSAP sweeps across the card as it arrives. Its own element rather
   than a background gradient, so moving it never touches the card's paint.
   Same technique as the portfolio cards (section 17). */
.cdm-cta__sheen {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 55%;
	pointer-events: none;
	opacity: 0;
	transform: translate3d(-120%, 0, 0) skewX(-14deg);
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.5) 50%,
		rgba(255, 255, 255, 0) 100%
	);
}

/* WPForms wraps its own output twice. Both wrappers get flattened so the
   grid below sits on the card's padding and nothing adds a second margin. */
.cdm-cta__form .wpforms-container,
.cdm-cta__form .wpforms-form {
	margin: 0;
	padding: 0;
}

/* --- Field rows ---
   The design puts name and email side by side and the dropdown across the
   full width. Each field carries its own class from the form definition
   (inc/forms.php), so this is a plain two column grid with the full width
   fields spanning it - no Layout field needed. */

.cdm-cta__form .wpforms-field-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.cdm-cta__form .wpforms-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	grid-column: span 2;
}

.cdm-cta__form .cdm-form-field--half {
	grid-column: span 1;
}

.cdm-cta__form .cdm-form-field--full {
	grid-column: span 2;
}

/* --- Labels --- */

.cdm-cta__form .wpforms-field-label {
	display: block;
	font-family: var(--cdm-font-ui);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cdm-cta-label);
	margin: 0;
}

/* The design has no required marker. Keeping one is the right call - a
   required field a visitor cannot see is required is how forms get abandoned
   at the validation message - so it stays, just quiet: the accent colour at
   the label's own size rather than a loud red asterisk.

   Three classes deep because WPForms' base stylesheet writes
   `.wpforms-container .wpforms-required-label { color: red }` and is
   enqueued after main.css, so a two class selector would tie and lose. */
.cdm-cta__form .wpforms-container .wpforms-required-label {
	color: var(--cdm-cta-accent);
	font-weight: 600;
	border: 0;
	text-decoration: none;
}

/* WPForms' own sublabels (the Name field's "First"/"Last", and the like).
   The simple format has none, but a field added in the builder later might. */
.cdm-cta__form .wpforms-field-sublabel {
	font-family: var(--cdm-font-ui);
	font-size: 12px;
	font-weight: 400;
	color: var(--cdm-cta-muted);
	margin: 6px 0 0;
}

.cdm-cta__form .wpforms-field-description {
	font-family: var(--cdm-font-ui);
	font-size: 13px;
	line-height: 1.6;
	color: var(--cdm-cta-muted);
	margin: 0;
}

/* --- Inputs --- */

.cdm-cta__form .wpforms-field input[type="text"],
.cdm-cta__form .wpforms-field input[type="email"],
.cdm-cta__form .wpforms-field input[type="tel"],
.cdm-cta__form .wpforms-field input[type="url"],
.cdm-cta__form .wpforms-field input[type="number"],
.cdm-cta__form .wpforms-field textarea,
.cdm-cta__form .wpforms-field select {
	width: 100%;
	min-height: 55px;
	box-sizing: border-box;
	font-family: var(--cdm-font-ui);
	font-size: 15px;
	line-height: 1.5;
	color: var(--cdm-cta-input);
	background: var(--cdm-cta-field-bg);
	border: 1px solid var(--cdm-cta-field-border);
	border-radius: 8px;
	padding: 13px 16px;
	margin: 0;
	outline-offset: 2px;
	box-shadow: none;
	transition: border-color var(--cdm-transition), box-shadow var(--cdm-transition);
}

.cdm-cta__form .wpforms-field textarea {
	min-height: 130px;
	padding-top: 15px;
}

.cdm-cta__form .wpforms-field ::placeholder {
	color: #9a9087;
	opacity: 1;
}

.cdm-cta__form .wpforms-field input:hover,
.cdm-cta__form .wpforms-field textarea:hover,
.cdm-cta__form .wpforms-field select:hover {
	border-color: #a89a8f;
}

.cdm-cta__form .wpforms-field input:focus,
.cdm-cta__form .wpforms-field textarea:focus,
.cdm-cta__form .wpforms-field select:focus {
	outline: 2px solid var(--cdm-cta-accent);
	border-color: var(--cdm-cta-accent);
}

/* --- The dropdown ---
   The design leaves the select's own arrow in place. A native arrow is
   whatever the visitor's OS draws, though, and next to fields this
   deliberately styled it is the one control that gives the panel away. So
   the arrow comes off and the theme's `chevron-down` goes on instead.

   It is the same path as cdm_svg_icon( 'chevron-down' ) in inc/svg-icons.php,
   inlined as a data URI because a CSS background cannot reach a PHP helper.
   Keep the two in step if that icon is ever redrawn. */

.cdm-cta__form .wpforms-field select {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	padding-right: 46px;
	background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23181714" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9.5 6 5.5 6-5.5"/></svg>');
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 18px 18px;
}

/* Firefox keeps the placeholder option grey only while it is selected. */
.cdm-cta__form .wpforms-field select:invalid,
.cdm-cta__form .wpforms-field select option[value=""] {
	color: #9a9087;
}

.cdm-cta__form .wpforms-field select option {
	color: var(--cdm-cta-input);
}

/* --- Validation ---
   WPForms' base stylesheet already colours these; this only matches them to
   the rest of the card's type. */

.cdm-cta__form .wpforms-error-container,
.cdm-cta__form label.wpforms-error,
.cdm-cta__form .wpforms-field-container label.wpforms-error {
	font-family: var(--cdm-font-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	padding: 0;
	margin: 0;
}

.cdm-cta__form .wpforms-confirmation-container,
.cdm-cta__form .wpforms-confirmation-container-full {
	font-family: var(--cdm-font-ui);
	font-size: 16px;
	line-height: 1.7;
	color: var(--cdm-cta-text);
	background: var(--cdm-cta-field-bg);
	border: 1px solid var(--cdm-cta-card-border);
	border-radius: 10px;
	padding: 20px 22px;
	margin: 0;
}

.cdm-cta__form .wpforms-confirmation-container p:last-child,
.cdm-cta__form .wpforms-confirmation-container-full p:last-child {
	margin-bottom: 0;
}

/* --- Submit button ---
   The design's pill: full width, black, uppercase, with the label and the
   arrow pushed apart. */

.cdm-cta__form .wpforms-submit-container {
	padding: 0;
	margin-top: 4px;
}

.cdm-cta__form button.wpforms-submit,
.cdm-cta__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	width: 100%;
	min-height: 60px;
	box-sizing: border-box;
	font-family: var(--cdm-font-ui);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--cdm-cta-button-text);
	background: var(--cdm-cta-button);
	border: 1px solid var(--cdm-cta-button);
	border-radius: var(--cdm-radius-pill);
	padding: 16px 30px;
	cursor: pointer;
	transition: background-color var(--cdm-transition), color var(--cdm-transition);
}

.cdm-cta__form button.wpforms-submit:hover,
.cdm-cta__form button.wpforms-submit:focus-visible,
.cdm-cta__button:hover,
.cdm-cta__button:focus-visible {
	color: var(--cdm-cta-button);
	background: transparent;
}

.cdm-cta__form button.wpforms-submit:focus-visible,
.cdm-cta__button:focus-visible {
	outline: 2px solid var(--cdm-cta-accent);
	outline-offset: 3px;
}

.cdm-cta__form button.wpforms-submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* The arrow spliced into WPForms' button markup (inc/forms.php), and the one
   on the fallback link. It leans out on hover the way the design's "↗"
   wants to - a small nudge, not a flourish. */
.cdm-cta__submit-label-end {
	display: inline-flex;
	align-items: center;
}

.cdm-cta__submit-arrow {
	flex: 0 0 auto;
	transition: transform var(--cdm-transition);
}

.cdm-cta__form button.wpforms-submit:hover .cdm-cta__submit-arrow,
.cdm-cta__form button.wpforms-submit:focus-visible .cdm-cta__submit-arrow,
.cdm-cta__button:hover .cdm-cta__submit-arrow,
.cdm-cta__button:focus-visible .cdm-cta__submit-arrow {
	transform: translate3d(3px, -3px, 0);
}

/* WPForms' AJAX spinner. It sits inline after the button by default, which
   would push the pill off centre, so it is pinned instead. */
.cdm-cta__form .wpforms-submit-spinner {
	position: absolute;
	right: 24px;
	top: 50%;
	margin: -13px 0 0;
	filter: invert(1);
}

/* --- The line under the button --- */

/* Laid out as text rather than as a flex row on purpose. A centred flex row
   gives the text child the whole remaining width, so the moment the line
   wraps - which it does on a phone - the lock is left stranded against the
   left edge with the text centred away from it. Inline, the icon stays part
   of the first line and the whole thing centres as one block. */
.cdm-cta__note {
	font-family: var(--cdm-font-ui);
	font-size: 12px;
	line-height: 1.6;
	color: var(--cdm-cta-muted);
	text-align: center;
	margin: 14px 0 0;
}

.cdm-cta__note-glyph {
	display: inline-block;
	vertical-align: -2px;
	margin-right: 6px;
}

/* --- Fallback button ---
   Only on screen when WPForms is inactive or the form has been deleted. It
   is a lone button, not a form, so it does not take the card's full width. */

.cdm-cta__fallback {
	margin: 36px 0 0;
}

.cdm-cta__fallback .cdm-cta__button {
	display: inline-flex;
	width: auto;
	min-height: 0;
	gap: 14px;
	padding: 16px 34px;
}

/* --- GSAP guard ---
   Only hide things while the browser has JS and the script has yet to run.
   .is-revealed is added the moment cta.js takes over - including when it
   bails out because GSAP never loaded or motion is reduced. */

html.cdm-js .cdm-cta--animate:not(.is-revealed) [data-cdm-anim] {
	opacity: 0;
}

/* Backstop for cta.js itself failing to load, which .is-revealed cannot
   cover. The failsafe timer in wp_head sets .cdm-hero-ready unconditionally
   after 2.5s, so the section can never be stranded invisible. Both classes
   are on the selector to match the guard's specificity - the guard's :not()
   adds a class of its own - so this wins by coming later. Harmless in the
   normal case: by then GSAP owns these as inline styles, which beat both. */
html.cdm-js.cdm-hero-ready .cdm-cta--animate [data-cdm-anim] {
	opacity: 1;
}

/* --- Responsive --- */

@media (max-width: 1000px) {
	.cdm-cta .cdm-cta__heading {
		font-size: 42px;
	}
}

@media (max-width: 650px) {
	.cdm-cta .cdm-cta__heading {
		font-size: 34px;
		margin-bottom: 22px;
	}

	.cdm-cta__copy p {
		font-size: 17px;
	}

	.cdm-cta__card {
		margin-top: 30px;
		padding: 22px 18px;
	}

	/* One column: the design collapses the name/email row on a phone. */
	.cdm-cta__form .wpforms-field-container {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.cdm-cta__form .wpforms-field,
	.cdm-cta__form .cdm-form-field--half,
	.cdm-cta__form .cdm-form-field--full {
		grid-column: span 1;
	}

	.cdm-cta__form button.wpforms-submit,
	.cdm-cta__button {
		gap: 12px;
		padding: 16px 22px;
		letter-spacing: 0.06em;
	}
}

@media (prefers-reduced-motion: reduce) {

	html.cdm-js .cdm-cta--animate [data-cdm-anim] {
		opacity: 1;
	}

	.cdm-cta__sheen {
		display: none;
	}

	.cdm-cta__submit-arrow,
	.cdm-cta__form button.wpforms-submit:hover .cdm-cta__submit-arrow,
	.cdm-cta__button:hover .cdm-cta__submit-arrow {
		transition: none;
		transform: none;
	}
}
