/* ==========================================================================
   Service page components (single-services.php, template-parts/service/)
   Everything is scoped to .svc-hero, .svc, body.single-services or
   body.red-case-study so other pages are unaffected.
   ========================================================================== */

.svc-hero,
.svc {
	--svc-red: #c50c21;
	--svc-red-dark: #9f0a1a;
	--svc-ink: #0d0d0d;
	--svc-light: #f3f2f0;
	--svc-muted: rgba(13, 13, 13, 0.7);
	--svc-line: rgba(13, 13, 13, 0.14);
	--svc-focus: #0d0d0d;

	--svc-max: 80rem;
	--svc-gutter: clamp(1.5rem, 5vw, 2.5rem);
	--svc-pad: clamp(4.5rem, 2.75rem + 6vw, 9rem);
	--svc-gap: clamp(2rem, 1rem + 3vw, 5rem);

	--svc-fs-hero: clamp(2.25rem, 1rem + 6.2vw, 7.25rem);
	--svc-fs-statement: clamp(2rem, 1.1rem + 3.4vw, 4.5rem);
	--svc-fs-h2: clamp(1.875rem, 1.3rem + 2vw, 3.25rem);
	--svc-fs-h3: clamp(1.1875rem, 1.05rem + 0.45vw, 1.5rem);
	--svc-fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
	--svc-fs-body: 1.0625rem;
	--svc-fs-small: 0.8125rem;

	font-family: 'Gilroy', sans-serif;
	-webkit-font-smoothing: antialiased;
}

@media (min-width: 1025px) {
	.svc-hero,
	.svc {
		--svc-gutter: clamp(6rem, 8vw, 10rem);
	}
}

.svc {
	background: #fff;
	color: var(--svc-ink);
}

.svc *,
.svc-hero * {
	box-sizing: border-box;
}

.svc-container {
	width: 100%;
	max-width: calc(var(--svc-max) + 2 * var(--svc-gutter));
	margin-inline: auto;
	padding-inline: var(--svc-gutter);
}

/*
 * The theme sets p { font-size: 18px !important; margin: 0 0 30px !important }, h2/h3 sizes and
 * ol li { color: #000 }. :where() keeps these resets at single-class specificity so component
 * classes below can override them.
 */
.svc :where(p),
.svc-hero :where(p) {
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit;
	margin: 0 0 1em !important;
}

.svc :where(p:last-child),
.svc-hero :where(p:last-child) {
	margin-bottom: 0 !important;
}

.svc :where(h2, h3),
.svc-hero :where(h1) {
	font-family: 'Gilroy', sans-serif;
	color: inherit;
	margin: 0;
	padding: 0;
}

.svc :where(ul, ol),
.svc-hero :where(ul, ol) {
	list-style: none;
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

.svc :where(li),
.svc-hero :where(li) {
	color: inherit;
}

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

/* --------------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------- */

.svc-section {
	position: relative;
	padding-block: var(--svc-pad);
}

.svc-section--white {
	background: #fff;
}

.svc-section--light {
	background: var(--svc-light);
}

.svc-section--red,
.svc-section--dark {
	--svc-muted: rgba(255, 255, 255, 0.78);
	--svc-line: rgba(255, 255, 255, 0.2);
	--svc-focus: #fff;
	color: #fff;
}

.svc-section--red {
	background: var(--svc-red);
}

.svc-section--dark {
	background: var(--svc-ink);
}

/* Consecutive sections on the same background share one gap, not two. */
.svc-section--white + .svc-section--white,
.svc-section--light + .svc-section--light {
	padding-top: 0;
}

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

.svc-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--svc-fs-small) !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em;
	line-height: 1.4 !important;
	text-transform: uppercase;
	color: var(--svc-red);
	margin: 0 0 1.5rem !important;
}

.svc-eyebrow::before {
	content: '';
	flex: none;
	width: 2rem;
	height: 2px;
	background: var(--svc-red);
}

.svc-section--red .svc-eyebrow,
.svc-section--dark .svc-eyebrow,
.svc-hero .svc-eyebrow {
	color: rgba(255, 255, 255, 0.82);
}

.svc-section--red .svc-eyebrow::before {
	background: #fff;
}

.svc-statement {
	font-size: var(--svc-fs-statement) !important;
	font-weight: 800 !important;
	line-height: 1.06 !important;
	letter-spacing: -0.025em;
	text-wrap: balance;
	max-width: 22ch;
}

.svc-statement--small {
	font-size: var(--svc-fs-h2) !important;
	max-width: 28ch;
}

.svc-h2 {
	font-size: var(--svc-fs-h2) !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
	letter-spacing: -0.02em;
	text-wrap: balance;
	margin-bottom: 0.6em !important;
}

.svc-h3 {
	font-size: var(--svc-fs-h3) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em;
	margin-bottom: 0.5em !important;
}

.svc-lead {
	font-size: var(--svc-fs-lead) !important;
	line-height: 1.6 !important;
	color: var(--svc-muted);
	max-width: 40rem;
	text-wrap: pretty;
}

.svc-prose {
	font-size: var(--svc-fs-body);
	line-height: 1.75;
	color: var(--svc-muted);
	text-wrap: pretty;
}

.svc-prose p {
	margin-bottom: 1.15em !important;
}

.svc-prose p:last-child {
	margin-bottom: 0 !important;
}

.svc-prose h3 {
	font-size: var(--svc-fs-h3);
	font-weight: 700;
	line-height: 1.3;
	color: var(--svc-ink);
	margin: 1.6em 0 0.5em;
}

.svc-prose ul,
.svc-prose ol {
	margin: 0 0 1.15em;
	padding-left: 1.25em;
}

.svc-prose ul {
	list-style: disc;
}

.svc-prose ol {
	list-style: decimal;
}

.svc-prose li {
	margin-bottom: 0.4em;
}

.svc-prose li::marker {
	color: var(--svc-red);
}

.svc-prose a {
	color: var(--svc-ink);
	text-decoration: underline;
	text-decoration-color: var(--svc-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.svc-prose a:hover {
	opacity: 1;
	color: var(--svc-red);
}

.svc-section--red .svc-prose,
.svc-section--dark .svc-prose {
	color: var(--svc-muted);
}

.svc-section--red .svc-prose a,
.svc-section--dark .svc-prose a {
	color: #fff;
	text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   Buttons and links
   ----------------------------------------------------------------------- */

.svc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}

.svc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	min-height: 3.25rem;
	padding: 1rem 1.75rem;
	border-radius: 4px;
	font-family: 'Gilroy', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.svc-btn--large {
	min-height: 3.75rem;
	padding: 1.15rem 2.25rem;
	font-size: 1.0625rem;
}

.svc-btn:hover,
.svc-textlink:hover {
	opacity: 1;
}

.svc-btn--red,
.svc-btn--red:focus {
	background: var(--svc-red);
	color: #fff;
}

.svc-btn--red:hover {
	background: var(--svc-red-dark);
	color: #fff;
}

.svc-btn--white,
.svc-btn--white:focus {
	background: #fff;
	color: var(--svc-red);
}

.svc-btn--white:hover {
	background: var(--svc-ink);
	color: #fff;
}

.svc-arrow {
	flex: none;
	transition: transform 0.25s ease;
}

.svc-btn:hover .svc-arrow,
.svc-textlink:hover .svc-arrow,
.svc-related__link:hover .svc-arrow {
	transform: translateX(4px);
}

.svc-textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding-bottom: 0.2rem;
	border-bottom: 2px solid var(--svc-red);
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.svc-textlink:hover {
	color: var(--svc-red);
}

.svc-textlink--light {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.55);
}

.svc-textlink--light:hover {
	color: #fff;
	border-bottom-color: #fff;
}

.svc a:focus-visible,
.svc-hero a:focus-visible,
.svc summary:focus-visible {
	outline: 3px solid var(--svc-focus);
	outline-offset: 4px;
}

.svc-btn--red:focus-visible {
	outline-color: var(--svc-focus);
}

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

.svc-hero {
	--svc-focus: #fff;
	height: auto;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	transition: color 0.3s ease;
}

.svc-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.3) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 45%);
	transition: opacity 0.3s ease;
}

.svc-hero .svc-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	z-index: -2;
}

.svc-hero .video-wrapper {
	z-index: -2;
}

/* Hero without an image: a dark backdrop that fades out on scroll like a photo would. */
.svc-hero .svc-hero__plain {
	background:
		radial-gradient(ellipse 60% 70% at 85% 30%, rgba(197, 12, 33, 0.38), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 6rem,
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 6rem 100%,
		#111;
}

.svc-hero__content {
	width: 100%;
	padding-block: clamp(8rem, 6rem + 6vw, 11rem) clamp(4rem, 3rem + 3vw, 6rem);
}

.svc-hero__title {
	font-size: var(--svc-fs-hero) !important;
	font-weight: 900 !important;
	line-height: 0.98 !important;
	letter-spacing: -0.035em;
	max-width: 14ch;
	text-wrap: balance;
	overflow-wrap: break-word;
	margin: 0 0 2rem !important;
}

.svc-hero__title::after {
	content: '.';
	color: var(--svc-red);
}

.svc-hero__intro {
	font-size: clamp(1.125rem, 1rem + 0.55vw, 1.5rem) !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	max-width: 38rem;
	color: rgba(255, 255, 255, 0.86);
	text-wrap: pretty;
	margin-bottom: 2.5rem !important;
}

.svc-hero .down-arrow {
	display: block;
	margin: clamp(2.5rem, 5vw, 4.5rem) 0 0 0.25rem;
}

.svc-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.72);
}

.svc-breadcrumb li + li::before {
	content: '/';
	margin: 0 0.6rem;
	opacity: 0.6;
}

.svc-breadcrumb a {
	color: #fff;
}

/* The theme fades the hero image out and switches to a white page once you scroll. */
.white .svc-hero {
	color: var(--svc-ink);
	--svc-focus: var(--svc-ink);
}

.white .svc-hero::before {
	opacity: 0;
}

.white .svc-hero .svc-eyebrow,
.white .svc-breadcrumb ol {
	color: var(--svc-muted);
}

.white .svc-hero__intro {
	color: var(--svc-muted);
}

.white .svc-breadcrumb a,
.white .svc-hero .svc-textlink--light {
	color: var(--svc-ink);
}

.white .svc-hero .svc-textlink--light {
	border-bottom-color: var(--svc-red);
}

/* --------------------------------------------------------------------------
   Introductory statement
   ----------------------------------------------------------------------- */

.svc-intro .svc-container {
	display: grid;
	gap: clamp(2rem, 1rem + 2.5vw, 4rem);
}

@media (min-width: 1024px) {
	.svc-intro .svc-container {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.svc-intro__head {
		grid-column: 1 / -1;
	}

	.svc-intro__body {
		grid-column: 6 / -1;
	}
}

.svc-intro__body {
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

/* --------------------------------------------------------------------------
   Features / capabilities
   ----------------------------------------------------------------------- */

.svc-features__layout {
	display: grid;
	gap: var(--svc-gap);
}

.svc-feature {
	position: relative;
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	align-content: start;
	gap: 0.5rem 1.25rem;
	padding-block: 1.75rem;
	border-top: 1px solid var(--svc-line);
}

.svc-feature::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--svc-red);
	transition: width 0.45s ease;
}

.svc-feature:hover::before {
	width: 100%;
}

.svc-feature__num {
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.9;
	color: var(--svc-red);
}

.svc-feature p {
	font-size: var(--svc-fs-body) !important;
	line-height: 1.7 !important;
	color: var(--svc-muted);
	max-width: 36rem;
}

.svc-feature .svc-textlink {
	margin-top: 1rem;
}

.svc-features--numbered .svc-feature:last-child {
	border-bottom: 1px solid var(--svc-line);
}

@media (min-width: 1024px) {
	.svc-features--numbered .svc-features__layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.svc-features--numbered .svc-features__head {
		position: sticky;
		top: 7rem;
		align-self: start;
	}
}

.svc-features--grid .svc-features__head {
	max-width: 46rem;
}

.svc-features--grid .svc-features__list {
	display: grid;
	gap: 0 var(--svc-gap);
}

.svc-features--grid .svc-feature {
	grid-template-columns: minmax(0, 1fr);
	padding-block: 2rem 2.5rem;
}

@media (min-width: 700px) {
	.svc-features--grid .svc-features__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.svc-features--grid .svc-features__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   Feature statement (red / dark)
   ----------------------------------------------------------------------- */

.svc-statement-block {
	display: grid;
	gap: 2rem var(--svc-gap);
}

.svc-statement-block .svc-prose {
	font-size: var(--svc-fs-lead);
	line-height: 1.6;
}

.svc-statement-block .svc-btn {
	margin-top: 2rem;
}

@media (min-width: 1024px) {
	.svc-statement-block {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: end;
	}
}

/* --------------------------------------------------------------------------
   Text and image
   ----------------------------------------------------------------------- */

.svc-media__grid {
	display: grid;
	gap: clamp(2.5rem, 1rem + 4vw, 6rem);
	align-items: center;
}

.svc-media__text {
	max-width: 36rem;
}

.svc-media__text .svc-textlink {
	margin-top: 1.5rem;
}

.svc-media__figure {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--svc-light);
}

.svc-media__figure .svc-media__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.svc-media__figure:hover .svc-media__img {
	transform: scale(1.03);
}

.svc-media__placeholder {
	width: 100%;
	height: 100%;
	background:
		repeating-linear-gradient(135deg, rgba(13, 13, 13, 0.05) 0 1px, transparent 1px 16px),
		var(--svc-light);
}

@media (min-width: 900px) {
	.svc-media__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.svc-media--image-left .svc-media__figure {
		order: -1;
	}

	.svc-media--large .svc-media__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.svc-media--large.svc-media--image-left .svc-media__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.svc-media--large .svc-media__figure {
		aspect-ratio: 3 / 2;
	}

	.svc-media--image-left .svc-media__captioned {
		order: -1;
	}
}

.svc-media__captioned {
	margin: 0;
}

.svc-media__caption {
	margin-top: 0.875rem;
	font-size: var(--svc-fs-small);
	line-height: 1.5;
	color: var(--svc-muted);
}

.svc-media--portrait .svc-media__figure {
	aspect-ratio: 3 / 4;
}

.svc-media--portrait .svc-media__captioned,
.svc-media--portrait .svc-media__grid > .svc-media__figure {
	width: 100%;
	max-width: 30rem;
	justify-self: center;
}

/* --------------------------------------------------------------------------
   Checklist
   ----------------------------------------------------------------------- */

.svc-list__layout {
	display: grid;
	gap: clamp(2rem, 1rem + 2.5vw, 3.5rem) var(--svc-gap);
}

.svc-list__head {
	max-width: 46rem;
}

.svc-list__items {
	display: grid;
	gap: 0 var(--svc-gap);
	border-top: 1px solid var(--svc-line);
}

.svc-list__item {
	position: relative;
	padding: 1.1rem 0 1.1rem 1.75rem;
	border-bottom: 1px solid var(--svc-line);
	font-size: var(--svc-fs-body);
	font-weight: 600;
	line-height: 1.45;
}

.svc-list__item::before {
	content: '';
	position: absolute;
	top: 1.6rem;
	left: 0;
	width: 0.75rem;
	height: 2px;
	background: var(--svc-red);
}

@media (min-width: 640px) {
	.svc-list__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.svc-list__layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}
}

/* --------------------------------------------------------------------------
   Services page directory
   ----------------------------------------------------------------------- */

.svc-group__layout {
	display: grid;
	gap: clamp(2rem, 1rem + 2.5vw, 3.5rem) var(--svc-gap);
}

.svc-group .svc-related__title {
	font-size: var(--svc-fs-h3) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	transition: color 0.2s ease;
}

.svc-group .svc-related__link:hover .svc-related__title {
	color: var(--svc-red);
}

.svc-group .svc-related__blurb {
	font-size: 1rem;
	line-height: 1.6;
	max-width: 40rem;
}

@media (min-width: 1024px) {
	.svc-group__layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}

	.svc-group__head {
		position: sticky;
		top: 7rem;
	}
}

/* --------------------------------------------------------------------------
   Process
   ----------------------------------------------------------------------- */

.svc-process__head {
	max-width: 46rem;
	margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.svc-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	counter-reset: none;
}

.svc-step {
	position: relative;
	padding: 2rem 0 2.75rem;
	border-top: 1px solid var(--svc-line);
}

.svc-step::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 3rem;
	height: 2px;
	background: var(--svc-red);
}

.svc-step__num {
	display: block;
	margin-bottom: 1.25rem;
	font-size: clamp(2.5rem, 2rem + 1.6vw, 3.75rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--svc-red);
}

.svc-step p {
	font-size: 1rem !important;
	line-height: 1.7 !important;
	color: var(--svc-muted);
}

@media (min-width: 640px) {
	.svc-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.svc-step {
		padding-right: clamp(1.5rem, 3vw, 3rem);
	}
}

@media (min-width: 1100px) {
	.svc-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   Related work and related services
   ----------------------------------------------------------------------- */

.svc-work__head,
.svc-related__head {
	max-width: 46rem;
	margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.svc-work__grid {
	display: grid;
	gap: 2.5rem var(--svc-gap);
}

@media (min-width: 640px) {
	.svc-work__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.svc-work__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.svc-work__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.svc-work__link:hover {
	opacity: 1;
}

.svc-work__figure {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--svc-light);
	margin-bottom: 1.25rem;
}

.svc-work__figure img,
.svc-work__figure .svc-media__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.svc-work__link:hover img {
	transform: scale(1.04);
}

.svc-work__title {
	font-size: var(--svc-fs-h3);
	font-weight: 700;
}

.svc-work__summary {
	display: block;
	margin-top: 0.5rem;
	color: var(--svc-muted);
	line-height: 1.5;
}

.svc-work__draft {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0.625rem;
	border: 1px dashed currentColor;
	font-size: var(--svc-fs-small);
	font-weight: 600;
}

/* Design Notes (the blog page) */

.svc-notes .svc-work__grid {
	row-gap: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.svc-note,
.svc-note .svc-work__link {
	height: 100%;
}

.svc-note .svc-work__link {
	display: flex;
	flex-direction: column;
}

.svc-note__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin-bottom: 0.75rem;
	font-size: var(--svc-fs-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--svc-muted);
}

.svc-note__category {
	color: var(--svc-red);
}

.svc-note__title {
	font-size: var(--svc-fs-h3) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em;
	text-wrap: balance;
	transition: color 0.2s ease;
}

.svc-note .svc-work__link:hover .svc-note__title {
	color: var(--svc-red);
}

.svc-note .svc-work__summary {
	margin-top: 0.75rem;
	line-height: 1.65;
}

.svc-note__more {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1.5rem;
	border-bottom: 0;
	color: var(--svc-ink);
}

.svc-note__more > span {
	padding-bottom: 0.2rem;
	border-bottom: 2px solid var(--svc-red);
}

.svc-note .svc-work__link:hover .svc-arrow {
	transform: translateX(4px);
}

.svc-notes__pagination {
	margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.svc-notes .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.svc-notes .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid var(--svc-line);
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.svc-notes a.page-numbers:hover,
.svc-notes .page-numbers.current {
	border-color: var(--svc-ink);
	background: var(--svc-ink);
	color: #fff;
}

.svc-notes__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	max-width: none;
}

.svc-notes__head .svc-h2 {
	margin-bottom: 0 !important;
}

/* Design Notes: a single note */

.svc-hero--note {
	min-height: 80vh;
	min-height: 80svh;
}

.svc-hero--note .svc-hero__title {
	font-size: clamp(2.125rem, 1rem + 4.2vw, 5.25rem) !important;
	line-height: 1.04 !important;
	letter-spacing: -0.03em;
	max-width: 20ch;
	margin-bottom: 1.75rem !important;
}

.svc-hero--note .svc-hero__title::after {
	content: none;
}

.svc-note-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
	transition: color 0.3s ease;
}

.svc-note-hero__meta li + li::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 0.85rem;
	border-radius: 50%;
	background: var(--svc-red);
	vertical-align: middle;
}

.white .svc-note-hero__meta {
	color: var(--svc-muted);
}

.svc-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 46rem);
	justify-content: center;
}

@media (min-width: 1100px) {
	.svc-article__layout--toc {
		grid-template-columns: 15rem minmax(0, 46rem);
		column-gap: clamp(3rem, 1rem + 5vw, 7rem);
	}
}

.svc-article__toc {
	display: none;
}

@media (min-width: 1100px) {
	.svc-article__toc {
		display: block;
		position: sticky;
		top: 7rem;
		align-self: start;
	}
}

.svc-article__toc ol {
	border-left: 1px solid var(--svc-line);
}

.svc-article__toc a {
	display: block;
	margin-left: -1px;
	padding: 0.55rem 0 0.55rem 1.1rem;
	border-left: 2px solid transparent;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--svc-muted);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.svc-article__toc a:hover,
.svc-article__toc a.is-current {
	opacity: 1;
	color: var(--svc-ink);
	border-left-color: var(--svc-red);
}

.svc-article__body {
	font-size: 1.125rem;
	line-height: 1.8;
	color: rgba(13, 13, 13, 0.78);
	overflow-wrap: break-word;
	text-wrap: pretty;
}

.svc-article__body p {
	margin: 0 0 1.4em !important;
	font-size: inherit !important;
	line-height: inherit !important;
	font-weight: 400 !important;
}

.svc-article__body strong,
.svc-article__body b {
	font-weight: 700;
	color: var(--svc-ink);
}

/* reset.css removes link underlines with !important. */
.svc-article__body a {
	color: var(--svc-ink);
	text-decoration: underline 2px var(--svc-red) !important;
	text-underline-offset: 0.2em;
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

.svc-article__body a:hover {
	opacity: 1;
	color: var(--svc-red);
}

.svc-article__body h2,
.svc-article__body h3,
.svc-article__body h4 {
	font-family: 'Gilroy', sans-serif;
	color: var(--svc-ink);
	text-wrap: balance;
	scroll-margin-top: 6rem;
}

.svc-article__body h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem) !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em;
	margin: 2.6em 0 0.8em !important;
}

.svc-article__body h2::before {
	content: '';
	display: block;
	width: 2rem;
	height: 2px;
	margin-bottom: 1.1rem;
	background: var(--svc-red);
}

.svc-article__body h3 {
	font-size: var(--svc-fs-h3) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 2em 0 0.6em !important;
}

.svc-article__body h4 {
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	margin: 1.75em 0 0.5em !important;
}

.svc-article__body > :first-child,
.svc-article__body > :first-child > :first-child,
.svc-article__body > :first-child > :first-child > :first-child {
	margin-top: 0 !important;
}

.svc-article__body blockquote {
	margin: 2.25em 0;
	padding: 0.25em 0 0.25em 1.5rem;
	border-left: 3px solid var(--svc-red);
	font-size: 1.3125rem;
	font-weight: 600;
	line-height: 1.55;
	color: var(--svc-ink);
}

.svc-article__body blockquote cite {
	display: block;
	margin-top: 0.75em;
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 500;
	color: var(--svc-muted);
}

/* Headings in these posts are wrapped in quote blocks for styling; show them as plain headings. */
.svc-article__body blockquote:has(> :is(h2, h3, h4):only-child) {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.svc-article__body .wp-block-group.is-nowrap {
	flex-wrap: wrap;
}

.svc-article__body ul,
.svc-article__body ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
}

.svc-article__body ul {
	list-style: disc;
}

.svc-article__body ol {
	list-style: decimal;
}

.svc-article__body li {
	margin-bottom: 0.5em;
	padding-left: 0.25em;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.svc-article__body li::marker {
	color: var(--svc-red);
	font-weight: 700;
}

.svc-article__body figure {
	margin: 2.5em 0;
}

.svc-article__body img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.svc-article__body figure img {
	width: 100%;
}

.svc-article__body figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--svc-muted);
}

.svc-article__body code {
	padding: 0.1em 0.35em;
	border-radius: 3px;
	background: var(--svc-light);
	font-size: 0.9em;
	color: var(--svc-ink);
}

.svc-article__body pre {
	overflow-x: auto;
	margin: 0 0 1.4em;
	padding: 1.25rem;
	background: var(--svc-light);
}

.svc-article__body pre code {
	padding: 0;
	background: none;
}

.svc-article__body hr {
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--svc-line);
}

.svc-article__body iframe,
.svc-article__body video {
	max-width: 100%;
}

.svc-article__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.4em;
	font-size: 1rem;
}

.svc-article__body th,
.svc-article__body td {
	padding: 0.75rem;
	border-bottom: 1px solid var(--svc-line);
	text-align: left;
}

.svc-article__footer {
	display: grid;
	gap: 1.75rem;
	margin-top: clamp(3rem, 2rem + 3vw, 5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--svc-line);
}

.svc-article__terms-label {
	margin: 0 0 0.75rem !important;
	font-size: var(--svc-fs-small) !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--svc-muted);
}

.svc-article__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.svc-article__chips a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--svc-line);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--svc-ink);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.svc-article__chips--small a {
	padding: 0.35rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--svc-muted);
}

.svc-article__chips a:hover {
	opacity: 1;
	border-color: var(--svc-red);
	color: var(--svc-red);
}

.svc-article__comments {
	margin-top: 4rem;
}

.svc-related__list {
	border-top: 1px solid var(--svc-line);
}

.svc-related__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.25rem 2rem;
	align-items: center;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--svc-line);
	color: inherit;
	text-decoration: none;
}

.svc-related__link:hover {
	opacity: 1;
	color: var(--svc-red);
}

.svc-related__title {
	font-size: var(--svc-fs-h3);
	font-weight: 700;
}

.svc-related__blurb {
	grid-column: 1;
	color: var(--svc-muted);
}

.svc-related__link .svc-arrow {
	grid-column: 2;
	grid-row: 1 / span 2;
}

/* --------------------------------------------------------------------------
   FAQ
   ----------------------------------------------------------------------- */

.svc-faq__layout {
	display: grid;
	gap: var(--svc-gap);
}

@media (min-width: 1024px) {
	.svc-faq__layout {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	}

	.svc-faq__head {
		position: sticky;
		top: 7rem;
		align-self: start;
	}
}

.svc-faq__item {
	border-top: 1px solid var(--svc-line);
}

.svc-faq__item:last-child {
	border-bottom: 1px solid var(--svc-line);
}

.svc-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem 0;
	cursor: pointer;
	list-style: none;
}

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

.svc-faq__title {
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem) !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	transition: color 0.2s ease;
}

.svc-faq__question:hover .svc-faq__title {
	color: var(--svc-red);
}

.svc-faq__icon {
	position: relative;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--svc-line);
	border-radius: 50%;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.svc-faq__icon::before,
.svc-faq__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.875rem;
	height: 2px;
	margin: -1px 0 0 -0.4375rem;
	background: var(--svc-ink);
	transition: transform 0.3s ease, background-color 0.25s ease;
}

.svc-faq__icon::after {
	transform: rotate(90deg);
}

.svc-faq__item[open] .svc-faq__icon {
	background: var(--svc-red);
	border-color: var(--svc-red);
}

.svc-faq__item[open] .svc-faq__icon::before,
.svc-faq__item[open] .svc-faq__icon::after {
	background: #fff;
}

.svc-faq__item[open] .svc-faq__icon::after {
	transform: rotate(0deg);
}

.svc-faq__answer {
	max-width: 46rem;
	padding: 0 clamp(0rem, 4vw, 4rem) 1.75rem 0;
}

/* --------------------------------------------------------------------------
   Call to action
   ----------------------------------------------------------------------- */

.svc-cta {
	padding-block: calc(var(--svc-pad) * 1.1);
}

.svc-cta__inner {
	display: grid;
	gap: 2.5rem var(--svc-gap);
	align-items: end;
}

.svc-cta .svc-statement {
	margin-bottom: 0.45em !important;
}

.svc-section--dark.svc-cta {
	border-top: 4px solid var(--svc-red);
}

@media (min-width: 1024px) {
	.svc-cta__inner {
		grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	}

	.svc-cta__actions {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* --------------------------------------------------------------------------
   Next service
   ----------------------------------------------------------------------- */

.svc-next {
	padding-block: clamp(4rem, 2.75rem + 4.5vw, 7.5rem);
}

.svc-next .svc-next__link {
	display: block;
	color: var(--svc-ink);
	font-weight: inherit;
	text-decoration: none;
}

.svc-next .svc-next__link:hover {
	opacity: 1;
}

.svc-next .svc-eyebrow {
	margin-bottom: 1.25rem !important;
}

.svc-next__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-top: clamp(1.25rem, 1rem + 1vw, 2rem);
	border-top: 1px solid var(--svc-line);
}

.svc-next__title {
	font-size: var(--svc-fs-statement);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-wrap: balance;
	transition: color 0.25s ease;
}

.svc-next__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: clamp(3.25rem, 2.5rem + 2.5vw, 5rem);
	height: clamp(3.25rem, 2.5rem + 2.5vw, 5rem);
	border: 1px solid var(--svc-line);
	border-radius: 50%;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.svc-next__link:hover .svc-next__title {
	color: var(--svc-red);
}

.svc-next__link:hover .svc-next__icon {
	background: var(--svc-red);
	border-color: var(--svc-red);
	color: #fff;
}

.svc-next__link:hover .svc-arrow {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Legacy layouts
   ----------------------------------------------------------------------- */

.svc-gallery {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 700px) {
	.svc-gallery {
		grid-template-columns: repeat(var(--svc-gallery-cols, 3), minmax(0, 1fr));
	}
}

.svc-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   Motion
   ----------------------------------------------------------------------- */

@keyframes svc-reveal {
	from {
		opacity: 0;
		transform: translateY(2.5rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.svc-reveal {
			animation: svc-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}

	.svc-faq {
		interpolate-size: allow-keywords;
	}

	.svc-faq__item::details-content {
		height: 0;
		overflow: hidden;
		transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
	}

	.svc-faq__item[open]::details-content {
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.svc *,
	.svc-hero * {
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Design Notes archives and Beyond the Brief
   ----------------------------------------------------------------------- */

.svc-hero--archive,
.svc-hero--btb {
	min-height: 70vh;
	min-height: 70svh;
}

.svc-hero--archive .svc-hero__title {
	font-size: clamp(2.25rem, 1rem + 5vw, 6rem) !important;
	max-width: 18ch;
	margin-bottom: 1.75rem !important;
}

.svc-hero--btb .svc-hero__title {
	max-width: none;
}

.svc-hero--btb .svc-hero__title::after {
	content: none;
}

.svc-btb__subtitle::after {
	content: '.';
	color: var(--svc-red);
}

.svc-btb__subtitle {
	display: block;
	margin-top: 0.35em;
	font-size: max(0.42em, 1.375rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: rgba(255, 255, 255, 0.86);
	transition: color 0.3s ease;
}

.white .svc-btb__subtitle {
	color: var(--svc-muted);
}

.svc-notes__all {
	margin-top: clamp(2.5rem, 2rem + 2vw, 4rem) !important;
}

@media (min-width: 768px) {
	.svc-cases--overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(2rem, 1rem + 3vw, 4.5rem);
	}
}

/* Case-study card without a suitable photo: a typographic panel instead of an image. */
.svc-case__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	color: #fff;
	background:
		radial-gradient(ellipse 70% 80% at 90% 10%, rgba(197, 12, 33, 0.45), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 3rem,
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 3rem 100%,
		#111;
	transition: background-color 0.3s ease;
}

.svc-case__panel-tag {
	order: -1;
	font-size: var(--svc-fs-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.svc-case__panel-name {
	max-width: 14ch;
	font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.svc-case__panel-name::after {
	content: '.';
	color: var(--svc-red);
}

.svc-work__link:hover .svc-case__panel {
	background-color: #000;
}

/* --------------------------------------------------------------------------
   Theme chrome on service pages
   ----------------------------------------------------------------------- */

/* Keep the menu button visible over black and red sections (on smaller screens the theme already gives it a white bar). */
@media (min-width: 1025px) {
	.single-services:not(.darkness) header.black .hamburger,
	.red-case-study:not(.darkness) header.black .hamburger,
	.single-post:not(.darkness) header.black .hamburger,
	.red-svc-chrome:not(.darkness) header.black .hamburger {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		margin: -17px -10px;
		border-radius: 50%;
		background: #fff;
		box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
	}

	.single-services:not(.darkness) .uptotop,
	.red-case-study:not(.darkness) .uptotop,
	.single-post:not(.darkness) .uptotop,
	.red-svc-chrome:not(.darkness) .uptotop {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background: #fff;
		box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
	}

	/* The white ring keeps the dark focus outline visible over black and red sections. */
	.single-services:not(.darkness) .uptotop:focus-visible,
	.red-case-study:not(.darkness) .uptotop:focus-visible,
	.single-post:not(.darkness) .uptotop:focus-visible,
	.red-svc-chrome:not(.darkness) .uptotop:focus-visible {
		box-shadow: 0 0 0 3px #fff, 0 2px 14px rgba(0, 0, 0, 0.12);
	}
}

/* The fixed social icons would sit on top of the text on small screens. */
@media (max-width: 767px) {
	.single-services .social,
	.red-case-study .social,
	.single-post .social,
	.red-svc-chrome .social {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Service groups
   ----------------------------------------------------------------------- */

.svc-groupcards {
	display: grid;
	gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}

@media (min-width: 768px) {
	.svc-groupcards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.svc-groupcard {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
	background: #fff;
	border: 1px solid var(--svc-line);
}

.svc-section--white .svc-groupcard {
	background: var(--svc-light);
	border-color: transparent;
}

.svc-groupcard::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	width: 0;
	height: 3px;
	background: var(--svc-red);
	transition: width 0.45s ease;
}

.svc-groupcard:hover::before {
	width: calc(100% + 2px);
}

.svc-groupcard__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.svc-groupcard__num {
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--svc-red);
}

.svc .svc-groupcard__icon {
	font-size: 0;
	line-height: 1;
	color: var(--svc-ink);
}

.svc .svc-groupcard__icon::before {
	font-size: 3rem !important;
	margin: 0 !important;
}

.svc-groupcard__title {
	font-size: var(--svc-fs-h3) !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
	margin-bottom: 0.75rem !important;
}

.svc-groupcard__text {
	font-size: 0.9375rem !important;
	line-height: 1.7 !important;
	color: var(--svc-muted);
	margin-bottom: 1.75rem !important;
}

.svc-groupcard__links {
	margin-top: auto !important;
	border-top: 1px solid var(--svc-line);
}

.svc-groupcard__links li {
	border-bottom: 1px solid var(--svc-line);
}

.svc-groupcard__links li:last-child {
	border-bottom: 0;
}

.svc-groupcard__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	font-size: var(--svc-fs-body);
	font-weight: 600;
	color: var(--svc-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.svc-groupcard__links a:hover {
	opacity: 1;
	color: var(--svc-red);
}

.svc-groupcard__links a:hover .svc-arrow {
	transform: translateX(4px);
}

/* About page banner label, matching the section labels. */
.hero-content span.little.about-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero-content span.little.about-eyebrow::before {
	content: "";
	width: 32px;
	height: 2px;
	background: #c50c21;
}

.svc-team .teammates,
.svc-logos .clients {
	padding: 0;
	margin: 0;
}

/* The About page uses one heading and one text size for its content sections;
   only the red statement and the closing call to action stay larger. */
.svc--about .svc-intro .svc-statement {
	font-size: var(--svc-fs-h2) !important;
	line-height: 1.12 !important;
	letter-spacing: -0.02em;
	max-width: 28ch;
}

.svc--about .svc-logos .svc-lead {
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem) !important;
	line-height: 1.75 !important;
}
