/*
 * SECTION STYLE: SERVICE HERO (the Services / "Playbook" first screen).
 *
 * From the Figma "Palvelut" frame (360:576):
 *   - full-screen video/photo background, a soft black veil on top
 *   - the big centred heading "THE PLAYBOOK" (Alte Haas Bold 96 px)
 *   - a centred yellow sub-title under it ("[ SERVICES ] ...")
 * At 1440 px the hero is 896 px tall.
 */

.aitio-service-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Matches the 896 px hero on the 1440 frame, scales down, and
	 * never pushes past the viewport height. */
	height: clamp(520px, 62.22vw, 896px);
	background: #000;
	color: var(--aitio-white);
	overflow: hidden;
	text-align: center;
}

.aitio-service-hero__video,
.aitio-service-hero__media,
.aitio-service-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aitio-service-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
}

.aitio-service-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 56px;
	max-width: 1200px;
	padding: 0 24px;
}

.aitio-service-hero__heading {
	margin: 0;
	font-family: var(--aitio-font-display);
	font-size: 96px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--aitio-white);
}

.aitio-service-hero__subtitle {
	margin: 0;
	font-family: var(--aitio-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--aitio-yellow);
}

/* The "Let's talk" pill, measured from the Figma chat group (369:3452):
 *   211.33 x 60, radius 30, yellow #ffff05
 *   black speech-bubble icon: 46.64 x 46.64, visible black at x 11 / y 10.75
 *   label: Neue Montreal 10.45px, left 71.3px, -4% tracking
 * Figma places it at y 697 on the 896px hero (70px above the hero end);
 * the right edge is clamped to a 24px page margin so it stays on screen. */
.aitio-service-hero__lets-talk {
	position: absolute;
	right: 0;
	bottom: 14.5%;
	z-index: 3;
	display: block;
	width: 211.33px;
	height: 60px;
	padding: 0;
	background: var(--aitio-yellow);
	/* The reference sits flush against the right edge: only the left
	 * cap is rounded. */
	border-radius: 30px 0 0 30px;
	color: #000;
	text-decoration: none;
	overflow: hidden;
}

.aitio-service-hero__lets-icon {
	position: absolute;
	left: 7.1px;
	top: 6.7px;
	display: block;
	width: 46.64px;
	height: 46.64px;
}

.aitio-service-hero__lets-label {
	position: absolute;
	left: 71.3px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--aitio-font);
	font-size: 10.45px;
	font-weight: 400;
	line-height: 15.68px;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #000;
}

/* On the Services page the hero carries its own pill, so the global
 * fixed bubble stays hidden on this page. */
body.has-service-hero .aitio-floating {
	display: none;
}

@media (max-width: 1024px) {

	.aitio-service-hero__heading {
		font-size: 64px;
	}

	.aitio-service-hero__content {
		gap: 40px;
	}
}

@media (max-width: 640px) {

	.aitio-service-hero {
		height: min(860px, 100svh);
		min-height: 620px;
	}

	.aitio-service-hero__heading {
		font-size: 42px;
		line-height: 1.1;
	}

	.aitio-service-hero__subtitle {
		font-size: 16px;
		line-height: 1.5;
	}

	.aitio-service-hero__content {
		gap: 56px;
		padding: 0 16px;
		transform: translateY(26px);
	}

	.aitio-service-hero__lets-talk {
		display: none;
	}
}
