/* ==========================================================================
   Digital Dimensions — Header + full-screen navigation
   Loaded after main.css / responsive.css so it can override the old header.
   Palette is taken straight from the logo mark:
     blue  #3030E5   pink  #FF6CE3
   ========================================================================== */

:root {
	--dd-blue: #3030E5;
	--dd-pink: #FF6CE3;
	--dd-ink: #07073a;
	--dd-ink-2: #100f77;
	--dd-white: #ffffff;
	--dd-mute: rgba(255, 255, 255, 0.55);
	--dd-line: rgba(255, 255, 255, 0.14);
	--dd-head-h: 104px;
	--dd-head-h-sm: 74px;
	--dd-inner-pt: 144px;
	--dd-inner-pb: 40px;
	--dd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

.dd-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1200;
	background: transparent;
	transition: background-color 400ms var(--dd-ease), box-shadow 400ms var(--dd-ease);
}

/* .fixed-header is toggled on scroll by the theme's script.js */
.dd-header.fixed-header {
	background-color: rgba(7, 7, 58, 0.92);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dd-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--dd-head-h);
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	transition: height 400ms var(--dd-ease);
}

.dd-header.fixed-header .dd-header__inner {
	height: 76px;
}

.dd-header__logo {
	display: block;
	line-height: 0;
	flex: 0 0 auto;
}

.dd-header__logo img {
	display: block;
	width: auto;
	height: 38px;
	transition: height 400ms var(--dd-ease);
}

.dd-header.fixed-header .dd-header__logo img {
	height: 30px;
}

.dd-header__tools {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Burger — the lower bar is short and pink, echoing the bar under the logo D
   -------------------------------------------------------------------------- */

.dd-burger {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 4px;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--dd-white);
	-webkit-appearance: none;
	appearance: none;
	z-index: 1300;
}

.dd-burger__bars {
	position: relative;
	display: block;
	width: 30px;
	height: 14px;
	flex: 0 0 auto;
}

.dd-burger__bars i {
	position: absolute;
	left: 0;
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: width 450ms var(--dd-ease), transform 450ms var(--dd-ease),
		background-color 450ms var(--dd-ease), top 250ms var(--dd-ease);
}

.dd-burger__bars i:nth-child(1) {
	top: 0;
	width: 30px;
}

.dd-burger__bars i:nth-child(2) {
	top: 12px;
	width: 17px;
	background: var(--dd-pink);
}

.dd-burger:hover .dd-burger__bars i:nth-child(2),
.dd-burger:focus-visible .dd-burger__bars i:nth-child(2) {
	width: 30px;
}

.dd-burger__label {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}

/* Open state — bars cross, label swaps */
.dd-nav-open .dd-burger__bars i:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.dd-nav-open .dd-burger__bars i:nth-child(2) {
	top: 6px;
	width: 30px;
	transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Language switch
   -------------------------------------------------------------------------- */

.dd-lang {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	line-height: 0;
	z-index: 1300;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
	transition: box-shadow 300ms var(--dd-ease), transform 300ms var(--dd-ease);
}

.dd-lang img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dd-lang:hover,
.dd-lang:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 0 0 2px var(--dd-pink);
}

/* --------------------------------------------------------------------------
   Full-screen menu panel
   -------------------------------------------------------------------------- */

.dd-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	z-index: 1100;
	display: flex;
	flex-direction: column;
	background: var(--dd-ink);
	color: var(--dd-white);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	opacity: 0;
	visibility: hidden;
	clip-path: inset(0 0 100% 0);
	transition: opacity 500ms var(--dd-ease), visibility 0s linear 500ms,
		clip-path 700ms var(--dd-ease);
}

.dd-menu[hidden] {
	display: flex;
}

.dd-nav-open .dd-menu {
	opacity: 1;
	visibility: visible;
	clip-path: inset(0 0 0 0);
	transition: opacity 400ms var(--dd-ease), visibility 0s linear 0s,
		clip-path 700ms var(--dd-ease);
}

/* Ambient wash — brand blue bleeding up from the lower left.
   The wrapper clips it: without this the offset circles extend past the
   panel and give the overlay a few hundred pixels of phantom scroll. */
.dd-menu__glow {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.dd-menu__glow::before {
	content: '';
	position: absolute;
	left: -18%;
	bottom: -28%;
	width: 80%;
	height: 80%;
	border-radius: 50%;
	background: radial-gradient(circle at center, rgba(48, 48, 229, 0.85) 0%, rgba(48, 48, 229, 0) 68%);
}

.dd-menu__glow::after {
	content: '';
	position: absolute;
	right: -14%;
	top: -26%;
	width: 52%;
	height: 78%;
	border-radius: 50%;
	background: radial-gradient(circle at center, rgba(255, 108, 227, 0.28) 0%, rgba(255, 108, 227, 0) 66%);
}

.dd-menu__inner {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	align-items: safe center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--dd-inner-pt) 15px var(--dd-inner-pb);
}

/* --------------------------------------------------------------------------
   Primary links
   -------------------------------------------------------------------------- */

.dd-menu__primary ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dd-menu__primary > ul > li {
	position: static;
}

.dd-link {
	position: relative;
	display: inline-block;
	padding: 4px 0 10px;
	border: 0;
	background: none;
	text-align: left;
	color: var(--dd-white);
	font-family: 'Poppins', sans-serif;
	font-size: clamp(2.6rem, 5.6vw, 4.6rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.035em;
	text-decoration: none;
	cursor: pointer;
	transition: color 350ms var(--dd-ease), opacity 350ms var(--dd-ease);
}

/* The signature: a pink bar that sweeps in beneath the word,
   the same bar that sits under the D in the logo. */
.dd-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 6px;
	width: 0;
	height: 6px;
	border-radius: 3px;
	background: var(--dd-pink);
	transition: width 500ms var(--dd-ease);
}

.dd-link:hover::after,
.dd-link:focus-visible::after,
.dd-link.is-current::after {
	width: 100%;
}

.dd-link:hover,
.dd-link:focus-visible,
.dd-link:active {
	color: var(--dd-white);
}

/* Dim the siblings of whatever is being pointed at */
.dd-branch-toggle {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35em;
	-webkit-appearance: none;
	appearance: none;
}

.dd-branch-toggle .dd-branch-chevron {
	display: none;
	font-size: 0.4em;
	transform: translateY(-0.25em);
	transition: transform 350ms var(--dd-ease);
}

/* --------------------------------------------------------------------------
   Expertise column — the services stand open instead of hiding in a dropdown
   -------------------------------------------------------------------------- */

/* Centred with flex, not with translateY(-50%): the entrance animation also
   writes to `transform`, and the two were overwriting each other. */
.dd-menu__branch {
	position: absolute;
	left: 54%;
	right: 15px;
	top: var(--dd-inner-pt);
	bottom: var(--dd-inner-pb);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* The rule sits on the content rather than on the column, so it measures the
   list instead of cutting the screen in half. */
.dd-eyebrow,
.dd-services {
	border-left: 1px solid var(--dd-line);
	padding-left: 24px;
	transition: border-color 350ms var(--dd-ease);
}

.dd-menu__primary {
	width: 54%;
}

/* Expertise is a heading for the column, not a destination — on desktop the
   services stand on their own and the word appears only above them. */
@media only screen and (min-width: 992px) {
	.dd-branch-toggle {
		display: none;
	}

	.dd-branch-item {
		display: contents;
	}
}

.dd-eyebrow {
	position: relative;
	display: block;
	align-self: stretch;
	margin: 0;
	padding-top: 0;
	padding-bottom: 30px;
	font-family: 'Poppins', sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.3rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dd-pink);
}

.dd-eyebrow::after {
	content: '';
	position: absolute;
	left: 24px;
	bottom: 16px;
	width: 42px;
	height: 4px;
	border-radius: 2px;
	background: var(--dd-pink);
}

.dd-services {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dd-services li + li {
	margin-top: 2px;
}

.dd-service {
	position: relative;
	display: block;
	padding: 9px 0 9px 26px;
	color: var(--dd-white);
	font-family: 'Poppins', sans-serif;
	font-size: clamp(1rem, 1.35vw, 1.2rem);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: color 300ms var(--dd-ease), opacity 300ms var(--dd-ease),
		padding-left 350ms var(--dd-ease);
}

.dd-service::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 12px;
	height: 3px;
	border-radius: 2px;
	margin-top: -1px;
	background: var(--dd-pink);
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 300ms var(--dd-ease), transform 300ms var(--dd-ease), width 300ms var(--dd-ease);
}

.dd-service:hover,
.dd-service:focus-visible,
.dd-service.is-current {
	color: var(--dd-white);
	padding-left: 34px;
}

.dd-service:hover::before,
.dd-service:focus-visible::before,
.dd-service.is-current::before {
	opacity: 1;
	transform: translateX(0);
	width: 20px;
}

.dd-services:hover .dd-service:not(:hover) {
	opacity: 0.45;
}

/* Highlight the column while Expertise is being pointed at */
.dd-menu.is-branch-lit .dd-eyebrow,
.dd-menu.is-branch-lit .dd-services {
	border-left-color: rgba(255, 108, 227, 0.6);
}


/* --------------------------------------------------------------------------
   Staged entrance
   -------------------------------------------------------------------------- */

.dd-menu [data-stagger] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 520ms var(--dd-ease), transform 620ms var(--dd-ease);
}

.dd-nav-open .dd-menu [data-stagger] {
	opacity: 1;
	transform: none;
}

.dd-nav-open .dd-menu [data-stagger='1'] { transition-delay: 120ms; }
.dd-nav-open .dd-menu [data-stagger='2'] { transition-delay: 180ms; }
.dd-nav-open .dd-menu [data-stagger='3'] { transition-delay: 240ms; }
.dd-nav-open .dd-menu [data-stagger='4'] { transition-delay: 300ms; }
.dd-nav-open .dd-menu [data-stagger='5'] { transition-delay: 340ms; }
.dd-nav-open .dd-menu [data-stagger='6'] { transition-delay: 400ms; }

/* --------------------------------------------------------------------------
   Page scroll lock
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   Focus visibility
   -------------------------------------------------------------------------- */

.dd-header a:focus-visible,
.dd-header button:focus-visible,
.dd-menu a:focus-visible,
.dd-menu button:focus-visible {
	outline: 2px solid var(--dd-pink);
	outline-offset: 6px;
	border-radius: 2px;
}

/* ==========================================================================
   Contact page — company record under the intro
   ========================================================================== */

.dd-contact-details {
	list-style: none;
	max-width: 700px;
	margin: 30px auto 0;
	padding: 26px 30px;
	background: #f6f6fc;
	border-radius: 4px;
	text-align: left;
	color: #4a4a55;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

.dd-contact-details li {
	position: relative;
	padding-left: 32px;
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}

.dd-contact-details li:last-child {
	margin-bottom: 0;
}

.dd-contact-details li:first-child {
	color: var(--dd-ink);
	font-weight: 600;
}

.dd-contact-details .icon {
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	color: var(--dd-pink);
	font-size: 15px;
	text-align: center;
}

.dd-contact-details a {
	color: var(--dd-blue);
}

.dd-contact-details a:hover {
	color: var(--dd-pink);
}

@media only screen and (max-width: 575px) {
	.dd-contact-details {
		padding: 20px 18px;
		font-size: 14px;
	}
}

/* ==========================================================================
   Legal pages — terms, privacy, cookie
   ========================================================================== */

.legal-section {
	padding: 80px 0 90px;
}

.legal-body {
	width: 100%;
	color: #4a4a55;
	font-size: 15.5px;
	line-height: 1.8;
}

/* Two columns of headings-plus-body on wide screens keeps the measure
   readable without narrowing the container. */
.legal-body > div {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 0 48px;
}

.legal-body > div > h2 {
	grid-column: 1;
	grid-row: 1 / span 99;
}

.legal-body > div > *:not(h2) {
	grid-column: 2;
}

.legal-body > div:first-child {
	display: block;
}

.legal-body > div + div {
	margin-top: 34px;
	padding-top: 34px;
	border-top: 1px solid #ececf4;
}

.legal-body i {
	display: block;
	padding: 22px 26px;
	border-left: 4px solid var(--dd-pink);
	background: #f6f6fc;
	color: #3a3a46;
	font-size: 15px;
	line-height: 1.8;
}

.legal-body h2 {
	margin: 0 0 14px !important;
	padding: 0 !important;
	color: var(--dd-ink);
	font-family: 'Poppins', sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.015em;
	text-align: left !important;
}

.legal-body h3 {
	margin: 26px 0 10px;
	color: var(--dd-blue);
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.legal-body p {
	margin: 0 0 14px;
}

.legal-body p:last-child {
	margin-bottom: 0;
}

.legal-body ul {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.legal-body ul li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
}

.legal-body ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	width: 10px;
	height: 3px;
	border-radius: 2px;
	background: var(--dd-pink);
}

.legal-body a {
	color: var(--dd-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-body a:hover {
	color: var(--dd-pink);
}

.legal-contact {
	margin: 18px 0 4px;
	padding: 22px 26px;
	background: #f6f6fc;
	border-radius: 4px;
}

.legal-contact .legal-contact__name {
	font-weight: 600;
	color: var(--dd-ink);
}

.legal-contact p {
	margin-bottom: 6px;
}

.legal-contact p:last-child {
	margin-bottom: 0;
}

.legal-page-title .content h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}

@media only screen and (max-width: 991px) {
	.legal-body > div,
	.legal-body > div:first-child {
		display: block;
	}
}

@media only screen and (max-width: 767px) {
	.legal-section {
		padding: 50px 0 60px;
	}

	.legal-body {
		font-size: 15px;
	}

	.legal-body h2 {
		font-size: 19px;
	}

	.legal-body i,
	.legal-contact {
		padding: 18px 18px;
	}
}

/* --------------------------------------------------------------------------
   Retire the old header markup should any page still carry it
   -------------------------------------------------------------------------- */

.dd-header .sticky-header,
.dd-header .header-upper,
.dd-header .nav-outer {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Below 992px — one column, Expertise folds away behind its own row
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 991px) {
	.dd-header__inner {
		height: var(--dd-head-h-sm);
	}

	.dd-header.fixed-header .dd-header__inner {
		height: 64px;
	}

	.dd-header__logo img {
		height: 30px;
	}

	.dd-header.fixed-header .dd-header__logo img {
		height: 26px;
	}

	.dd-burger__label {
		display: none;
	}

	.dd-menu__inner {
		align-items: flex-start;
		padding: calc(var(--dd-head-h-sm) + 28px) 15px 28px;
	}

	.dd-menu__branch {
		top: auto;
		bottom: auto;
	}

	.dd-menu__primary {
		width: 100%;
	}

	.dd-link {
		font-size: clamp(2.1rem, 10vw, 3.2rem);
		padding: 10px 0 12px;
	}

	.dd-link::after {
		height: 5px;
		bottom: 8px;
	}

	/* No hover on touch — never leave items dimmed */
	.dd-menu__primary > ul:hover > li > .dd-link:not(:hover),
	.dd-services:hover .dd-service:not(:hover) {
		opacity: 1;
	}

	.dd-branch-toggle .dd-branch-chevron {
		display: inline-block;
	}

	.dd-branch-toggle[aria-expanded='true'] .dd-branch-chevron {
		transform: translateY(-0.25em) rotate(180deg);
	}

	/* The services column becomes a panel that unfolds under Expertise */
	.dd-menu__branch {
		position: static;
		display: block;
		width: 100%;
		padding: 0 0 0 4px;
		border-left: 2px solid rgba(255, 108, 227, 0.4);
		margin: 2px 0 10px;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height 480ms var(--dd-ease), opacity 320ms var(--dd-ease),
			margin 480ms var(--dd-ease);
	}

	.dd-menu.is-branch-open .dd-menu__branch {
		max-height: 520px;
		opacity: 1;
		margin: 10px 0 22px;
	}

	.dd-eyebrow {
		display: none;
	}

	.dd-services {
		border-left: 0;
		padding-left: 0;
	}

	.dd-service {
		padding: 8px 0 8px 18px;
		font-size: 1.02rem;
	}

	.dd-service:hover,
	.dd-service:focus-visible,
	.dd-service.is-current {
		padding-left: 24px;
	}
}

@media only screen and (max-width: 479px) {
	.dd-header__inner {
		gap: 12px;
	}

	.dd-header__tools {
		gap: 10px;
	}

	.dd-link {
		font-size: clamp(1.9rem, 11vw, 2.6rem);
	}
}

/* Short laptop screens — tighten so the panel fits without scrolling */
@media only screen and (max-height: 800px) and (min-width: 992px) {
	.dd-menu__inner {
		--dd-inner-pt: 120px;
		--dd-inner-pb: 24px;
	}

	.dd-link {
		font-size: clamp(2rem, 4vw, 3.4rem);
		padding: 2px 0 8px;
	}

	.dd-link::after {
		height: 5px;
		bottom: 5px;
	}

	.dd-service {
		padding-top: 7px;
		padding-bottom: 7px;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.dd-menu,
	.dd-menu [data-stagger],
	.dd-link,
	.dd-link::after,
	.dd-service,
	.dd-service::before,
	.dd-burger__bars i,
	.dd-header,
	.dd-header__inner,
	.dd-header__logo img {
		transition-duration: 1ms !important;
		transition-delay: 0ms !important;
	}

	.dd-menu {
		clip-path: none;
	}

	.dd-menu [data-stagger] {
		transform: none;
	}
}

/* Chinese has no true italic; synthetic slanting reads as a rendering fault. */
.legal-body--ch i {
	font-style: normal;
}
