/* Hallivuori – premium-taso (KK Growth Lab). Kaikki säännöt body.hvp-luokan alla,
   paitsi video-osiot, jotka toimivat myös ilman premium-ulkoasua. */

/* ---------- Tokens ---------- */
body.hvp {
	--hv-light: #f2f5f8;
	--hv-line: #dde4ec;
	--hvp-ink-2: #0a1420;
	--hvp-mute: #8fa3b8;
	--hvp-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Hero ---------- */
.hvp .hv-hero--home { min-height: 94vh; min-height: 94svh; }
.hvp .hv-hero--sub { min-height: 66vh; min-height: 66svh; }
.hvp .hv-hero h1 {
	font-size: clamp(2.2rem, 4.6vw, 4rem) !important;
	line-height: 1.05 !important;
	letter-spacing: -.026em !important;
}
.hvp .hv-hero--sub h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem) !important; }
.hvp .hv-hero .hv-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 40em; }
.hvp .hv-eyebrow { letter-spacing: .14em !important; }
.hvp .hv-eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 1px;
	background: currentColor;
	vertical-align: middle;
	margin: -2px 12px 0 0;
}

/* Hero video layer */
.hv-hero > *:not(.hvp-hero-media) { position: relative; z-index: 1; }
.hvp-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hvp-hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.hvp-hero-video.is-playing { opacity: 1; }
.hvp-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 16, 26, .8) 0%, rgba(8, 16, 26, .45) 55%, rgba(8, 16, 26, .2) 100%),
		linear-gradient(180deg, rgba(8, 16, 26, .55) 0%, rgba(8, 16, 26, 0) 35%, rgba(8, 16, 26, .75) 100%);
}

/* ---------- Buttons ---------- */
.hvp .hv-section .wp-block-button__link {
	border-radius: 2px !important;
	padding: 15px 26px !important;
	letter-spacing: .01em;
	transition: background .2s, border-color .2s, color .2s;
}

/* ---------- Stats bar ---------- */
.hvp .hv-stats {
	background: var(--hvp-ink-2) !important;
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 52px !important;
	padding-bottom: 52px !important;
}
.hvp .hv-stat {
	border-left: 1px solid rgba(255, 255, 255, .16);
	padding-left: 22px !important;
	margin: 0 !important;
}
.hvp .hv-stat strong {
	display: block;
	color: #fff !important;
	font-size: clamp(1.25rem, 1.85vw, 1.75rem) !important;
	letter-spacing: -.02em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}
.hvp .hv-stat span {
	display: block;
	margin-top: 8px;
	color: var(--hvp-mute) !important;
	font-size: .72rem !important;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* ---------- Sections ---------- */
.hvp .hv-section:not(.hv-hero):not(.hv-stats):not(.hvp-film):not(.hvp-trust) {
	padding-top: clamp(72px, 9vw, 120px);
	padding-bottom: clamp(72px, 9vw, 120px);
}
.hvp .hv-section:not(.hv-hero) h2 {
	font-size: clamp(1.85rem, 3.3vw, 2.75rem) !important;
	letter-spacing: -.022em !important;
	line-height: 1.12 !important;
	text-wrap: balance;
}
.hvp .hv-section:not(.hv-hero):not(.hvp-film) h2::before {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background: var(--hv-blue);
	margin-bottom: 22px;
}
.hvp .hv-section p { text-wrap: pretty; }

/* ---------- Cards ---------- */
.hvp .hv-card {
	border-radius: 4px !important;
	box-shadow: none !important;
	border: 1px solid var(--hv-line) !important;
	overflow: hidden;
	background: #fff;
	transition: border-color .3s ease;
}
.hvp .hv-card:hover { border-color: #a9bfd6 !important; }
.hvp .hv-card figure { overflow: hidden; margin: 0; }
.hvp .hv-card img { transition: transform 1s var(--hvp-ease); }
.hvp .hv-card:hover img { transform: scale(1.04); }
.hvp .hv-card h3 { letter-spacing: -.01em; }
.hvp .hv-more,
.hvp .hv-more a {
	font-weight: 600;
	text-decoration: none !important;
	letter-spacing: .01em;
}
.hvp .hv-more a:hover { text-decoration: underline !important; text-underline-offset: 4px; }

/* ---------- Media ---------- */
.hvp .hv-media img,
.hvp .hv-photos img,
.hvp .hv-portrait img { border-radius: 4px; }

/* ---------- Tables ---------- */
.hvp .hv-table table { font-variant-numeric: tabular-nums; }
.hvp .hv-table thead th,
.hvp .hv-table thead tr { background: var(--hvp-ink-2) !important; color: #fff !important; }
.hvp .hv-table th {
	font-size: .74rem !important;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.hvp .hv-table tbody tr { transition: background .2s; }
.hvp .hv-table tbody tr:hover { background: rgba(14, 95, 170, .045); }

/* ---------- Reveal ---------- */
.hvp-js .hvp .hvp-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .9s var(--hvp-ease), transform .9s var(--hvp-ease);
}
.hvp-js .hvp .hvp-reveal.is-in { opacity: 1; transform: none; }
.hvp-js .hvp .hv-card.hvp-reveal { transition: opacity .9s var(--hvp-ease), transform .9s var(--hvp-ease), border-color .3s ease; }
@media (prefers-reduced-motion: reduce) {
	.hvp-js .hvp .hvp-reveal { opacity: 1; transform: none; transition: none; }
	.hvp .hv-card img { transition: none; }
}

/* ---------- Video section (works with or without .hvp) ---------- */
.hvp-film {
	background: #08111c !important;
	color: #c3d1df;
	padding-top: clamp(72px, 9vw, 120px) !important;
	padding-bottom: clamp(72px, 9vw, 120px) !important;
}
.hvp-film__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.hvp-film__eyebrow {
	font-size: .75rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #9fcbf5 !important;
	margin: 0 0 14px !important;
}
.hvp-film h2 { color: #fff !important; margin: 0 0 16px !important; }
.hvp-film p { color: #c3d1df; }
.hvp-film__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 4px;
	overflow: hidden;
	background: #0f1d2c;
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
}
.hvp-film__frame video,
.hvp-film__frame iframe,
.hvp-yt,
.hvp-yt img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	display: block;
}
.hvp-yt { padding: 0; margin: 0; cursor: pointer; background: #000; }
.hvp-yt img { transition: opacity .3s, transform 1s cubic-bezier(.2, .7, .2, 1); opacity: .88; }
.hvp-yt:hover img { opacity: 1; transform: scale(1.02); }
.hvp-yt:focus-visible { outline: 3px solid #9fcbf5; outline-offset: -3px; }
.hvp-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: rgba(14, 95, 170, .94);
	box-shadow: 0 0 0 10px rgba(14, 95, 170, .2);
	transition: transform .25s ease, box-shadow .25s ease;
}
.hvp-play::after {
	content: "";
	position: absolute;
	left: 30px;
	top: 24px;
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent #fff;
}
.hvp-yt:hover .hvp-play { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(14, 95, 170, .22); }
.hvp-ph-video {
	position: absolute;
	inset: 0;
	background-color: #0d1a28;
	background-image:
		radial-gradient(120% 90% at 70% 20%, rgba(14, 95, 170, .28) 0%, rgba(13, 26, 40, 0) 60%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 48px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 48px);
	background-size: cover;
	background-position: center;
}
.hvp-ph-video .hvp-play { opacity: .55; }
.hvp-ph-label {
	position: absolute;
	left: 20px;
	bottom: 16px;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8fa3b8;
}
@media (max-width: 900px) {
	.hvp-film__grid { grid-template-columns: 1fr; }
	.hvp-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.hvp-play::after { left: 25px; top: 20px; border-width: 12px 0 12px 19px; }
}
@media (max-width: 760px) {
	.hvp .hv-stat { padding-left: 14px !important; }
	.hvp .hv-stat strong { font-size: 1.02rem !important; letter-spacing: -.025em; }
}

/* ---------- Sticky header ---------- */
.hvp-sticky.hvp-scrolled .hv-header {
	position: fixed;
	padding-top: 10px;
	padding-bottom: 10px;
	animation: hvpDrop .35s cubic-bezier(.2, .7, .2, 1);
}
.hvp-sticky.hvp-scrolled .hv-header__bar {
	background: rgba(10, 20, 32, .94);
	box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .55);
}
@keyframes hvpDrop { from { transform: translateY(-110%); } to { transform: none; } }
@media (max-width: 782px) { .admin-bar.hvp-scrolled .hv-header { top: 0; } }
@media (prefers-reduced-motion: reduce) { .hvp-sticky.hvp-scrolled .hv-header { animation: none; } }

/* ---------- Trust strip ---------- */
.hvp-trust {
	background: #fff !important;
	border-bottom: 1px solid #dde4ec;
	padding: 26px 24px !important;
}
.hvp-trust__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hvp-trust__title {
	margin: 0 !important;
	font-size: .72rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #0E5FAA;
	flex: 0 0 auto;
}
.hvp-trust__list {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 0;
	flex: 1 1 auto;
}
.hvp-trust__list li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 2px 22px;
	border-left: 1px solid #dde4ec;
	margin: 0 !important;
}
.hvp-trust__label { font-weight: 700; color: #15202e; font-size: .95rem; line-height: 1.3; }
.hvp-trust__value { color: #5b6b7c; font-size: .82rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
	.hvp-trust__inner { gap: 14px; }
	.hvp-trust__list li { flex: 1 1 45%; padding: 6px 12px; }
}

/* ---------- Process ---------- */
.hvp-steps {
	list-style: none;
	margin: 36px 0 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0;
	counter-reset: none;
}
.hvp-step {
	position: relative;
	padding: 26px 22px 6px 0;
	margin: 0 !important;
	border-top: 2px solid #c9d6e3;
}
.hvp-step:first-child { border-top-color: #0E5FAA; }
.hvp-step__no {
	display: block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	color: #0E5FAA;
	margin-bottom: 10px;
	font-variant-numeric: tabular-nums;
}
.hvp-step h3 { font-size: 1.15rem !important; margin: 0 0 8px !important; }
.hvp-step p { font-size: .98rem; margin: 0 !important; }
@media (max-width: 760px) {
	.hvp-steps { grid-template-columns: 1fr; }
	.hvp-step { padding: 18px 0 14px; }
}

/* ---------- Case cards ---------- */
.hvp-cases__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px !important; }
.hvp-cases__head h2 { margin: 0 !important; }
.hvp-cases__head p { margin: 0 !important; color: #5b6b7c; font-size: .95rem; }
.hvp-cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hvp-case {
	border: 1px solid #dde4ec;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.hvp-case figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #0d1a28; }
.hvp-case figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hvp-case__body { padding: 22px 22px 18px; }
.hvp-case__sector {
	margin: 0 0 8px !important;
	font-size: .7rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #0E5FAA;
}
.hvp-case h3 { font-size: 1.15rem !important; margin: 0 0 14px !important; }
.hvp-case dl { margin: 0; display: grid; gap: 0; }
.hvp-case dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid #e6ecf2; }
.hvp-case dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7b8c; padding-top: 2px; }
.hvp-case dd { margin: 0; font-size: .95rem; color: #15202e; font-variant-numeric: tabular-nums; }
