/* Caravan Express — one stylesheet, mobile first. Breakpoints: 40em, 48em, 64em, 72em. */

@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-var.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dmsans-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--red: #a52b2c;
	--red-700: #8b2324;
	--red-800: #731c1d;
	--red-300: #e8888a;
	--navy: #020e28;
	--ink: #3a4152;
	--muted: #586072;
	--line: #e2e4e9;
	--tint: #f4f4f4;
	--slate: #434a5a;
	--black: #05070b;
	--white: #fff;

	--font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
	--font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;

	--container: 76rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--cut: 2.25rem;
	--radius: 4px;
	--header-h: 4.5rem;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	accent-color: var(--red);
	color-scheme: light;
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font: 400 1.0625rem/1.65 var(--font-body);
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	caret-color: var(--red);
}

::selection {
	background: var(--red);
	color: var(--white);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-display);
	color: var(--navy);
	line-height: 1.12;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

/* German compounds (Logistikdienstleistungen, Umsatzsteuerregistrierung) are wider than a phone.
   Only German hyphenates, and only long words; elsewhere a word breaks only if it cannot fit. */
h1,
h2,
h3,
.number__label,
.doc__title {
	overflow-wrap: break-word;
}

:lang(de) :is(h1, h2, h3, .number__label, .doc__title, .assurance__title, .checklist li) {
	hyphens: auto;
	hyphenate-limit-chars: 12 5 5;
}

strong {
	font-weight: 700;
}

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

img {
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--navy);
	color: var(--white);
	font-weight: 600;
	border-radius: var(--radius);
}

.skip-link:focus {
	top: 1rem;
}

main:focus {
	outline: none;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.flag {
	width: 1.375rem;
	height: 0.9375rem;
	flex: none;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgb(2 14 40 / 0.14);
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.75rem 1.375rem;
	font: 600 1rem/1.2 var(--font-display);
	letter-spacing: 0.005em;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn .icon {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform 0.3s var(--ease-out);
}

.btn:hover .icon:last-child {
	transform: translateX(3px);
}

.btn--primary {
	background: var(--red);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--red-700);
}

.btn--light {
	background: var(--white);
	color: var(--red-800);
}

.btn--light:hover {
	background: #f6e7e7;
}

.btn--outline-light {
	border-color: rgb(255 255 255 / 0.7);
	color: var(--white);
}

.btn--outline-light:hover {
	background: rgb(255 255 255 / 0.12);
	border-color: var(--white);
}

.hero :focus-visible,
.page-hero :focus-visible,
.map :focus-visible,
.sectors :focus-visible,
.enquiry :focus-visible,
.cta :focus-visible,
.numbers :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--white);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font: 600 1rem/1.3 var(--font-display);
	color: var(--red);
	text-decoration: none;
}

.link-arrow .icon {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover {
	text-decoration: underline;
}

.link-arrow:hover .icon {
	transform: translateX(3px);
}

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

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--header-h);
}

.brand {
	flex: none;
	margin-right: auto;
}

.brand img {
	width: 132px;
}

.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	text-decoration: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.header-phone {
	min-height: 2.75rem;
	padding-inline: 0.75rem;
}

.header-phone .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.header-phone__number {
	display: none;
}

/* Language menu */
.lang {
	position: relative;
}

.lang__current {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	height: 2.75rem;
	padding: 0 0.625rem;
	font: 600 0.875rem/1 var(--font-display);
	color: var(--navy);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

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

.lang__current:hover {
	border-color: #c9ccd4;
}

.lang__chevron {
	width: 1rem;
	height: 1rem;
	transition: transform 0.2s ease;
}

.lang[open] .lang__chevron {
	transform: rotate(180deg);
}

.lang__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	z-index: 60;
	min-width: 11.5rem;
	margin: 0;
	padding: 0.375rem;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 12px 32px -12px rgb(2 14 40 / 0.28), 0 2px 6px rgb(2 14 40 / 0.06);
}

.lang__menu a {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 0.75rem;
	color: var(--navy);
	font-size: 0.9375rem;
	text-decoration: none;
	border-radius: 3px;
}

.lang__menu a:hover {
	background: var(--tint);
}

.lang__menu a[aria-current] {
	font-weight: 700;
}

/* Mobile navigation */
.nav-toggle {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	color: var(--navy);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle .icon {
	width: 1.375rem;
	height: 1.375rem;
	grid-area: 1 / 1;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: block;
}

.no-js .nav-toggle {
	display: none;
}

.primary-nav {
	position: absolute;
	top: 100%;
	left: calc(-1 * var(--gutter));
	right: calc(-1 * var(--gutter));
	padding: 0.5rem var(--gutter) 1.5rem;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 18px 30px -18px rgb(2 14 40 / 0.35);
}

.js .primary-nav:not([data-open="true"]) {
	display: none;
}

.no-js .primary-nav {
	position: static;
	box-shadow: none;
	border: 0;
	padding: 0;
	flex-basis: 100%;
	order: 5;
}

.primary-nav__list a {
	display: block;
	padding: 0.875rem 0;
	font: 600 1.125rem/1.3 var(--font-display);
	color: var(--navy);
	border-bottom: 1px solid var(--line);
}

.primary-nav__list a[aria-current="page"] {
	color: var(--red);
}

.primary-nav__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.25rem;
	font: 700 1.25rem/1 var(--font-display);
	color: var(--red);
}

/* Phones narrower than 390 px (360 px Android, 375 px iPhone SE/mini): the four header controls must fit one row inside the page gutter. */
@media (max-width: 24.37em) {
	.site-header__inner,
	.site-header__actions {
		gap: 0.375rem;
	}

	.brand img {
		width: 112px;
	}

	.header-phone,
	.nav-toggle,
	.lang__current {
		height: 2.5rem;
		min-height: 2.5rem;
	}

	.nav-toggle {
		width: 2.5rem;
	}

	.lang__current {
		padding: 0 0.5rem;
		gap: 0.3rem;
	}

	.lang__chevron {
		display: none;
	}
}

@media (min-width: 30em) {
	.brand img {
		width: 150px;
	}

	.header-phone__number {
		display: inline;
	}
}

@media (min-width: 72em) {
	.site-header__inner {
		gap: 2rem;
	}

	.brand {
		margin-right: 0;
	}

	.primary-nav,
	.js .primary-nav:not([data-open="true"]) {
		position: static;
		display: block;
		flex: 1;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: none;
	}

	.primary-nav__list {
		display: flex;
		justify-content: center;
		gap: 0.25rem 1.75rem;
	}

	.primary-nav__list a {
		position: relative;
		padding: 0.5rem 0;
		font-size: 0.9688rem;
		font-weight: 500;
		border: 0;
	}

	.primary-nav__list a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0.125rem;
		height: 2px;
		background: var(--red);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s var(--ease-out);
	}

	.primary-nav__list a:hover::after,
	.primary-nav__list a[aria-current="page"]::after {
		transform: scaleX(1);
	}

	.primary-nav__phone,
	.nav-toggle {
		display: none;
	}
}

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

.hero {
	position: relative;
	isolation: isolate;
	background: var(--red);
	color: var(--white);
}

.hero__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #7c2021;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 50%;
}

.hero__panel {
	position: relative;
	margin-top: -2.75rem;
	padding: 4rem var(--gutter) 3rem;
	background: var(--red);
	clip-path: polygon(0 2.75rem, 100% 0, 100% 100%, 0 100%);
}

.hero__content {
	max-width: 36rem;
}

.hero__title {
	font-size: clamp(2.125rem, 1.35rem + 3.3vw, 3.75rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.022em;
	color: var(--white);
	margin-bottom: 1.25rem;
}

.hero__lead {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.6;
	color: rgb(255 255 255 / 0.92);
	margin-bottom: 0;
}

.hero__lead strong {
	color: var(--white);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

@media (min-width: 64em) {
	.hero {
		display: flex;
		align-items: stretch;
		min-height: clamp(34rem, calc(100svh - var(--header-h) - 7rem), 44rem);
	}

	.hero__media {
		position: absolute;
		inset: 0 0 0 38%;
		z-index: -1;
		aspect-ratio: auto;
	}

	/* Keeps the tractor unit right of the chevron apex and clear of the right edge (1280–1920). */
	.hero__media img {
		object-position: 64% 50%;
	}

	/* The incumbent's chevron: a panel edge that points right, towards the road. */
	.hero__panel {
		display: flex;
		align-items: center;
		width: 72%;
		margin: 0;
		padding-block: 4.5rem;
		padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
		padding-right: 26%;
		clip-path: polygon(0 0, 60% 0, 100% 56%, 88% 100%, 0 100%);
	}

	.hero__content {
		max-width: 34rem;
	}
}

/* Route graphic: CZ → the rest of Europe */
.route {
	margin: 2.75rem 0 0;
	max-width: 30rem;
}

.route__track {
	position: relative;
}

.route__line {
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	top: calc(0.5rem - 1px);
	height: 2px;
	background-image: linear-gradient(90deg, rgb(255 255 255 / 0.75) 55%, transparent 0);
	background-size: 10px 2px;
}

.route__stops {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
}

.route__stops li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	font: 600 0.8125rem/1 var(--font-display);
	letter-spacing: 0.08em;
	color: rgb(255 255 255 / 0.9);
}

.route__stops li::before {
	content: "";
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--red);
	border: 2px solid var(--white);
	box-shadow: 0 0 0 4px rgb(255 255 255 / 0.16);
}

.route__stops li:first-child::before {
	background: var(--white);
}

.route__caption {
	margin-top: 1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgb(255 255 255 / 0.85);
}

/* ---------- Assurances ---------- */

.assurances {
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.assurances__list {
	display: grid;
	gap: 1.5rem;
	margin-block: 0;
	padding: 2rem 0;
	list-style: none;
}

.assurance {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.assurance__icon {
	width: 1.75rem;
	height: 1.75rem;
	margin-top: 0.125rem;
	color: var(--red);
}

.assurance__title {
	margin: 0 0 0.25rem;
	font: 600 1.0625rem/1.3 var(--font-display);
	color: var(--navy);
}

.assurance__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--muted);
}

@media (min-width: 48em) {
	.assurances__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0;
		padding-block: 2.25rem;
	}

	.assurance {
		padding-right: 1.75rem;
	}

	.assurance + .assurance {
		padding-left: 1.75rem;
		border-left: 1px solid var(--line);
	}
}

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

.section {
	padding-block: clamp(4rem, 2.8rem + 4.5vw, 7rem);
}

.section--tint {
	background: var(--tint);
}

.section-title {
	font-size: clamp(1.875rem, 1.3rem + 2.3vw, 3rem);
	font-weight: 700;
	margin-bottom: 1.25rem;
	max-width: 24ch;
}

.section-title--center {
	margin-inline: auto;
	text-align: center;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2.5rem;
	margin-bottom: 2.5rem;
}

.section-head .section-title {
	margin: 0;
}

.section-lead {
	max-width: 40rem;
	margin: 0.875rem 0 0;
	color: var(--muted);
}

.prose {
	max-width: 38rem;
}

.prose strong {
	color: var(--navy);
}

.prose a {
	color: var(--red);
}

.checklist {
	display: grid;
	gap: 0.625rem 2rem;
	margin: 1.5rem 0 2.25rem;
	padding: 0;
	list-style: none;
}

.checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--navy);
}

.checklist .icon {
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.15rem;
	color: var(--red);
}

.checklist--light li,
.checklist--light .icon {
	color: var(--white);
}

@media (min-width: 40em) {
	.checklist--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Intro ---------- */

.intro__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.intro__media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	max-width: 30rem;
}

.intro__photo {
	width: 100%;
	aspect-ratio: 322 / 520;
	object-fit: cover;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.intro__photo--b {
	margin-top: 3.5rem;
}

@media (min-width: 64em) {
	.intro__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 5rem;
	}
}

/* ---------- Services ---------- */

.services__list {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service {
	display: flex;
	flex-direction: column;
	padding-bottom: 2rem;
	background: var(--white);
	border: 1px solid var(--line);
}

.service__media {
	position: relative;
	margin: 0;
}

.service__frame {
	display: block;
	overflow: hidden;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.service__frame img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.7s var(--ease-out);
}

.service:hover .service__frame img {
	transform: scale(1.04);
}

.service__badge {
	position: absolute;
	right: 1.5rem;
	bottom: -1.75rem;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--red);
	color: var(--white);
	box-shadow: 0 0 0 5px var(--white);
}

.service__badge .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.service__title {
	margin: 2.25rem 1.75rem 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.service__text {
	margin: 0 1.75rem;
	font-size: 1rem;
}

.service__text strong {
	color: var(--navy);
}

@media (min-width: 40em) {
	.services__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.services__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

.process__steps {
	position: relative;
	display: grid;
	gap: 2.5rem;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.process__steps::before {
	content: "";
	position: absolute;
	left: calc(2.25rem - 1px);
	top: 2.25rem;
	bottom: 2.25rem;
	width: 2px;
	background-image: linear-gradient(var(--red) 55%, transparent 0);
	background-size: 2px 10px;
	opacity: 0.55;
}

.step {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	column-gap: 1.25rem;
}

.step__node {
	grid-row: span 2;
	position: relative;
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: var(--white);
	color: var(--red);
	border: 2px solid #e9c3c3;
}

.step__node .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.step__num {
	position: absolute;
	right: -0.375rem;
	bottom: -0.125rem;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--red);
	color: var(--white);
	font: 700 0.75rem/1.75rem var(--font-display);
	text-align: center;
}

.step__title {
	margin: 0.5rem 0;
	font-size: 1.25rem;
	font-weight: 600;
}

.step__points {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9688rem;
	line-height: 1.55;
	color: var(--muted);
}

.step__points li + li {
	margin-top: 0.25rem;
}

@media (min-width: 64em) {
	.process__steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem;
		margin-top: 4rem;
		text-align: center;
	}

	.process__steps::before {
		left: 12.5%;
		right: 12.5%;
		top: calc(2.75rem - 1px);
		bottom: auto;
		width: auto;
		height: 2px;
		background-image: linear-gradient(90deg, var(--red) 55%, transparent 0);
		background-size: 10px 2px;
	}

	.step {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.step__node {
		width: 5.5rem;
		height: 5.5rem;
		margin-bottom: 1rem;
	}

	.step__node .icon {
		width: 2rem;
		height: 2rem;
	}
}

/* ---------- Expertise ---------- */

.expertise__grid {
	display: grid;
	gap: 2.5rem;
}

.expertise__media {
	margin: 0;
}

.expertise__media img {
	width: 100%;
	aspect-ratio: 450 / 585;
	object-fit: cover;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

@media (min-width: 40em) and (max-width: 63.99em) {
	.expertise__media {
		max-width: 28rem;
	}
}

.sectors {
	padding: 2rem var(--gutter);
	margin-inline: calc(-1 * var(--gutter));
	background: var(--red);
	color: var(--white);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.sectors__title {
	margin-bottom: 1.25rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--white);
}

.sectors .checklist {
	margin: 0;
}

@media (min-width: 40em) {
	.sectors {
		margin-inline: 0;
		padding: 2.25rem 2.5rem;
	}
}

@media (min-width: 64em) {
	/* The photo column never exceeds the 450 px source. */
	.expertise__grid {
		grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
		grid-template-areas:
			"media body"
			"media sectors";
		column-gap: 4.5rem;
		row-gap: 1.5rem;
		align-items: start;
	}

	.expertise__media {
		grid-area: media;
	}

	.expertise__body {
		grid-area: body;
	}

	.sectors {
		grid-area: sectors;
		position: relative;
		z-index: 1;
		margin-left: -7rem;
	}
}

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

.team__list {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.person {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
	padding: 1.5rem;
	background: var(--white);
	border: 1px solid var(--line);
}

.person__name {
	margin: 0;
	font: 600 1.1875rem/1.3 var(--font-display);
	color: var(--navy);
}

.person__role {
	margin: 0.125rem 0 0.875rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--muted);
}

.person__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.25rem;
	font-size: 0.9688rem;
	color: var(--navy);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.person__link .icon {
	width: 1rem;
	height: 1rem;
	color: var(--red);
}

.person__link:hover {
	color: var(--red);
	text-decoration: underline;
}

@media (min-width: 40em) {
	.team__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.team__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Why us + enquiry form ---------- */

.why__grid {
	display: grid;
	gap: 3rem;
}

.why__subtitle {
	margin: 1.75rem 0 1rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.why .checklist {
	margin: 0;
}

@media (min-width: 64em) {
	.why__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 33rem);
		gap: 5rem;
		align-items: start;
	}
}

.enquiry {
	position: relative;
	padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
	background: var(--navy);
	color: var(--white);
	clip-path: polygon(0 0, calc(100% - 3rem) 0, 100% 3rem, 100% 100%, 0 100%);
}

.enquiry__title {
	margin-bottom: 0.5rem;
	font-size: 1.625rem;
	font-weight: 700;
	color: var(--white);
}

.enquiry--contact .enquiry__title,
.enquiry--driver .enquiry__title {
	margin-bottom: 1.5rem;
}

.enquiry__intro {
	margin-bottom: 1.75rem;
	font-size: 0.9688rem;
	color: rgb(255 255 255 / 0.78);
}

.enquiry__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.enquiry__grid {
	display: grid;
	gap: 1.125rem 1rem;
}

.field__label {
	display: block;
	margin-bottom: 0.4rem;
	font: 500 0.9375rem/1.3 var(--font-display);
	color: var(--white);
}

.field__req {
	margin-left: 0.15rem;
	color: var(--red-300);
}

.field__control {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.875rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--white);
	background: rgb(255 255 255 / 0.07);
	border: 1px solid rgb(255 255 255 / 0.24);
	border-radius: var(--radius);
	appearance: none;
	caret-color: var(--white);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field__control::placeholder {
	color: rgb(255 255 255 / 0.62);
}

.field__control:hover {
	border-color: rgb(255 255 255 / 0.45);
}

.field__control:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: 2px;
	border-color: var(--white);
	background: rgb(255 255 255 / 0.1);
}

textarea.field__control {
	min-height: 8.5rem;
	line-height: 1.5;
	resize: vertical;
}

.field__control[aria-invalid="true"] {
	border-color: var(--red-300);
}

.field__control option {
	color: var(--navy);
	background: var(--white);
}

.field__select {
	position: relative;
}

.field__select select {
	padding-right: 2.5rem;
	cursor: pointer;
}

.field__select .icon {
	position: absolute;
	right: 0.875rem;
	top: 50%;
	width: 1.125rem;
	height: 1.125rem;
	translate: 0 -50%;
	pointer-events: none;
	opacity: 0.8;
}

.field__error {
	margin: 0.4rem 0 0;
	font-size: 0.875rem;
	color: #ffc2c2;
}

.enquiry__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
}

.enquiry__submit[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.enquiry__consent {
	flex: 1 1 14rem;
	margin: 0;
	font-size: 0.8438rem;
	line-height: 1.5;
	color: rgb(255 255 255 / 0.75);
}

.enquiry__consent a {
	color: var(--white);
}

.enquiry__status {
	margin: 0;
	font-size: 0.9688rem;
}

.enquiry__status:not(:empty) {
	margin-top: 1.25rem;
	padding: 0.875rem 1rem;
	border-radius: var(--radius);
	background: rgb(255 255 255 / 0.08);
}

.enquiry__status[data-state="ok"] {
	color: #b9f0c8;
}

.enquiry__status[data-state="invalid"],
.enquiry__status[data-state="error"] {
	color: #ffc2c2;
}

@media (min-width: 40em) {
	.enquiry__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.enquiry__grid .field--wide {
		grid-column: 1 / -1;
	}
}

/* ---------- Numbers ---------- */

.numbers {
	padding-block: 3.25rem;
	background: var(--slate);
	color: var(--white);
}

.numbers__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.25rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.number {
	display: flex;
	align-items: center;
	gap: 0.875rem;
}

.number__icon {
	width: 2rem;
	height: 2rem;
	stroke-width: 1.5;
	color: rgb(255 255 255 / 0.92);
}

/* The slanted divider repeats the hero's diagonal. */
.number__body {
	position: relative;
	min-width: 0;
	padding-left: 1.25rem;
}

.number__body::before {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: 0.125rem;
	bottom: 0.125rem;
	width: 2px;
	background: rgb(255 255 255 / 0.55);
	transform: rotate(16deg);
}

.number__value {
	margin: 0 0 0.25rem;
	font: 700 clamp(1.875rem, 1.5rem + 1.8vw, 3.25rem)/1 var(--font-display);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums lining-nums;
}

.number__label {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: rgb(255 255 255 / 0.86);
}

@media (max-width: 29.99em) {
	.number__icon {
		display: none;
	}
}

@media (min-width: 64em) {
	.numbers__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.number {
		gap: 1.125rem;
	}

	.number__icon {
		width: 2.75rem;
		height: 2.75rem;
	}

	.number__label {
		font-size: 1rem;
	}
}

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

.cta {
	padding-block: 3.75rem;
	color: var(--white);
	background: linear-gradient(115deg, var(--navy) 62%, #0b1838 62%);
}

.cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.cta__title {
	margin-bottom: 0.5rem;
	font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
	font-weight: 700;
	color: var(--white);
}

.cta__text {
	max-width: 36rem;
	margin: 0;
	color: rgb(255 255 255 / 0.8);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
}

.btn--phone {
	gap: 0.875rem;
	padding: 0.75rem 1.5rem 0.75rem 0.75rem;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	font-weight: 700;
	color: var(--white);
	border-color: rgb(255 255 255 / 0.3);
}

.btn--phone:hover {
	border-color: var(--white);
	background: rgb(255 255 255 / 0.06);
}

.btn--phone .icon {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.6rem;
	border-radius: 50%;
	background: var(--red);
	transform: none;
}

.btn--phone:hover .icon:last-child {
	transform: none;
}

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

.site-footer {
	padding-top: 3.5rem;
	font-size: 0.9688rem;
	color: rgb(255 255 255 / 0.72);
	background: var(--black);
}

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.brand--footer {
	margin: 0;
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a {
	font: 500 0.9375rem/1.4 var(--font-display);
	color: var(--white);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
	color: var(--white);
}

.site-footer__cols {
	display: grid;
	gap: 2.25rem;
	padding-block: 2.75rem;
}

.site-footer__title {
	margin-bottom: 1rem;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--white);
}

.site-footer__links {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links a {
	color: rgb(255 255 255 / 0.72);
	text-decoration: none;
}

.site-footer__contact a,
.site-footer__address {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}

.site-footer__contact .icon {
	width: 1.05rem;
	height: 1.05rem;
	color: var(--red-300);
}

.site-footer__about {
	max-width: 26rem;
	margin: 0;
	line-height: 1.6;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: 1.5rem;
	font-size: 0.875rem;
	border-top: 1px solid rgb(255 255 255 / 0.12);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	color: var(--white);
}

@media (min-width: 48em) {
	.site-footer__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Simple pages (404) ---------- */

.page-head {
	padding-block: clamp(4rem, 3rem + 4vw, 6rem);
	background: var(--tint);
}

.page-head h1 {
	margin-bottom: 1rem;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}

/* ---------- Inner page head: the hero's chevron over the road banner ---------- */

.page-hero {
	position: relative;
	isolation: isolate;
	background: var(--red);
	color: var(--white);
}

.page-hero__media {
	height: clamp(7rem, 32vw, 11rem);
	overflow: hidden;
	background: #7c2021;
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 47% 50%;
}

.page-hero__panel {
	position: relative;
	margin-top: -2rem;
	padding: 3.25rem var(--gutter) 2.75rem;
	background: var(--red);
	clip-path: polygon(0 2rem, 100% 0, 100% 100%, 0 100%);
}

.page-hero__content {
	max-width: 38rem;
}

.page-hero__title {
	margin: 0;
	font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--white);
}

.page-hero__lead {
	margin: 1.125rem 0 0;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.6;
	color: rgb(255 255 255 / 0.92);
}

.page-hero .hero__actions {
	margin-top: 1.75rem;
}

@media (min-width: 64em) {
	.page-hero {
		display: flex;
		min-height: 19rem;
	}

	/* The cab of the banner truck stays right of the chevron tip from 1024 to 1920. */
	.page-hero__media {
		position: absolute;
		inset: 0 0 0 45%;
		z-index: -1;
		height: auto;
	}

	.page-hero__media img {
		object-position: 33% 50%;
	}

	.page-hero__panel {
		display: flex;
		align-items: center;
		width: 74%;
		margin: 0;
		padding-block: 3.5rem;
		padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
		padding-right: 24%;
		clip-path: polygon(0 0, 60% 0, 100% 56%, 88% 100%, 0 100%);
	}
}

/* Breadcrumb drawn as a two-stop route: home (white node) → this page (red node). */
.crumbs {
	margin-bottom: 1.25rem;
}

.crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font: 500 0.9375rem/1.3 var(--font-display);
}

.crumbs__list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.crumbs__list li::before {
	content: "";
	flex: none;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: var(--red);
	border: 2px solid var(--white);
	box-shadow: 0 0 0 3px rgb(255 255 255 / 0.16);
}

.crumbs__list li:first-child::before {
	background: var(--white);
}

.crumbs__list li:first-child::after {
	content: "";
	width: 2.5rem;
	height: 2px;
	margin-inline: 0.25rem 0.5rem;
	background-image: linear-gradient(90deg, rgb(255 255 255 / 0.75) 55%, transparent 0);
	background-size: 10px 2px;
}

.crumbs a {
	color: rgb(255 255 255 / 0.85);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--white);
	text-decoration: underline;
}

.crumbs [aria-current] {
	color: var(--white);
}

/* ---------- Services, compact (About): ruled columns, no card boxes ---------- */

.services--compact .services__list {
	gap: 2.25rem;
}

.services--compact .service {
	padding: 0;
	background: none;
	border: 0;
}

.services--compact .service__badge {
	position: static;
	margin-bottom: 1.25rem;
	box-shadow: none;
}

.services--compact .service__title {
	margin: 0 0 0.75rem;
}

.services--compact .service__text {
	margin: 0;
}

@media (min-width: 64em) {
	.services--compact .services__list {
		gap: 0;
	}

	.services--compact .service {
		padding-right: 2.25rem;
	}

	.services--compact .service + .service {
		padding-left: 2.25rem;
		border-left: 1px solid var(--line);
	}
}

/* ---------- Documents ---------- */

.docs__list {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.doc {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--navy);
	text-decoration: none;
	background: var(--white);
	border: 1px solid var(--line);
	transition: border-color 0.18s ease;
}

/* The letterhead of the first page peeks out of a tray; the cut corner reads as a dog-ear. */
.doc__preview {
	display: block;
	padding: 1.5rem 1.5rem 0;
	overflow: hidden;
	background: var(--tint);
	border-bottom: 1px solid var(--line);
}

.doc__preview img {
	width: 100%;
	aspect-ratio: 800 / 460;
	object-fit: cover;
	object-position: top;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
	transition: transform 0.5s var(--ease-out);
}

.doc__body {
	display: grid;
	gap: 0.5rem;
	padding: 1.25rem 3.75rem 1.5rem 1.5rem;
}

.doc__title {
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
}

.doc__meta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.doc__meta .icon {
	width: 1rem;
	height: 1rem;
	color: var(--red);
}

.doc__arrow {
	position: absolute;
	right: 1.5rem;
	bottom: 1.625rem;
	width: 1.25rem;
	height: 1.25rem;
	color: var(--red);
	transition: transform 0.3s var(--ease-out);
}

.doc:hover {
	border-color: #c9ccd4;
}

.doc:hover .doc__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.doc:hover .doc__preview img {
	transform: translateY(-0.375rem);
}

.doc:hover .doc__arrow {
	transform: translate(2px, -2px);
}

@media (min-width: 40em) {
	.docs__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.docs__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

.offer__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.offer__media {
	max-width: 24rem;
	margin: 0;
}

.offer__media img {
	width: 100%;
	aspect-ratio: 380 / 510;
	object-fit: cover;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

@media (min-width: 64em) {
	.offer__grid {
		grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
		gap: 5rem;
	}
}

.perks__lead {
	margin-inline: auto;
	text-align: center;
}

.perks__list {
	margin-top: 2.5rem;
	padding: 0;
}

.apply .checklist {
	margin: 1.5rem 0 0;
}

.checklist--bonus li {
	font-weight: 400;
}

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

.channels {
	align-self: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.channel {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding-block: 1.75rem;
	border-bottom: 1px solid var(--line);
}

.channel:first-child {
	padding-top: 0;
}

.channel__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--red);
	color: var(--white);
}

.channel__icon .icon {
	width: 1.375rem;
	height: 1.375rem;
}

.channel__label {
	margin: 0 0 0.25rem;
	font: 500 0.9688rem/1.3 var(--font-display);
	color: var(--muted);
}

.channel__value {
	font: 700 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.3 var(--font-display);
	color: var(--navy);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.channel__value--address {
	display: inline-block;
	font-size: 1.1875rem;
	font-weight: 600;
}

.channel__value:hover {
	color: var(--red);
	text-decoration: underline;
}

/* Office map: two dashed roads cross at the office node; Google loads only after the click. */
.map-section {
	padding-bottom: clamp(4rem, 2.8rem + 4.5vw, 7rem);
}

.map {
	position: relative;
	min-height: 26rem;
	overflow: hidden;
	color: var(--white);
	background-color: var(--navy);
	background-image:
		linear-gradient(90deg, rgb(255 255 255 / 0.2) 55%, transparent 0),
		linear-gradient(rgb(255 255 255 / 0.2) 55%, transparent 0);
	background-size: 10px 2px, 2px 10px;
	background-position: 0 78%, 80% 0;
	background-repeat: repeat-x, repeat-y;
	clip-path: polygon(0 0, calc(100% - 3rem) 0, 100% 3rem, 100% 100%, 0 100%);
}

.map::before {
	content: "";
	position: absolute;
	left: -10%;
	right: -10%;
	top: 78%;
	height: 2px;
	background-image: linear-gradient(90deg, rgb(255 255 255 / 0.12) 55%, transparent 0);
	background-size: 10px 2px;
	transform: rotate(-16deg);
	transform-origin: 80% 50%;
}

.map__pin {
	position: absolute;
	left: calc(80% - 0.75rem + 1px);
	top: calc(78% - 0.75rem + 1px);
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--red);
	border: 3px solid var(--white);
	box-shadow: 0 0 0 7px rgb(255 255 255 / 0.16);
}

.map__placeholder {
	position: relative;
	max-width: 30rem;
	padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
}

.map__title {
	margin-bottom: 0.5rem;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 700;
	color: var(--white);
}

.map__address {
	margin-bottom: 0.75rem;
	font: 600 1.125rem/1.4 var(--font-display);
}

.map__note {
	margin-bottom: 1.75rem;
	font-size: 0.9375rem;
	color: rgb(255 255 255 / 0.75);
}

.map__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
}

.map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map.is-loaded .map__placeholder,
.map.is-loaded .map__pin,
.no-js .map__load {
	display: none;
}

@media (min-width: 64em) {
	/* The channel list is shorter than the form: centre it instead of leaving a void under it. */
	.contact .channels {
		align-self: center;
	}

	.map {
		min-height: 0;
		aspect-ratio: 16 / 5;
	}
}

/* ---------- Privacy (legal text) ---------- */

.legal__body {
	max-width: 46rem;
}

.legal__body h2 {
	margin: 2.75rem 0 1rem;
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
	font-weight: 700;
}

.legal__body h2:first-child {
	margin-top: 0;
}

.legal__body h3 {
	margin: 2rem 0 0.75rem;
	font-size: 1.1875rem;
	font-weight: 600;
}

.legal__body ul {
	margin: 0 0 1.25rem;
	padding-left: 1.25rem;
}

.legal__body li {
	margin-bottom: 0.375rem;
}

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

.legal__body a {
	color: var(--red);
	overflow-wrap: anywhere;
}

/* ---------- Motion 1: decorative lines draw once, content never waits ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js [data-draw] .route__line,
	.js .process__steps[data-draw]::before {
		clip-path: inset(0 100% 0 0);
		transition: clip-path 1.2s var(--ease-out) 0.15s;
	}

	.js .process__steps[data-draw]::before {
		clip-path: inset(0 0 100% 0);
	}

	.js [data-draw] .route__stops li::before {
		transform: scale(0.4);
		opacity: 0;
		transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
	}

	.js [data-draw].is-drawn .route__line,
	.js .process__steps.is-drawn::before {
		clip-path: inset(0);
	}

	.js [data-draw].is-drawn .route__stops li::before {
		transform: scale(1);
		opacity: 1;
	}

	.js [data-draw].is-drawn .route__stops li:nth-child(2)::before { transition-delay: 0.25s; }
	.js [data-draw].is-drawn .route__stops li:nth-child(3)::before { transition-delay: 0.4s; }
	.js [data-draw].is-drawn .route__stops li:nth-child(4)::before { transition-delay: 0.55s; }
	.js [data-draw].is-drawn .route__stops li:nth-child(5)::before { transition-delay: 0.7s; }
	.js [data-draw].is-drawn .route__stops li:nth-child(6)::before { transition-delay: 0.85s; }

	.js .crumbs[data-draw] li:first-child::after {
		clip-path: inset(0 100% 0 0);
		transition: clip-path 0.8s var(--ease-out) 0.15s;
	}

	.js .crumbs[data-draw] li + li::before {
		transform: scale(0.4);
		opacity: 0;
		transition: transform 0.5s var(--ease-out) 0.7s, opacity 0.3s ease 0.7s;
	}

	.js .crumbs.is-drawn li:first-child::after {
		clip-path: inset(0);
	}

	.js .crumbs.is-drawn li + li::before {
		transform: scale(1);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: no-preference) and (min-width: 64em) {
	.js .process__steps[data-draw]:not(.is-drawn)::before {
		clip-path: inset(0 100% 0 0);
	}
}

/* ---------- Motion 2 — «Живой маршрут» (29.09.2026) ----------
 * Only decorative marks move: text and photos never wait. Loops run while their block is on screen
 * (main.js toggles .is-live) and are off entirely under prefers-reduced-motion and without JS.
 * Transform and opacity only; the route/process signal travels by container units (cqw/cqh). */

.route__signal,
.process__signal {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	/* Hero route: a signal runs CZ → EU every 6.4 s, each stop pings as it passes. */
	.js .route__signal {
		display: block;
		position: absolute;
		left: 0.5rem;
		right: 0.5rem;
		top: calc(0.5rem - 1px);
		height: 2px;
		container-type: inline-size;
		pointer-events: none;
	}

	.js .route__signal i {
		position: absolute;
		left: -0.3125rem;
		top: -0.25rem;
		width: 0.625rem;
		height: 0.625rem;
		border-radius: 50%;
		background: var(--white);
		box-shadow: 0 0 0 3px rgb(255 255 255 / 0.22), 0 0 14px 3px rgb(255 255 255 / 0.55);
		opacity: 0;
		animation: route-run 6.4s cubic-bezier(0.45, 0, 0.55, 1) 1.6s infinite paused;
	}

	.js .route__stops li {
		position: relative;
	}

	.js .route__stops li::after {
		content: "";
		position: absolute;
		left: 50%;
		top: 0;
		width: 1rem;
		height: 1rem;
		margin-left: -0.5rem;
		border-radius: 50%;
		box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85);
		opacity: 0;
		/* The signal reaches stop i at 5 % + i × 10 % of the cycle. */
		animation: stop-ping 6.4s ease-out calc(1.92s + var(--i, 0) * 0.64s) infinite paused;
	}

	.js .route.is-live .route__signal i,
	.js .route.is-live .route__stops li::after {
		animation-play-state: running;
	}

	/* Breadcrumbs: the dashes flow towards the current page, which pings softly. */
	.js .crumbs.is-live li:first-child::after {
		animation: dash-flow 1.4s linear infinite;
	}

	.js .crumbs li:last-child:not(:first-child) {
		position: relative;
	}

	.js .crumbs.is-live li:last-child:not(:first-child)::after {
		content: "";
		position: absolute;
		left: 0;
		top: 50%;
		width: 0.75rem;
		height: 0.75rem;
		margin-top: -0.375rem;
		border-radius: 50%;
		box-shadow: 0 0 0 2px rgb(255 255 255 / 0.8);
		animation: stop-ping 2.8s ease-out 0.6s infinite;
	}

	/* Process 01–04: a signal passes under the station nodes, each lights up in turn. */
	.js .process__signal {
		display: block;
		position: absolute;
		left: calc(2.25rem - 1px);
		top: 2.25rem;
		bottom: 2.25rem;
		width: 2px;
		container-type: size;
		pointer-events: none;
	}

	.js .process__signal i {
		position: absolute;
		left: -0.25rem;
		top: -0.3125rem;
		width: 0.625rem;
		height: 0.625rem;
		border-radius: 50%;
		background: var(--red);
		box-shadow: 0 0 0 3px rgb(165 43 44 / 0.18), 0 0 12px 2px rgb(165 43 44 / 0.35);
		opacity: 0;
		animation: process-run-y 8s cubic-bezier(0.45, 0, 0.55, 1) 1.6s infinite paused;
	}

	.js .process__steps .step__node {
		z-index: 1;
		animation: station 8s ease-out calc(2s + var(--i, 0) * 1.2s) infinite paused;
	}

	.js .process__steps.is-live .process__signal i,
	.js .process__steps.is-live .step__node {
		animation-play-state: running;
	}

	/* Contact map: radar rings around the office pin until the real map is loaded. */
	.js .map.is-live .map__pin::before,
	.js .map.is-live .map__pin::after {
		content: "";
		position: absolute;
		inset: -3px;
		border-radius: 50%;
		border: 2px solid rgb(255 255 255 / 0.7);
		animation: radar 3s ease-out infinite;
	}

	.js .map.is-live .map__pin::after {
		animation-delay: 1.5s;
	}

	/* Buttons: a sheen crosses on hover, a slight press on click; the hero CTA sheens on its own every 9 s. */
	.btn--primary,
	.btn--light {
		position: relative;
		overflow: hidden;
		isolation: isolate;
		transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
	}

	.btn--primary::after,
	.btn--light::after {
		content: "";
		position: absolute;
		inset: -2px auto -2px 0;
		z-index: -1;
		width: 45%;
		background: linear-gradient(100deg, transparent, var(--sheen, rgb(255 255 255 / 0.38)), transparent);
		transform: translateX(-130%) skewX(-18deg);
		pointer-events: none;
	}

	.btn--light {
		--sheen: rgb(165 43 44 / 0.16);
	}

	.btn--primary:active,
	.btn--light:active {
		transform: scale(0.97);
	}

	.js .hero.is-live .hero__actions .btn--light::after {
		animation: idle-sheen 9s ease-in-out 3s infinite;
	}

	/* Menus open softly. */
	.lang[open] .lang__menu {
		transform-origin: top right;
		animation: pop-in 0.2s var(--ease-out);
	}

	.js .primary-nav[data-open="true"] {
		animation: drop-in 0.24s var(--ease-out);
	}
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
	.btn--primary:hover::after,
	.btn--light:hover::after {
		transform: translateX(330%) skewX(-18deg);
		transition: transform 0.75s var(--ease-out);
	}

	/* Service cards: the badge nods (the photo zoom lives with the card styles). */
	.service:hover .service__badge {
		animation: nod 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
	}

	/* Documents: the preview lifts like a sheet picked up from the desk. */
	.doc:hover .doc__preview img {
		transform: translateY(-0.5rem) rotate(-1.2deg);
	}
}

@media (prefers-reduced-motion: no-preference) and (min-width: 64em) {
	/* On wide screens the process line is horizontal. */
	.js .process__signal {
		left: 12.5%;
		right: 12.5%;
		top: calc(2.75rem - 1px);
		bottom: auto;
		width: auto;
		height: 2px;
		container-type: inline-size;
	}

	.js .process__signal i {
		left: -0.3125rem;
		top: -0.25rem;
		animation-name: process-run-x;
	}
}

@keyframes route-run {
	0% { transform: translateX(0); opacity: 0; }
	5% { transform: translateX(0); opacity: 1; }
	55% { transform: translateX(100cqw); opacity: 1; }
	62%, 100% { transform: translateX(100cqw); opacity: 0; }
}

@keyframes stop-ping {
	0% { transform: scale(1); opacity: 0.9; }
	14%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes dash-flow {
	from { background-position-x: 0; }
	to { background-position-x: 10px; }
}

@keyframes process-run-y {
	0% { transform: translateY(0); opacity: 0; }
	5% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(100cqh); opacity: 1; }
	56%, 100% { transform: translateY(100cqh); opacity: 0; }
}

@keyframes process-run-x {
	0% { transform: translateX(0); opacity: 0; }
	5% { transform: translateX(0); opacity: 1; }
	50% { transform: translateX(100cqw); opacity: 1; }
	56%, 100% { transform: translateX(100cqw); opacity: 0; }
}

@keyframes station {
	0% { border-color: #e9c3c3; transform: scale(1); }
	4% { border-color: var(--red); transform: scale(1.06); }
	14%, 100% { border-color: #e9c3c3; transform: scale(1); }
}

@keyframes radar {
	0% { transform: scale(1); opacity: 0.85; }
	100% { transform: scale(3.6); opacity: 0; }
}

@keyframes idle-sheen {
	0% { transform: translateX(-130%) skewX(-18deg); }
	10%, 100% { transform: translateX(330%) skewX(-18deg); }
}

@keyframes nod {
	0% { transform: rotate(0) scale(1); }
	35% { transform: rotate(-12deg) scale(1.08); }
	70% { transform: rotate(6deg) scale(1.02); }
	100% { transform: rotate(0) scale(1); }
}

@keyframes pop-in {
	from { opacity: 0; transform: translateY(-6px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@keyframes drop-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}
