/* ==========================================================================
   Cowburn Corporate 3.0 — premium corporate design
   Identity: Cowburn blue (from the logo) + white, deep navy for authority, ice/mist neutrals.
   Type: Manrope throughout (bundled). Restrained motion. The logo file is never recoloured.
   ========================================================================== */

@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-latin.woff") format("woff");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy: #0a2236;
	--navy-2: #103250;
	--navy-3: #18466b;
	--blue: #046084;       /* logo blue */
	--blue-2: #0b74a0;
	--sky: #4aa8d8;        /* small accents only */
	--ice: #eaf3f8;
	--mist: #f4f7f9;
	--line: #dde5eb;
	--line-dark: rgba(255, 255, 255, .14);
	--text: #182733;
	--muted: #52616d;
	--border: #8794a0;     /* form borders, 3:1 on white */
	--white: #fff;
	--error: #b3261e;
	--success: #146c43;

	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--max: 1240px;
	--content: 760px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 128px);
	--radius: 6px;
	--radius-lg: 10px;
	--shadow-sm: 0 2px 6px rgba(10, 34, 54, .06);
	--shadow: 0 24px 48px -28px rgba(10, 34, 54, .45);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.7;
	font-feature-settings: "ss01", "cv05";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.022em;
	color: var(--navy);
	margin: 0 0 .55em;
	text-wrap: balance;
	overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.65rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.012em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.utility-bar :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.has-charcoal-background-color :focus-visible, .has-graphite-background-color :focus-visible { outline-color: var(--sky); }
main:focus { outline: none; }
::selection { background: var(--ice); color: var(--navy); }

.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;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: var(--white); color: var(--navy); padding: 12px 18px; font-weight: 700;
	border: 2px solid var(--blue); border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }

/* Eyebrow label */
.eyebrow {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 1.1rem; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--blue);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: none; }
.eyebrow--light, .has-charcoal-background-color .eyebrow, .has-graphite-background-color .eyebrow { color: #9fd0ea; }

/* ---------- Buttons ---------- */
.button, .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 48px; padding: .85em 1.5em;
	font-family: var(--font); font-size: .975rem; font-weight: 700; line-height: 1.2; letter-spacing: .005em;
	text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius);
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.button--lg { min-height: 54px; padding: 1em 1.75em; font-size: 1rem; }
.button .icon, .wp-block-button__link .icon { transition: transform .25s var(--ease); }
.button:hover .icon { transform: translateX(4px); }
.button--primary, .button--dark, .wp-block-button__link { background: var(--blue); color: var(--white); }
.button--primary:hover, .button--dark:hover, .wp-block-button__link:hover { background: var(--navy); color: var(--white); }
.button--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.button--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.button--light, .button--gold, .is-style-gold .wp-block-button__link { background: var(--white); color: var(--navy); border-color: var(--white); }
.button--light:hover, .button--gold:hover, .is-style-gold .wp-block-button__link:hover { background: var(--ice); color: var(--navy); }
.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--blue); color: var(--blue); }
.is-style-outline .wp-block-button__link:hover { background: var(--blue); color: var(--white); }
.has-charcoal-background-color .is-style-outline .wp-block-button__link { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.has-charcoal-background-color .is-style-outline .wp-block-button__link:hover { background: var(--white); color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--blue); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .25s var(--ease); }

/* ---------- Utility bar + header ---------- */
.utility-bar { background: var(--navy); color: #c4d3de; font-size: .8125rem; }
.utility-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 6px 24px; flex-wrap: wrap; min-height: 38px; }
.utility-bar p { margin: 0; letter-spacing: .02em; }
.utility-bar__contact { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.utility-bar a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.utility-bar a:hover { color: #fff; text-decoration: underline; }
.utility-bar .icon { width: 15px; height: 15px; color: var(--sky); }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(10, 34, 54, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: var(--header-h); transition: min-height .25s; }
.is-scrolled .masthead { min-height: 70px; }
.brand { flex: none; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { display: block; height: 54px; width: auto; max-width: 100%; transition: height .25s; }
.is-scrolled .custom-logo { height: 46px; }
.site-title { font-size: 1.35rem; font-weight: 800; color: var(--blue); text-decoration: none; letter-spacing: -.02em; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav a { color: var(--text); text-decoration: none; }
.primary-nav .menu > li > a {
	position: relative; display: block; padding: 28px 12px; font-size: .95rem; font-weight: 600; letter-spacing: -.005em;
	transition: color .2s, padding .25s;
}
.is-scrolled .primary-nav .menu > li > a { padding-block: 21px; }
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--blue);
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav .menu > li > a:hover, .primary-nav .menu > li.submenu-open > a { color: var(--blue); }
.primary-nav .menu > li > a:hover::after, .primary-nav .menu > li.submenu-open > a::after,
.primary-nav .menu > .current-menu-item > a::after, .primary-nav .menu > .current-menu-ancestor > a::after,
.primary-nav .menu > .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a { color: var(--blue); }

.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 40px; margin-left: -10px; padding: 0;
	background: none; border: 0; color: var(--muted); cursor: pointer;
}
.submenu-toggle svg { transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.primary-nav .sub-menu {
	position: absolute; top: 100%; left: -12px; z-index: 60;
	min-width: 300px; margin: 0; padding: 10px; list-style: none;
	background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--blue);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.primary-nav .sub-menu a {
	display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: var(--radius);
	font-size: .95rem; font-weight: 600; line-height: 1.35;
}
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--mist); color: var(--blue); }
.menu-icon { display: inline-flex; color: var(--blue); padding-top: 1px; }
.menu-icon .icon { width: 20px; height: 20px; }
.menu-text { display: flex; flex-direction: column; gap: 2px; }
.menu-desc { font-size: .82rem; font-weight: 500; color: var(--muted); line-height: 1.4; }
/* Services: two-column mega panel */
.primary-nav .has-mega > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 2px 8px; min-width: 620px; padding: 14px; left: 50%; transform: translate(-50%, 8px); }
@media (min-width: 1100px) {
	.primary-nav .menu > li:hover > .sub-menu,
	.primary-nav .menu > li:focus-within > .sub-menu,
	.primary-nav .menu > li.submenu-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .menu > li.has-mega:hover > .sub-menu,
	.primary-nav .menu > li.has-mega:focus-within > .sub-menu,
	.primary-nav .menu > li.has-mega.submenu-open > .sub-menu { transform: translate(-50%, 0); }
	.js .primary-nav .menu > li:focus-within:not(.submenu-open):not(:hover) > .sub-menu { opacity: 0; visibility: hidden; }
}
.nav-cta { white-space: nowrap; }

.menu-toggle {
	display: none; align-items: center; gap: 10px;
	min-height: 46px; padding: 8px 16px; background: var(--white); color: var(--navy);
	border: 1px solid var(--line); border-radius: var(--radius); font: 700 .95rem var(--font); cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 20px; height: 13px; }
.menu-toggle__icon::before, .menu-toggle__icon::after, .menu-toggle__icon span {
	content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s;
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon span { top: 5.5px; }
.menu-toggle__icon::after { top: 11px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1099px) {
	:root { --header-h: 72px; }
	.custom-logo, .is-scrolled .custom-logo { height: 44px; }
	.is-scrolled .masthead { min-height: var(--header-h); }
	.js .menu-toggle { display: inline-flex; }
	.primary-nav { flex-direction: column; align-items: stretch; gap: 18px; }
	.js .primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain;
		padding: 8px var(--gutter) 28px; background: var(--white);
		border-top: 1px solid var(--line); box-shadow: var(--shadow);
	}
	.js .primary-nav.is-open { display: flex; }
	.masthead { flex-wrap: wrap; }
	html:not(.js) .primary-nav { width: 100%; padding-bottom: 16px; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a, .is-scrolled .primary-nav .menu > li > a { flex: 1; padding: 15px 2px; font-size: 1.05rem; }
	.primary-nav .menu > li > a::after { display: none; }
	.submenu-toggle { width: 48px; height: 48px; margin: 0; border-left: 1px solid var(--line); }
	.primary-nav .sub-menu, .primary-nav .has-mega > .sub-menu {
		position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px; display: block;
		border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; border-radius: 0;
	}
	.js .primary-nav .sub-menu { display: none; }
	.js .primary-nav li.submenu-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding: 10px 8px; }
	.menu-desc { display: none; }
	.nav-cta { align-self: flex-start; }
}

/* ---------- Homepage hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: clamp(600px, 88vh, 860px);
	background: var(--navy); color: var(--white);
}
.hero__media, .page-hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::before, .page-hero--image::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(8, 25, 40, .9) 0%, rgba(8, 25, 40, .68) 42%, rgba(8, 25, 40, .2) 78%, rgba(8, 25, 40, .1) 100%),
		linear-gradient(0deg, rgba(8, 25, 40, .75) 0%, rgba(8, 25, 40, 0) 38%);
}
.hero__inner { position: relative; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__content { max-width: 760px; }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.5rem); font-weight: 750; line-height: 1.04; letter-spacing: -.035em; color: var(--white); margin-bottom: .45em; }
.hero__lead { max-width: 60ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.65; color: #d7e3ec; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero__highlights { position: relative; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 25, 40, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.highlights li { display: flex; flex-direction: column; gap: 4px; padding: 24px 28px 26px; border-left: 1px solid rgba(255, 255, 255, .14); }
.highlights li:first-child { border-left: 0; padding-left: 0; }
.highlights strong { font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: -.005em; }
.highlights span { font-size: .9rem; color: #c4d3de; line-height: 1.5; }
@media (max-width: 860px) {
	.highlights { grid-template-columns: 1fr; }
	.highlights li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0; }
	.highlights li:first-child { border-top: 0; }
}

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); }
.page-hero--image { min-height: clamp(360px, 44vw, 540px); display: flex; align-items: flex-end; }
.page-hero--plain { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.page-hero--plain::after { /* faint concentric arcs echoing the logo mark */
	content: ""; position: absolute; z-index: -1; right: -180px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%);
	border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 58px, rgba(255, 255, 255, .05) 59px 60px);
}
.page-hero .contours { display: none; }
.page-hero__inner { position: relative; padding-block: clamp(52px, 7vw, 96px) clamp(44px, 6vw, 80px); }
.page-hero__title { color: var(--white); max-width: 20ch; margin-bottom: .35em; }
.page-hero__intro { max-width: 62ch; margin: 0; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: #d7e3ec; }

.breadcrumbs { margin-bottom: 22px; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { color: #b9cad7; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: rgba(255, 255, 255, .45); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Project facts bar */
.facts-bar { background: var(--mist); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; }
.facts > div { padding: 22px 24px 22px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; color: var(--navy); }

/* ---------- Content (block editor output) ---------- */
.entry-content { padding-block: var(--section); }
.entry-content--home { padding-top: 0; }
.entry-content > * { max-width: var(--content); margin-left: auto; margin-right: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.entry-content > .alignwide { max-width: var(--max); }
.entry-content > .alignfull { max-width: none; padding-inline: 0; box-sizing: border-box; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content > .alignfull:last-child { margin-bottom: calc(-1 * var(--section)); }
.entry-content > .alignfull:first-child { margin-top: calc(-1 * var(--section)); }
.entry-content--home > .alignfull:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li { margin-bottom: .4em; }
.entry-content figure { margin-block: 2rem; }
.entry-content figcaption, .wp-element-caption { font-size: .875rem; color: var(--muted); margin-top: .7em; }
.entry-content .alignfull.is-layout-constrained { padding-inline: var(--gutter); }
.is-layout-constrained > .alignwide { max-width: var(--max); }

/* Section bands ("stone" = mist, "charcoal" = navy) */
.cb-section { padding-block: var(--section) !important; margin-block: 0 !important; }
.entry-content > .cb-section { margin-bottom: 0; }
.entry-content > .cb-section + :not(.cb-section) { margin-top: var(--section); }
.has-stone-background-color { background-color: var(--mist); }
.has-charcoal-background-color, .has-graphite-background-color { background-color: var(--navy); color: #d7e3ec; }
.has-charcoal-background-color :where(h1, h2, h3, h4), .has-graphite-background-color :where(h1, h2, h3, h4) { color: var(--white); }
.has-charcoal-background-color a:not(.wp-block-button__link), .has-graphite-background-color a:not(.wp-block-button__link) { color: #9fd0ea; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.cb-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px) !important; }
.cb-head > * { margin: 0 !important; }
.cb-head h2 { margin: 0 !important; }
@media (max-width: 860px) { .cb-head { grid-template-columns: 1fr; } }

.cb-lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.6; color: var(--navy); font-weight: 500; letter-spacing: -.008em; }
.has-charcoal-background-color .cb-lead { color: #eef5fa; }
.cb-statement { font-size: clamp(1.45rem, 2.6vw, 2.15rem); line-height: 1.35; font-weight: 600; letter-spacing: -.02em; color: var(--navy); }
.cb-muted { color: var(--muted); }
.cb-measure { max-width: 62ch; }

/* Checklist (List block style "Checklist") */
ul:is(.cb-checklist, .is-style-checklist) { list-style: none; padding-left: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--line); }
ul:is(.cb-checklist, .is-style-checklist) > li {
	position: relative; margin: 0; padding: 16px 8px 16px 44px; border-bottom: 1px solid var(--line);
}
ul:is(.cb-checklist, .is-style-checklist) > li::before {
	content: ""; position: absolute; left: 4px; top: 19px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23046084' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
ul:is(.cb-checklist, .is-style-checklist) strong { display: block; font-weight: 700; color: var(--navy); margin-bottom: .1em; }
.cb-checklist--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: 40px; border-top: 0 !important; }
.cb-checklist--cols > li:nth-child(-n+2) { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .cb-checklist--cols > li:nth-child(2) { border-top: 0; } }
.has-stone-background-color ul:is(.cb-checklist, .is-style-checklist) > li::before { background-color: var(--white); }

/* Feature grid: blocks with an icon class, e.g. group className "cb-feature cb-ico cb-ico--layers" */
.cb-features { gap: 0 !important; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cb-feature { margin: 0 !important; padding: 32px 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background-color .25s; }
.cb-feature:hover { background: var(--mist); }
.cb-feature h3 { font-size: 1.15rem; margin: 0 0 .5em; }
.cb-feature p { margin: 0; color: var(--muted); font-size: .975rem; }
.cb-ico::before {
	content: ""; display: block; width: 44px; height: 44px; margin-bottom: 22px; border-radius: var(--radius);
	background: var(--ice); box-shadow: inset 0 0 0 1px rgba(4, 96, 132, .12);
	-webkit-mask: none; mask: none;
	background-image: none;
	position: relative;
}
.cb-ico { position: relative; }
.cb-ico::after {
	content: ""; position: absolute; width: 24px; height: 24px; background: var(--blue);
	-webkit-mask: var(--cb-ico) center / contain no-repeat; mask: var(--cb-ico) center / contain no-repeat;
	top: calc(32px + 10px); left: calc(30px + 10px);
}
.has-stone-background-color .cb-feature { background: var(--white); }

/* Lifecycle steps (a genuine sequence) */
.cb-steps { counter-reset: step; gap: 0 !important; }
.cb-step { position: relative; margin: 0 !important; padding: 28px 24px 8px 0; counter-increment: step; }
.cb-step::before {
	content: counter(step, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%;
	background: var(--white); border: 1.5px solid var(--blue); color: var(--blue); font-weight: 800; font-size: .9rem; position: relative; z-index: 1;
}
.cb-step::after { content: ""; position: absolute; top: 49px; left: 44px; right: 0; height: 1.5px; background: linear-gradient(90deg, var(--blue), var(--line)); }
.cb-step:last-child::after { display: none; }
.cb-step h3 { font-size: 1.1rem; margin: 0 0 .4em; }
.cb-step p { margin: 0; color: var(--muted); font-size: .95rem; }
.has-charcoal-background-color .cb-step::before { background: var(--navy); border-color: var(--sky); color: #9fd0ea; }
.has-charcoal-background-color .cb-step::after { background: linear-gradient(90deg, var(--sky), rgba(255, 255, 255, .12)); }
.has-charcoal-background-color .cb-step p { color: #b9cad7; }
@media (max-width: 860px) { .cb-step::after { display: none; } .cb-step { padding-right: 0; } }

/* Values row */
.cb-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 !important; border-top: 1px solid var(--line); }
.cb-values > * { padding: 26px 24px 6px 0; margin: 0 !important; }
.cb-values h3 { margin: 0 0 .35em; font-size: 1.3rem; }
.cb-values h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--blue); margin-bottom: 18px; }
.has-charcoal-background-color .cb-values { border-color: var(--line-dark); }
.has-charcoal-background-color .cb-values h3::before { background: var(--sky); }

/* Images */
.entry-content .wp-block-image img { display: block; }
.cb-photo img { border-radius: var(--radius); }
.cb-frame { position: relative; }
.cb-frame img { position: relative; z-index: 1; border-radius: var(--radius); }
.cb-frame::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1.5px solid var(--blue); border-radius: var(--radius); z-index: 0; }
@media (max-width: 760px) { .cb-frame::before { inset: 14px -10px -14px 10px; } }
.cb-portrait img { max-height: 620px; width: auto; margin-inline: auto; }
.cb-cover-band { min-height: clamp(280px, 38vw, 480px); }
.cb-cover-band img { width: 100%; height: clamp(280px, 38vw, 480px); object-fit: cover; }

.cb-spaced { margin-top: clamp(48px, 6vw, 80px) !important; }

/* Media + text built from columns */
.cb-split { gap: clamp(32px, 6vw, 88px) !important; align-items: center !important; }

/* Pillars: three photo cards */
.cb-pillars { gap: clamp(18px, 2.4vw, 30px) !important; }
.cb-pillar { margin: 0 !important; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.cb-pillar:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.cb-pillar .wp-block-image { margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; }
.cb-pillar .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cb-pillar:hover .wp-block-image img { transform: scale(1.04); }
.cb-pillar > :not(.wp-block-image) { padding-inline: 28px; }
.cb-pillar h3 { margin: 26px 0 .4em; font-size: 1.3rem; }
.cb-pillar p { color: var(--muted); font-size: .975rem; }
.cb-pillar ul { list-style: none; padding: 0 28px 24px !important; margin: auto 0 0; border-top: 1px solid var(--line); }
.cb-pillar li { margin: 0; border-bottom: 1px solid var(--line); }
.cb-pillar li:last-child { border-bottom: 0; }
.cb-pillar li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-weight: 600; color: var(--navy); text-decoration: none; }
.cb-pillar li a::after { content: "→"; color: var(--blue); transition: transform .25s var(--ease); }
.cb-pillar li a:hover { color: var(--blue); }
.cb-pillar li a:hover::after { transform: translateX(4px); }

/* Leadership portraits */
.cb-team { gap: clamp(18px, 2.4vw, 28px) !important; margin-top: clamp(32px, 4vw, 48px) !important; }
.cb-person { margin: 0 !important; text-align: left; }
.cb-person .wp-block-image { margin: 0 0 16px !important; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--mist); }
.cb-person .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.92); transition: transform .6s var(--ease), filter .3s var(--ease); }
.cb-person:hover .wp-block-image img { transform: scale(1.03); filter: none; }
.cb-person h3 { margin: 0 0 .2em; font-size: 1.12rem; }
.cb-person p { margin: 0; color: var(--blue); font-size: .9rem; font-weight: 600; }

/* Contact page */
.cb-contact { gap: clamp(32px, 5vw, 72px) !important; }
.cb-contact .cowburn-form { box-shadow: var(--shadow); }

/* Client logos — full colour, separated by hairlines */
.cb-logos { gap: 0 !important; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cb-logos .wp-block-image {
	margin: 0 !important; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
	display: flex !important; align-items: center; justify-content: center; min-height: 128px; padding: 28px;
}
.cb-logos .wp-block-image img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }

/* Gallery */
.wp-block-gallery.has-nested-images { gap: 10px; }
.wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: var(--radius); overflow: hidden; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }

/* Quote */
.wp-block-quote, .wp-block-pullquote {
	position: relative; margin-block: 2rem; padding: 4px 0 4px 32px; border-left: 3px solid var(--blue);
	font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.45; letter-spacing: -.012em; color: var(--navy);
}
.wp-block-quote p { margin-bottom: .4em; }
.wp-block-quote p:last-child { margin-bottom: 0; }
.wp-block-quote cite { display: block; margin-top: 1em; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-style: normal; }
.has-charcoal-background-color .wp-block-quote { border-color: var(--sky); color: var(--white); }

.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.wp-block-separator.is-style-short { width: 48px; border-top: 2px solid var(--blue); margin-left: 0; }

/* Key facts / at-a-glance box */
.cb-glance { margin: 0 !important; padding: 28px 30px; background: var(--mist); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.cb-glance h3 { font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 1em; }
.cb-glance p { margin: 0 0 .9em; font-size: .975rem; }
.cb-glance p:last-child { margin-bottom: 0; }
.cb-glance strong { display: block; color: var(--navy); }

/* CTA band */
.cb-cta { position: relative; overflow: hidden; isolation: isolate; }
.cb-cta::after {
	content: ""; position: absolute; z-index: -1; right: -200px; top: 50%; width: 640px; height: 640px; transform: translateY(-50%);
	border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 58px, rgba(255, 255, 255, .055) 59px 60px);
}
.cb-cta h2 { margin-bottom: .3em; }
.cb-cta .wp-block-buttons { gap: 12px; }

/* ---------- Page cards ---------- */
.page-cards { display: grid; gap: clamp(16px, 2vw, 24px); list-style: none; margin: 0; padding: 0 !important; }
.page-cards--cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.page-cards--cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.page-cards--cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1000px) {
	.page-cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.page-cards--cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.page-card {
	position: relative; display: flex; flex-direction: column; margin: 0 !important; overflow: hidden;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.page-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.page-card:focus-within { box-shadow: var(--shadow); }
.page-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.page-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.page-card:hover .page-card__media img { transform: scale(1.04); }
.page-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9fd0ea; background: linear-gradient(120deg, var(--navy), var(--navy-2)); }
.page-card__placeholder .icon { width: 48px; height: 48px; }
.page-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: var(--radius); background: var(--ice); color: var(--blue); }
.page-card__icon .icon { width: 24px; height: 24px; }
.page-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 24px; }
.page-card__title { margin: 0 0 .5em; font-size: 1.2rem; }
.page-card__title a { color: var(--navy); text-decoration: none; }
.page-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.page-card__title a:focus-visible { outline: none; }
.page-card:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.page-card__body p { font-size: .975rem; color: var(--muted); margin-bottom: 1.3em; }
.page-card__more { display: inline-flex; align-items: center; gap: .45em; margin-top: auto; font-weight: 700; font-size: .95rem; color: var(--blue); }
.page-card__more .icon { transition: transform .25s var(--ease); }
.page-card:hover .page-card__more .icon { transform: translateX(4px); }
.has-stone-background-color .page-card { border-color: transparent; box-shadow: var(--shadow-sm); }

/* ---------- Project cards ---------- */
.project-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); list-style: none; margin: 0; padding: 0 !important; }
.project-grid--cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.project-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.project-grid--cols-1 { grid-template-columns: 1fr; }
.project-card { position: relative; display: flex; flex-direction: column; margin: 0 !important; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.project-card:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.project-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 26px; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 .7em; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.project-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-card__meta .icon { width: 15px; height: 15px; }
.project-card__title { font-size: 1.4rem; margin: 0 0 .5em; }
.project-card__title a { color: var(--navy); text-decoration: none; }
.project-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-card__title a:focus-visible { outline: none; }
.project-card__excerpt { color: var(--muted); font-size: .975rem; }
.project-card__more { display: inline-flex; align-items: center; gap: .45em; margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0 !important; }
.tag-list li { margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--navy-3); font-size: .8rem; font-weight: 600; }
.more-projects { background: var(--mist); }

/* ---------- Contact ---------- */
.cowburn-form-wrap { max-width: 760px; }
.cowburn-form { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.req { color: var(--error); }
.cowburn-form input[type="text"], .cowburn-form input[type="email"], .cowburn-form input[type="tel"], .cowburn-form select, .cowburn-form textarea,
.search-field, .wpforms-container input[type="text"], .wpforms-container input[type="email"], .wpforms-container input[type="tel"], .wpforms-container textarea {
	width: 100%; min-height: 50px; padding: 11px 14px;
	font: inherit; font-size: 1rem; color: var(--text);
	background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
	transition: border-color .2s, box-shadow .2s;
}
.cowburn-form textarea { min-height: 170px; resize: vertical; }
.cowburn-form :is(input, select, textarea):focus-visible, .search-field:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(4, 96, 132, .2); }
.has-error :is(input, select, textarea) { border: 2px solid var(--error); }
.field-error { color: var(--error); font-size: .92rem; font-weight: 700; }
.field-error::before { content: "⚠ "; }
.form-required-note, .form-privacy { font-size: .92rem; color: var(--muted); }
.form-privacy { margin: 18px 0; }
.cowburn-form button[type="submit"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.cowburn-form button[type="submit"]:hover { background: var(--navy); border-color: var(--navy); }
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 18px 22px; margin-bottom: 24px; border-radius: var(--radius); border: 1px solid; border-left-width: 4px; background: var(--white); }
.form-status h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.form-status ul { margin: 0; padding-left: 1.2em; }
.form-status p { margin: 0; }
.form-status--success { border-color: var(--success); background: #eef8f2; }
.form-status--success h3 { color: var(--success); }
.form-status--error { border-color: var(--error); background: #fdf1f0; }
.form-status--error h3 { color: var(--error); }
.form-status:focus { outline: 3px solid var(--blue); outline-offset: 2px; }

.contact-details { display: grid; gap: 0; }
.contact-details__item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-details__item:first-child { padding-top: 0; }
.site-footer .contact-details__item { padding: 0 0 12px; border: 0; }
.contact-details address { font-style: normal; }
.contact-details p { margin: 0; }
.contact-details h3 { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 .5em; }
.contact-label { display: inline-block; min-width: 3.4em; color: var(--muted); font-weight: 700; font-size: .9rem; }
.contact-details__postal { margin-top: .4em !important; color: var(--muted); font-size: .95rem; }

.cb-map { position: relative; overflow: hidden; min-height: 340px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--ice), var(--mist)); border: 1px solid var(--line); }
.cb-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(4, 96, 132, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(4, 96, 132, .07) 1px, transparent 1px); background-size: 40px 40px; }
.cb-map__inner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 340px; padding: 28px; text-align: center; }
.cb-map__pin { width: 40px; height: 40px; color: var(--blue); }
.cb-map__address { font-weight: 700; color: var(--navy); max-width: 40ch; margin: 6px 0 10px; }
.cb-map__actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; margin: 0; }
.cb-map__load { border-color: var(--line) !important; }
.cb-map__note { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }
.cb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cb-map.is-loaded .cb-map__inner { visibility: hidden; }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form .search-field { flex: 1; }

/* Editor-only placeholders */
.cb-placeholder { margin: 2rem auto; padding: 18px 22px; border: 2px dashed #c58b00; border-radius: var(--radius); background: #fff9e8; color: #4d3b00; }
.cb-placeholder__label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .3em; color: #8a6200; }
.cb-placeholder__title { font-weight: 800; margin: 0 0 .4em; }
.cb-placeholder p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cad7; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr; gap: clamp(32px, 4vw, 56px); padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.logo-plate { display: inline-block; background: var(--white); padding: 16px 22px; border-radius: var(--radius); margin-bottom: 24px; }
.logo-plate .custom-logo { height: 46px; }
.footer-brand p { max-width: 44ch; }
.footer-values { color: #9fd0ea !important; font-weight: 700; letter-spacing: .02em; }
.footer-heading { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin: 0 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: #dfe9f0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .contact-label { color: #8fa6b6; }
.site-footer .contact-details__postal { color: #8fa6b6; }
.site-footer .button--light { color: var(--navy); margin-top: 8px; }
.site-footer .button--light:hover { text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: #8fa6b6; }
.footer-bottom p { margin: 0; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* Grid groups: WordPress 6.8 builds grid columns with a fixed minimum width that can exceed a phone screen; let them shrink. */
@media (max-width: 600px) {
	.entry-content .is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)) !important; }
	.entry-content .cb-team.is-layout-grid, .entry-content .cb-logos.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- Posts / listing ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.post-card__body { padding: 24px; }
.post-card__title { font-size: 1.2rem; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { color: var(--blue); text-decoration: underline; }
.post-meta { font-size: .85rem; color: var(--muted); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.post-nav { padding-bottom: var(--section); }
.post-nav .nav-links { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.post-nav__label { display: block; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); }

.not-found { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .not-found { grid-template-columns: 1fr; } }
.not-found h2 { font-size: 1.35rem; }
.search-again { margin-bottom: 32px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

.cowburn-notice { padding: 12px 16px; background: var(--ice); border-left: 4px solid var(--blue); border-radius: var(--radius); font-size: .95rem; }
.wpforms-container .wpforms-field-label { font-weight: 700; color: var(--navy); }
.wpforms-container button[type="submit"] { background: var(--blue) !important; color: #fff !important; border: 0 !important; border-radius: var(--radius) !important; min-height: 48px; padding: .85em 1.5em !important; font-weight: 700 !important; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-revealed { opacity: 1; transform: none; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* ---------- Small screens (down to 320px) ---------- */
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.utility-bar__tagline { display: none; }
	.utility-bar__inner { justify-content: center; }
	.custom-logo, .is-scrolled .custom-logo { height: 38px; }
	.hero { min-height: 0; }
	.hero__actions .button { flex: 1 1 100%; }
	.page-hero--image { min-height: 300px; }
	.cb-logos .wp-block-image { min-height: 100px; padding: 18px; }
	.cb-feature { padding: 26px 22px 22px; }
	.cb-ico::after { left: calc(22px + 10px); top: calc(26px + 10px); }
	.cb-pillar > :not(.wp-block-image) { padding-inline: 22px; }
	.cb-pillar ul { padding-inline: 22px !important; }
	.search-form { flex-direction: column; }
	.facts > div { border-right: 0; margin-right: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 360px) {
	.menu-toggle__label { display: none; }
	.custom-logo, .is-scrolled .custom-logo { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; }
}
@media print {
	.site-header { position: static; }
	.utility-bar, .primary-nav, .menu-toggle, .site-footer nav, .hero__actions, .cowburn-form-wrap, .cb-map { display: none !important; }
	.hero, .page-hero, .site-footer, .has-charcoal-background-color { color: #000; background: none !important; min-height: 0; }
	.hero__media, .page-hero__media, .hero::before, .page-hero--image::before { display: none; }
	.hero__title, .page-hero__title, .hero__lead, .page-hero__intro, .highlights strong, .highlights span { color: #000; }
	.reveal { opacity: 1 !important; transform: none !important; }
	a { color: #000; }
}

/* ==========================================================================
   v3.1 — cinematic homepage, service pages, photo gallery
   ========================================================================== */

/* ---------- Cinematic hero ---------- */
.cine-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column;
	min-height: clamp(640px, calc(100svh - 112px), 980px);
	background: #06121d; color: var(--white);
}
.cine-hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.cine-hero__media img, .cine-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cine-hero__still { transform-origin: 60% 50%; animation: cbKenBurns 28s ease-in-out infinite alternate; }
.cine-hero__media video { opacity: 0; transition: opacity 1.6s ease; }
.cine-hero__media video.is-active { opacity: 1; }
.cine-hero.has-video .cine-hero__still { animation: none; }
.cine-hero__shade {
	position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(6, 18, 29, .88) 0%, rgba(6, 18, 29, .62) 38%, rgba(6, 18, 29, .18) 72%, rgba(6, 18, 29, .1) 100%),
		linear-gradient(0deg, rgba(6, 18, 29, .95) 0%, rgba(6, 18, 29, 0) 42%),
		radial-gradient(ellipse at 80% 20%, rgba(74, 168, 216, .18), transparent 55%);
}
.cine-hero__grain { /* slow sweep of light across the scene */
	position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
	background: linear-gradient(110deg, transparent 35%, rgba(150, 210, 245, .10) 48%, transparent 60%);
	background-size: 260% 100%; animation: cbSweep 14s linear infinite;
}
.cine-hero::after { /* opening fade from black */
	content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: #06121d;
	animation: cbCurtain 1.4s .05s cubic-bezier(.65, 0, .35, 1) forwards;
}
.cine-hero__inner { flex: 1; display: flex; align-items: center; padding-block: clamp(56px, 8vw, 110px) clamp(28px, 4vw, 48px); }
.cine-hero__content { max-width: 780px; }
.cine-hero__brand { position: relative; display: inline-block; margin-bottom: clamp(26px, 3.4vw, 40px); }
.cine-hero__brand::before { /* soft halo */
	content: ""; position: absolute; inset: -26px -34px; z-index: -1; border-radius: 40px;
	background: radial-gradient(closest-side, rgba(74, 168, 216, .55), rgba(74, 168, 216, 0));
	filter: blur(14px); animation: cbGlow 6s ease-in-out infinite;
}
.cine-hero__plate {
	position: relative; display: inline-flex; overflow: hidden;
	padding: clamp(14px, 1.6vw, 20px) clamp(18px, 2.2vw, 28px);
	background: rgba(255, 255, 255, .95); border-radius: 14px;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.cine-hero__plate::after { /* light glint passing over the logo */
	content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent);
	transform: skewX(-18deg); animation: cbShine 8s 2.4s ease-in-out infinite;
}
.cine-hero__logo { display: block; width: clamp(210px, 25vw, 340px); height: auto; max-width: 100%; }
.cine-hero__title { font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 750; line-height: 1.04; letter-spacing: -.035em; color: var(--white); margin: 0 0 .45em; max-width: 17ch; text-wrap: balance; }
.cine-hero__lead { max-width: 58ch; font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.65; color: #d4e2ec; margin: 0; }
.cine-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.1rem; }
.cine-hero__brand, .cine-hero__eyebrow, .cine-hero__title, .cine-hero__lead, .cine-hero__actions, .cine-hero__foot { animation: cbRise 1s cubic-bezier(.2, .7, .2, 1) both; }
.cine-hero__brand { animation-delay: .45s; }
.cine-hero__eyebrow { animation-delay: .7s; }
.cine-hero__title { animation-delay: .82s; }
.cine-hero__lead { animation-delay: 1s; }
.cine-hero__actions { animation-delay: 1.15s; }
.cine-hero__foot { animation-delay: 1.35s; }
.cine-hero__foot { position: relative; border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(6, 18, 29, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cine-hero__foot-inner { display: flex; align-items: center; gap: 24px; }
.cine-hero__facts { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.cine-hero__facts li { display: flex; flex-direction: column; gap: 3px; padding: 20px 26px; border-left: 1px solid rgba(255, 255, 255, .14); }
.cine-hero__facts li:first-child { border-left: 0; padding-left: 0; }
.cine-hero__facts strong { font-size: 1rem; color: var(--white); }
.cine-hero__facts span { font-size: .875rem; color: #c3d3df; line-height: 1.45; }
.cine-hero__controls { display: flex; align-items: center; gap: 14px; }
.cine-hero__pause {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--white); font: inherit; font-size: .85rem; font-weight: 600;
}
.cine-hero__pause[hidden] { display: none; }
.cine-hero__pause:hover { background: rgba(255, 255, 255, .14); }
.cine-hero__pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.cine-hero__pause[aria-pressed="true"] .cine-hero__pause-icon { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.cine-hero__scroll { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); align-items: center; justify-content: center; }
.cine-hero__scroll span { width: 2px; height: 14px; background: var(--white); border-radius: 2px; animation: cbScrollCue 1.8s ease-in-out infinite; }
@keyframes cbKenBurns { from { transform: scale(1.02); } to { transform: scale(1.12) translateX(-1.5%); } }
@keyframes cbSweep { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes cbCurtain { to { opacity: 0; visibility: hidden; } }
@keyframes cbGlow { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes cbShine { 0%, 70% { left: -70%; } 100% { left: 130%; } }
@keyframes cbRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes cbScrollCue { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@media (max-width: 860px) {
	.cine-hero__facts { grid-template-columns: 1fr; }
	.cine-hero__facts li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: 12px 0; }
	.cine-hero__facts li:first-child { border-top: 0; }
	.cine-hero__controls { display: none; }
	.cine-hero__shade { background: linear-gradient(0deg, rgba(6, 18, 29, .96) 0%, rgba(6, 18, 29, .55) 55%, rgba(6, 18, 29, .35) 100%); }
}

/* ---------- Homepage sections ---------- */
.home-intro { gap: clamp(32px, 6vw, 96px) !important; padding-top: var(--section); }
.home-intro__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-top: .2em !important; text-wrap: balance; }
.home-keyfacts { list-style: none; padding: 0 !important; margin: 2rem 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.home-keyfacts li { margin: 0; padding: 18px 18px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.home-keyfacts strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--blue); letter-spacing: -.02em; margin-bottom: 4px; }
@media (max-width: 600px) { .home-keyfacts { grid-template-columns: 1fr; } }
.home-capabilities .home-capgrid { gap: 0 !important; border-top: 1px solid rgba(255, 255, 255, .14); }
.home-capcol { position: relative; padding: 76px 28px 8px 0 !important; border-right: 1px solid rgba(255, 255, 255, .1); margin: 0 !important; }
.home-capcol:last-child { border-right: 0; }
.home-capcol:not(:first-child) { padding-left: 28px !important; }
.home-capcol.cb-ico::before { top: 24px; left: 0; background: rgba(74, 168, 216, .16); }
.home-capcol.cb-ico::after { top: 34px; left: 10px; background: #8fd0f0; }
.home-capcol:not(:first-child).cb-ico::before { left: 28px; }
.home-capcol:not(:first-child).cb-ico::after { left: 38px; }
.home-capcol h3 { font-size: 1.1rem; margin: 0 0 14px !important; }
.home-capcol ul { list-style: none; padding: 0 !important; margin: 0; }
.home-capcol li { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #cfdde8; font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .home-capcol { border-right: 0; padding-left: 0 !important; } .home-capcol:not(:first-child).cb-ico::before { left: 0; } .home-capcol:not(:first-child).cb-ico::after { left: 10px; } }
.home-logos { margin-top: clamp(32px, 4vw, 56px) !important; }
.home-mosaic { display: grid !important; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(170px, 19vw, 270px)); gap: 12px; }
.home-mosaic .wp-block-image { margin: 0 !important; overflow: hidden; border-radius: var(--radius); }
.home-mosaic .wp-block-image:first-child { grid-row: span 2; }
.home-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.9); }
.home-mosaic .wp-block-image:hover img { transform: scale(1.05); filter: none; }
@media (max-width: 700px) { .home-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; } .home-mosaic .wp-block-image:first-child { grid-column: span 2; grid-row: span 1; } }
.home-enquiry { position: relative; isolation: isolate; overflow: hidden; }
.home-enquiry__img, .cb-cta__img { position: absolute !important; inset: 0; z-index: -2; margin: 0 !important; max-width: none !important; width: 100%; height: 100%; }
.home-enquiry__img img, .cb-cta__img img { width: 100%; height: 100%; object-fit: cover; }
.home-enquiry::before, .cb-cta--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 18, 29, .95) 0%, rgba(6, 18, 29, .86) 45%, rgba(6, 18, 29, .7) 100%); }
.home-enquiry__cols { gap: clamp(32px, 5vw, 72px) !important; }
.home-enquiry .contact-details a { color: #cfe8f6; }
.home-enquiry__form .cowburn-form { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); color: var(--ink, #1a2733); }
.cb-cta--photo { position: relative; isolation: isolate; overflow: hidden; }

/* ---------- Service cards ([cowburn_services]) ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-services .svc-grid--4 .svc-card:nth-child(-n+2) { grid-column: span 2; }
.svc-card { margin: 0 !important; }
.svc-card__link { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 320px; overflow: hidden; border-radius: var(--radius-lg); color: var(--white); text-decoration: none; background: var(--navy); isolation: isolate; }
.svc-card__media { position: absolute; inset: 0; z-index: -2; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc-card__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 18, 29, .95) 0%, rgba(6, 18, 29, .55) 55%, rgba(6, 18, 29, .15) 100%); transition: background .4s var(--ease); }
.svc-card__link:hover .svc-card__media img, .svc-card__link:focus-visible .svc-card__media img { transform: scale(1.06); }
.svc-card__link:hover::before { background: linear-gradient(0deg, rgba(4, 60, 92, .96) 0%, rgba(6, 18, 29, .6) 60%, rgba(6, 18, 29, .2) 100%); }
.svc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 26px; }
.svc-card__icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); margin-bottom: 8px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.svc-card__icon svg { width: 22px; height: 22px; }
.svc-card__area { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fd0ea; }
.svc-card__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.svc-card__text { font-size: .9rem; color: #c9d8e3; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--white); }
.svc-card__more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc-card__link:hover .svc-card__more svg { transform: translateX(4px); }
@media (max-width: 1100px) { .svc-grid, .svc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-services .svc-grid--4 .svc-card:nth-child(-n+2) { grid-column: auto; } }
@media (max-width: 640px) { .svc-grid, .svc-grid--4, .svc-grid--2 { grid-template-columns: 1fr; } .svc-card__link { min-height: 260px; } }

/* ---------- Service page: banner extras + section nav ---------- */
.page-hero--service.page-hero--image { min-height: clamp(440px, 50vw, 620px); }
.page-hero__badge { display: inline-flex; width: 58px; height: 58px; border-radius: 16px; align-items: center; justify-content: center; margin-bottom: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.page-hero__badge svg { width: 28px; height: 28px; color: var(--white); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.svc-nav { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgba(10, 34, 54, .4); }
.svc-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: thin; }
.svc-nav__list li { flex: 0 0 auto; margin: 0; }
.svc-nav__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.svc-nav__list a svg { width: 16px; height: 16px; color: var(--blue); }
.svc-nav__list a:hover { background: var(--mist); }
.svc-nav__list a[aria-current="page"] { background: var(--navy); color: var(--white); }
.svc-nav__list a[aria-current="page"] svg { color: #9fd0ea; }

/* ---------- Service page body ---------- */
.svc-overview { gap: clamp(32px, 6vw, 88px) !important; }
.svc-overview__title { font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.25; margin-top: .3em !important; text-wrap: balance; }
.svc-glance { position: relative; overflow: hidden; padding: 34px 32px 30px !important; border-radius: var(--radius-lg); background: var(--navy); color: #d7e3ec; }
.svc-glance.cb-ico::before { content: none; }
.svc-glance.cb-ico::after { /* large watermark of the service icon */
	top: auto; left: auto; right: -30px; bottom: -30px; width: 190px; height: 190px; opacity: .08; background: var(--white);
}
.svc-glance h3 { color: var(--white); margin: 0 0 18px !important; font-size: 1.15rem; }
.svc-glance p { position: relative; margin: 0 0 16px !important; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .95rem; }
.svc-glance p strong { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #9fd0ea; margin-bottom: 4px; }
.svc-glance a { color: var(--white); }
.svc-glance .wp-block-buttons { position: relative; margin-top: 22px; }
.svc-glance .wp-block-button__link { background: var(--white) !important; color: var(--navy) !important; }
.svc-capabilities .svc-caps { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; counter-reset: cap; }
.svc-cap { counter-increment: cap; position: relative; margin: 0 !important; padding: 26px 24px 22px !important; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.svc-cap::before { content: counter(cap, decimal-leading-zero); display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--sky); margin-bottom: 12px; }
.svc-cap::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc-cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-cap:hover::after { transform: scaleX(1); }
.svc-cap h3 { font-size: 1.02rem; line-height: 1.4; margin: 0 !important; }
.svc-cap p { font-size: .9rem; color: var(--muted); margin: 8px 0 0 !important; }
.svc-band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(380px, 46vw, 560px); color: var(--white); }
.svc-band__img { position: absolute !important; inset: 0; z-index: -2; margin: 0 !important; max-width: none !important; }
.svc-band__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 18, 29, .92) 0%, rgba(6, 18, 29, .35) 60%, rgba(6, 18, 29, .1) 100%); }
.svc-band__text { width: 100%; max-width: var(--max); margin: 0 auto !important; padding: clamp(32px, 5vw, 64px) var(--gutter) !important; box-sizing: border-box; }
.svc-band__text .eyebrow { color: #9fd0ea; }
.svc-band__quote { max-width: 30ch; margin: .4em 0 0 !important; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.22; font-weight: 650; letter-spacing: -.02em; color: var(--white); text-wrap: balance; }
.entry-content > .svc-band { margin-top: 0; }
.entry-content > .svc-capabilities + .svc-band { margin-top: 0 !important; }
.entry-content > .svc-band + * { margin-top: var(--section); }
.svc-approach { gap: clamp(32px, 6vw, 88px) !important; }
.svc-approach__img img { width: 100%; height: auto; }
.svc-steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 26px 0 0 !important; }
.svc-steps li { counter-increment: step; position: relative; padding: 0 0 22px 64px; margin: 0; color: var(--muted); }
.svc-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--blue); background: var(--ice, #eaf3f8); border: 1px solid #cfe4f1; }
.svc-steps li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 1px; background: var(--line); }
.svc-steps li:last-child::after { display: none; }
.svc-steps strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.svc-approach--solo .svc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc-approach--solo .svc-steps li { padding: 58px 0 0; }
.svc-approach--solo .svc-steps li::after { display: none; }
@media (max-width: 900px) { .svc-approach--solo .svc-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-approach--solo .svc-steps { grid-template-columns: 1fr; } .svc-approach__img img { aspect-ratio: 4 / 3; } }

/* ---------- Gallery: filter, masonry, viewer ---------- */
.cb-gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 auto 8px !important; max-width: var(--max); padding-inline: var(--gutter); box-sizing: content-box; }
.cb-gallery-filter button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cb-gallery-filter button:hover { border-color: var(--blue); }
.cb-gallery-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cb-gallery-filter span { opacity: .6; font-weight: 500; margin-left: 4px; }
.cb-gallery-section { margin-top: clamp(40px, 5vw, 72px) !important; }
.cb-gallery-section[hidden] { display: none !important; }
.cb-gallery-title { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 20px !important; display: flex; align-items: center; gap: 14px; }
.cb-gallery-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wp-block-gallery.cb-masonry { display: block !important; columns: 3 300px; column-gap: 16px; }
.wp-block-gallery.cb-masonry > .wp-block-image { display: block; width: 100% !important; margin: 0 0 16px !important; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.wp-block-gallery.cb-masonry > .wp-block-image a { display: block; position: relative; cursor: zoom-in; }
.wp-block-gallery.cb-masonry > .wp-block-image > a { display: block !important; flex: none !important; height: auto !important; }
.wp-block-gallery.cb-masonry img { display: block; flex: none !important; width: 100% !important; height: auto !important; max-height: none !important; contain: none !important; contain-intrinsic-size: none !important; aspect-ratio: auto !important; object-fit: fill !important; transition: transform .9s var(--ease), filter .5s var(--ease); }
.wp-block-gallery.cb-masonry > .wp-block-image a::after { /* expand icon */
	content: ""; position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2236' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
	opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease);
}
.wp-block-gallery.cb-masonry > .wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.cb-masonry > .wp-block-image:hover a::after, .wp-block-gallery.cb-masonry > .wp-block-image a:focus-visible::after { opacity: 1; transform: none; }
.wp-block-gallery.cb-masonry figcaption.wp-element-caption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 40px 16px 14px !important;
	background: linear-gradient(0deg, rgba(6, 18, 29, .85), transparent) !important; color: var(--white) !important; font-size: .85rem !important; text-align: left !important;
	opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none;
}
.wp-block-gallery.cb-masonry > .wp-block-image:hover figcaption, .wp-block-gallery.cb-masonry > .wp-block-image:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .wp-block-gallery.cb-masonry figcaption.wp-element-caption { opacity: 1; transform: none; } }
.cb-lb { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(4, 12, 20, .96); color: var(--white); opacity: 0; transition: opacity .3s ease; }
.cb-lb.is-open { opacity: 1; }
.cb-lb[hidden] { display: none; }
.cb-lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 72px 12px; }
.cb-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .25s; }
.cb-lb__img.is-loading { opacity: .25; }
.cb-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px 22px; font-size: .9rem; color: #c9d8e3; }
.cb-lb__count { font-variant-numeric: tabular-nums; letter-spacing: .08em; white-space: nowrap; }
.cb-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cb-lb button:hover { background: rgba(255, 255, 255, .2); }
.cb-lb button svg { width: 20px; height: 20px; }
.cb-lb__close { top: 14px; right: 18px; }
.cb-lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.cb-lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .cb-lb__stage { padding: 60px 8px 8px; } .cb-lb__prev, .cb-lb__next { top: auto; bottom: 64px; transform: none; } }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.cine-hero__still, .cine-hero__grain, .cine-hero__brand::before, .cine-hero__plate::after, .cine-hero__scroll span { animation: none !important; }
	.cine-hero::after { display: none; }
	.cine-hero__brand, .cine-hero__eyebrow, .cine-hero__title, .cine-hero__lead, .cine-hero__actions, .cine-hero__foot { animation: none !important; }
}
@media print { .cine-hero::after, .cine-hero__media, .svc-nav, .cb-gallery-filter, .cb-lb { display: none !important; } .cine-hero { min-height: 0; color: #000; background: none; } }

/* ==========================================================================
   v4 — "Gravity" homepage hero (spheres form the Cowburn logo)
   ========================================================================== */
.g-hero { position: relative; isolation: isolate; background: radial-gradient(circle at 50% 35%, #ffffff 0%, #eef5f9 38%, #cfe3ef 100%); color: #0a1620; }
.g-hero__sticky { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; z-index: 0; }
.g-hero__canvas { display: block; width: 100%; height: 100%; }
.g-hero__still { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); width: min(70vw, 620px); opacity: 0; transition: opacity .6s ease; }
.g-hero__still img { width: 100%; height: auto; display: block; }
.g-hero--static .g-hero__canvas { display: none; }
.g-hero--static .g-hero__still { opacity: 1; }
.g-panel { position: relative; z-index: 1; min-height: 100svh; display: flex; pointer-events: none; }
.g-panel a, .g-panel p, .g-panel h1, .g-panel h2 { pointer-events: auto; }
.g-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter, 24px); box-sizing: border-box; }
.g-panel--intro { align-items: flex-end; padding-bottom: clamp(40px, 6vh, 64px); }
.g-panel--mid { align-items: center; }
.g-panel--end { align-items: center; justify-content: center; text-align: center; }
.g-intro { display: flex; flex-direction: column; gap: 28px; }
.g-label { font: 500 13px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .22em; text-transform: uppercase; color: #046084; margin: 0 0 18px; }
.g-display { font-size: clamp(2.4rem, 6vw, 5.2rem); font-weight: 600; line-height: .98; letter-spacing: -.045em; color: #0a1620; margin: 0; max-width: 14ch; text-wrap: balance; }
.g-display--md { font-size: clamp(2.1rem, 4.6vw, 4.2rem); max-width: 16ch; }
.g-center .g-display { margin: 0 auto 32px; }
.g-intro__lead { font-size: 1.02rem; line-height: 1.5; font-weight: 500; color: #1f3443; margin: 0; max-width: 34ch; }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.g-pill { display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #0a1620; text-decoration: none; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, .7), 0 10px 30px -12px rgba(4, 96, 132, .35); transition: transform .3s var(--ease, ease); }
.g-pill:hover { transform: translateY(-2px); }
.g-orb { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: radial-gradient(circle at 50% 30%, #4aa8d8 0%, #046084 55%, #0a2236 100%); }
.g-orb svg { width: 16px; height: 16px; }
.g-link { font-weight: 600; color: #046084; text-decoration: underline; text-underline-offset: 4px; }
.g-scroll { display: none; align-items: center; gap: 10px; margin: 18px 0 0; font: 500 10px ui-monospace, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; color: #6b7d89; }
.g-scroll span { width: 1px; height: 26px; background: currentColor; animation: cbScrollCue 1.8s ease-in-out infinite; }
.g-split { display: grid; gap: 28px; }
.g-copy { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: #2b3f4d; max-width: 46ch; margin: 0; padding: 24px 26px; border-radius: 20px; background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (min-width: 860px) {
	.g-intro { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.g-intro__side { width: 300px; flex: none; }
	.g-scroll { display: flex; }
	.g-split { grid-template-columns: 1.2fr .8fr; align-items: end; }
}
@media (prefers-reduced-motion: reduce) { .g-scroll span { animation: none; } }

/* ==========================================================================
   v4 — site-wide "Gravity" skin: light studio background, contained widths,
   mono [ labels ], glass header, light page headers with a framed photo,
   rounded navy bands and a rounded dark footer.
   ========================================================================== */
:root { --max: 1200px; --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace; }
body { background: #f6f9fb; }
h1, h2, h3 { letter-spacing: -.03em; }
h2 { font-weight: 650; }

/* Labels: [ Like this ] */
.eyebrow { font: 500 13px/1.4 var(--mono) !important; letter-spacing: .16em !important; text-transform: uppercase; color: #046084 !important; }
.eyebrow::before { content: "[ "; } .eyebrow::after { content: " ]"; }
.eyebrow { display: inline-block; } .eyebrow::before, .eyebrow::after { position: static !important; width: auto !important; height: auto !important; background: none !important; margin: 0 !important; display: inline !important; }
.has-charcoal-background-color .eyebrow, .eyebrow--light { color: #8fd0f0 !important; }

/* Header: light glass bar, utility strip slimmer */
.site-header { background: rgba(246, 249, 251, .82) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(10, 34, 54, .06) !important; box-shadow: none !important; }
.utility-bar { font-size: .8125rem; }
.nav-cta.button, .site-header .button--primary { border-radius: 999px !important; padding-inline: 22px !important; }

/* Inner page headers: light, contained, text left + framed photo right */
.page-hero { background: radial-gradient(circle at 20% 0%, #ffffff 0%, #eef5f9 45%, #dcebf3 100%) !important; color: #0a1620 !important; }
.page-hero::before, .page-hero--plain::after { display: none !important; }
.page-hero .page-hero__title { color: #0a1620 !important; font-weight: 650; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.04em; max-width: 16ch; }
.page-hero .page-hero__intro { color: #2b3f4d !important; }
.page-hero .breadcrumbs li, .page-hero .breadcrumbs a { color: #4d6372 !important; }
.page-hero .breadcrumbs li + li::before { color: #9fb1bd !important; }
.page-hero--image { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0 !important; align-items: center !important; }
.page-hero--image .page-hero__inner { grid-row: 1; padding-bottom: 28px; }
.page-hero--image .page-hero__media { position: relative !important; inset: auto !important; z-index: 0 !important; grid-row: 2; margin: 0 var(--gutter) clamp(32px, 5vw, 56px); aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(10, 34, 54, .45); }
.page-hero__badge { background: #fff !important; border-color: rgba(4, 96, 132, .15) !important; box-shadow: 0 10px 24px -14px rgba(4, 96, 132, .45); }
.page-hero__badge svg { color: #046084 !important; }
.page-hero .button--ghost { color: #0a2236 !important; border-color: rgba(10, 34, 54, .25) !important; }
@media (min-width: 960px) {
	.page-hero--image { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); box-sizing: border-box; background: transparent !important; }
	.page-hero--image .page-hero__inner { grid-row: 1; grid-column: 1; padding: clamp(56px, 7vw, 96px) 40px clamp(56px, 7vw, 96px) 0; max-width: none; }
	.page-hero--image .page-hero__media { grid-row: 1; grid-column: 2; margin: 32px 0; aspect-ratio: 4 / 3; }
	header.page-hero--image { position: relative; }
	header.page-hero--image::after { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: radial-gradient(circle at 20% 0%, #ffffff 0%, #eef5f9 45%, #dcebf3 100%); }
}

/* Contained sections; navy bands become rounded panels */
.entry-content > .alignwide, .entry-content > * { max-width: var(--max); }
.entry-content > .alignfull.has-charcoal-background-color, .entry-content > .alignfull.has-stone-background-color { margin-inline: clamp(8px, 1.6vw, 20px) !important; border-radius: clamp(20px, 3vw, 36px); overflow: hidden; }
.entry-content > .alignfull.has-stone-background-color { background: #ffffff !important; box-shadow: 0 1px 0 rgba(10, 34, 54, .04), 0 30px 60px -48px rgba(10, 34, 54, .35); }
.has-charcoal-background-color { background: #0a1620 !important; }
.svc-band { margin-inline: clamp(8px, 1.6vw, 20px); border-radius: clamp(20px, 3vw, 36px); }
.cb-feature, .svc-cap, .page-card, .project-card, .svc-glance { border-radius: 20px !important; }
.cb-feature { background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .95) !important; box-shadow: 0 14px 40px -24px rgba(4, 96, 132, .28); }
.svc-card__link { border-radius: 22px; }
.wp-block-button__link, .button { border-radius: 999px !important; }
.entry-content p { max-width: 68ch; }
.cb-head p, .svc-glance p { max-width: none; }

/* Footer: dark, rounded top, soft blue blooms */
.site-footer { position: relative; overflow: hidden; background: #0a1620 !important; border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; margin-top: clamp(48px, 7vw, 96px); }
.site-footer::before, .site-footer::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(40px); }
.site-footer::before { width: 28rem; height: 28rem; top: -12rem; right: -8rem; background: radial-gradient(circle, rgba(74, 168, 216, .35) 0%, transparent 65%); }
.site-footer::after { width: 32rem; height: 32rem; bottom: -16rem; left: -10rem; background: radial-gradient(circle, rgba(4, 96, 132, .35) 0%, transparent 65%); }
.site-footer > * { position: relative; z-index: 1; }
.entry-content > .alignfull:last-child { margin-bottom: 0 !important; }

/* v4 — homepage tidy: calmer section rhythm under the sphere hero */
.entry-content--home { padding-top: clamp(56px, 8vw, 112px); }
.home-intro { padding-top: 0 !important; }
.home-intro__title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 650; }
.home-keyfacts strong { color: #046084; }
.home-enquiry { margin-bottom: 0 !important; }

/* v4 — rewritten page sections */
.home-keyfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); list-style: none; padding: clamp(24px, 3vw, 36px) 0 !important; margin-block: clamp(32px, 5vw, 64px) !important; border-block: 1px solid rgba(10, 34, 54, .1); }
.home-keyfacts li { margin: 0; color: #2b3f4d; font-size: 1rem; line-height: 1.45; }
.home-keyfacts strong { display: block; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 6px; }
@media (max-width: 640px) { .home-keyfacts { grid-template-columns: 1fr; } }
.has-charcoal-background-color .cb-statement, .has-charcoal-background-color h2, .has-charcoal-background-color h3 { color: #fff; }
.has-charcoal-background-color .cb-feature { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12) !important; box-shadow: none; }
.has-charcoal-background-color .cb-feature p { color: #c9d8e3; }
.about-purpose .cb-statement { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.about-purpose .wp-block-columns { align-items: flex-start !important; }
.svc-overview__title { max-width: 24ch; }
.svc-cap h3 { font-size: 1.05rem; }
.svc-approach--text { max-width: 760px; }
.entry-content > .wp-block-columns, .entry-content > .cb-head, .entry-content > .cb-features, .entry-content > .home-keyfacts { margin-top: clamp(48px, 7vw, 88px); }
.entry-content > .cb-head + .cb-features, .entry-content > .cb-head + .wp-block-group { margin-top: 0; }
.g-scroll { font-size: 12px !important; }
.page-hero .eyebrow--light, .page-hero .eyebrow { color: #046084 !important; }
.home-enquiry .contact-details, .home-enquiry .contact-details p, .home-enquiry .contact-details li { color: #d7e3ec !important; }
