/* ==========================================================================
   MH-NORD Logistics – tyylit
   Värit: satamayö (ink), sumu (fog), sahattu mänty (sawn), kuusi (spruce)
   ========================================================================== */

:root {
	--ink: #0e2131;
	--ink-deep: #0a1824;
	--ink-land: #1b3650;
	--fog: #e8eeec;
	--paper: #f6f8f7;
	--sawn: #e8c27a;
	--sawn-ink: #855a14;
	--spruce: #4f8f76;
	--spruce-ink: #2a6a52;

	/* Pinnat (vaaleat kaistat) – vaihtuvat tummassa tilassa */
	--surface: var(--fog);
	--surface-2: var(--paper);
	--on-surface: #13283a;
	--muted: #4b5c6a;
	--line: rgba(14, 33, 49, 0.16);
	--accent-text: var(--sawn-ink);
	--btn-bg: var(--ink);
	--btn-fg: #f3f6f5;

	/* Tummat kaistat */
	--band-ink: var(--ink);
	--on-ink: #eef2f0;
	--on-ink-muted: #a9b8c2;
	--line-ink: rgba(238, 242, 240, 0.16);

	/* Hero-paketti */
	--pk-a: #edcd92;
	--pk-b: #e3bd78;
	--pk-c: #f1d9a8;
	--pk-ring: rgba(146, 96, 28, 0.38);
	--pk-edge: rgba(110, 72, 18, 0.45);
	--pk-strap: #0e2131;
	--pk-bearer: #c39a5a;
	--pk-ground: rgba(14, 33, 49, 0.25);

	--font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
	--font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(20px, 5vw, 48px);
	--band-pad: clamp(64px, 9vw, 128px);
	--radius: 4px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--surface: #112230;
		--surface-2: #0d1c28;
		--on-surface: #e8eeec;
		--muted: #a3b2bd;
		--line: rgba(232, 238, 236, 0.16);
		--accent-text: var(--sawn);
		--btn-bg: var(--sawn);
		--btn-fg: var(--ink);
		--band-ink: #071520;
		--pk-ring: rgba(120, 76, 18, 0.45);
		--pk-strap: #071520;
		--pk-ground: rgba(232, 238, 236, 0.22);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--surface: #112230;
	--surface-2: #0d1c28;
	--on-surface: #e8eeec;
	--muted: #a3b2bd;
	--line: rgba(232, 238, 236, 0.16);
	--accent-text: var(--sawn);
	--btn-bg: var(--sawn);
	--btn-fg: var(--ink);
	--band-ink: #071520;
	--pk-ring: rgba(120, 76, 18, 0.45);
	--pk-strap: #071520;
	--pk-ground: rgba(232, 238, 236, 0.22);
	color-scheme: dark;
}

/* --- Perusta --------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--on-surface);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3 {
	margin: 0;
	font-weight: 600;
	line-height: 1.15;
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

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

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

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--on-ink);
	border-radius: var(--radius);
}
.skip-link:focus {
	top: 12px;
}

/* --- Painikkeet ------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.75em 1.35em;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--ink {
	background: var(--btn-bg);
	color: var(--btn-fg);
}
.btn--ink:hover {
	background: var(--spruce-ink);
	color: #fff;
}
.btn--line {
	border-color: currentColor;
	color: var(--on-surface);
}
.btn--line:hover {
	background: var(--on-surface);
	color: var(--surface);
}
.btn--sawn {
	background: var(--sawn);
	color: var(--ink);
}
.btn--sawn:hover {
	background: #f3d597;
}

/* --- Ylätunniste ----------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-top: env(safe-area-inset-top, 0px);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}
.site-header.is-scrolled {
	border-bottom-color: var(--line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.brand {
	display: inline-flex;
	white-space: nowrap;
	align-items: center;
	gap: 10px;
	color: var(--on-surface);
	text-decoration: none;
	line-height: 1;
}
.brand__mark {
	flex: none;
	width: 30px;
	height: 26px;
	fill: currentColor;
}
.brand__mark-accent {
	fill: var(--sawn);
}
.brand__name {
	font: 800 1.65rem/1 var(--font-display);
	letter-spacing: 0.01em;
}
.brand__sub {
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--muted);
}
.custom-logo {
	max-height: 52px;
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 480px) {
	.site-header .brand__sub {
		display: none;
	}
}

/* Kielivalitsin */
.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
}
.lang-switch__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 10px 0 8px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	color: var(--muted);
	transition: background-color 0.15s, color 0.15s;
}
.lang-switch__item:hover {
	color: var(--on-surface);
	background: color-mix(in srgb, var(--on-surface) 8%, transparent);
}
.lang-switch__item.is-active {
	background: var(--btn-bg);
	color: var(--btn-fg);
}
.lang-switch .flag {
	width: 18px;
	height: 12px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(14, 33, 49, 0.18);
	flex: none;
}
.nav__list {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav__list a {
	white-space: nowrap;
	font-weight: 500;
	font-size: 0.98rem;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.nav__list a:hover,
.nav__list .current-menu-item > a {
	border-bottom-color: var(--sawn);
}

.nav-toggle {
	display: none;
	width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--on-surface);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 24px;
	height: 2px;
	margin: auto;
	background: currentColor;
	transition: transform 0.2s;
}
.nav-toggle__bars {
	position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.nav-toggle__bars::before {
	top: -7px;
}
.nav-toggle__bars::after {
	top: 7px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1120px) {
	.nav-toggle {
		display: block;
		margin-right: -12px;
	}
	.nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 16px var(--gutter) 28px;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgba(14, 33, 49, 0.35);
		display: none;
	}
	.nav.is-open {
		display: flex;
	}
	.nav .nav__list {
		flex-direction: column;
		gap: 0;
	}
	.nav .nav__list a {
		display: block;
		padding: 14px 0;
		font-size: 1.15rem;
		border-bottom: 1px solid var(--line);
	}
}

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

.hero {
	padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
	overflow: hidden;
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.hero__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(3.1rem, 1.6rem + 6vw, 7.4rem);
	line-height: 0.9;
	letter-spacing: -0.005em;
	max-width: 11ch;
	margin-bottom: 0.32em;
	text-wrap: balance;
}
.hero__lead {
	max-width: 36em;
	font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
	color: var(--muted);
	margin-bottom: 2rem;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.hero__art {
	margin: 0;
}
.hero-package {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 28px 36px rgba(14, 33, 49, 0.2));
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(20px, 4vw, 48px);
	margin: clamp(48px, 7vw, 88px) 0 0;
}
.facts__item {
	border-top: 2px solid var(--on-surface);
	padding-top: 14px;
}
.facts dt {
	font-size: 0.88rem;
	color: var(--muted);
	margin-bottom: 4px;
}
.facts dd {
	margin: 0;
	font-weight: 600;
	font-size: 1.08rem;
	line-height: 1.35;
}

@media (max-width: 860px) {
	.hero__grid {
		grid-template-columns: 1fr;
	}
	.hero__art {
		max-width: 520px;
	}
	.facts {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* --- Kaistat ja otsikot ---------------------------------------------- */

.band {
	padding: var(--band-pad) 0;
}
.band--fog {
	background: var(--surface);
}
.band--paper {
	background: var(--surface-2);
}
.band--ink {
	background: var(--band-ink);
	color: var(--on-ink);
	--on-surface: var(--on-ink);
	--muted: var(--on-ink-muted);
	--line: var(--line-ink);
}

.section-title {
	font-family: var(--font-display);
	font-weight: 750;
	font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.9rem);
	line-height: 0.98;
	letter-spacing: 0;
	text-wrap: balance;
}
.section-intro {
	color: var(--muted);
	font-size: 1.1rem;
	max-width: 38em;
	margin: 0;
}
.section-head {
	margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px 48px;
	align-items: end;
}
@media (max-width: 760px) {
	.section-head--split {
		grid-template-columns: 1fr;
	}
}

/* --- Vientialuekartta ------------------------------------------------ */

.routemap__bar {
	margin-bottom: 16px;
}
.routemap__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.routemap__tab {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--line-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--on-ink);
	font: 600 0.98rem/1 var(--font-body);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.routemap__tab:hover {
	border-color: var(--sawn);
}
.routemap__tab[aria-pressed="true"] {
	background: var(--sawn);
	border-color: var(--sawn);
	color: var(--ink);
}
.routemap__count {
	font-size: 0.8rem;
	font-weight: 600;
	min-width: 1.6em;
	padding: 3px 6px;
	border-radius: 999px;
	background: rgba(238, 242, 240, 0.12);
	text-align: center;
}
.routemap__tab[aria-pressed="true"] .routemap__count {
	background: rgba(14, 33, 49, 0.14);
}

.routemap__stage {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 30% 20%, #12304a 0%, rgba(18, 48, 74, 0) 60%),
		#0a1a29;
	border: 1px solid rgba(238, 242, 240, 0.08);
}
.routemap__canvas {
	position: relative;
	aspect-ratio: 2.15 / 1;
	width: 100%;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
@media (max-width: 760px) {
	.routemap__canvas {
		aspect-ratio: 1.4 / 1;
	}
	.routemap__tab {
		padding: 0 14px;
	}
}
.routemap__canvas svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	user-select: none;
	-webkit-user-select: none;
}

.rm-land {
	fill: var(--ink-land);
	stroke: #0a1a29;
	stroke-width: 0.7;
	stroke-linejoin: round;
	transition: fill 0.35s;
}
.rm-land.is-origin {
	fill: #2d5c4d;
}
.rm-land.is-origin-primary {
	fill: var(--spruce);
}
.rm-land.is-dest {
	fill: #7d6436;
	cursor: pointer;
}
.rm-land.is-dest:hover,
.routemap[data-hover] .rm-land.is-dest.is-hover {
	fill: #a07f42;
}
.routemap.is-zoomed .rm-land.is-dest {
	fill: #4b4637;
}
.routemap.is-zoomed .rm-land.is-dest.is-active {
	fill: #b08a47;
}

.rm-route {
	fill: none;
	stroke: var(--sawn);
	stroke-linecap: round;
	opacity: 0.5;
	transition: opacity 0.4s;
}
.routemap.is-zoomed .rm-route {
	opacity: 0.08;
}
.routemap.is-zoomed .rm-route.is-active {
	opacity: 0.75;
}

.rm-hub {
	fill: #eef2f0;
	stroke: var(--spruce);
}
.rm-hub-ring {
	fill: none;
	stroke: #eef2f0;
	opacity: 0.5;
}

.rm-dot {
	fill: var(--sawn);
	stroke: #0a1a29;
	transition: opacity 0.35s;
}
.rm-pulse {
	fill: var(--sawn);
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	pointer-events: none;
}
.routemap.is-live .rm-pulse {
	animation: rm-pulse 2.8s ease-out infinite;
}
.routemap.is-zoomed .rm-dot:not(.is-active),
.routemap.is-zoomed .rm-pulse:not(.is-active) {
	opacity: 0.2;
	animation: none;
}
@keyframes rm-pulse {
	0% {
		opacity: 0.55;
		transform: scale(1);
	}
	70%,
	100% {
		opacity: 0;
		transform: scale(3.2);
	}
}

.rm-region {
	cursor: pointer;
	transition: opacity 0.3s;
}
.rm-region__name {
	fill: #f3f6f5;
	font-family: var(--font-display);
	font-weight: 750;
	paint-order: stroke;
	stroke: #0a1a29;
	stroke-linejoin: round;
	transition: fill 0.15s;
}
.rm-region__meta {
	fill: var(--sawn);
	font-family: var(--font-body);
	font-weight: 600;
	paint-order: stroke;
	stroke: #0a1a29;
	stroke-linejoin: round;
}
.rm-region__hit {
	fill: transparent;
}
.rm-region:hover .rm-region__name,
.rm-region.is-hover .rm-region__name,
.rm-region:focus-visible .rm-region__name {
	fill: var(--sawn);
}
.rm-region:focus {
	outline: none;
}
.rm-region:focus-visible .rm-region__hit {
	stroke: var(--sawn);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}
.routemap.is-zoomed .rm-region {
	opacity: 0;
	pointer-events: none;
}

.rm-clabel {
	fill: #f6f3ea;
	font-family: var(--font-body);
	font-weight: 600;
	paint-order: stroke;
	stroke: #0a1a29;
	stroke-linejoin: round;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.rm-clabel.is-active {
	opacity: 1;
	transition-delay: 0.45s;
}

.routemap__back {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px 0 10px;
	border: 1px solid rgba(238, 242, 240, 0.2);
	border-radius: 999px;
	background: rgba(10, 26, 41, 0.78);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--on-ink);
	font: 600 0.95rem/1 var(--font-body);
	cursor: pointer;
}
.routemap__back svg {
	width: 20px;
	height: 20px;
}
.routemap__back[hidden] {
	display: none;
}
.routemap__hint {
	position: absolute;
	right: 14px;
	bottom: 10px;
	font-size: 0.82rem;
	color: var(--on-ink-muted);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
}
.routemap.is-zoomed .routemap__hint {
	opacity: 1;
	transition-delay: 0.6s;
}
.routemap__noscript {
	padding: 24px;
	margin: 0;
}

.routemap__info {
	display: grid;
	gap: 20px;
	margin-top: 20px;
}
.routemap__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 0.92rem;
	color: var(--on-ink-muted);
}
.legend {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.legend::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 2px;
}
.legend--origin::before {
	background: var(--spruce);
}
.legend--dest::before {
	background: var(--sawn);
	border-radius: 50%;
}
.routemap__lists {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 32px;
	border-top: 1px solid var(--line-ink);
	padding-top: 20px;
}
.routemap__list {
	transition: opacity 0.3s;
}
.routemap__list h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	margin-bottom: 6px;
}
.routemap__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	color: var(--on-ink-muted);
}
.routemap.is-zoomed .routemap__list {
	opacity: 0.35;
}
.routemap.is-zoomed .routemap__list.is-active {
	opacity: 1;
}
.routemap.is-zoomed .routemap__list.is-active ul {
	color: var(--on-ink);
}
@media (max-width: 760px) {
	.routemap__lists {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* --- Palvelut -------------------------------------------------------- */

.services {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
	gap: 40px clamp(40px, 7vw, 112px);
	align-items: start;
}
.services__head {
	position: sticky;
	top: 110px;
}
.services__head .section-intro {
	margin-top: 18px;
}
.services__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.service {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	column-gap: 24px;
	padding: 30px 0;
	border-top: 1px solid var(--line);
}
.service:last-child {
	border-bottom: 1px solid var(--line);
}
.service .icon {
	grid-row: span 2;
	width: 44px;
	height: 44px;
	color: var(--accent-text);
}
.service h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem);
	line-height: 1.05;
	margin-bottom: 8px;
}
.service p {
	margin: 0;
	color: var(--muted);
	max-width: 40em;
}
@media (max-width: 860px) {
	.services {
		grid-template-columns: 1fr;
	}
	.services__head {
		position: static;
	}
	.service {
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 16px;
	}
	.service .icon {
		width: 36px;
		height: 36px;
	}
}

/* --- Toimintamalli --------------------------------------------------- */

.model {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 48px clamp(40px, 7vw, 112px);
	align-items: center;
}
.model__copy .section-title {
	margin-bottom: 24px;
	max-width: 20ch;
}
.model__copy p {
	max-width: 34em;
	color: var(--muted);
	font-size: 1.08rem;
}
.model__copy p:first-of-type {
	color: var(--on-surface);
	font-size: 1.2rem;
}

.network {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
.network__node {
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-weight: 600;
	line-height: 1.35;
	background: var(--surface);
}
.network__kicker {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--muted);
	margin-bottom: 4px;
}
.network__node--hub {
	background: var(--ink);
	border-color: var(--ink);
	color: #f3f6f5;
	font: 800 2rem/1 var(--font-display);
}
.network__node--hub .network__kicker {
	font-family: var(--font-body);
	color: var(--sawn);
	line-height: 1.4;
}
.network__link {
	width: 2px;
	height: 30px;
	margin-left: 28px;
	background: repeating-linear-gradient(to bottom, var(--accent-text) 0 5px, transparent 5px 10px);
}
.network__partners {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.network__partners li {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--spruce);
	border-radius: var(--radius);
	font-weight: 600;
	background: var(--surface);
}
@media (max-width: 860px) {
	.model {
		grid-template-columns: 1fr;
	}
}

/* --- Prosessi -------------------------------------------------------- */

.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px clamp(20px, 3vw, 40px);
	counter-reset: step;
}
.step {
	counter-increment: step;
	border-top: 2px solid var(--on-surface);
	padding-top: 16px;
}
.step::before {
	content: counter(step);
	display: block;
	font: 800 3.6rem/1 var(--font-display);
	color: var(--accent-text);
	margin-bottom: 14px;
}
.step h3 {
	font-size: 1.2rem;
	font-weight: 650;
	margin-bottom: 8px;
}
.step p {
	color: var(--muted);
	margin: 0;
}
@media (max-width: 960px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 540px) {
	.steps {
		grid-template-columns: 1fr;
	}
	.step {
		display: grid;
		grid-template-columns: 56px 1fr;
		column-gap: 12px;
	}
	.step::before {
		grid-row: span 2;
		font-size: 2.8rem;
	}
}

/* --- Yhteys ja lomake ------------------------------------------------ */

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
	gap: 48px clamp(40px, 7vw, 112px);
	align-items: start;
}
.contact__copy .section-intro {
	margin: 20px 0 32px;
}
.contact__details li {
	display: flex;
	flex-direction: column;
	padding: 14px 0;
	border-top: 1px solid var(--line-ink);
}
.contact__details span {
	font-size: 0.88rem;
	color: var(--on-ink-muted);
}
.contact__details a {
	font-size: 1.2rem;
	font-weight: 600;
	text-decoration: none;
}
.contact__details a:hover {
	color: var(--sawn);
}

.quote-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}
.quote-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.quote-form__field--wide,
.quote-form__foot {
	grid-column: 1 / -1;
}
.quote-form label {
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--on-ink);
}
.quote-form .req {
	color: var(--sawn);
}
.quote-form input,
.quote-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid rgba(238, 242, 240, 0.24);
	border-radius: var(--radius);
	background: rgba(238, 242, 240, 0.06);
	color: var(--on-ink);
	font: 400 1rem/1.4 var(--font-body);
	transition: border-color 0.15s, background-color 0.15s;
}
.quote-form input::placeholder,
.quote-form textarea::placeholder {
	color: rgba(238, 242, 240, 0.45);
}
.quote-form input:focus,
.quote-form textarea:focus {
	outline: none;
	border-color: var(--sawn);
	background: rgba(238, 242, 240, 0.1);
	box-shadow: 0 0 0 1px var(--sawn);
}
.quote-form textarea {
	resize: vertical;
}
.quote-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.quote-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 6px;
}
.quote-form__privacy {
	margin: 0;
	font-size: 0.88rem;
	color: var(--on-ink-muted);
	max-width: 30em;
}
.form-note {
	grid-column: 1 / -1;
	padding: 14px 16px;
	border-radius: var(--radius);
	margin-bottom: 20px;
}
.form-note--ok {
	background: rgba(79, 143, 118, 0.22);
	border: 1px solid var(--spruce);
}
.form-note--error {
	background: rgba(232, 120, 90, 0.16);
	border: 1px solid #e8785a;
}
@media (max-width: 860px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.quote-form {
		grid-template-columns: 1fr;
	}
	.quote-form__foot .btn {
		width: 100%;
	}
}

/* --- Alatunniste ----------------------------------------------------- */

.site-footer {
	background: var(--ink-deep);
	color: #c9d4db;
	padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom, 0px));
	--on-surface: #eef2f0;
	--muted: #93a4b0;
}
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
}
.site-footer .brand {
	color: #eef2f0;
	margin-bottom: 16px;
}
.site-footer__brand p {
	max-width: 30em;
	color: var(--muted);
}
.site-footer__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #eef2f0;
	margin-bottom: 12px;
}
.site-footer .plain li {
	padding: 4px 0;
}
.site-footer a {
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--sawn);
}
.site-footer .nav__list {
	display: block;
}
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid rgba(238, 242, 240, 0.12);
	font-size: 0.88rem;
	color: var(--muted);
}
@media (max-width: 760px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* --- Sivut ja artikkelit --------------------------------------------- */

.page-head {
	padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px);
}
.page-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.6rem, 1.8rem + 3.4vw, 5rem);
	line-height: 0.95;
	max-width: 16ch;
}
.page-head--404 .section-intro {
	margin: 20px 0 28px;
}
.page-meta {
	color: var(--muted);
	font-size: 0.92rem;
	margin-bottom: 10px;
}
.prose {
	max-width: calc(46rem + 2 * var(--gutter));
	padding-bottom: var(--band-pad);
}
.band .prose {
	padding-bottom: 0;
}
.prose h2 {
	font-family: var(--font-display);
	font-weight: 750;
	font-size: 2.2rem;
	line-height: 1;
	margin: 1.6em 0 0.5em;
}
.prose h3 {
	font-size: 1.25rem;
	margin: 1.6em 0 0.4em;
}
.prose img {
	border-radius: var(--radius);
}
.prose a {
	color: var(--accent-text);
}
.prose blockquote {
	margin: 1.6em 0;
	padding-left: 20px;
	border-left: 3px solid var(--sawn);
	font-size: 1.2rem;
}
.post-list {
	padding-bottom: var(--band-pad);
	max-width: calc(52rem + 2 * var(--gutter));
}
.post-card {
	padding: 28px 0;
	border-top: 1px solid var(--line);
}
.post-card h2 {
	font-family: var(--font-display);
	font-weight: 750;
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 10px;
}
.post-card h2 a {
	text-decoration: none;
}
.post-card h2 a:hover {
	color: var(--accent-text);
}

/* --- Liike pois, jos käyttäjä niin haluaa ----------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
