/**
 * Home hero and carousel (T7.2).
 *
 * Transform/opacity only. No cursor-follow, tilt or pointer parallax.
 */

#primary.po-home {
	padding-block: 1.5rem var(--po-space-section);
}

.po-home-hero {
	--mx: 0px;
	--my: 0px;
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 100%;
	border-radius: var(--po-radius-large);
	overflow: hidden;
	touch-action: pan-y;
	background-color: var(--po-color-surface);
	border: 1px solid color-mix(in srgb, var(--po-color-cyan) 18%, transparent);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--po-color-purple) 8%, transparent),
		var(--po-shadow-raised);
}

.po-home-hero:has(+ .po-home-benefits) {
	border-end-start-radius: 0;
	border-end-end-radius: 0;
	border-bottom-color: transparent;
}

.po-home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.015) 6px);
}

.po-home-hero__viewport {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1240 / 520;
	min-height: 320px;
}

.po-home-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity var(--po-dur-slow) var(--po-ease),
		visibility var(--po-dur-slow) var(--po-ease);
}

.po-home-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.po-home-hero__slide[hidden] {
	display: block;
}

.po-home-hero__image,
.po-home-hero__picture {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.po-home-hero__image,
.po-home-hero__picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% center;
	filter: saturate(0.8) brightness(0.8);
}

.po-home-hero__art {
	position: absolute;
	right: 8%;
	top: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	transform: translateY(-50%) rotate(-6deg);
	color: rgba(255, 255, 255, 0.04);
	font-family: var(--po-font-display);
	font-size: clamp(6rem, 16vw, 14rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: var(--po-font-display-tracking-tight);
	text-shadow: 0 0 80px color-mix(in srgb, var(--po-color-purple) 35%, transparent);
	user-select: none;
	pointer-events: none;
}

.po-home-hero__art span {
	font-size: inherit;
	line-height: inherit;
}

.po-home-hero__art b {
	font-size: inherit;
	line-height: inherit;
	color: var(--po-color-cyan);
	font-weight: 800;
}

.po-home-hero__slide--playplus {
	background:
		radial-gradient(circle at 75% 40%, #2f1f69, transparent 28%),
		linear-gradient(130deg, #10121d 35%, #17112e);
}

.po-home-hero__slide--playplus .po-home-hero__title {
	max-width: 12ch;
}

.po-home-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(5, 6, 10, 0.97) 0%, rgba(5, 6, 10, 0.82) 36%, rgba(5, 6, 10, 0.12) 75%),
		linear-gradient(0deg, rgba(5, 6, 10, 0.5), transparent 50%);
	pointer-events: none;
}

.po-home-hero__copy {
	position: absolute;
	z-index: 2;
	left: 6%;
	top: 50%;
	transform: translateY(-50%);
	max-width: 36rem;
	min-width: 0;
	padding-top: 2.25rem;
	padding-bottom: 3.5rem;
}

.po-home-hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.85rem;
	padding: 0.35rem 0.6rem;
	border: 1px solid color-mix(in srgb, var(--po-color-lime) 30%, transparent);
	background: color-mix(in srgb, var(--po-color-lime) 6%, transparent);
	color: var(--po-color-lime);
	font-family: var(--po-font-display);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.po-home-hero__eyebrow {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--po-color-cyan);
	font-family: var(--po-font-body);
	font-size: 0.74rem;
	font-weight: var(--po-font-weight-ui-extrabold);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.po-home-hero__title {
	margin: 0 0 1.1rem;
	max-width: min(760px, 100%);
	color: var(--po-color-text);
	font-family: var(--po-font-display);
	font-size: clamp(2.5rem, 5.2vw, 5.1rem);
	font-weight: var(--po-font-weight-display);
	letter-spacing: var(--po-font-display-tracking-tight);
	line-height: 0.96;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: none;
}

.po-home-hero__text {
	margin: 0 0 1.5rem;
	max-width: 32rem;
	color: #c5c8d4;
	font-size: 1.02rem;
	line-height: 1.5;
	overflow-wrap: break-word;
}

.po-home-hero__cta {
	max-width: 100%;
	min-height: 2.75rem;
	white-space: normal;
	text-decoration: none;
}

.po-home-hero__cta span {
	display: inline-block;
	transition: transform var(--po-dur-fast) var(--po-ease);
}

.po-home-hero__hud {
	position: absolute;
	z-index: 3;
	left: 1.25rem;
	right: 1.25rem;
	top: 1rem;
	display: flex;
	gap: 1.25rem;
	justify-content: flex-end;
	color: rgba(220, 238, 244, 0.5);
	font-family: var(--po-font-display);
	font-size: 0.58rem;
	font-weight: var(--po-font-weight-display);
	letter-spacing: 0.1em;
	pointer-events: none;
}

.po-home-hero__hud span:first-child {
	margin-right: auto;
	color: var(--po-color-lime);
}

.po-home-hero__energy {
	position: absolute;
	z-index: 1;
	right: 4%;
	top: 7%;
	width: 330px;
	height: 330px;
	pointer-events: none;
	opacity: 0.42;
}

.po-home-hero__energy i {
	position: absolute;
	inset: 0;
	border: 1px solid color-mix(in srgb, var(--po-color-cyan) 17%, transparent);
	border-radius: 50%;
}

.po-home-hero__energy i:nth-child(2) {
	inset: 42px;
	border-style: dashed;
	border-color: color-mix(in srgb, var(--po-color-purple) 35%, transparent);
}

.po-home-hero__energy i:nth-child(3) {
	inset: 95px;
	border-color: color-mix(in srgb, var(--po-color-lime) 22%, transparent);
}

.po-home-hero__energy i::after {
	content: "";
	position: absolute;
	top: -3px;
	left: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--po-color-cyan);
	box-shadow: 0 0 14px var(--po-color-cyan);
}

.po-home-hero__controls {
	position: absolute;
	z-index: 4;
	left: 6%;
	bottom: 1.35rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.po-home-hero__dots {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.po-home-hero__pause,
.po-home-hero__prev,
.po-home-hero__next {
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid var(--po-color-border);
	border-radius: var(--po-radius-small);
	background-color: var(--po-color-surface-raised);
	color: var(--po-color-text);
	font-family: var(--po-font-body);
	font-size: var(--po-font-label-size);
	font-weight: var(--po-font-weight-ui-extrabold);
	letter-spacing: var(--po-font-nav-tracking);
	text-transform: uppercase;
	cursor: pointer;
}

.po-home-hero__pause.po-sr-only:not(:focus):not(:focus-visible),
.po-home-hero__prev.po-sr-only:not(:focus):not(:focus-visible),
.po-home-hero__next.po-sr-only:not(:focus):not(:focus-visible) {
	width: 1px;
	min-width: 1px;
	height: 1px;
	min-height: 1px;
	padding: 0;
	border: 0;
	background: transparent;
}

.po-home-hero__dot {
	position: relative;
	width: 1.75rem;
	min-width: 1.75rem;
	height: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.po-home-hero__dot.is-active,
.po-home-hero__dot[aria-selected='true'] {
	width: 3.375rem;
	min-width: 3.375rem;
}

#page .po-home-hero__dot,
#page .po-home-hero__dot:hover,
#page .po-home-hero__dot:focus,
#page .po-home-hero__dot:focus-visible,
#page .po-home-hero__dot:active,
#page .po-home-hero__dot.is-active,
#page .po-home-hero__dot[aria-selected='true'] {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.po-home-hero__dot::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.75rem;
	height: 4px;
	border: 0;
	border-radius: 5px;
	background-color: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
}

.po-home-hero__dot.is-active::after,
.po-home-hero__dot[aria-selected='true']::after {
	width: 3.375rem;
	background-color: var(--po-color-cyan);
}

.po-home-hero__prev:focus-visible,
.po-home-hero__next:focus-visible,
.po-home-hero__pause:focus-visible,
.po-home-hero__dot:focus-visible,
.po-home-hero__cta:focus-visible {
	outline: 3px solid var(--po-color-cyan);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.po-home-hero__cta:hover span {
		transform: translateX(5px);
	}
}

@media (max-width: 1000px) { /* --po-bp-actions */
	.po-home-hero__energy {
		width: 220px;
		height: 220px;
		opacity: 0.28;
	}
}

@media (max-width: 820px) {
	.po-home-hero__energy {
		display: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.po-home-hero__image,
	.po-home-hero__picture img {
		animation: po-hero-drift 14s ease-in-out infinite alternate;
	}

	.po-home-hero__energy i {
		animation: po-home-hero-orbit 16s linear infinite;
	}

	.po-home-hero__energy i:nth-child(2) {
		animation-direction: reverse;
		animation-duration: 11s;
	}

	.po-home-hero__energy i:nth-child(3) {
		animation-duration: 7s;
	}

	.po-js .po-home-hero__slide.is-active .po-home-hero__copy > * {
		animation: po-hero-enter 0.65s ease both;
	}

	.po-js .po-home-hero__slide.is-active .po-home-hero__copy > *:nth-child(1) {
		animation-delay: 0.05s;
	}

	.po-js .po-home-hero__slide.is-active .po-home-hero__copy > *:nth-child(2) {
		animation-delay: 0.16s;
	}

	.po-js .po-home-hero__slide.is-active .po-home-hero__copy > *:nth-child(3) {
		animation-delay: 0.27s;
	}

	.po-js .po-home-hero__slide.is-active .po-home-hero__copy > *:nth-child(4) {
		animation-delay: 0.38s;
	}

	.po-js .po-home-hero__slide.is-active .po-home-hero__copy > *:nth-child(5) {
		animation-delay: 0.49s;
	}
}

@keyframes po-home-hero-orbit {
	to {
		transform: rotate(360deg);
	}
}

@keyframes po-hero-drift {
	0% {
		filter: saturate(0.78) brightness(0.75);
		transform: scale(1.06) translate(var(--mx), var(--my));
	}

	100% {
		filter: saturate(1.08) brightness(0.9);
		transform: scale(1.13) translate(calc(var(--mx) - 12px), calc(var(--my) - 5px));
	}
}

@keyframes po-hero-enter {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 720px) { /* --po-bp-nav */
	.po-home-hero {
		border-radius: 18px;
	}

	.po-home-hero:has(+ .po-home-benefits) {
		border-end-start-radius: 0;
		border-end-end-radius: 0;
	}

	.po-home-hero + .po-home-benefits {
		border-end-start-radius: 18px;
		border-end-end-radius: 18px;
	}

	.po-home-hero__viewport {
		aspect-ratio: auto;
		min-height: min(31.25rem, calc(100vh - 8.5rem));
		min-height: min(31.25rem, calc(100dvh - 8.5rem));
		min-height: min(31.25rem, calc(100svh - 8.5rem));
	}

	.po-home-hero__shade {
		background:
			linear-gradient(0deg, rgba(5, 6, 10, 0.97) 3%, rgba(5, 6, 10, 0.74) 62%, rgba(5, 6, 10, 0.22));
	}

	.po-home-hero__copy {
		left: 1.35rem;
		right: 1.35rem;
		top: auto;
		bottom: 4.75rem;
		transform: none;
		max-width: none;
	}

	.po-home-hero__title {
		font-size: clamp(1.75rem, 8vw, 2.6rem);
	}

	.po-home-hero__text {
		font-size: 0.9375rem;
	}

	.po-home-hero__controls {
		left: 1.35rem;
		right: 1.35rem;
		bottom: 0.85rem;
		flex-wrap: nowrap;
		gap: 0.4rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.po-home-hero__controls::-webkit-scrollbar {
		display: none;
	}

	.po-home-hero__hud {
		display: none;
	}
}

/*
 * R-04: landscape / short chrome. Copy leaves the overlay so
 * title, CTA and controls stay in the viewport.
 */
@media (max-width: 720px) and (max-height: 500px) {
	.po-home-hero__viewport {
		min-height: 0;
		height: auto;
	}

	.po-home-hero__slide.is-active {
		position: relative;
		inset: auto;
		min-height: 0;
	}

	.po-home-hero__image,
	.po-home-hero__picture {
		position: relative;
		height: auto;
		min-height: 8rem;
		max-height: 42vh;
		max-height: 42svh;
	}

	.po-home-hero__image,
	.po-home-hero__picture img {
		height: auto;
		max-height: 42vh;
		max-height: 42svh;
		object-fit: cover;
	}

	.po-home-hero__art {
		position: relative;
		min-height: 7.5rem;
		max-height: 42svh;
		justify-content: center;
		padding-inline-end: 0;
	}

	.po-home-hero__art span {
		font-size: clamp(2.5rem, 16vw, 4rem);
	}

	.po-home-hero__art b {
		font-size: clamp(3.5rem, 22vw, 6rem);
	}

	.po-home-hero__copy {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		padding: 1.1rem 1.25rem 4.75rem;
		background-color: color-mix(in srgb, var(--po-color-background) 94%, transparent);
	}

	.po-home-hero__title {
		font-size: clamp(1.75rem, 6vw, 2.25rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.po-home-hero__slide,
	.po-home-hero__cta span,
	.po-home-hero__energy i,
	.po-home-hero__image,
	.po-home-hero__picture img,
	.po-home-hero__copy > * {
		animation: none;
		transition: none;
		transform: none;
		opacity: 1;
	}
}
