/* =========================================================
   Fifteen theme styles
   Faithful to fifteendesign.tlhdev.co.uk design system:
   - Inter, black on white, amber #fdb104 / #ffb000 accents
   - Cream #f9eddc tinted sections, pink #d2095e work panel,
     blue #4c86f9 testimonial panel
   - 10px panel radius, 4px button radius, 1170px container
   ========================================================= */

/* ---------- Fonts ---------- */

/*
 * Metric-matched stand-in for Inter, used until the webfont arrives, so text
 * does not reflow when Inter swaps in.
 *
 * One face per weight, because the adjustment is not constant: Inter widens
 * steadily with weight while Arial only has two cuts, jumping to its bold at
 * 600. A single size-adjust tuned at 400 still left 700/800 headings ~6-8%
 * narrow, which is what made "Lasting partnerships." sit on one line in the
 * fallback and two once Inter loaded. Percentages below are measured against
 * this site's Inter build; ascent/descent are Inter's own metrics (96.88%
 * / 24.12%) divided by each size-adjust so the line box matches too.
 */

@font-face {
	font-family: 'Inter Fallback';
	src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
	font-style: normal;
	font-weight: 400;
	size-adjust: 105.59%;
	ascent-override: 91.75%;
	descent-override: 22.84%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Inter Fallback';
	src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
	font-style: normal;
	font-weight: 500;
	size-adjust: 106.97%;
	ascent-override: 90.57%;
	descent-override: 22.55%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Inter Fallback';
	src: local('Arial-BoldMT'), local('Arial Bold'), local('Helvetica Neue Bold'), local('Liberation Sans Bold');
	font-style: normal;
	font-weight: 600;
	size-adjust: 102.09%;
	ascent-override: 94.90%;
	descent-override: 23.63%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Inter Fallback';
	src: local('Arial-BoldMT'), local('Arial Bold'), local('Helvetica Neue Bold'), local('Liberation Sans Bold');
	font-style: normal;
	font-weight: 700;
	size-adjust: 103.39%;
	ascent-override: 93.70%;
	descent-override: 23.33%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Inter Fallback';
	src: local('Arial-BoldMT'), local('Arial Bold'), local('Helvetica Neue Bold'), local('Liberation Sans Bold');
	font-style: normal;
	font-weight: 800;
	size-adjust: 104.99%;
	ascent-override: 92.28%;
	descent-override: 22.97%;
	line-gap-override: 0%;
}

:root {
	--brand-primary: #fdb104;
	--brand-primary-alt: #ffb000;
	--brand-on-primary: #000000;
	--brand-cream: #f9eddc;
	--brand-blue: #4c86f9;
	--brand-pink: #d2095e;
	--brand-black: #000000;
	--brand-panel: #0a0a0a;
	--brand-white: #ffffff;
	--text-color: #000000;
	--radius-sm: 4px;
	--radius-md: 10px;
	--container: 1170px;
	--header-height: 96px;
	--gap: 30px;
	--section-gap: 40px;
	--font-body: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--text-color);
	background: var(--brand-white) url('../img/page-title-bg.jpg') no-repeat top center / 100% 820px;
	-webkit-font-smoothing: antialiased;
}

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

/* Guard against horizontal overflow (e.g. the CookieYes preference modal
   renders wider than small viewports before it is opened). */
body { overflow-x: clip; }
.cky-modal, .cky-preference-center { max-width: calc(100vw - 24px); }

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--brand-black);
}

h1, h2 { font-size: 40px; line-height: 50px; }
h3 { font-size: 24px; line-height: 32px; }
h4 { font-size: 22px; line-height: 32px; }
h5 { font-size: 20px; line-height: 30px; }

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

a { color: inherit; }

address { font-style: normal; }

.lead, .page-title__intro, .section-heading__intro { font-size: 20px; line-height: 30px; }

/* Links inside editable content are black and underlined */
.text-image__body a:not(.btn), .text-columns a:not(.btn), .faq__answer a,
.section-heading__intro a, .page-title__intro a, .entry-content a,
.logo-split__intro a {
	color: var(--brand-black);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 700;
}

/* Lists inside editable content: bullets sit flush with the content's
   left edge, wrapped lines hang after the marker */
.text-image__body ul, .text-columns__body ul, .faq__answer ul,
.card__text ul, .block--rich-text .container ul, .entry-content ul,
.section-heading__intro ul {
	list-style: none;
	padding-left: 0;
	margin: 0 0 16px;
}

.text-image__body ul li, .text-columns__body ul li, .faq__answer ul li,
.card__text ul li, .block--rich-text .container ul li, .entry-content ul li,
.section-heading__intro ul li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
}

.text-image__body ul li::before, .text-columns__body ul li::before, .faq__answer ul li::before,
.card__text ul li::before, .block--rich-text .container ul li::before, .entry-content ul li::before,
.section-heading__intro ul li::before {
	content: "";
	position: absolute;
	left: 1px;
	top: calc(0.8125em - 3px);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.text-image__body ol, .text-columns__body ol, .faq__answer ol,
.card__text ol, .block--rich-text .container ol, .entry-content ol {
	padding-left: 18px;
	margin: 0 0 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 10000;
	width: auto; height: auto;
	clip: auto;
	background: var(--brand-primary);
	padding: 10px 16px;
	border-radius: var(--radius-sm);
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 15px;
}

.container--wide { max-width: 1380px; padding: 0 30px; }

.container--narrow { max-width: 860px; }

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

.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 24px;
	border-radius: var(--radius-sm);
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.btn--primary { background: var(--brand-primary); color: var(--brand-on-primary); }
.btn--primary:hover { background: var(--brand-black); color: var(--brand-white); }

.btn--dark { background: var(--brand-black); color: var(--brand-white); }
.btn--dark:hover { background: var(--brand-primary); color: var(--brand-black); }

.btn--white { background: var(--brand-white); color: var(--brand-black); }
.btn--white:hover { background: var(--brand-primary); color: var(--brand-black); }

/* Naked text button with arrow (dev ".btn-naked") */
.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	color: var(--brand-black);
	text-decoration: none;
}

.arrow-link--white { color: var(--brand-white); }

.btn__arrow {
	display: inline-flex;
	transition: transform .2s ease;
}

.btn__arrow svg { width: 18px; height: 18px; fill: currentColor; }

.arrow-link:hover .btn__arrow, .btn:hover .btn__arrow { transform: translateX(5px); }

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

.site-header {
	position: sticky;
	--mega-visible: 0;
	top: 0;
	z-index: 1000;
	background: transparent;
	transition: box-shadow .2s ease, background-color .2s ease;
}

.site-header.is-stuck { background: var(--brand-white); box-shadow: 0 2px 20px rgba(0, 0, 0, .08); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-height);
}

.site-header__logo { flex: 0 0 auto; display: block; }
.site-header__logo img { width: 150px; height: auto; }

.site-nav { margin-left: auto; }

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

.site-nav__list > li { position: relative; }

.site-nav__list > li > a {
	display: block;
	padding: 10px 7px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	color: var(--brand-black);
	transition: color .15s ease;
}

.site-nav__list > li > a:hover,
.site-nav__list > li:hover > a,
.site-nav__list > li.current-menu-item > a,
.site-nav__list > li.current-menu-ancestor > a { color: var(--brand-primary); }

.site-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 16px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 270px;
	background: var(--brand-white);
	border-radius: var(--radius-md);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 1001;
}

.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav__list .sub-menu a {
	display: block;
	padding: 8px 24px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	color: var(--brand-black);
	transition: color .15s ease;
}

.site-nav__list .sub-menu a:hover { color: var(--brand-primary); }

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

.site-nav__list > li.has-mega { position: static; }

.mega-menu {
	position: absolute;
	left: 50%;
	margin-left: -585px;
	top: 100%;
	width: 1170px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 1001;
	pointer-events: none;
}

.site-nav__list > li.has-mega.mega-open > .mega-menu,
.site-nav__list > li.has-mega:focus-within > .mega-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mega-menu__panel {
	display: grid;
	grid-template-columns: 1fr 635px;
	gap: 30px;
	align-items: start;
	background: var(--brand-white);
	border-radius: var(--radius-md);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .14);
	padding: 30px;
}

.mega-menu__heading { font-size: 16px; line-height: 26px; font-weight: 700; color: var(--brand-black); margin-bottom: 20px; }

.mega-menu__links .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	background: transparent;
	border-radius: 0;
	min-width: 0;
	padding: 0;
	list-style: none;
	margin: 0;
}

.mega-menu__links .sub-menu a {
	display: block;
	padding: 4px 0;
	font-size: 16px;
	line-height: 26px;
	font-weight: 400;
	text-decoration: none;
	color: var(--brand-black);
	transition: color .15s ease;
}

.mega-menu__links .sub-menu a:hover { color: var(--brand-primary); }

.mega-menu__promo {
	position: relative;
	overflow: hidden;
	background-color: var(--brand-black);
	background-size: cover;
	background-position: center right;
	border-radius: var(--radius-md);
	padding: 40px 30px;
	min-height: 290px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mega-menu__promo::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .25) 100%);
}

.mega-menu__promo > * { position: relative; z-index: 1; }

.mega-menu__promo-heading { color: var(--brand-white); font-size: 26px; line-height: 36px; font-weight: 700; margin: 0 0 12px; max-width: 420px; }

.mega-menu__promo-body { max-width: 420px; }

.mega-menu__promo-body p { color: var(--brand-white); font-size: 16px; line-height: 26px; margin-bottom: 20px; }

@media (max-width: 1260px) {
	.mega-menu { width: calc(100vw - 30px); left: 15px; margin-left: 0; }
	.mega-menu__panel { grid-template-columns: 1fr 1.6fr; }
}

.site-header__cta { flex: 0 0 auto; }
.site-header__cta .btn { padding: 13px 24px; }

/* Search toggle, sitting between the nav and the header CTA. */
.site-header__search {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--brand-black);
	cursor: pointer;
	transition: background-color .2s ease;
}

.site-header__search svg { width: 17px; height: 17px; fill: currentColor; }
.site-header__search:hover { background: rgba(0, 0, 0, .06); }
.site-header__search:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* ---------- Search panel ---------- */

/* A white sheet under the header; the rest of the page dims behind it. */
.search-overlay {
	position: fixed;
	inset: 0;
	/* Above the sticky header, which the panel deliberately covers. */
	z-index: 1100;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	transition: opacity .2s ease;
}

.search-overlay.is-open { opacity: 1; }

.search-overlay__inner {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 30px;
	max-width: none;
	width: 100%;
	background: var(--brand-white);
	padding: 60px max(30px, calc(50vw - 585px)) 70px;
	transform: translateY(-14px);
	transition: transform .2s ease;
}

.search-overlay.is-open .search-overlay__inner { transform: none; }

.search-overlay__form { flex: 1 1 auto; min-width: 0; }

.search-overlay__input {
	display: block;
	width: 100%;
	background: none;
	border: 0;
	border-bottom: 2px solid var(--brand-black);
	border-radius: 0;
	padding: 0 0 12px;
	font-family: var(--font-body);
	font-size: 46px;
	font-weight: 700;
	line-height: 58px;
	color: var(--brand-black);
	appearance: none;
}

.search-overlay__input::placeholder { color: var(--brand-black); opacity: 1; }
.search-overlay__input:focus { outline: none; }
.search-overlay__input::-webkit-search-cancel-button { display: none; }

.search-overlay__hint { margin: 14px 0 0; font-size: 15px; line-height: 24px; color: rgba(0, 0, 0, .6); }

.search-overlay__close {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: 8px;
	padding: 0;
	background: #f2f2f2;
	border: 0;
	border-radius: 50%;
	color: var(--brand-black);
	cursor: pointer;
	transition: background-color .2s ease;
}

.search-overlay__close svg { width: 15px; height: 15px; fill: currentColor; }
.search-overlay__close:hover { background: var(--brand-primary); }
.search-overlay__close:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.site-nav__cta-mobile { display: none; }
.site-header__toggle { display: none; }

/* ---------- Shared block rhythm ---------- */

.block { padding: var(--section-gap) 0; }

/* Keep visual gaps even: consecutive blocks sharing a background only
   carry one section-gap between them */
.block:not(.block--tint) + .block:not(.block--tint) { padding-top: 0; }
.block--tint + .block--tint { padding-top: 0; }

.block--tint { background: var(--brand-cream); }

.section-heading { margin-bottom: 40px; max-width: 860px; }
.section-heading__title { margin-bottom: 18px; }
.section-heading__intro p { margin-bottom: 10px; }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Reveal-on-scroll animation */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.23, 1, .32, 1), transform .7s cubic-bezier(.23, 1, .32, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Page title (inner pages) ---------- */

.block--page-title {
	padding: 70px 0 90px;
}

.page-title__heading { margin-bottom: 26px; max-width: 900px; }

.page-title__intro { max-width: 760px; }
.page-title__intro p { margin-bottom: 14px; }

.page-title__cta { margin-top: 30px; display: flex; gap: 20px; flex-wrap: wrap; }

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

.block--home-hero { padding: 10px 0 60px; }

.home-hero__grid {
	display: grid;
	grid-template-columns: 1fr 402px;
	gap: var(--gap);
	align-items: stretch;
}

.home-hero__panel {
	position: relative;
	overflow: hidden;
	background: var(--brand-panel);
	border-radius: var(--radius-md);
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	min-height: 525px;
}

.home-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .85;
}

/* Phone-only still; the swap happens at the phone breakpoint below. */
.home-hero__still { display: none; }

.home-hero__panel::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 100%);
	pointer-events: none;
}

.home-hero__content { position: relative; z-index: 2; padding: 20px; }

.home-hero__heading { color: var(--brand-white); font-size: 40px; line-height: 50px; margin-bottom: 24px; }

.home-hero__links {
	display: flex;
	flex-direction: column;
	gap: 15px;
	justify-content: center;
}

/* Cards naming several services link each one separately. */
.home-hero__link--rich .home-hero__link-label a { color: inherit; text-decoration: none; }

.home-hero__link--rich .home-hero__link-label a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.home-hero__link {
	display: flex;
	align-items: center;
	gap: 18px;
	background: var(--brand-primary-alt);
	color: var(--brand-on-primary);
	border-radius: var(--radius-md);
	padding: 30px;
	min-height: 120px;
	font-weight: 700;
	font-size: 20px;
	line-height: 30px;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s ease;
}

.home-hero__link:hover { background: var(--brand-black); color: var(--brand-white); transform: translateX(4px); }

.home-hero__link-arrow { display: inline-flex; flex: 0 0 auto; }
.home-hero__link-arrow svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Service hero (inner service pages) ---------- */

.block--service-hero { padding: 10px 0 60px; }

.service-hero__grid {
	display: grid;
	grid-template-columns: 1fr 440px;
	gap: var(--gap);
	align-items: stretch;
}

.service-hero__grid--no-form { grid-template-columns: 1fr; }

.service-hero__panel {
	position: relative;
	overflow: hidden;
	background-color: var(--brand-panel);
	background-size: cover;
	background-position: center;
	border-radius: var(--radius-md);
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	min-height: 540px;
}

.service-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.service-hero__panel::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .38);
	pointer-events: none;
}

.service-hero__content { position: relative; z-index: 2; max-width: 640px; }

.service-hero__heading { color: var(--brand-white); margin-bottom: 26px; }

.service-hero__intro { color: var(--brand-white); margin-bottom: 20px; }
.service-hero__intro p { margin-bottom: 10px; }

.service-hero__form {
	background: var(--brand-black);
	border-radius: var(--radius-md);
	padding: 34px 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.service-hero__form-title { color: var(--brand-white); font-size: 22px; line-height: 32px; margin-bottom: 22px; }

.service-hero__form .wpcf7 label,
.service-hero__form .frm_forms.with_frm_style label.frm_primary_label {
	padding: 0;
	display: block;
	color: var(--brand-white);
	font-size: 15px;
	font-weight: 700;
	line-height: 22px;
	margin-bottom: 6px;
}

.service-hero__form .wpcf7 label .required,
.service-hero__form .frm_forms.with_frm_style .frm_required { color: #ff2d2d; }

.service-hero__form .wpcf7 input[type="text"],
.service-hero__form .wpcf7 input[type="email"],
.service-hero__form .wpcf7 input[type="tel"],
.service-hero__form .wpcf7 textarea,
.service-hero__form .frm_forms.with_frm_style input[type="text"],
.service-hero__form .frm_forms.with_frm_style input[type="email"],
.service-hero__form .frm_forms.with_frm_style input[type="tel"],
.service-hero__form .frm_forms.with_frm_style textarea {
	width: 100%;
	background: var(--brand-white);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 6px;
	color: var(--brand-black);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 19px; /* reproduces CF7's resolved `normal` box exactly */
	padding: 10px 14px;
	margin: 0 0 16px;
}

.service-hero__form .wpcf7 textarea,
.service-hero__form .frm_forms.with_frm_style textarea { min-height: 44px; height: 44px; resize: vertical; }

.service-hero__form .wpcf7 input[type="submit"],
.service-hero__form .frm_forms.with_frm_style .frm_button_submit {
	background: var(--brand-primary);
	color: var(--brand-black);
	border: 0;
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	padding: 12px 26px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.service-hero__form .wpcf7 input[type="submit"]:hover,
.service-hero__form .frm_forms.with_frm_style .frm_button_submit:hover { background: var(--brand-white); color: var(--brand-black); }

/* Formidable ships its own white hover/focus label colour. These buttons are
   always on a light background (brand amber at rest, light on hover), so the
   label must stay dark in every state or it disappears. Each selector below
   is evaluated at its own specificity, so the :hover/:focus/:active variants
   outrank Formidable's 0,3,1 hover rule. */
.service-hero__form .frm_forms.with_frm_style .frm_button_submit,
.service-hero__form .frm_forms.with_frm_style .frm_button_submit:hover,
.service-hero__form .frm_forms.with_frm_style .frm_button_submit:focus,
.service-hero__form .frm_forms.with_frm_style .frm_button_submit:active {
	color: var(--brand-black);
	border-color: transparent;
}

.service-hero__form .wpcf7-not-valid-tip,
.service-hero__form .frm_forms.with_frm_style .frm_error { color: #ffb3b3; font-size: 13px; margin: -12px 0 12px; }

/* Formidable container reset so it matches the CF7 box model exactly */
.service-hero__form .frm_forms.with_frm_style .frm_form_field { margin: 0; }
.service-hero__form .frm_forms.with_frm_style fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.service-hero__form .frm_forms.with_frm_style .frm_description,
.service-hero__form .frm_forms.with_frm_style .frm_verify { display: none !important; }
.service-hero__form .frm_forms.with_frm_style .frm_submit { margin: 0; }

/* ---------- Text + image / text-only ---------- */

.text-image__grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 50px;
	align-items: stretch;
}

.block--text-image-featured .text-image__grid { grid-template-columns: 5fr 7fr; align-items: center; }

.block--text-image-left .text-image__grid { grid-template-columns: 5fr 7fr; }
.block--text-image-left .text-image__media { order: -1; }

.block--text-only .text-image__grid { display: block; }
.block--text-only .text-image__content { max-width: 1000px; }

/* Lead intro blocks (after service heroes): large text at 75% width */
.block--text-lead .text-image__content { max-width: 75%; }
.block--text-lead .text-image__body { font-size: 20px; line-height: 30px; }

/* 4) In content sections, the opening paragraph reads large ONLY when
   smaller paragraphs follow it. Scoped to the column beside the image so
   copy continuing below it doesn't start large a second time. */
.block--text-image:not(.block--text-lead) .text-image__content > .text-image__body > p:first-child:has(+ p) {
	font-size: 20px;
	line-height: 30px;
}

/* Short copy stays vertically centred against a taller image */
.text-image__content { align-self: center; }

/* Long sections: the copy that outgrows the image runs full width beneath
   it, at a readable measure rather than the whole 1140px container. */
.block--text-image-split .text-image__content { align-self: start; }
.text-image__below { max-width: 1000px; margin-top: 30px; }

.text-image__heading { margin-bottom: 20px; }
.text-image__body { margin-bottom: 24px; }
.text-image__body p { margin-bottom: 14px; }

.text-image__media { display: flex; align-items: center; }
.text-image__media img { border-radius: var(--radius-md); width: 100%; height: 100%; max-height: 700px; object-fit: cover; }
.block--text-image-featured .text-image__media { display: block; }
/* :not() so a card's own background image keeps filling the card - left to
   height:auto it stops at its natural ratio and leaves a black band. */
.block--text-image-featured .text-image__media img:not(.card__bg) { height: auto; max-height: 700px; object-fit: cover; }

/* Cream panel variant ("How we do it?") */
.block--text-image-panel .text-image__panel {
	background: var(--brand-cream);
	border-radius: var(--radius-md);
	padding: 60px;
}

/* ---------- Text columns (two side-by-side text blocks) ---------- */

.text-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: stretch;
}

.text-columns__col {
	background: var(--brand-cream);
	border-radius: var(--radius-md);
	padding: 40px;
}

/* Cards the template promotes to their own row (unpaired or oversized). */
.text-columns__col--full { grid-column: 1 / -1; }

.text-columns--three { grid-template-columns: repeat(3, 1fr); }
.text-columns--three .text-columns__col { padding: 34px; }

.text-columns__col > .btn { margin-top: 10px; }

.text-columns__col h2 { margin-bottom: 20px; }
.text-columns__col .text-columns__body { margin-bottom: 24px; }
.text-columns__col .text-columns__body p { margin-bottom: 14px; }

/* ---------- Image row (case study imagery) ---------- */

.image-row { display: grid; gap: var(--gap); }
.image-row--count-2 { grid-template-columns: 1fr 1fr; }
.image-row--count-3 { grid-template-columns: repeat(3, 1fr); }

.image-row__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-md);
}

/* ---------- Case study grid ---------- */

/* Case study cards are image-led: the picture does the selling and the story
   fades in over it on hover. Where there is no hover to give, it stays put. */
.case-study-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.case-study-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }

.case-study-grid__cta { margin-top: 40px; }

/* Doubled class: the base .card rule is declared further down this file, so
   equal specificity would let its cream background and padding win here. */
.card.card--case-study {
	position: relative;
	display: block;
	padding: 0;
	overflow: hidden;
	background: var(--brand-panel);
	min-height: 400px;
}
.case-study-grid--cols-2 .card.card--case-study { min-height: 460px; }

.card--case-study .card__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__story {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	text-align: center;
	background: var(--brand-panel);
	opacity: 0;
	transition: opacity .25s cubic-bezier(.645, .045, .355, 1);
}

.card--case-study:hover .card__story,
.card--case-study:focus-visible .card__story { opacity: 1; }

/* Nothing hovers on a touch screen, so the card stacks instead of covering
   itself: the client's image stays visible on top and the story sits beneath
   it, left aligned so it reads as copy rather than a caption stranded over
   the artwork. In flow, a long story grows the card rather than being clipped. */
@media (hover: none) {
	.card.card--case-study,
	.case-study-grid--cols-2 .card.card--case-study {
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.card--case-study .card__bg {
		position: relative;
		flex: 0 0 auto;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.card__story {
		position: relative;
		height: auto;
		opacity: 1;
		padding: 24px;
		text-align: left;
		align-items: flex-start;
		justify-content: flex-start;
	}

	/* Both of these are declared further down the file, so they need the extra
	   class here to win on specificity rather than source order. */
	.card--case-study .card__story-inner { max-width: none; }

	/* The rule is centred under a centred title; left aligned it follows suit. */
	.card--case-study .card__rule { margin-left: 0; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.card__story { transition: none; }
}

.card__story-inner { width: 100%; max-width: 440px; }

.card--case-study .card__title {
	margin: 0;
	color: var(--brand-white);
	font-size: 26px;
	line-height: 34px;
}

.card__rule {
	display: block;
	width: 80px;
	height: 2px;
	margin: 18px auto;
	background: var(--brand-white);
}

.card__summary {
	display: block;
	margin-bottom: 12px;
	color: var(--brand-white);
	font-size: 16px;
	line-height: 26px;
}

.card__services {
	display: block;
	margin-bottom: 22px;
	color: var(--brand-white);
	font-size: 14px;
	line-height: 22px;
	font-style: italic;
	opacity: .85;
}

/* Three across leaves less room, so the story is set a notch smaller. */
.case-study-grid--cols-3 .card--case-study .card__title { font-size: 22px; line-height: 30px; }
.case-study-grid--cols-3 .card__rule { margin: 14px auto; }
.case-study-grid--cols-3 .card__summary { font-size: 15px; line-height: 24px; }
.case-study-grid--cols-3 .card__services { margin-bottom: 18px; font-size: 13px; line-height: 20px; }

/* ---------- Case study intro (top of every case study) ---------- */

.case-study-intro { max-width: 70%; }

.case-study-intro__heading { margin-bottom: 20px; }

.case-study-intro__body { font-size: 16px; line-height: 26px; }
.case-study-intro__body p { margin-bottom: 14px; }
.case-study-intro__body p:last-child { margin-bottom: 0; }

/* Services delivered: comma-separated links to the service pages */
.case-study-tags {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	font-size: 15px;
	line-height: 24px;
	font-weight: 700;
}

.case-study-tags__item:not(:last-child)::after {
	content: ",";
	margin-right: 6px;
	font-weight: 400;
	opacity: .55;
}

.case-study-tags__item a {
	color: var(--brand-black);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .2s ease;
}

.case-study-tags__item a:hover { color: #a8760a; }

/* ---------- Testimonial grid ---------- */

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gap);
}

.testimonial-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--brand-cream);
	border-radius: var(--radius-md);
	padding: 36px;
	margin: 0;
}

.testimonial-card__quote {
	position: relative;
	margin: 0 0 26px;
	padding-top: 34px;
	font-size: 17px;
	line-height: 28px;
}

.testimonial-card__quote::before {
	content: "\201C";
	position: absolute;
	top: 6px;
	left: -4px;
	font-size: 74px;
	line-height: 1;
	color: var(--brand-primary);
	font-family: Georgia, 'Times New Roman', serif;
}

.testimonial-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 22px;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

.testimonial-card__author { display: flex; flex-direction: column; }
.testimonial-card__name { font-weight: 700; font-size: 16px; line-height: 24px; }
.testimonial-card__role { font-size: 14px; line-height: 22px; opacity: .7; }

.testimonial-card__logo { flex: none; max-width: 130px; }

.testimonial-card__logo img {
	display: block;
	width: auto;
	max-width: 130px;
	max-height: 46px;
	object-fit: contain;
}

/* ---------- Careers ---------- */

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.job-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: var(--brand-cream);
	border-radius: var(--radius-md);
	padding: 34px;
	text-decoration: none;
	transition: background-color .2s ease;
}

.job-card:hover { background: var(--brand-primary); }

/* Same chip as the blog category badge, for consistency. */
.job-card__label {
	display: inline-block;
	background: var(--brand-panel);
	color: var(--brand-white);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	padding: 7px 14px;
	margin-bottom: 18px;
}

.job-card__title { font-size: 24px; line-height: 32px; margin-bottom: 12px; }
.job-card__excerpt { font-size: 15px; line-height: 24px; margin-bottom: 18px; }
.job-card .arrow-link { margin-top: auto; }

.job-list__empty { font-size: 18px; }

/* ---------- Contact panel ---------- */

.contact-panel {
	display: grid;
	grid-template-columns: 7fr 4fr;
	gap: 60px;
	align-items: start;
}

.contact-panel__form .wpcf7 label,
.contact-panel__form .frm_forms.with_frm_style label.frm_primary_label {
	padding: 0;
	color: var(--brand-black);
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 22px;
	margin-bottom: 6px;
}

.contact-panel__form .wpcf7 label .required,
.contact-panel__form .frm_forms.with_frm_style .frm_required { color: #e02020; }

.contact-panel__form .wpcf7 input[type="text"],
.contact-panel__form .wpcf7 input[type="email"],
.contact-panel__form .wpcf7 input[type="tel"],
.contact-panel__form .wpcf7 textarea,
.contact-panel__form .frm_forms.with_frm_style input[type="text"],
.contact-panel__form .frm_forms.with_frm_style input[type="email"],
.contact-panel__form .frm_forms.with_frm_style input[type="tel"],
.contact-panel__form .frm_forms.with_frm_style textarea {
	width: 100%;
	background: var(--brand-white);
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	color: var(--brand-black);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 19px; /* reproduces CF7's resolved `normal` box exactly */
	padding: 12px 14px;
	margin: 0 0 20px;
}

.contact-panel__form .wpcf7 input:focus,
.contact-panel__form .wpcf7 textarea:focus,
.contact-panel__form .frm_forms.with_frm_style input:focus,
.contact-panel__form .frm_forms.with_frm_style textarea:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; }

.contact-panel__form .wpcf7 textarea,
.contact-panel__form .frm_forms.with_frm_style textarea { min-height: 110px; resize: vertical; }

.contact-panel__form .wpcf7 input[type="submit"],
.contact-panel__form .frm_forms.with_frm_style .frm_button_submit {
	background: var(--brand-primary);
	color: var(--brand-black);
	border: 0;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	padding: 13px 30px;
	cursor: pointer;
	transition: background-color .2s ease;
}

.contact-panel__form .wpcf7 input[type="submit"]:hover,
.contact-panel__form .frm_forms.with_frm_style .frm_button_submit:hover { background: var(--brand-primary-alt); color: var(--brand-black); }

/* Formidable ships its own white hover/focus label colour. These buttons are
   always on a light background (brand amber at rest, light on hover), so the
   label must stay dark in every state or it disappears. Each selector below
   is evaluated at its own specificity, so the :hover/:focus/:active variants
   outrank Formidable's 0,3,1 hover rule. */
.contact-panel__form .frm_forms.with_frm_style .frm_button_submit,
.contact-panel__form .frm_forms.with_frm_style .frm_button_submit:hover,
.contact-panel__form .frm_forms.with_frm_style .frm_button_submit:focus,
.contact-panel__form .frm_forms.with_frm_style .frm_button_submit:active {
	color: var(--brand-black);
	border-color: transparent;
}
.contact-panel__form .wpcf7-not-valid-tip,
.contact-panel__form .frm_forms.with_frm_style .frm_error { color: #e02020; font-size: 13px; margin: -16px 0 16px; }

/* Formidable container reset so it matches the CF7 box model exactly */
.contact-panel__form .frm_forms.with_frm_style .frm_form_field { margin: 0; }
.contact-panel__form .frm_forms.with_frm_style fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-panel__form .frm_forms.with_frm_style .frm_description,
.contact-panel__form .frm_forms.with_frm_style .frm_verify { display: none !important; }
.contact-panel__form .frm_forms.with_frm_style .frm_submit { margin: 0; }

.contact-panel__intro { margin-bottom: 26px; }

.contact-panel__intro a {
	color: var(--brand-black);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.contact-offices { list-style: none; margin: 0; padding: 0; }
.contact-offices__item { margin-bottom: 10px; }
.contact-offices__label { font-weight: 700; margin-right: 6px; }

.contact-offices__phone {
	color: var(--brand-black);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Portfolio gallery ---------- */

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-flow: dense;
	gap: var(--gap);
}

.portfolio-item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--brand-cream);
	aspect-ratio: 16 / 9;
}

/* Feature tiles: twice the width and height, filling two grid rows. */
.portfolio-item--wide {
	grid-column: span 2;
	grid-row: span 2;
	aspect-ratio: auto;
}

.portfolio-item--wide .portfolio-item__title { font-size: 24px; line-height: 32px; }

/* Absolutely positioned so the image never drives grid row sizing —
   the single-width tiles' aspect ratio sets the rhythm. */
.portfolio-item__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.portfolio-item__overlay {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .72) 100%);
	opacity: 0;
	transition: opacity .25s ease;
	min-height: 50%;
}

.portfolio-item:hover .portfolio-item__overlay,
.portfolio-item:focus-visible .portfolio-item__overlay { opacity: 1; }

/* Nothing hovers on a touch screen, so the caption just stays put. */
@media (hover: none) {
	.portfolio-item__overlay { opacity: 1; }
}

.portfolio-item__title {
	color: var(--brand-white);
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
}

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(0, 0, 0, .9);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 160px);
	width: auto;
	border-radius: var(--radius-md);
}

.lightbox__caption {
	color: var(--brand-white);
	font-size: 16px;
	font-weight: 700;
}

.lightbox__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--radius-md);
	background: var(--brand-primary);
	color: var(--brand-black);
	cursor: pointer;
}

.lightbox__btn svg { width: 18px; height: 18px; fill: currentColor; }
.lightbox__btn:hover { background: var(--brand-primary-alt); }
.lightbox__prev { left: 24px; }
.lightbox__prev svg { transform: rotate(180deg); }
.lightbox__next { right: 24px; }

.lightbox__close {
	position: absolute;
	top: 24px;
	right: 24px;
	transform: none;
}

.lightbox__close::before {
	content: "\00d7";
	font-size: 30px;
	line-height: 1;
}

/* ---------- Long-form documents (policies) ---------- */

.block--rich-text .container > h2 {
	font-size: 24px;
	line-height: 32px;
	margin: 40px 0 16px;
}

.block--rich-text .container > h2:first-child { margin-top: 0; }

.block--rich-text .container > h3 {
	font-size: 20px;
	line-height: 28px;
	margin: 28px 0 12px;
}

.block--rich-text .container > p { margin-bottom: 16px; }

.block--rich-text .container > ul,
.block--rich-text .container > ol { margin-bottom: 20px; }

.policy-updated {
	display: inline-block;
	background: var(--brand-cream);
	border-radius: var(--radius-sm);
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 28px;
}

/* ---------- Awards grid ---------- */

.awards-year + .awards-year { margin-top: 50px; }

.awards-year__label {
	font-size: 24px;
	line-height: 32px;
	color: var(--brand-black);
	margin-bottom: 24px;
}

.awards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
}

.award {
	display: flex;
	flex-direction: column;
	background: var(--brand-white);
	border: 1px solid #e6e6e6;
	border-radius: var(--radius-md);
	padding: 30px;
	text-align: center;
}

.award__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	margin-bottom: 22px;
}

.award__logo img {
	max-height: 110px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.award__title {
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	letter-spacing: .02em;
	margin-bottom: 10px;
}

.award__result { font-weight: 700; margin-bottom: 2px; }
.award__detail { opacity: .7; margin-bottom: 0; }

/* ---------- Tables in editable content ---------- */

.table-scroll {
	overflow-x: auto;
	margin: 26px 0;
	border-radius: var(--radius-md);
	border: 1px solid #efe3d1;
	background: var(--brand-white);
	-webkit-overflow-scrolling: touch;
}

.table-scroll table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 24px;
}

.table-scroll th,
.table-scroll td {
	padding: 16px 20px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #f1e7d8;
}

.table-scroll thead th {
	background: var(--brand-cream);
	font-size: 15px;
	font-weight: 700;
	line-height: 22px;
	white-space: nowrap;
	border-bottom: 2px solid #ecd9bb;
}

.table-scroll tbody tr:last-child th,
.table-scroll tbody tr:last-child td { border-bottom: 0; }

.table-scroll tbody tr:nth-child(even) { background: #fdfaf5; }

/* First column reads as the row's label */
.table-scroll tbody td:first-child { font-weight: 700; }

.table-scroll td p:last-child,
.table-scroll th p:last-child { margin-bottom: 0; }

/* On tinted sections the head inverts so it stays legible */
.block--tint .table-scroll { border-color: #ecdcc4; }
.block--tint .table-scroll,
.block--tint .table-scroll tbody tr:nth-child(even) { background: var(--brand-white); }
.block--tint .table-scroll thead th { background: #f4e6d0; }

/* Quotes inside editable content (client feedback in case studies) */
.text-image__body blockquote, .entry-content blockquote, .text-columns__body blockquote {
	background: var(--brand-cream);
	border-left: 4px solid var(--brand-primary);
	border-radius: var(--radius-md);
	padding: 30px;
	margin: 24px 0;
}

.text-image__body blockquote p:last-child, .entry-content blockquote p:last-child { margin-bottom: 0; }

/* ---------- Card grid ---------- */

.card-grid { display: grid; gap: var(--gap); }
.card-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }

.card {
	display: flex;
	flex-direction: column;
	background: var(--brand-cream);
	border-radius: var(--radius-md);
	padding: 30px;
	text-decoration: none;
}

.block--tint .card, .card--white { background: var(--brand-white); }

.card__media { margin: -30px -30px 24px; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; }

/* Icon cards: small line-art mark in the top corner, not a cover image. */
.card--icon .card__media { margin: 0 0 22px; }

.card--icon .card__media img {
	width: auto;
	height: 42px;
	max-width: 56px;
	aspect-ratio: auto;
	object-fit: contain;
	object-position: left center;
	border-radius: 0;
}

.card__title { font-size: 24px; line-height: 32px; margin-bottom: 14px; }

.card__text { margin-bottom: 20px; }
.card .arrow-link { margin-top: auto; }

/* Image-led work cards: image background with overlaid title */
.card--work {
	position: relative;
	overflow: hidden;
	padding: 20px;
	background: var(--brand-panel);
	border-radius: var(--radius-md);
	justify-content: flex-end;
	min-height: 420px;
}

.card--work .card__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}



.card--work::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .6) 100%);
}

.card--work .card__overlay {
	position: relative;
	z-index: 2;
}

.card--work .card__title {
	color: var(--brand-white);
	margin: 0 0 16px;
	font-size: 32px;
	line-height: 42px;
	max-width: 480px;
}

.card--work .arrow-link { color: var(--brand-white); }

/* ---------- Work showcase (pink panel + carousel) ---------- */

.work-showcase {
	background: var(--brand-pink);
	border-radius: var(--radius-md);
	padding: 30px;
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 30px;
	align-items: center;
	color: var(--brand-white);
	overflow: hidden;
}

.work-showcase__heading { color: var(--brand-white); margin-bottom: 18px; }
.work-showcase__intro { margin-bottom: 22px; }
.work-showcase__intro strong { font-weight: 700; }

.work-showcase__viewport { overflow: hidden; }

.work-showcase__track {
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.work-showcase__track::-webkit-scrollbar { display: none; }

/* Sized to the artwork's own ratio (nearly all of these images are 588x484)
   so the client wordmarks printed into them are not cropped away. The title
   still sits over the image here, which is the look on desktop. */
.work-showcase__track .card--work {
	flex: 0 0 min(430px, 88%);
	scroll-snap-align: start;
	aspect-ratio: 588 / 484;
	min-height: 0;
}

.work-showcase__nav { display: flex; gap: 12px; margin-top: 20px; }

/* ---------- Carousel controls (shared) ---------- */

.carousel-nav__btn {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	border: 0;
	background: var(--brand-primary);
	color: var(--brand-black);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.carousel-nav__btn svg { width: 18px; height: 18px; fill: currentColor; }
.carousel-nav__btn:hover { background: var(--brand-black); color: var(--brand-white); }

.carousel-nav__btn.is-disabled {
	background: #fbe3ab;
	color: rgba(0, 0, 0, .45);
	cursor: default;
	pointer-events: none;
}

/* On the pink showcase panel the amber clashes — use white */
.work-showcase .carousel-nav__btn { background: var(--brand-white); color: var(--brand-black); }
.work-showcase .carousel-nav__btn:hover { background: var(--brand-black); color: var(--brand-white); }
.work-showcase .carousel-nav__btn.is-disabled { background: rgba(255, 255, 255, .45); color: rgba(0, 0, 0, .4); }

/* The blue testimonial panel clashes with amber in the same way. */
.testimonial-panel .carousel-nav__btn { background: var(--brand-white); color: var(--brand-black); }
.testimonial-panel .carousel-nav__btn:hover { background: var(--brand-black); color: var(--brand-white); }

/* ---------- Related services carousel ---------- */

.related-services__header,
.other-services__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 34px;
}

.related-services__header .section-heading { flex: 1 1 auto; max-width: none; margin-bottom: 0; }
.related-services__header .section-heading__title { margin-bottom: 10px; }
.related-services__header .section-heading__intro { max-width: 640px; }

.related-services__nav,
.other-services__nav { display: flex; gap: 12px; flex: 0 0 auto; }

.related-services__track,
.other-services__track {
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	display: flex;
	gap: 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 6px;
	margin-right: calc(50% - 50vw);
	padding-right: max(30px, calc(50vw - 50%));
}

.related-services__track::-webkit-scrollbar,
.other-services__track::-webkit-scrollbar { display: none; }

.related-services__track .card,
.other-services__track .card {
	flex: 0 0 min(370px, 86%);
	scroll-snap-align: start;
}

/* ---------- Image marquee strip (full width, continuous) ---------- */

.block--image-marquee { padding: 30px 0; }

.image-marquee { overflow: hidden; width: 100%; }

.image-marquee__track {
	display: flex;
	gap: 30px;
	width: max-content;
	padding-right: 30px;
	animation: fifteen-marquee 60s linear infinite;
}

.image-marquee__track img {
	flex: 0 0 auto;
	width: 480px;
	height: 360px;
	object-fit: cover;
	border-radius: var(--radius-md);
}

@keyframes fifteen-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-50% - 15px)); }
}

@media (prefers-reduced-motion: reduce) {
	.image-marquee { overflow-x: auto; }
	.image-marquee__track { animation: none; }
}

@media (max-width: 640px) {
	.image-marquee__track img { width: 300px; height: 225px; }
}

/* ---------- Logo split ---------- */

.logo-split__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: var(--gap);
	align-items: center;
}

.logo-split__heading { margin-bottom: 20px; }
.logo-split__intro { margin-bottom: 24px; }

.logo-split__logos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px 30px;
	align-items: center;
}

.logo-split__logos li { width: 100%; display: flex; justify-content: center; }

/* Cap the logo, but never let it outgrow its cell: at phone widths the cell
   is narrower than the cap and the logo would spill over both edges. */
.logo-split__logos img { width: auto; height: auto; max-width: min(165px, 100%); max-height: 125px; }

/* Full-width logo strip variant */
.logo-row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 30px 50px;
	align-items: center;
	justify-content: center;
}

.logo-row img { max-height: 90px; width: auto; max-width: 100%; }

/* ---------- Testimonials (blue panel) ---------- */

.testimonial-panel {
	position: relative;
	overflow: hidden;
	background: var(--brand-blue);
	border-radius: var(--radius-md);
	padding: 80px;
	color: var(--brand-white);
}

.testimonial-panel::before {
	content: '\201C';
	position: absolute;
	top: -210px;
	right: 30px;
	font-size: 600px;
	line-height: 1;
	font-weight: 700;
	color: rgba(255, 255, 255, .25);
	pointer-events: none;
}

.testimonial-panel__mark {
	display: block;
	font-size: 100px;
	line-height: .6;
	font-weight: 700;
	color: var(--brand-white);
	margin-bottom: 30px;
}

.testimonial-panel__heading { color: var(--brand-white); margin-bottom: 30px; }

.testimonial-panel__quote {
	margin: 0 0 24px;
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
	max-width: 860px;
}

.testimonial-panel__author {
	display: block;
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
	opacity: .6;
	margin-bottom: 30px;
}

.testimonial-panel__nav {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 14px;
	margin-top: 10px;
}

.testimonial-panel--multi .testimonial-panel__item { display: none; }
.testimonial-panel--multi .testimonial-panel__item.is-active { display: block; }

/* ---------- Stats ---------- */

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); text-align: center; }
.stat { background: var(--brand-cream); border-radius: var(--radius-md); padding: 40px 20px; }
.stat__value { display: block; font-size: 52px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }

/* ---------- CTA banner (cream, centred) ---------- */

.block--cta-banner { text-align: center; }

.cta-banner__heading { margin-bottom: 14px; }

.cta-banner__text { max-width: 640px; margin: 0 auto 28px; }

.cta-banner__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-banner__actions .btn { padding: 13px 26px; }

/* ---------- FAQs (pill accordion) ---------- */

.faqs { display: flex; flex-direction: column; gap: 18px; }

.faq { border-radius: var(--radius-md); }

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 22px;
	border-radius: var(--radius-md);
	background: var(--brand-cream);
	cursor: pointer;
	list-style: none;
	transition: background-color .2s ease;
}

.block--tint .faq__question { background: var(--brand-white); }

.faq__question::-webkit-details-marker { display: none; }

.faq__question h3 { margin: 0; font-size: 20px; line-height: 30px; }

.faq[open] .faq__question, .faq__question:hover { background: var(--brand-primary); }

.faq__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	transition: transform .25s ease;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.faq[open] .faq__icon { transform: rotate(180deg); }

.faq__answer { padding: 20px 2px 10px; }
.faq__answer p { margin-bottom: 12px; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.team-card {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--brand-cream);
}

/* Team photos arrive square and portrait alike, so the frame trims from
   the bottom of the shot — never the top, where the faces are. */
.team-card__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
	filter: grayscale(1);
}

.team-card__body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 50px 24px 20px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .72) 70%);
}

.team-card__name { margin: 0; font-size: 22px; line-height: 32px; color: var(--brand-white); }
.team-card__role { color: rgba(255, 255, 255, .8); font-size: 15px; margin: 2px 0 0; }

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

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

/* The title link covers the card, so the whole tile is clickable while
   the category and author keep their own destinations. */
.blog-card__title a { text-decoration: none; }

.blog-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.blog-card__cat, .blog-card__author { position: relative; z-index: 2; }

.blog-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-md);
}

.blog-card__media img { display: block; width: 100%; aspect-ratio: 720 / 510; object-fit: cover; }

/* Category chip sits on the image, matching the dev site's dark pill. */
.blog-card__cat {
	position: absolute;
	top: 16px; left: 16px;
	background: var(--brand-panel);
	color: var(--brand-white);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	padding: 7px 14px;
}

.blog-card__body { display: block; padding: 18px 0 0; }

.blog-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 20px;
	color: rgba(0, 0, 0, .6);
	margin-bottom: 8px;
}

.blog-card__meta .blog-card__author { color: var(--brand-black); font-weight: 700; text-decoration: none; }
.blog-card__meta .blog-card__author:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-card__cat:hover { background: var(--brand-primary); color: var(--brand-black); }

.blog-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(0, 0, 0, .45); }

.blog-card__title { font-size: 20px; line-height: 28px; margin: 0; }
.blog-card:hover .blog-card__title a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog archives ---------- */

.archive-banner { padding: 60px 0 80px; }

.archive-banner h1 { margin-bottom: 16px; }
.archive-banner__meta { font-size: 18px; }

/* Author, date and read time read as one line here, with the separator drawn
   in CSS so it can simply be dropped when they stack on a phone. */
.archive-banner__meta--post { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.archive-banner__meta--post .archive-banner__meta-item:not(:last-child)::after { content: '\00b7'; margin-left: 10px; }
.archive-banner__intro { font-size: 20px; line-height: 30px; max-width: 720px; margin-bottom: 20px; }
.archive-banner__intro p:last-child { margin-bottom: 0; }

.archive-banner__social { list-style: none; display: flex; gap: 12px; margin: 20px 0 0; padding: 0; }

.archive-banner__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--brand-black);
	transition: background-color .2s ease;
}

.archive-banner__social a:hover { background: var(--brand-primary); }
.archive-banner__social svg { width: 16px; height: 16px; fill: var(--brand-white); }
.archive-banner__social a:hover svg { fill: var(--brand-black); }

/* Single posts sit tight under the banner so the article starts high. */
.archive-banner--single { padding-bottom: 0; }
.block--single { padding-top: 34px; }

.entry-media { margin-bottom: 30px; }

.entry-media img {
	border-radius: var(--radius-md);
	width: 100%;
	max-height: 500px;
	object-fit: cover;
}

.post-chip {
	display: inline-block;
	background: var(--brand-panel);
	color: var(--brand-white);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	padding: 7px 14px;
	margin-bottom: 18px;
	text-decoration: none;
}

.post-chip--light {
	background: var(--brand-cream);
	color: var(--brand-black);
	margin: 0;
	transition: background-color .2s ease;
}

.post-chip--light:hover { background: var(--brand-primary); }

/* ---------- Single post layout + sidebar ---------- */

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 60px;
	align-items: start;
}

.post-sidebar { position: sticky; top: 120px; }

.post-sidebar__block {
	background: var(--brand-white);
	border: 1px solid #e6e6e6;
	border-radius: var(--radius-md);
	padding: 24px;
	margin-bottom: 24px;
}

.post-sidebar__more {
	margin-top: 14px;
	background: none;
	border: 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	color: var(--brand-black);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-sidebar__more:hover { color: #a8760a; }

.post-sidebar__title {
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	margin-bottom: 16px;
}

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

.post-sidebar__list li + li { border-top: 1px solid #f0f0f0; }

.post-sidebar__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	font-size: 15px;
	line-height: 22px;
	text-decoration: none;
	transition: color .2s ease;
}

.post-sidebar__list a:hover { color: #a8760a; }

.post-sidebar__count {
	background: var(--brand-cream);
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 10px;
}

.post-sidebar__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Tag chips run tighter than the black category chip they share styles
   with. `display: inline-block` on .post-chip beats the browser's own
   [hidden] rule, so the toggled-away chips need this to actually hide. */
.post-sidebar__tags .post-chip { font-size: 12px; padding: 5px 8px; }
.post-sidebar__tags .post-chip[hidden] { display: none; }

.post-sidebar__related { list-style: none; margin: 0; padding: 0; }
.post-sidebar__related li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; }

.post-sidebar__related a {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	text-decoration: none;
}

.post-sidebar__related img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	flex: none;
}

.post-sidebar__related-title {
	display: block;
	font-size: 15px;
	line-height: 22px;
	font-weight: 700;
	margin-bottom: 4px;
}

.post-sidebar__related a:hover .post-sidebar__related-title { text-decoration: underline; text-underline-offset: 3px; }
.post-sidebar__related-date { font-size: 13px; color: rgba(0, 0, 0, .6); }

.block--archive-grid { padding: var(--section-gap) 0; }

/* ---------- SEO audit form ---------- */

.audit-form {
	background: var(--brand-panel);
	border-radius: var(--radius-md);
	padding: 46px;
	color: var(--brand-white);
}

.audit-form__intro { max-width: 640px; margin-bottom: 28px; }
.audit-form__title { color: var(--brand-white); margin-bottom: 10px; }
.audit-form__text { opacity: .8; }
.audit-form__text p:last-child { margin-bottom: 0; }

.audit-form__fields {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	align-items: center;
}

.audit-form__field { display: block; }

.audit-form__field input {
	width: 100%;
	background: var(--brand-white);
	border: 1px solid #e3e3e3;
	border-radius: var(--radius-sm);
	color: var(--brand-black);
	font-family: var(--font-body);
	font-size: 16px;
	padding: 13px 16px;
}

.audit-form__field input::placeholder { color: #777; }
.audit-form__field input:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; }

.audit-form__submit { justify-content: center; height: 100%; min-height: 50px; }

/* ---------- Footer newsletter ---------- */

.site-footer__newsletter { margin-bottom: 50px; }

.newsletter {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(0, 1.35fr);
	gap: 34px;
	align-items: start;
	background: var(--brand-white);
	border: 1px solid #e6e6e6;
	border-radius: var(--radius-md);
	padding: 26px 32px;
}

.newsletter__intro { align-self: start; }

/* The form column keeps its row at the top, level with the heading, so
   whatever Contact Form 7 adds around the fields cannot shift it down. */
.newsletter__form {
	align-self: start;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.newsletter__form .wpcf7,
.newsletter__form .wpcf7-form { width: 100%; }

/* Contact Form 7 always prints the response element; empty it adds dead
   height that pushes the row off centre, so hide it until it says something. */
.newsletter__form .wpcf7-response-output:empty { display: none; margin: 0; border: 0; padding: 0; }
.newsletter__title { font-size: 20px; line-height: 28px; margin-bottom: 6px; }
.newsletter__text { margin: 0; font-size: 14px; line-height: 22px; opacity: .7; max-width: 46ch; }

/* One row on desktop: name, email, button. The hidden labels are
   absolutely positioned, so they take no column of their own. */
.newsletter__form .wpcf7-form > p {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.newsletter__form .wpcf7-form-control-wrap { display: block; }

.newsletter__form input[type="text"],
.newsletter__form input[type="email"] {
	width: 100%;
	background: var(--brand-white);
	border: 1px solid #d9d9d9;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 15px;
	padding: 11px 14px;
}

.newsletter__form input:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; }

.newsletter__form input[type="submit"] {
	background: var(--brand-black);
	color: var(--brand-white);
	border: 0;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	padding: 12px 26px;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.newsletter__form input[type="submit"]:hover { background: var(--brand-primary); color: var(--brand-black); }

.newsletter__form .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	font-size: 14px;
}

.newsletter__form .wpcf7-not-valid-tip { font-size: 13px; margin: -6px 0 8px; }

/* ---------- Video button + modal ---------- */

.service-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.btn--video {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.btn--video .btn__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--brand-black);
	flex: none;
	transition: background-color .2s ease;
}

.btn--video .btn__play svg {
	width: 9px;
	height: 9px;
	fill: var(--brand-primary);
	margin-left: 1px;
	transition: fill .2s ease;
}

/* On hover the button turns black, so the mark flips to white to sit
   with the white label. */
.btn--video:hover .btn__play,
.btn--video:focus-visible .btn__play { background: var(--brand-white); }

.btn--video:hover .btn__play svg,
.btn--video:focus-visible .btn__play svg { fill: var(--brand-black); }

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(0, 0, 0, .9);
}

.video-modal[hidden] { display: none; }

.video-modal__inner {
	position: relative;
	width: 100%;
	max-width: 1000px;
}

.video-modal__video,
.video-modal__embed {
	width: 100%;
	max-height: calc(100vh - 140px);
	border-radius: var(--radius-md);
	background: #000;
	display: block;
}

/* An iframe has no intrinsic size, so give the embedded player a shape. */
.video-modal__embed {
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

/* display:block above would otherwise beat the hidden attribute. */
.video-modal__video[hidden],
.video-modal__embed[hidden] { display: none; }

.video-modal__close {
	position: absolute;
	top: -54px;
	right: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--radius-md);
	background: var(--brand-primary);
	color: var(--brand-black);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.video-modal__close:hover { background: var(--brand-primary-alt); }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { margin-bottom: 20px; }

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 22px;
}

.breadcrumbs__item { display: flex; align-items: center; gap: 8px; color: rgba(0, 0, 0, .6); }

.breadcrumbs__item:not(:last-child)::after {
	content: "";
	width: 5px;
	height: 5px;
	border-top: 1.5px solid rgba(0, 0, 0, .35);
	border-right: 1.5px solid rgba(0, 0, 0, .35);
	transform: rotate(45deg);
}

.breadcrumbs__item a {
	color: var(--brand-black);
	font-weight: 600;
	text-decoration: none;
}

.breadcrumbs__item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs__item:last-child { font-weight: 600; }

/* Home is shown as an icon; its label stays for screen readers. */
.breadcrumbs__home { display: flex; align-items: center; }
.breadcrumbs__home:hover { text-decoration: none; }

.breadcrumbs__icon {
	width: 15px;
	height: 15px;
	fill: currentColor;
	transition: fill .2s ease;
}

.breadcrumbs__home:hover .breadcrumbs__icon { fill: #a8760a; }

/* On the service hero the trail sits above the image panel. */
.block--service-hero .breadcrumbs { margin-bottom: 18px; }

/* ---------- Author bio ---------- */

.author-bio {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	background: var(--brand-cream);
	border-radius: var(--radius-md);
	padding: 36px;
	margin-top: 50px;
}

.author-bio__avatar { flex: none; }

.author-bio__avatar img {
	display: block;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
}

.author-bio__eyebrow {
	font-size: 13px;
	line-height: 20px;
	font-weight: 700;
	opacity: .55;
	margin-bottom: 6px;
}

.author-bio__name { font-size: 24px; line-height: 32px; margin-bottom: 4px; }
.author-bio__role { font-weight: 700; margin-bottom: 14px; }
.author-bio__text { margin-bottom: 22px; }
.author-bio__text p:last-child { margin-bottom: 0; }

.author-bio__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }

.author-bio__social { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }

.author-bio__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--brand-black);
	transition: background-color .2s ease;
}

.author-bio__social a:hover { background: var(--brand-primary); }
.author-bio__social svg { width: 15px; height: 15px; fill: var(--brand-white); }
.author-bio__social a:hover svg { fill: var(--brand-black); }

/* ---------- Blog search ---------- */

.blog-search { margin-bottom: 34px; max-width: 520px; }

.blog-search__input {
	width: 100%;
	background: var(--brand-white);
	border: 1px solid #d9d9d9;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 16px;
	padding: 14px 18px;
}

.blog-search__input:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.blog-search__status { font-size: 14px; margin: 10px 0 0; opacity: .7; }

.archive-pagination { margin-top: 50px; display: flex; justify-content: center; }
.archive-pagination .nav-links { display: flex; gap: 8px; }
.archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: var(--radius-sm);
	background: var(--brand-cream);
	font-weight: 700;
	text-decoration: none;
}
.archive-pagination .page-numbers.current, .archive-pagination .page-numbers:hover { background: var(--brand-primary); }

/* ---------- Footer ---------- */

.site-footer {
	position: relative;
	overflow: hidden;
	background: url('../img/footer-bg.jpg') center / cover no-repeat, #f7ede1;
	padding: 60px 0 0;
	margin-top: 0;
}

.site-footer__cta {
	background: var(--brand-primary);
	border-radius: var(--radius-md);
	padding: 60px 30px;
	margin-bottom: 56px;
	text-align: center;
}

.site-footer__cta-heading { margin: 0; }
.site-footer__cta-heading a { color: inherit; text-underline-offset: 5px; }
.site-footer__cta-heading a:hover { text-decoration-thickness: 3px; }

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr) 240px;
	gap: var(--gap);
	margin-bottom: 40px;
}

.site-footer__badge { display: flex; justify-content: flex-end; align-items: flex-start; }

.site-footer__office h3, .site-footer__menu h3 { font-size: 20px; line-height: 30px; margin-bottom: 14px; }
.site-footer__office address { margin-bottom: 10px; }
.site-footer__contact-link { display: inline-block; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-top: 12px; margin-right: 100%; white-space: nowrap; }
.site-footer__contact-link:hover { color: var(--brand-primary); }

.site-footer__menu-list { list-style: none; margin: 0; padding: 0; }
.site-footer__menu-list a { display: inline-block; padding: 2px 0; text-decoration: none; }
.site-footer__menu-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__social { list-style: none; display: flex; gap: 20px; margin: 0 0 24px; padding: 0; }
.site-footer__social a { display: inline-flex; color: var(--brand-black); opacity: .75; transition: opacity .2s ease; }
.site-footer__social a:hover { opacity: 1; }
.site-footer__social-icon { width: 17px; height: 17px; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.site-footer__social-icon--linkedin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z'/%3E%3C/svg%3E"); }
.site-footer__social-icon--twitter { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E"); }
.site-footer__social-icon--instagram { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E"); }
.site-footer__social-icon--facebook { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/%3E%3C/svg%3E"); }
.site-footer__social-icon--youtube { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z'/%3E%3C/svg%3E"); }

.site-footer__meta {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}

.site-footer__legal { flex: 1; font-size: 12px; line-height: 18px; letter-spacing: .02em; text-transform: uppercase; }
.site-footer__legal p { margin: 0; }

.site-footer__awards { display: flex; gap: 14px; align-items: center; }
.site-footer__awards img { max-height: 48px; width: auto; }

.site-footer__brand { margin-top: 30px; }
.site-footer__brand img { width: 100%; height: auto; display: block; }

/* Contact Form 7 response styling */
.wpcf7 form .wpcf7-response-output {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 20px 0 0;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--brand-primary);
	color: var(--brand-on-primary);
	overflow-wrap: break-word;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
	/* Both containers are full width by now, so match their gutters: the wide
	   one's bigger padding otherwise insets its content past the content below. */
	.container--wide { padding: 0 15px; }

	/* Anchored to the header's own bottom edge rather than a hard-coded
	   96px: a header that grows — a longer logo, a larger text setting —
	   would otherwise end up underneath the panel. */
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100dvh - 100%);
		background: var(--brand-white);
		padding: 30px 20px;
		overflow-y: auto;
		display: none;
		z-index: 999;
	}

	.site-nav.is-open { display: block; }

	/* With the panel open the bar behind the logo turns white too, so the
	   two read as one sheet instead of a gradient strip above a panel. */
	.site-header:has(.site-nav.is-open) {
		background: var(--brand-white);
		box-shadow: none;
	}

	.site-nav__list { flex-direction: column; align-items: stretch; }
	.site-nav__list > li > a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid #eee6dc; white-space: normal; }

	.site-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		/* Flush with the parent items rather than indented under them. */
		padding: 0 0 10px;
		display: none;
	}

	.site-nav__list > li.is-open > .sub-menu { display: block; }

	.mega-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		padding: 0;
		display: none;
		/* The desktop panel sits behind the page with pointer-events:none until
		   .mega-open re-enables it on hover. Mobile opens with .is-open instead,
		   so without this every link in the panel is visible but untappable. */
		pointer-events: auto;
	}

	.site-nav__list > li.is-open .mega-menu { display: block; }
	.mega-menu__panel { display: block; box-shadow: none; padding: 0 0 10px; border-radius: 0; }
	.mega-menu__heading, .mega-menu__promo { display: none; }
	.mega-menu__links .sub-menu { display: block; padding: 0; }
	.site-nav__list .sub-menu a { padding: 10px 0; }

	.site-nav__cta-mobile { display: block; margin-top: 24px; }
	.site-header__cta { display: none; }

	.site-header__toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		margin-left: auto;
		width: 44px;
		height: 44px;
		padding: 10px;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.site-header__toggle-bar { display: block; width: 24px; height: 2px; background: var(--brand-black); transition: transform .2s ease, opacity .2s ease; }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) { opacity: 0; }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

	.site-nav { margin-left: 0; }
	.site-header__inner { gap: 16px; }
	.site-header__search { margin-left: auto; }
	.site-header__toggle { margin-left: 0; }

	.search-overlay__inner { padding: 34px 20px 40px; gap: 16px; }
	.search-overlay__input { font-size: 30px; line-height: 40px; }

	.home-hero__grid { grid-template-columns: 1fr; }
	.service-hero__grid { grid-template-columns: 1fr; }
	.home-hero__panel { min-height: 420px; }
	.work-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
	/* One case study at a time; the buttons move between them. */
	.work-showcase__track .card--work { flex-basis: 100%; }

	h1, h2, .home-hero__heading { font-size: 32px; line-height: 42px; }
	h3, .card__title, .card--work .card__title { font-size: 22px; line-height: 30px; }

	.lead, .page-title__intro, .section-heading__intro, .text-image__body > p:first-child { font-size: 18px; line-height: 28px; }

	.text-image__grid,
	.block--text-image-left .text-image__grid,
	.block--text-image-featured .text-image__grid,
	.logo-split__grid,
	.contact-panel, .single-layout, .newsletter { grid-template-columns: 1fr; }
	.audit-form { padding: 26px; }
	.audit-form__fields { grid-template-columns: 1fr; }
	.contact-panel, .single-layout { gap: 40px; }
	.newsletter { gap: 20px; padding: 24px; }
	.newsletter__form .wpcf7-form > p { grid-template-columns: 1fr; }
	.post-sidebar { position: static; }
	.author-bio { flex-direction: column; gap: 22px; padding: 28px; }
	.author-bio__avatar img { width: 84px; height: 84px; }
	.block--text-image-left .text-image__media { order: 0; }
	.text-columns, .text-columns--three { grid-template-columns: 1fr; gap: 40px; }
	.card-grid--cols-3, .card-grid--cols-4, .blog-grid, .job-grid { grid-template-columns: 1fr 1fr; }
	.case-study-grid { grid-template-columns: 1fr 1fr; }
	.image-row--count-3 { grid-template-columns: 1fr; }
	.case-study-intro { max-width: none; }
	.awards-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }

	/* At three columns a feature tile takes its height from the single
	   tiles sharing its two rows. At two it fills the row alone, so there
	   is nothing to size it and it collapses — give it its own ratio. */
	.portfolio-item--wide { grid-row: auto; aspect-ratio: 16 / 9; }
	.lightbox { padding: 20px; }
	.lightbox__btn { width: 44px; height: 44px; }
	.lightbox__prev { left: 8px; }
	.lightbox__next { right: 8px; }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
	.block { padding: 36px 0; }
	.block--page-title { padding: 60px 0; }

	/* Stack the three and drop the separators. */
	.archive-banner__meta--post { flex-direction: column; gap: 4px; }
	.archive-banner__meta--post .archive-banner__meta-item:not(:last-child)::after { content: none; }

	/* This banner runs straight into the article, so it carries no padding at
	   the bottom - the .block--page-title rule above would otherwise re-add it
	   and leave a large gap between the meta and the image. */
	.archive-banner--single { padding-top: 28px; padding-bottom: 0; }
	.block--single { padding-top: 18px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__badge { justify-content: flex-start; }
	.testimonial-panel { padding: 44px 30px; }
	.testimonial-panel::before { font-size: 360px; top: -130px; }
	.block--text-image-panel .text-image__panel { padding: 30px; }
	.block--cta-banner { padding: 36px 0; }
	.related-services__header,
	.other-services__header { flex-direction: column; align-items: flex-start; }
}

/* ---------- Search results ---------- */

.search-group { margin-top: 46px; }
.search-group:first-of-type { margin-top: 30px; }

.search-group__title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 24px;
	line-height: 32px;
	margin-bottom: 18px;
}

.search-group__count {
	background: var(--brand-cream);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	padding: 3px 10px;
}

.search-results { list-style: none; margin: 0; padding: 0; }
.search-result + .search-result { margin-top: 14px; }

.search-result__link {
	display: flex;
	align-items: center;
	gap: 22px;
	background: var(--brand-white);
	border: 1px solid #e6e6e6;
	border-radius: var(--radius-md);
	padding: 18px 22px;
	color: inherit;
	text-decoration: none;
	transition: border-color .2s ease;
}

.search-result__link:hover { border-color: var(--brand-black); }
.search-result__link:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

.search-result__media { flex: 0 0 auto; width: 96px; }

.search-result__media img {
	display: block;
	width: 96px;
	height: 68px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

.search-result__body { flex: 1 1 auto; min-width: 0; }

.search-result__title { display: block; font-size: 18px; font-weight: 700; line-height: 26px; }
.search-result__text { display: block; font-size: 15px; line-height: 24px; color: rgba(0, 0, 0, .7); margin-top: 4px; }

.search-result__url {
	display: block;
	font-size: 13px;
	line-height: 20px;
	color: rgba(0, 0, 0, .45);
	margin-top: 6px;
	overflow-wrap: anywhere;
}

.search-result__link .btn__arrow { flex: 0 0 auto; transition: transform .2s ease; }
.search-result__link:hover .btn__arrow { transform: translateX(4px); }

.search-empty { font-size: 18px; line-height: 28px; margin-top: 30px; }

@media (max-width: 640px) {
	.search-result__link { gap: 16px; padding: 16px; }
	.search-result__media, .search-result__media img { width: 68px; }
	.search-result__media img { height: 52px; }
	.search-result__link .btn__arrow { display: none; }
}

/* ---------- Infographics ---------- */

.infographic-panels { margin: 0 0 30px; }

.infographic-panels__img { display: block; width: 100%; height: auto; }

/* Slices of one tall graphic: no gap, no radius between them, so the
   original artwork is rebuilt seamlessly. Only the outer corners round. */
.infographic-panels--sliced { font-size: 0; border-radius: var(--radius-md); overflow: hidden; }

.infographic-panels--single .infographic-panels__img { border-radius: var(--radius-md); }

/* Equally sized panels are separate cards. */
.infographic-panels--tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.infographic-panels--tiles .infographic-panels__item {
	display: block;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.infographic-panels--tiles .infographic-panels__item:focus-visible {
	outline: 2px solid var(--brand-primary);
	outline-offset: 3px;
}

.infographic-source { font-size: 14px; line-height: 22px; color: rgba(0, 0, 0, .6); }

@media (max-width: 640px) {
	.infographic-panels--tiles { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.card-grid--cols-2, .card-grid--cols-3, .card-grid--cols-4, .blog-grid, .job-grid { grid-template-columns: 1fr; }
	.case-study-grid, .image-row--count-2, .awards-grid, .portfolio-grid,
	.testimonial-grid { grid-template-columns: 1fr; }
	.portfolio-item__overlay { opacity: 1; }

	/* One column: spanning two would invent a phantom second column. */
	.portfolio-item--wide { grid-column: auto; grid-row: auto; }
	.portfolio-grid { gap: 16px; }

	/* A single tile per row here, so nothing needs a shared ratio to line up:
	   let each picture set its own height instead of cropping to 16:9. */
	.portfolio-item,
	.portfolio-item--wide { aspect-ratio: auto; }

	.portfolio-item__img {
		position: relative;
		height: auto;
	}
	.site-footer__grid { grid-template-columns: 1fr; }
	.team-grid { grid-template-columns: 1fr; }
	.home-hero__panel { padding: 20px; min-height: 340px; }

	/* Phones get the still rather than the background video: it saves a large
	   autoplay download on mobile data and reads more clearly at this size. */
	.home-hero__video { display: none; }

	.home-hero__still {
		display: block;
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		opacity: .85;
	}
	.home-hero__content { padding: 10px; }
	.home-hero__link { padding: 22px 24px; min-height: 90px; font-size: 18px; }
	.logo-split__logos { grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
	.service-hero__panel { padding: 20px; min-height: 420px; }
	.site-footer__cta { padding: 36px 20px; }
	.faq__question h3 { font-size: 17px; line-height: 26px; }
	.work-showcase { padding: 20px; }

	/* The case study artwork carries client wordmarks, so cropping it into a
	   portrait card sliced 40% off its width and cut the lettering in half.
	   Let each image keep its own ratio and sit the title underneath, the same
	   treatment the case study grid gets on touch. */
	.work-showcase__track .card--work {
		min-height: 0;
		/* Stacked here, so the card is image plus caption rather than a fixed
		   picture ratio. */
		aspect-ratio: auto;
		padding: 0;
		/* The cards stretch to match the tallest, so content pinned to the
		   bottom makes each image start at a different height as you page
		   through. Start them from the top instead. */
		justify-content: flex-start;
		/* No card panel here - the image is its own rounded tile and the caption
		   sits straight on the pink. */
		background: transparent;
		overflow: visible;
	}

	.work-showcase__track .card--work .card__bg {
		position: relative;
		flex: 0 0 auto;
		width: 100%;
		height: auto;
		border-radius: var(--radius-md);
	}

	/* The gradient exists to lift text off the image; with the text below it
	   would just dim the artwork. */
	.work-showcase__track .card--work::after { display: none; }

	/* No side padding so the caption lines up with the image's left edge. */
	.work-showcase__track .card--work .card__overlay {
		padding: 18px 0 0;
		text-align: left;
	}
	.card--work { min-height: 340px; }
}

/* ==========================================================================
   New customer registration form
   The page reuses .contact-panel__form so its fields match the contact page.
   These additions only cover the radio groups that form introduces — the
   contact page's own form has none, so nothing there is affected.
   ========================================================================== */
.contact-panel__form .wpcf7 .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0 0 20px;
}

.contact-panel__form .wpcf7 .wpcf7-list-item { margin: 0; }

/* Option labels sit inline against their control, so they have to override
   the block/bold field-label rule declared earlier in this file. */
.contact-panel__form .wpcf7 .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	margin: 0;
	cursor: pointer;
}

.contact-panel__form .wpcf7 input[type="radio"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--brand-primary);
}

/* ==========================================================================
   Other Services — sibling service links, using the related-services
   carousel. The shared track/nav/header rules are grouped onto these class
   names further up this file, and the cards use the standard .card anatomy,
   so there is very little left to style here.
   ========================================================================== */
.other-services__heading-group { flex: 1 1 auto; max-width: 640px; }
.other-services__heading { margin: 0; }

/* Matches the related-services intro: same size, same measure. */
.other-services__intro { margin-top: 10px; font-size: 20px; line-height: 30px; }
.other-services__intro p { margin: 0; }

/* .card__title is normally an h3. As a span it needs to be a block for the
   title's bottom margin to apply, and to be given the weight it would
   otherwise inherit from the heading — 700, matching the related cards. */
.other-services__card .card__title {
	display: block;
	font-weight: 700;
}

/* ==========================================================================
   Offices Panel — contact details on the same blue panel as testimonials.
   ========================================================================== */
.offices-panel {
	display: grid;
	grid-template-columns: 3fr 1fr;
	gap: 40px;
	background: var(--brand-blue);
	border-radius: var(--radius-md);
	padding: 60px;
	color: var(--brand-white);
}

.offices-panel--no-map { grid-template-columns: 1fr; }

.offices-panel__details {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

/* Hairline rules between columns, as on the live panel. */
.offices-panel__office + .offices-panel__office {
	border-left: 1px solid rgba(255, 255, 255, .35);
	padding-left: 40px;
}

.offices-panel__name {
	color: var(--brand-white);
	font-size: 22px;
	line-height: 30px;
	margin-bottom: 20px;
}

.offices-panel__contact { margin-bottom: 20px; }
.offices-panel__contact a { color: var(--brand-white); font-weight: 700; text-decoration: none; }
.offices-panel__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.offices-panel__address { font-weight: 700; margin: 0; }

.offices-panel__times { list-style: none; margin: 0; padding: 0; font-weight: 700; }
.offices-panel__times li { margin: 0 0 6px; }

.offices-panel__map {
	border-radius: var(--radius-sm);
	overflow: hidden;
	min-height: 260px;
}

.offices-panel__map iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; }

@media (max-width: 991px) {
	.offices-panel { grid-template-columns: 1fr; padding: 44px 30px; gap: 30px; }
	.offices-panel__details { grid-template-columns: 1fr; gap: 30px; }
	/* Stacked, the vertical rules become horizontal ones. */
	.offices-panel__office + .offices-panel__office {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .35);
		padding-top: 30px;
	}
}

/* ==========================================================================
   Trust rail — compact fixed proof-point panel, desktop only.
   Sits in the gutter beside the 1170px container; a script collapses it to a
   slim tab when the viewport cannot clear that column, so it never overlaps
   the page. Hidden entirely on tablet and below.
   ========================================================================== */
.trust-rail {
	position: fixed;
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
	z-index: 90;
	display: flex;
	align-items: center;
	font-family: var(--font-body);
}

.trust-rail__panel {
	width: 206px;
	background: var(--brand-panel);
	color: var(--brand-white);
	border-radius: var(--radius-md);
	padding: 18px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.trust-rail__heading {
	font-size: 18px;
	line-height: 22px;
	font-weight: 800;
	text-transform: capitalize;
	margin: 0;
}

.trust-rail__heading span { display: block; color: var(--brand-primary); }

.trust-rail__sub {
	font-size: 12px;
	line-height: 17px;
	text-transform: capitalize;
	color: rgba(255, 255, 255, .7);
	margin: 6px 0 0;
}

.trust-rail__label-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.trust-rail__label-link:hover,
.trust-rail__label-link:focus-visible { color: var(--brand-primary); }

.trust-rail__stats { list-style: none; margin: 15px 0 0; padding: 0; }

.trust-rail__stats li {
	border-top: 1px solid rgba(255, 255, 255, .14);
	margin-top: 12px;
	padding-top: 12px;
}

.trust-rail__value {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 25px;
	line-height: 29px;
	font-weight: 800;
}

.trust-rail__suffix {
	display: inline-flex;
	align-items: center;
	color: var(--brand-primary);
	font-size: 16px;
	line-height: 1;
	font-weight: 800;
}

.trust-rail__suffix--star svg { display: block; width: 14px; height: 14px; fill: var(--brand-primary); }

.trust-rail__label {
	display: block;
	font-size: 12px;
	line-height: 16px;
	text-transform: capitalize;
	/* Short labels sit on one line at this width; the longer default-set
	   wording wraps rather than overflowing the panel. */
	color: rgba(255, 255, 255, .7);
	margin-top: 3px;
}

/* Smaller than the page buttons — this one must not shout. */
.trust-rail__cta.trust-rail__cta {
	display: flex;
	width: 100%;
	justify-content: center;
	margin-top: 16px;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 20px;
	gap: 8px;
	border-radius: var(--radius-md);
	text-transform: capitalize;
}

/* Stay yellow on hover so it keeps its prominence — just a deeper tone. */
.trust-rail__cta.trust-rail__cta:hover,
.trust-rail__cta.trust-rail__cta:focus-visible {
	background: #d99703;
	color: var(--brand-on-primary);
}

.trust-rail__cta .btn__arrow svg { width: 14px; height: 14px; }

/* ---- the collapse tab ---- */
.trust-rail__toggle {
	display: flex;
	align-items: center;
	gap: 7px;
	background: var(--brand-panel);
	color: var(--brand-white);
	border: 0;
	/* The tab is rotate(180deg) so the vertical label reads upward, which
	   swaps the corners: this reads as right-rounded but renders left. */
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	padding: 16px 9px;
	margin-right: 0;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 700;
	text-transform: capitalize;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.trust-rail__toggle:hover { color: var(--brand-primary); }

.trust-rail__chevron svg {
	width: 9px;
	height: 9px;
	fill: currentColor;
	display: block;
	transform: rotate(90deg);
	transition: transform .2s ease;
}

/* Collapse by sliding the panel out to the right. Its width is held constant
   and the space is taken back with a negative margin, so the text never
   reflows mid-animation. */
.trust-rail.is-ready .trust-rail__panel {
	transition: opacity .22s ease, transform .34s cubic-bezier(.4, 0, .2, 1),
	            margin-right .34s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
}

.trust-rail.is-ready .trust-rail__toggle { transition: border-radius .34s ease; }

.trust-rail.is-collapsed .trust-rail__panel {
	opacity: 0;
	visibility: hidden;
	transform: translateX(14px);
	/* Must match the panel width above, or it will not fully tuck away. */
	margin-right: -206px;
	pointer-events: none;
}

.trust-rail.is-ready.is-collapsed .trust-rail__panel { transition-delay: 0s, 0s, 0s, .34s; }
.trust-rail.is-collapsed .trust-rail__toggle { border-radius: var(--radius-md); }
.trust-rail.is-collapsed .trust-rail__chevron svg { transform: rotate(-90deg); }

/* Tablet and below: the rail is too big to be worth the room. */
@media (max-width: 1260px) {
	.trust-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.trust-rail__chevron svg,
	.trust-rail.is-ready .trust-rail__panel,
	.trust-rail.is-ready .trust-rail__toggle { transition: none; }
}

/* ==========================================================================
   Home hero video — crop out the burnt-in watermark.
   The source carries a Fifteen logo in the top-left of the frame (x 44-149,
   y 51-77 of 1920x1080, i.e. the first ~8%). Growing the video from its
   bottom-right corner pushes that corner outside the panel whatever aspect
   ratio the panel happens to be at.
   ========================================================================== */
.home-hero__panel { overflow: hidden; }

.home-hero__video {
	transform: scale(1.1);
	transform-origin: 100% 100%;
}

/* ---------- Related blogs ---------- */

.block--related-blogs {
	padding-top: calc(var(--section-gap) + 20px);
	padding-bottom: calc(var(--section-gap) + 20px);
}

/* Two untinted sections in a row share one gap; keep the extra 20px there. */
.block:not(.block--tint) + .block--related-blogs:not(.block--tint) { padding-top: 20px; }

/* Heading on the left, "View More" sitting on its baseline to the right. */
.related-blogs__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 34px;
}

.related-blogs__header .section-heading { flex: 1 1 auto; max-width: none; margin-bottom: 0; }
.related-blogs__header .section-heading__title { margin-bottom: 0; }
.related-blogs__header .section-heading__intro { max-width: 640px; margin-top: 10px; }
.related-blogs__actions { flex: 0 0 auto; }

/* Three cards abreast have nothing to scroll, so the arrows only exist at the
   width the grid drops to a single column. */
.related-blogs__nav { display: none; gap: 12px; flex: 0 0 auto; }

@media (max-width: 640px) {
	/* Heading and arrows share the top line; "View More" wraps underneath. */
	.related-blogs__header {
		flex-wrap: wrap;
		align-items: center;
		gap: 20px;
		margin-bottom: 26px;
	}

	/* Sized from what is left rather than from the text: at its natural width
	   the heading claims the whole line and wraps the arrows onto the next. */
	.related-blogs__header .section-heading { flex: 1 1 0; min-width: 0; }

	.related-blogs__nav { display: flex; }
	.related-blogs__actions { flex: 1 0 100%; }

	/* One post at a time. Scoped to this block so the blog archive keeps its
	   own stacked grid. */
	.block--related-blogs .blog-grid {
		display: flex;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.block--related-blogs .blog-grid::-webkit-scrollbar { display: none; }

	.block--related-blogs .blog-grid > .blog-card {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}
}

/* ---------- end Related blogs ---------- */
