/*
 * Due North — design system, header, mega menu, homepage and footer.
 * Values come from the Figma file "Due North Redesign 2610" (Design Board - Updated - 20 OCT 2026:
 * Desktop V3 1440, Mobile V3 390). Plain CSS, loaded after style.css.
 * Type is in rem (1rem = 16px), per the client's style guide.
 */

/* =========================
   GLOBAL VARIABLES & STYLES
========================= */

@font-face {
	font-family: "PolySans";
	src: url("../fonts/PolySans-Median.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Museo Sans comes from the Adobe Fonts kit enqueued in functions.php (family "museo-sans", weights 300/500/700). */

:root {
	/* Brand palette (Figma style guide) */
	--c-white: #fff;
	--c-light: #f9f9f9;
	--c-mint: #13f6c1;
	--c-navy: #1b46ab;
	--c-ink: #1d1e20;
	--c-black: #0d0f14;

	/* Supporting colours used in the homepage frames */
	--c-border: #e2e2e6;
	--c-divider: rgba(10, 33, 31, 0.16);
	--c-tint: #f4f4f4;
	--c-icon-tile: #f4f6fb;

	/* Insight article (page designs v3): intro tint and the "second opinion" box */
	--c-tint-article: #f7fbff;
	--c-purple: #4524db;

	/*
	 * Spacing & type system (client spec v3, 25 Oct 2026). Mobile values live
	 * here; the 48em and 64em :root blocks below step them up. Components read
	 * these tokens, so sizes change by screen width here and nowhere else.
	 */

	/* Spacing scale (only use these) */
	--space-1: 0.25rem;  /* 4px */
	--space-2: 0.5rem;   /* 8px */
	--space-3: 0.75rem;  /* 12px */
	--space-4: 1rem;     /* 16px */
	--space-5: 1.5rem;   /* 24px */
	--space-6: 2rem;     /* 32px */
	--space-7: 3rem;     /* 48px */
	--space-8: 4rem;     /* 64px */
	--space-9: 6rem;     /* 96px */
	--space-10: 8rem;    /* 128px */

	/* Containers (content max-width; gutters sit outside it) */
	--container-narrow: 45rem; /* 720px */
	--container: 80rem;        /* 1280px */
	--container-wide: 90rem;   /* 1440px */

	/* Fonts */
	--font-heading: "PolySans", "Helvetica Neue", Arial, sans-serif;
	--font-body: "museo-sans", "Helvetica Neue", Arial, sans-serif;
	--weight-light: 300;
	--weight-medium: 500;
	--weight-heading: 400; /* weight comes from the PolySans Median file; 400 stops faux bold */

	/* Accordion */
	--accordion-padding-y: var(--space-5); /* 24px */
	--accordion-border: 1px;

	/* Responsive tokens — mobile values */
	--gutter: var(--space-4);         /* 16px */
	--section-pad: var(--space-7);    /* 48px */
	--section-pad-sm: var(--space-6); /* 32px */
	--section-pad-lg: var(--space-8); /* 64px */
	--grid-gap: var(--space-4);       /* 16px */

	--fs-h1: 2.25rem;      /* 36px */
	--fs-h2: 1.75rem;      /* 28px */
	--fs-h3: 1.25rem;      /* 20px */
	--fs-h4: 1rem;         /* 16px */
	--fs-body-lg: 1.125rem; /* 18px */
	--fs-body: 1rem;       /* 16px */
	--fs-body-sm: 0.875rem; /* 14px */

	--lh-h1: 1.1;
	--lh-h2: 1.15;
	--lh-h3: 1.2;
	--lh-h4: 1.3;
	--lh-body: 1.5;

	/* Older names the components use, mapped onto the spec tokens */
	--fs-lead: var(--fs-body-lg);
	--lh-lead: var(--lh-body);
	--fs-small: var(--fs-body-sm);
	--lh-small: var(--lh-body);
	--content-width: var(--container);
	--section-space: var(--section-pad);

	/* Layout */
	--header-h: 88px;
	--radius: 5px;
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);

	/* Motion */
	--ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Medium — 48em / 768px */
@media screen and (min-width: 48em) {
	:root {
		--gutter: var(--space-6);         /* 32px */
		--section-pad: var(--space-8);    /* 64px */
		--section-pad-lg: var(--space-9); /* 96px */
		--grid-gap: var(--space-5);       /* 24px */

		--fs-h1: 2.5rem;      /* 40px */
		--fs-h2: 2rem;        /* 32px */
		--fs-h3: 1.5rem;      /* 24px */
		--fs-body-lg: 1.25rem; /* 20px */
	}
}

/* Large — 64em / 1024px */
@media screen and (min-width: 64em) {
	:root {
		--gutter: var(--space-7);          /* 48px */
		--section-pad: var(--space-9);     /* 96px */
		--section-pad-sm: var(--space-7);  /* 48px */
		--section-pad-lg: var(--space-10); /* 128px */
		--grid-gap: var(--space-5);        /* 24px */

		--fs-h1: 3rem; /* 48px */
	}
}

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--weight-light);
	line-height: var(--lh-body);
	color: var(--c-black);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.page {
	margin: 0;
}

/* Anchor links glide to their target; left instant for visitors who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	html,
	body {
		scroll-behavior: smooth;
	}
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	color: inherit;
}

/* Each size is one grouped rule: page heading, the blog heading that shares it, a .type-h* look class. */
h1,
.type-h1 {
	font-size: var(--fs-h1); /* 36 → 40 → 48px */
	line-height: var(--lh-h1);
}

h2,
.single .entry-title,
.type-h2 {
	font-size: var(--fs-h2); /* 28 → 32px */
	line-height: var(--lh-h2);
}

h3,
.single .entry-content h2,
.type-h3 {
	font-size: var(--fs-h3); /* 20 → 24px */
	line-height: var(--lh-h3);
}

h4,
.single .entry-content h3,
.type-h4 {
	font-size: var(--fs-h4); /* 16px */
	line-height: var(--lh-h4);
}

.type-h1,
.type-h2,
.type-h3,
.type-h4 {
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
}

h5,
h6 {
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}

/* Body text look classes (type table: Body Large 18 → 20px, Body 16px, Body Small 14px) */
.dn-body-lg,
.dn-body,
.dn-small {
	font-family: var(--font-body);
	font-weight: var(--weight-light);
	line-height: var(--lh-body);
}

.dn-body-lg {
	font-size: var(--fs-body-lg);
}

.dn-body {
	font-size: var(--fs-body);
}

.dn-small {
	font-size: var(--fs-body-sm);
}

b,
strong {
	font-weight: 600;
}

a {
	color: var(--c-navy);
	text-underline-offset: 3px;
}

img,
svg {
	max-width: 100%;
}

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

.dn-section--dark :focus-visible,
.dn-cta :focus-visible,
.dn-footer :focus-visible,
.dn-trust :focus-visible {
	outline-color: var(--c-mint);
}

/* Shared layout */

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

/* Section padding: standard 48 → 64 → 96px; --sm 32 → 32 → 48px; --lg 64 → 96 → 128px */
.dn-section {
	padding-block: var(--section-pad);
}

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

.dn-section--dark {
	background: var(--c-ink);
	color: var(--c-white);
}

.dn-text-navy {
	color: var(--c-navy);
}

.dn-home p,
.dn-footer p,
.dn-header p,
.dn-mobile-menu p {
	margin: 0;
}

.dn-home ul,
.dn-footer ul,
.dn-header ul,
.dn-mobile-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dn-card {
	box-sizing: border-box;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

/* Section headers */

.dn-section-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dn-section-head__title {
	font-size: var(--fs-h2);
	line-height: var(--lh-h2);
}

.dn-section-head__intro {
	max-width: 768px;
	font-size: var(--fs-lead);
	font-weight: var(--weight-light);
	line-height: var(--lh-lead);
}

.dn-section-head--split {
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.dn-section-head__copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Buttons: mint pill with a dark circular arrow. The arrow rolls clockwise from ↗ to → on hover. */

.dn-btn {
	box-sizing: border-box;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 4px 10px 4px 22px;
	border-radius: 25px;
	background: var(--c-mint);
	color: var(--c-black);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.625rem;
	text-decoration: none;
	white-space: nowrap;
}

.dn-btn:hover,
.dn-btn:focus,
.dn-btn:active,
.dn-btn:visited {
	color: var(--c-black);
}

.dn-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--c-black);
	color: var(--c-mint);
}

.dn-btn__icon svg {
	width: 18px;
	height: 18px;
	transition: transform 0.35s var(--ease-out);
}

.dn-btn:hover .dn-btn__icon svg,
.dn-btn:focus-visible .dn-btn__icon svg {
	transform: rotate(45deg);
}

.dn-btn--block {
	display: flex;
	width: 100%;
}

/* Text links with an arrow ("Read the case study →") */

.dn-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-navy);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5rem;
	text-decoration: none;
}

.dn-link:visited,
.dn-link:hover,
.dn-link:focus,
.dn-link:active {
	color: var(--c-navy);
}

.dn-link:hover .dn-link__label,
.dn-link:focus-visible .dn-link__label {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.dn-link__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.dn-link--light,
.dn-link--light:visited,
.dn-link--light:hover,
.dn-link--light:focus,
.dn-link--light:active {
	color: var(--c-white);
}

/* Whole-card links: the card's own link stretches over the card */

.dn-stretched-link::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
}

.dn-stretched-link:focus-visible {
	outline: none;
}

.dn-stretched-link:focus-visible::after {
	outline: 2px solid var(--c-navy);
	outline-offset: -2px;
	border-radius: var(--radius);
}

/* Desktop-only line breaks inside ACF text */

.dn-br-desktop {
	display: inline;
}

/* Accordion parts shared by the services list and the mobile challenge cards */

.dn-acc-sign {
	position: relative;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.dn-acc-sign::before,
.dn-acc-sign::after {
	content: "";
	position: absolute;
	background: var(--c-navy);
}

.dn-acc-sign::before {
	top: 9px;
	left: 0;
	width: 20px;
	height: 2px;
}

.dn-acc-sign::after {
	top: 0;
	left: 9px;
	width: 2px;
	height: 20px;
	transition: transform 0.3s var(--ease-out);
}

.is-open > * > [data-dn-acc-trigger] .dn-acc-sign::after,
.is-open > [data-dn-acc-trigger] .dn-acc-sign::after {
	transform: scaleY(0);
}

.dn-acc-panel {
	display: grid;
	grid-template-rows: 1fr;
	transition:
		grid-template-rows 0.35s var(--ease-out),
		visibility 0s linear 0s;
}

.dn-acc-panel__inner {
	overflow: hidden;
	min-height: 0;
}

/* Reveal on scroll (cards only: challenges, case studies, insights). Hidden only once JS is confirmed to be running. */

.dn-js [data-dn-reveal] {
	opacity: 0;
	transform: translateY(40px);
	transition:
		opacity 0.7s var(--ease-out),
		transform 0.7s var(--ease-out);
	transition-delay: var(--dn-reveal-delay, 0ms);
}

.dn-js [data-dn-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* Hero entrance (CSS only, so content is visible without JS) */

@keyframes dn-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

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

.dn-anim-rise {
	animation: dn-rise 0.9s var(--ease-out) 0.1s both;
}

.dn-anim-rise--2 {
	animation-delay: 0.25s;
}

.dn-anim-rise--3 {
	animation-delay: 0.4s;
}

/* =========================
   HEADER
========================= */

.dn-header {
	position: fixed;
	z-index: 100;
	top: var(--admin-bar);
	right: 0;
	left: 0;
	color: var(--c-white);
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		box-shadow 0.25s ease;
}

/* Solid (white) state: inner pages, scrolled, or a mega menu open */
body:not(.dn-has-overlay-header) .dn-header,
.dn-header.is-solid {
	background: var(--c-white);
	color: var(--c-black);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

body:not(.dn-has-overlay-header) #page {
	padding-top: var(--header-h);
}

.dn-header__bar {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--header-h);
	max-width: calc(var(--content-width) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.dn-logo {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.dn-logo__img {
	display: block;
	width: auto;
	height: 30px;
}

.dn-logo__text {
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-size: 1.5rem;
	line-height: 1.875rem;
	color: currentColor;
}

.dn-logo__img--dark,
body:not(.dn-has-overlay-header) .dn-header .dn-logo__img--light,
.dn-header.is-solid .dn-logo__img--light {
	display: none;
}

body:not(.dn-has-overlay-header) .dn-header .dn-logo__img--dark,
.dn-header.is-solid .dn-logo__img--dark,
.dn-mobile-menu .dn-logo__img--dark {
	display: block;
}

.dn-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
}

.dn-nav__link {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: var(--header-h);
	margin: 0;
	padding: 3px 0 0;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: none;
	color: inherit;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5rem;
	text-decoration: none;
	cursor: pointer;
}

.dn-nav__link:visited,
.dn-nav__link:hover,
.dn-nav__link:focus,
.dn-nav__link:active {
	color: inherit;
}

.dn-nav__link:hover,
.dn-nav__link:focus-visible {
	border-bottom-color: var(--c-mint);
	text-decoration: none;
}

.dn-nav__chevron {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.dn-header__actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 24px;
}

.dn-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5rem;
	text-decoration: none;
	white-space: nowrap;
}

.dn-phone:visited,
.dn-phone:hover,
.dn-phone:focus,
.dn-phone:active {
	color: inherit;
}

.dn-phone:hover span {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.dn-phone svg {
	width: 18px;
	height: 18px;
}

.dn-header__toggle {
	display: none;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.dn-header.is-solid .dn-header__toggle,
body:not(.dn-has-overlay-header) .dn-header__toggle {
	color: var(--c-navy);
}

.dn-header__toggle,
.dn-header__toggle:hover,
.dn-header__toggle:focus,
.dn-header__toggle:focus-visible,
.dn-header__toggle:active,
.dn-mobile-menu__close:focus,
.dn-mobile-menu__close:focus-visible {
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.dn-header__toggle svg {
	width: 22px;
	height: 22px;
}

/* =========================
   MEGA MENU
========================= */

.dn-mega {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 2;
	box-sizing: border-box;
	padding: 44px var(--gutter) 52px;
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
	background: var(--c-white);
	box-shadow: 0 24px 48px rgba(23, 23, 23, 0.16);
	color: var(--c-black);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0s linear 0.2s;
}

.dn-nav__item.is-open .dn-mega {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.dn-nav__item.is-open > .dn-nav__trigger {
	border-bottom-color: var(--c-mint);
}

.dn-nav__item.is-open .dn-nav__chevron {
	transform: rotate(180deg);
}

.dn-mega__inner {
	display: grid;
	grid-template-columns: 6fr 2fr;
	gap: 56px;
	max-width: var(--content-width);
	margin-inline: auto;
}

.dn-mega__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 32px;
	align-content: start;
}

.dn-mega-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
}

.dn-mega-card__media {
	display: block;
	overflow: hidden;
	height: 118px;
	border-radius: var(--radius);
	background: var(--c-black);
}

.dn-mega-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dn-mega-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--c-mint);
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-size: 1.25rem;
	letter-spacing: 0.02em;
}

.dn-mega-card__title {
	color: var(--c-navy);
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-size: 1.125rem;
	line-height: 1.5rem;
}

.dn-mega-card__text {
	color: var(--c-black);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.5rem;
}

.dn-mega-card:hover .dn-mega-card__title,
.dn-mega-card:focus-visible .dn-mega-card__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* Right column: the featured case study, then the CTA in its own box below it. */
.dn-mega__side {
	display: grid;
	align-self: start;
	gap: 16px;
}

.dn-mega__featured {
	display: flex;
	flex-direction: column;
	align-self: start;
	gap: 12px;
	padding: 22px;
	border-radius: var(--radius);
	background: var(--c-ink);
	color: var(--c-white);
}

.dn-mega__featured-media {
	overflow: hidden;
	height: 150px;
	border-radius: var(--radius);
}

.dn-mega__featured-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dn-mega__featured-title {
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-size: 1.1875rem;
	line-height: 1.5625rem;
}

.dn-mega__featured-meta {
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.5rem;
}

.dn-mega__featured-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-tint);
	text-align: center;
	font-size: 1rem;
	line-height: 1.5rem;
}

.dn-mega__featured-prompt {
	color: var(--c-navy);
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-size: 1.1875rem;
	line-height: 1.5625rem;
}

.dn-mega-backdrop {
	position: fixed;
	z-index: -1;
	top: calc(var(--admin-bar) + var(--header-h));
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(23, 23, 23, 0.55);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.2s ease,
		visibility 0s linear 0.2s;
}

.dn-header.has-mega-open .dn-mega-backdrop {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease;
}

/* =========================
   MOBILE MENU
========================= */

.dn-mobile-menu {
	position: fixed;
	z-index: 200;
	top: var(--admin-bar);
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--c-white);
	color: var(--c-black);
}

.dn-mobile-menu[hidden] {
	display: none;
}

.dn-mobile-menu__header {
	box-sizing: border-box;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	padding-inline: var(--gutter);
	border-bottom: 1px solid var(--c-border);
}

.dn-mobile-menu .dn-logo__img {
	height: 24px;
}

.dn-mobile-menu__close {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--c-navy);
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-navy);
	cursor: pointer;
}

.dn-mobile-menu__nav {
	flex-shrink: 0;
	padding: 8px var(--gutter) 0;
}

.dn-mm__item {
	border-bottom: 1px solid var(--c-border);
}

.dn-mm__row {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--c-navy);
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-size: 1.375rem;
	line-height: 1;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.dn-mm__row:visited,
.dn-mm__row:hover,
.dn-mm__row:focus,
.dn-mm__row:active {
	color: var(--c-navy);
}

.dn-mm__chevron {
	width: 22px;
	height: 22px;
	transition: transform 0.2s ease;
}

.dn-mm__trigger[aria-expanded="true"] .dn-mm__chevron {
	transform: rotate(180deg);
}

.dn-mm__arrow {
	width: 20px;
	height: 20px;
}

.dn-mm__sub {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 20px;
}

.dn-mm__sub[hidden] {
	display: none;
}

.dn-mm__sublink {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--c-black);
	font-size: 1.0625rem;
	font-weight: 300;
	line-height: 1.5rem;
	text-decoration: none;
}

.dn-mm__sublink:visited,
.dn-mm__sublink:hover,
.dn-mm__sublink:focus,
.dn-mm__sublink:active {
	color: var(--c-black);
}

.dn-mm__sublink:hover span:last-child {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.dn-mm__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	background: var(--c-icon-tile);
}

.dn-mm__icon img {
	display: block;
	width: 22px;
	height: 22px;
}

.dn-mobile-menu__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px var(--gutter);
}

.dn-mobile-menu__phone {
	justify-content: center;
	height: 48px;
	color: var(--c-navy);
	font-size: 1.0625rem;
	font-weight: 300;
}

.dn-mobile-menu__phone:visited,
.dn-mobile-menu__phone:hover {
	color: var(--c-navy);
}

body.dn-menu-open {
	overflow: hidden;
}

/* =========================
   HOME HERO
========================= */

.dn-hero {
	position: relative;
	display: flex;
	overflow: hidden;
	min-height: 760px;
	background: var(--c-ink);
	color: var(--c-white);
}

/* <picture>: the mobile background image swaps in at ≤767px (due_north_hero_media()). */
.dn-hero__media {
	position: absolute;
	inset: 0;
}

.dn-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 60%;
}

/*
 * Directional overlay, so the image never needs editing. Desktop/tablet: up to 50% along the top
 * (behind the transparent header) and down the left (behind the copy), easing to clear towards the
 * bottom right. The left sweep is measured from the 1440px design frame, so on wider screens it
 * follows the centred copy rather than the window edge. Tablet (≤1199) and mobile (≤767) are
 * redefined below.
 */
.dn-hero {
	--dn-hero-shade: 13, 15, 20; /* --c-black */
	--dn-hero-edge: max(0px, (100% - 1440px) / 2);
	--dn-hero-top: linear-gradient(
		180deg,
		rgba(var(--dn-hero-shade), 0.5) 0%,
		rgba(var(--dn-hero-shade), 0.42) 8%,
		rgba(var(--dn-hero-shade), 0.27) 17%,
		rgba(var(--dn-hero-shade), 0.12) 26%,
		rgba(var(--dn-hero-shade), 0.03) 34%,
		rgba(var(--dn-hero-shade), 0) 40%
	);
}

.dn-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		var(--dn-hero-top),
		linear-gradient(
			90deg,
			rgba(var(--dn-hero-shade), 0.5) 0%,
			rgba(var(--dn-hero-shade), 0.48) calc(var(--dn-hero-edge) + min(20%, 288px)),
			rgba(var(--dn-hero-shade), 0.42) calc(var(--dn-hero-edge) + min(38%, 547px)),
			rgba(var(--dn-hero-shade), 0.27) calc(var(--dn-hero-edge) + min(54%, 778px)),
			rgba(var(--dn-hero-shade), 0.12) calc(var(--dn-hero-edge) + min(70%, 1008px)),
			rgba(var(--dn-hero-shade), 0.04) calc(var(--dn-hero-edge) + min(84%, 1210px)),
			rgba(var(--dn-hero-shade), 0) calc(var(--dn-hero-edge) + min(94%, 1354px))
		);
}

/* Hero / feature spacing; the top also clears the fixed header. */
.dn-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	padding-top: calc(var(--header-h) + var(--section-pad-lg));
	padding-bottom: var(--section-pad-lg);
}

/* Heading + text sit 16px apart; the button sits 32px below them. */
.dn-hero__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 632px;
}

.dn-hero__title {
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
}

.dn-hero__text {
	color: var(--c-white);
	font-size: var(--fs-lead);
	font-weight: var(--weight-medium);
	line-height: var(--lh-lead);
}

.dn-hero__actions {
	padding-top: 16px;
}

/* =========================
   HOME TRUST BAR
========================= */

/* Compact section (trust bars, logo strips) */
.dn-trust {
	padding-block: var(--section-pad-sm);
	background: var(--c-ink);
	color: var(--c-white);
}

.dn-trust__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.dn-trust__title {
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
}

.dn-trust__logos {
	display: flex;
	align-items: center;
	gap: 32px;
}

.dn-trust__awards {
	display: flex;
	align-items: center;
	gap: 16px;
}

.dn-trust__awards img {
	display: block;
	width: auto;
	height: 92px;
}

.dn-trust__divider {
	width: 1px;
	height: 64px;
	background: var(--c-white);
}

.dn-trust__partners {
	display: flex;
	align-items: center;
	gap: 32px;
}

.dn-trust__partners img {
	display: block;
	width: auto;
	height: var(--logo-h, 40px);
}

/* =========================
   HOME CHALLENGES (card grid; accordion on mobile)
========================= */

.dn-challenges .dn-container {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Subgrid aligns icon, title and text rows across each row of cards, as in Figma. */
.dn-challenges__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--grid-gap);
}

.dn-challenge-card {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 16px;
	align-content: start;
	padding: 32px;
}

.dn-challenge-card__icon {
	display: block;
	width: 32px;
	height: 32px;
}

.dn-challenge-card__icon img {
	display: block;
	width: 100%;
	height: 100%;
}

.dn-challenge-card__icon--mobile,
.dn-challenge-card .dn-acc-sign {
	display: none;
}

.dn-challenge-card__title {
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
}

/* On desktop the toggle is disabled and reads as a plain heading. */
.dn-challenge-card__toggle {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.dn-challenge-card__toggle:disabled {
	cursor: default;
}

.dn-challenge-card__label {
	flex: 1 1 auto;
}

.dn-challenge-card__text {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

.dn-challenges__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.dn-challenges__footer-text {
	font-size: var(--fs-body-lg);
	line-height: var(--lh-body);
	max-width: 768px;
}

/* =========================
   HOME PORTFOLIO
========================= */

.dn-portfolio .dn-container {
	display: flex;
	flex-direction: column;
	gap: var(--grid-gap);
}

.dn-work-card {
	position: relative;
	border: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	color: var(--c-black);
}

.dn-work-card:hover .dn-link__label {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.dn-work-card__media {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	aspect-ratio: 382 / 287;
}

/* Crops follow Figma: images are centred, except Society House which sits at 65%. */
.dn-work-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.dn-work-card--society-house .dn-work-card__media img {
	object-position: 50% 65%;
}

.dn-work-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
}

.dn-work-card__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dn-work-card__reveal {
	display: grid;
	flex: 1 1 auto;
	grid-template-rows: 1fr;
}

/* "Read the case study" sits on the card's bottom edge, so it lines up across a row. */
.dn-work-card__reveal-inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 0;
}

.dn-work-card__link {
	margin-top: auto;
}

.dn-work-card__label {
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}

.dn-work-card__title {
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
}

.dn-work-card__text {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

/* Featured: image left (720px), details right (480px), 430px tall */
.dn-work-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	min-height: 430px;
}

.dn-work-card--featured .dn-work-card__media {
	aspect-ratio: auto;
}

.dn-work-card--featured .dn-work-card__media img {
	position: absolute;
	inset: 0;
}

.dn-work-card__results {
	display: flex;
	gap: 12px;
}

.dn-work-card__results li {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 20px;
	border-radius: var(--radius);
	background: var(--c-tint);
}

/* The statistic is a <p> with the H4 look (.type-h4), so a longer statement wraps inside its box. */
.dn-work-card__result-value {
	overflow-wrap: break-word;
}

.dn-work-card__result-label {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

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

/* =========================
   HOME SERVICES (accordion)
========================= */

/* 50/50 accordion split (spec component 7): 48px column gap from 1024px, stacked below. */
.dn-services__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-7);
}

.dn-services__intro {
	position: sticky;
	top: calc(var(--admin-bar) + var(--header-h) + 32px);
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
}

.dn-services__intro .dn-section-head__title {
	max-width: 502px;
}

.dn-services__text {
	font-size: var(--fs-lead);
	font-weight: var(--weight-light);
	line-height: var(--lh-lead);
	max-width: 400px;
}

.dn-accordion {
	flex: 1 1 0;
	min-width: 0;
}

/* Drop the headline to the first accordion title, not its divider. */
@media screen and (min-width: 64em) {
	.dn-services__intro {
		padding-top: calc(var(--accordion-padding-y) + var(--accordion-border));
	}
}

/* Align on cap tops, not line boxes (no effect where text-box is unsupported). */
.dn-services__intro .dn-section-head__title,
.dn-accordion__trigger-title {
	text-box: trim-both cap alphabetic;
}

.dn-accordion__item {
	border-top: var(--accordion-border) solid var(--c-divider);
}

.dn-accordion__item:last-child {
	border-bottom: var(--accordion-border) solid var(--c-divider);
}

.dn-accordion__heading {
	font-size: inherit;
	line-height: inherit;
}

.dn-accordion__trigger {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: var(--accordion-padding-y) 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--c-black);
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
	text-align: left;
	cursor: pointer;
	transition: color 0.2s ease;
}

.dn-accordion__item.is-open .dn-accordion__trigger,
.dn-accordion__trigger:hover {
	color: var(--c-navy);
}

.dn-js .dn-accordion__item:not(.is-open) .dn-acc-panel {
	grid-template-rows: 0fr;
	visibility: hidden;
	transition:
		grid-template-rows 0.35s var(--ease-out),
		visibility 0s linear 0.35s;
}

.dn-accordion__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* The summary and its content sit 16px apart (the trigger carries the accordion padding); the item ends that padding below the content. */
.dn-accordion__item.is-open .dn-acc-panel {
	margin-top: calc(var(--space-4) - var(--accordion-padding-y));
}

.dn-accordion__item .dn-acc-panel {
	transition:
		grid-template-rows 0.35s var(--ease-out),
		margin-top 0.35s var(--ease-out),
		visibility 0s linear 0s;
}

.dn-accordion__content > :last-child {
	margin-bottom: var(--accordion-padding-y);
}

/* Description comes from a WYSIWYG field, so it carries its own <p>/<ul> markup. */
.dn-accordion__text {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

.dn-accordion__text > * {
	margin: 0;
}

.dn-home .dn-accordion__text > * + * {
	margin-top: 16px;
}

.dn-accordion__text ul,
.dn-accordion__text ol {
	padding-left: 1.25em;
}

.dn-home .dn-accordion__text ul {
	list-style: disc;
}

.dn-accordion__text a {
	color: var(--c-navy);
	text-decoration: underline;
}

/* =========================
   HOME CTA (split)
========================= */

.dn-cta {
	display: flex;
	background: var(--c-ink);
	color: var(--c-white);
}

/* Heading + text sit 16px apart; the button sits 32px below them. */
.dn-cta__content {
	box-sizing: border-box;
	display: flex;
	flex: 0 0 56.4%;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: var(--section-pad-lg) 120px var(--section-pad-lg) max(var(--gutter), calc((100vw - var(--content-width)) / 2));
}

.dn-cta__content .dn-section-head__title {
	max-width: 572px;
}

.dn-cta__text {
	max-width: 572px;
	font-size: var(--fs-lead);
	font-weight: var(--weight-light);
	line-height: var(--lh-lead);
}

.dn-cta__actions {
	padding-top: 16px;
}

.dn-cta__media {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
	min-height: 548px;
}

.dn-cta__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================
   HOME INSIGHTS
========================= */

.dn-insights {
	border-top: 1px solid var(--c-border);
}

.dn-insights .dn-container {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

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

.dn-insight-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.dn-insight-card:hover .dn-link__label {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.dn-insight-card__media {
	overflow: hidden;
	aspect-ratio: 379 / 196;
	border-radius: var(--radius);
}

.dn-insight-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dn-insight-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

/* Read more links line up along the bottom of each row */
.dn-insight-card__body .dn-link {
	margin-top: auto;
}

.dn-insight-card__meta {
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}

.dn-insight-card__title {
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
}

/* =========================
   FOOTER
========================= */

.dn-footer {
	padding-block: var(--section-pad);
	background: var(--c-ink);
	color: var(--c-white);
}

.dn-footer .dn-container {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.dn-footer__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--c-white);
}

.dn-footer__heading {
	max-width: 768px;
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-size: var(--fs-h2);
	line-height: var(--lh-h2);
}

.dn-footer__columns {
	display: flex;
	gap: 32px;
}

.dn-footer__col {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.dn-footer__title {
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
}

.dn-footer__group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dn-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dn-footer__group-title {
	font-weight: 600;
	line-height: var(--lh-body);
}

a.dn-footer__group-title {
	align-self: flex-start;
}

.dn-footer__link,
.dn-footer__link:visited,
.dn-footer__legal a,
.dn-footer__legal a:visited,
.dn-footer a.dn-footer__group-title:visited {
	color: var(--c-white);
	text-decoration: none;
}

.dn-footer__link:hover,
.dn-footer__link:focus-visible,
.dn-footer__link:active,
.dn-footer__legal a:hover,
.dn-footer__legal a:focus-visible {
	color: var(--c-mint);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.dn-footer__address {
	margin: 0;
	font-style: normal;
	line-height: var(--lh-body);
}

.dn-footer__awards {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.dn-footer__awards img {
	display: block;
	width: auto;
	height: var(--logo-h, 32px);
}

.dn-footer__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding-top: 32px;
}

.dn-footer__brand {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 12px;
}

.dn-footer__logo {
	display: block;
	line-height: 0;
}

.dn-footer__logo img {
	width: auto;
	height: 28.59px;
}

.dn-footer__copyright {
	font-size: var(--fs-body-sm);
	line-height: var(--lh-small);
}

.dn-footer__legal ul {
	display: flex;
	gap: 28px;
}

.dn-footer__legal a {
	font-size: var(--fs-body-sm);
	line-height: var(--lh-small);
	text-decoration: none;
}

.dn-footer__social {
	display: flex;
	flex: 1 1 0;
	justify-content: flex-end;
	gap: 10px;
}

.dn-footer__social a {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--c-white);
	border-radius: 50%;
	color: var(--c-white);
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

/* style.css gives every a:focus a thin dotted outline, so a clicked link kept it. Only keyboard focus gets a ring. */
.dn-footer__social a:focus:not(:focus-visible) {
	outline: 0;
}

.dn-footer__social a:focus-visible {
	outline: 2px solid var(--c-mint);
	outline-offset: 3px;
}

.dn-footer__social a:focus-visible,
.dn-footer__social a:active {
	background: var(--c-white);
	color: var(--c-ink);
}

/* Hover fill only where hover is real, so a tap does not leave the icon filled. */
@media (hover: hover) {
	.dn-footer__social a:hover {
		background: var(--c-white);
		color: var(--c-ink);
	}
}

.dn-footer__social svg {
	width: 28px;
	height: 28px;
}

/*
 * Carousel controls (tablet and mobile): scrollbar + previous / next arrows, wired up by custom.js.
 * Hidden on desktop, where the cards sit in a grid. Colours follow the section background.
 */

.dn-carousel {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.dn-carousel-controls {
	--carousel-ink: var(--c-ink);
	--carousel-on-ink: var(--c-white);
	--carousel-rail: var(--c-border);
	--carousel-muted: #c4c6cc;

	display: none;
	align-items: center;
	gap: var(--space-5);
}

.dn-section--dark .dn-carousel-controls {
	--carousel-ink: var(--c-white);
	--carousel-on-ink: var(--c-ink);
	--carousel-rail: rgba(255, 255, 255, 0.25);
	--carousel-muted: rgba(255, 255, 255, 0.35);
}

.dn-carousel-controls__bar {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
	height: 2px;
	border-radius: 1px;
	background: var(--carousel-rail);
}

.dn-carousel-controls__thumb {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 33.333%;
	border-radius: inherit;
	background: var(--carousel-ink);
	will-change: transform;
}

.dn-carousel-controls__arrows {
	display: flex;
	flex-shrink: 0;
	gap: var(--space-3);
}

.dn-carousel-controls__arrow {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--carousel-ink);
	border-radius: 50%;
	background: transparent;
	color: var(--carousel-ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.dn-carousel-controls__arrow svg {
	width: 18px;
	height: 18px;
}

.dn-carousel-controls__arrow--prev svg {
	transform: scaleX(-1);
}

.dn-carousel-controls__arrow:disabled {
	border-color: var(--carousel-muted);
	color: var(--carousel-muted);
	cursor: default;
}

/* Hover fill only where hover is real, so a tap does not leave the arrow filled. */
@media (hover: hover) {
	.dn-carousel-controls__arrow:not(:disabled):hover {
		border-color: var(--carousel-ink);
		background: var(--carousel-ink);
		color: var(--carousel-on-ink);
	}
}

/* =========================
   RESPONSIVE STYLES
   Desktop design: 1440. Laptop ≤1279. Header collapses ≤1199.
   Tablet ≤1023. Mobile design: 390 (applies ≤767).
========================= */

@media (min-width: 1441px) {
	.dn-cta__content {
		flex-basis: calc((100vw - var(--content-width)) / 2 + 692px);
	}
}

@media (max-width: 1279px) {
	.dn-nav__list {
		gap: 24px;
	}

	.dn-header__actions {
		gap: 16px;
	}

	.dn-trust__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.dn-cta__content {
		padding-right: 64px;
	}
}

@media (max-width: 1199px) {
	:root {
		--header-h: 72px;
	}

	.dn-nav,
	.dn-header__phone {
		display: none;
	}

	.dn-header__toggle {
		display: flex;
	}

	.dn-header__actions {
		gap: 8px;
	}

	.dn-logo__img {
		height: 24px;
	}

	/* Compact header button (mobile frame) */
	.dn-header__cta {
		gap: 10px;
		padding: 6px 6px 6px 16px;
		font-size: 1rem;
		line-height: 1.5rem;
	}

	.dn-header__cta .dn-btn__icon {
		width: 32px;
		height: 32px;
	}

	.dn-mega-backdrop {
		display: none;
	}

	/* Get started keeps its natural width instead of stretching across the menu */
	.dn-mobile-menu__actions .dn-btn--block {
		width: auto;
		align-self: center;
	}

	/* Beats the `.dn-mobile-menu ul` reset that zeroed the submenu's bottom padding */
	.dn-mobile-menu__nav .dn-mm__sub {
		padding-bottom: 20px;
	}

	/*
	 * Tablet hero overlay. The copy keeps its fixed width (gutter + 632px) and sits 38–71% down, so here
	 * it spans most of the width: the left sweep is set in px to stay dark past the end of the lines,
	 * and a soft band behind the copy's rows covers the bright middle of the image. Top and bottom
	 * stay lighter so the image still reads.
	 */
	.dn-hero__overlay {
		background:
			var(--dn-hero-top),
			linear-gradient(
				180deg,
				rgba(var(--dn-hero-shade), 0) 28%,
				rgba(var(--dn-hero-shade), 0.1) 35%,
				rgba(var(--dn-hero-shade), 0.16) 42%,
				rgba(var(--dn-hero-shade), 0.16) 64%,
				rgba(var(--dn-hero-shade), 0.07) 74%,
				rgba(var(--dn-hero-shade), 0) 84%
			),
			linear-gradient(
				90deg,
				rgba(var(--dn-hero-shade), 0.5) 0,
				rgba(var(--dn-hero-shade), 0.47) 320px,
				rgba(var(--dn-hero-shade), 0.42) 560px,
				rgba(var(--dn-hero-shade), 0.34) 700px,
				rgba(var(--dn-hero-shade), 0.2) 840px,
				rgba(var(--dn-hero-shade), 0.08) 980px,
				rgba(var(--dn-hero-shade), 0.02) 1100px,
				rgba(var(--dn-hero-shade), 0) 1200px
			);
	}

	/* Case study callouts: one per row, full width, from the header's mobile-menu breakpoint down. */
	.dn-work-card__results {
		flex-direction: column;
	}
}

/* Small phones: the logo, Get started and the menu button share one row, so tighten them to fit. */
@media (max-width: 374px) {
	.dn-header__bar {
		gap: 8px;
	}

	.dn-logo {
		min-width: 0;
	}

	.dn-logo__img {
		height: 20px;
	}

	.dn-header__actions {
		gap: 6px;
	}

	.dn-header__cta {
		gap: 8px;
		min-height: 35px;
		padding: 4px 4px 4px 12px;
		font-size: 0.875rem;
	}

	.dn-header__cta .dn-btn__icon {
		width: 28px;
		height: 28px;
	}

	.dn-header__toggle {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 1023px) {
	.dn-challenges__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dn-work-card--featured {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	/*
	 * Tablet and mobile carousel: the three case studies (not the featured card) and the three insights.
	 * CSS scroll-snap with a peek of the next card (2 + a peek on tablet, 1 + a peek on mobile) so the
	 * row reads as scrollable; the scrollbar and arrows below it are wired up by custom.js.
	 * The track's 20px block padding (pulled back by an equal negative margin, so no layout shift) holds
	 * the cards' fade-in-up offset, which the scrolling track would otherwise clip.
	 */
	.dn-portfolio__grid,
	.dn-insights__grid {
		display: flex;
		gap: var(--grid-gap);
		margin-block: -20px;
		padding-block: 20px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.dn-portfolio__grid::-webkit-scrollbar,
	.dn-insights__grid::-webkit-scrollbar {
		display: none;
	}

	.dn-portfolio__item,
	.dn-insight-card {
		flex: 0 0 calc((100% - 2 * var(--grid-gap)) / 2.25);
		min-width: 0;
		scroll-snap-align: start;
	}

	/*
	 * Every snap point must be one the track can actually scroll to. With a peek showing, the start edges of the
	 * cards in the final view sit past the end of the scroll range (the last two cards at 2.25 per view). Other
	 * browsers clamp those points to the end; iOS Safari overscrolls to reach them, leaving blank space on the
	 * right, and on the left after scrolling back. So the last card snaps by its end edge (exactly the end of the
	 * scroll range) and the one before it, whose start is also out of range here, does not snap at all.
	 */
	.dn-portfolio__grid > :nth-last-child(2),
	.dn-insights__grid > :nth-last-child(2) {
		scroll-snap-align: none;
	}

	.dn-portfolio__grid > :last-child,
	.dn-insights__grid > :last-child {
		scroll-snap-align: end;
	}

	.dn-js .dn-portfolio__item[data-dn-reveal],
	.dn-js .dn-insight-card[data-dn-reveal] {
		transform: translateY(20px);
	}

	.dn-js .dn-portfolio__item[data-dn-reveal].is-revealed,
	.dn-js .dn-insight-card[data-dn-reveal].is-revealed {
		transform: none;
	}

	.dn-carousel-controls {
		display: flex;
	}

	.dn-services__inner {
		flex-direction: column;
		gap: var(--space-6);
	}

	.dn-services__intro {
		position: static;
		flex-basis: auto;
	}

	.dn-accordion {
		flex-basis: auto;
		width: 100%;
	}

	.dn-cta__content {
		flex-basis: 55%;
		padding: var(--section-pad-lg) var(--gutter);
	}

	.dn-cta__media {
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.dn-br-desktop {
		display: none;
	}

	.dn-section-head--split {
		flex-direction: column;
		align-items: flex-start;
		gap: 32px;
		padding-bottom: 8px;
	}

	/* Hero: 660px tall, copy anchored to the bottom */
	.dn-hero {
		min-height: 660px;
	}

	.dn-hero__bg {
		object-position: 50% 50%;
	}

	/* Mobile overlay: up to 50% at the top (header) and the bottom (copy), clear through the middle. */
	.dn-hero__overlay {
		background: linear-gradient(
			180deg,
			rgba(var(--dn-hero-shade), 0.55) 0%,
			rgba(var(--dn-hero-shade), 0.46) 6%,
			rgba(var(--dn-hero-shade), 0.29) 13%,
			rgba(var(--dn-hero-shade), 0.12) 20%,
			rgba(var(--dn-hero-shade), 0.04) 25%,
			rgba(var(--dn-hero-shade), 0.04) 29%,
			rgba(var(--dn-hero-shade), 0.18) 36%,
			rgba(var(--dn-hero-shade), 0.37) 44%,
			rgba(var(--dn-hero-shade), 0.5) 55%,
			rgba(var(--dn-hero-shade), 0.56) 70%,
			rgba(var(--dn-hero-shade), 0.58) 100%
		);
	}

	.dn-hero__inner {
		align-items: flex-end;
	}

	/* Mobile menu: keep the actions' 24px bottom padding when expanded menus overflow */
	.dn-mobile-menu__actions {
		flex-shrink: 0;
	}

	/* Trust bar */
	.dn-trust__inner {
		gap: 16px;
	}

	.dn-trust__logos {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.dn-trust__awards {
		gap: 32px;
	}

	.dn-trust__awards img {
		height: 68px;
	}

	.dn-trust__divider {
		display: none;
	}

	.dn-trust__partners img {
		height: calc(var(--logo-h, 40px) * 0.7);
	}

	/* Challenges: accordion, first card open; grid → footer is 36px + 8px */
	.dn-challenges .dn-container {
		gap: 36px;
	}

	.dn-challenges__grid {
		display: flex;
		flex-direction: column;
	}

	.dn-challenge-card {
		display: block;
		padding: 24px;
	}

	.dn-challenge-card__icon--desktop {
		display: none;
	}

	.dn-challenge-card__icon--mobile {
		display: block;
		flex-shrink: 0;
		width: 24px;
		height: 24px;
	}

	/* 16px +/− (Figma), smaller than the shared 20px sign */
	.dn-challenge-card .dn-acc-sign {
		display: block;
		width: 16px;
		height: 16px;
		margin-top: 4px;
	}

	.dn-challenge-card .dn-acc-sign::before {
		top: 7px;
		width: 16px;
	}

	.dn-challenge-card .dn-acc-sign::after {
		left: 7px;
		height: 16px;
	}

	.dn-challenge-card__title {
		font-size: var(--fs-h4);
		line-height: var(--lh-h4);
	}

	.dn-challenge-card__label {
		font-size: 1.25rem;
	}

	.dn-challenge-card.is-open .dn-challenge-card__label {
		color: var(--c-navy);
	}

	.dn-js .dn-challenge-card:not(.is-open) .dn-acc-panel {
		grid-template-rows: 0fr;
		visibility: hidden;
		transition:
			grid-template-rows 0.35s var(--ease-out),
			visibility 0s linear 0.35s;
	}

	.dn-challenge-card__text {
		padding-top: 16px;
	}

	.dn-challenges__footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding-top: 8px;
	}

	/* Portfolio */
	.dn-work-card--featured {
		display: flex;
	}

	.dn-work-card--featured .dn-work-card__media,
	.dn-work-card__media {
		aspect-ratio: 308 / 280;
	}

	.dn-work-card__body {
		padding: 32px 24px;
	}

	.dn-work-card__results li {
		gap: 8px;
		padding: 14px;
	}

	/*
	 * Entrance: the featured card moves the same 20px as the carousel cards (it was 40px, so two different
	 * distances ran side by side), and unrevealed cards get their own layer so the clipped, rounded cards
	 * are not repainted mid-transition. Same fade-in-up timing and easing as the insight cards.
	 */
	.dn-js .dn-portfolio .dn-container > [data-dn-reveal] {
		transform: translateY(20px);
	}

	.dn-js .dn-portfolio .dn-container > [data-dn-reveal].is-revealed {
		transform: none;
	}

	.dn-js .dn-portfolio [data-dn-reveal]:not(.is-revealed) {
		will-change: opacity, transform;
	}

	.dn-portfolio__item,
	.dn-insight-card {
		flex-basis: calc((100% - var(--grid-gap)) / 1.15);
	}

	/* At 1.15 per view only the last card's start is out of range, so the one before it snaps by its start again. */
	.dn-portfolio__grid > :nth-last-child(2),
	.dn-insights__grid > :nth-last-child(2) {
		scroll-snap-align: start;
	}

	.dn-carousel {
		gap: var(--space-5);
	}

	.dn-carousel-controls {
		gap: var(--space-4);
	}

	/* CTA: copy above, 280px image below */
	.dn-cta {
		flex-direction: column;
	}

	.dn-cta__content {
		flex-basis: auto;
		padding: var(--section-pad-lg) var(--gutter);
	}

	.dn-cta__media {
		min-height: 280px;
	}

	.dn-cta__media img {
		object-position: 50% 60%;
	}

	/* Footer */
	.dn-footer__top {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.dn-footer__columns {
		flex-direction: column;
		gap: 32px;
	}

	.dn-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.dn-footer__social {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dn-anim-rise {
		animation: none;
	}

	.dn-js [data-dn-reveal],
	.dn-js .dn-portfolio .dn-container > [data-dn-reveal],
	.dn-js .dn-portfolio__item[data-dn-reveal],
	.dn-js .dn-insight-card[data-dn-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.dn-btn__icon svg,
	.dn-acc-panel,
	.dn-acc-sign::after,
	.dn-mega,
	.dn-header {
		transition: none;
	}
}
