/**
 * Cypros Power — Electrical systems hero.
 *
 * @package Cypros_Core
 */

.cy-hero {
	position: relative;
	overflow: hidden;
	padding: 0;
	color: var(--cypros-white);
	background: #0d0d0d;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cy-hero::before {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at center, rgba(244, 195, 0, 0.18) 0 1px, transparent 1.3px),
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 4rem 4rem, 4rem 4rem, 4rem 4rem;
	background-position: 2rem 2rem, 0 0, 0 0;
	content: "";
	pointer-events: none;
}

.cy-hero__circuit-field,
.cy-emergency-power__circuit-field,
.cy-equipment__circuit-field {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.cy-circuit {
	position: absolute;
	display: block;
	border-color: rgba(244, 195, 0, 0.62);
	border-style: solid;
	border-width: 0;
	opacity: 0.75;
}

.cy-circuit::before,
.cy-circuit::after {
	position: absolute;
	width: 0.42rem;
	height: 0.42rem;
	background: var(--cypros-yellow);
	content: "";
}

.cy-circuit--a {
	top: 3rem;
	left: 36%;
	width: 17rem;
	height: 6rem;
	border-top-width: 1px;
	border-left-width: 1px;
}

.cy-circuit--a::before {
	top: -0.24rem;
	right: -0.21rem;
}

.cy-circuit--a::after {
	bottom: -0.2rem;
	left: -0.22rem;
}

.cy-circuit--b {
	right: 2%;
	bottom: 2.25rem;
	width: 22rem;
	height: 5.5rem;
	border-right-width: 1px;
	border-bottom-width: 1px;
}

.cy-circuit--b::before {
	top: -0.22rem;
	right: -0.22rem;
}

.cy-circuit--b::after {
	bottom: -0.22rem;
	left: -0.22rem;
}

.cy-circuit--c {
	bottom: 0;
	left: 31%;
	width: 23rem;
	height: 4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.cy-circuit--c::before,
.cy-circuit--c::after {
	background: rgba(255, 255, 255, 0.66);
}

.cy-circuit--d {
	top: 1.5rem;
	right: 15%;
	width: 10rem;
	height: 3rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.cy-circuit--d::before,
.cy-circuit--d::after {
	background: rgba(255, 255, 255, 0.66);
}

.cy-hero__container {
	position: relative;
	z-index: 1;
	padding-top: 1.35rem;
	padding-bottom: clamp(2.75rem, 4.5vw, 4.75rem);
}

.cy-hero__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.cy-hero__eyebrow,
.cy-hero__index {
	margin: 0;
	font-size: 0.68rem;
	font-weight: var(--cypros-font-weight-bold);
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cy-hero__eyebrow {
	color: var(--cypros-yellow);
}

.cy-hero__index {
	color: rgba(255, 255, 255, 0.54);
}

.cy-hero__layout {
	display: grid;
	grid-template-columns: minmax(24rem, 0.86fr) minmax(0, 1.46fr);
	gap: clamp(2.2rem, 4vw, 5rem);
	align-items: center;
	padding-top: clamp(3rem, 5vw, 5.2rem);
}

.cy-hero__content {
	position: relative;
	z-index: 2;
	min-width: 0;
}

.cy-hero__title {
	max-width: 7.5ch;
	margin: 0;
	color: var(--cypros-white);
	font-size: clamp(4rem, 6.3vw, 7rem);
	font-weight: var(--cypros-font-weight-black);
	line-height: 0.82;
	letter-spacing: -0.067em;
	text-transform: uppercase;
}

.cy-hero__title span {
	display: block;
}

.cy-hero__title em {
	color: var(--cypros-yellow);
	font-style: normal;
}

.cy-hero__seo-title {
	margin: 1rem 0 0;
	color: rgba(255, 255, 255, 0.64);
	font-size: 0.73rem;
	font-weight: var(--cypros-font-weight-bold);
	line-height: 1.35;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.cy-hero__lead {
	max-width: 31rem;
	margin: 1.55rem 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(0.98rem, 1.06vw, 1.12rem);
	line-height: 1.62;
}

.cy-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.8rem;
}

.cy-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	min-height: 3.35rem;
	padding: 0 1.4rem;
	font-size: 0.72rem;
	font-weight: var(--cypros-font-weight-black);
	line-height: 1;
	letter-spacing: 0.045em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform var(--cypros-transition-fast), background-color var(--cypros-transition-fast), color var(--cypros-transition-fast);
}

.cy-hero__button:hover,
.cy-hero__button:focus-visible {
	transform: translateY(-2px);
}

.cy-hero__button--primary {
	color: var(--cypros-black);
	background: var(--cypros-yellow);
	border: 1px solid var(--cypros-yellow);
}

.cy-hero__button--primary:hover,
.cy-hero__button--primary:focus-visible {
	background: #ffd21a;
}

.cy-hero__button--secondary {
	color: var(--cypros-white);
	background: rgba(255, 255, 255, 0.01);
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.cy-hero__button--secondary:hover,
.cy-hero__button--secondary:focus-visible {
	color: var(--cypros-black);
	background: var(--cypros-white);
}

.cy-hero__system {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.6rem, 1vw, 1rem);
	align-items: center;
	min-width: 0;
	min-height: 26rem;
	padding: 3rem 0 4.25rem;
}

.cy-hero__flow-line {
	position: absolute;
	top: 50%;
	left: 2%;
	right: 2%;
	height: 1px;
	background: linear-gradient(90deg, rgba(244, 195, 0, 0.28), var(--cypros-yellow) 25%, var(--cypros-yellow) 75%, rgba(244, 195, 0, 0.25));
}

.cy-hero__flow-line::before,
.cy-hero__flow-line::after {
	position: absolute;
	top: 50%;
	width: 0.45rem;
	height: 0.45rem;
	background: var(--cypros-yellow);
	transform: translateY(-50%);
	content: "";
}

.cy-hero__flow-line::before { left: 0; }
.cy-hero__flow-line::after { right: 0; }

.cy-hero__flow-node {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 14rem;
	padding: clamp(1rem, 1.6vw, 1.5rem);
	background: rgba(12, 12, 12, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.22);
}

.cy-hero__flow-node::before,
.cy-hero__flow-node::after {
	position: absolute;
	top: 50%;
	width: 0.42rem;
	height: 0.42rem;
	background: var(--cypros-yellow);
	transform: translateY(-50%);
	content: "";
}

.cy-hero__flow-node::before { left: -0.25rem; }
.cy-hero__flow-node::after { right: -0.25rem; }

.cy-hero__flow-node--generator {
	min-height: 17rem;
	border-color: var(--cypros-yellow);
	box-shadow: 0 0 0 1px rgba(244, 195, 0, 0.18), 0 0 2.3rem rgba(244, 195, 0, 0.15), 0 1.8rem 4rem rgba(0, 0, 0, 0.36);
}

.cy-hero__flow-kicker {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.64rem;
	font-weight: var(--cypros-font-weight-bold);
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.cy-hero__flow-node--generator .cy-hero__flow-kicker {
	color: var(--cypros-yellow);
}

.cy-hero__flow-node strong {
	display: block;
	margin-top: 0.75rem;
	color: var(--cypros-yellow);
	font-size: clamp(1.35rem, 1.8vw, 2rem);
	font-weight: var(--cypros-font-weight-black);
	line-height: 1;
	letter-spacing: -0.04em;
}

.cy-hero__flow-node--transfer strong {
	font-size: 1.35rem;
}

.cy-hero__flow-node svg {
	width: clamp(2.5rem, 4vw, 4rem);
	height: clamp(2.5rem, 4vw, 4rem);
	margin: 1rem auto 0;
	fill: none;
	stroke: rgba(255, 255, 255, 0.76);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cy-hero__flow-node--generator svg {
	stroke: var(--cypros-yellow);
}

.cy-hero__flow-node small {
	display: block;
	width: 100%;
	margin-top: auto;
	padding-top: 1rem;
	color: rgba(255, 255, 255, 0.46);
	font-size: 0.58rem;
	font-weight: var(--cypros-font-weight-bold);
	line-height: 1.35;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.cy-hero__system-status {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.56);
	font-size: 0.62rem;
	font-weight: var(--cypros-font-weight-bold);
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.cy-hero__system-status span:first-child {
	color: var(--cypros-white);
}

.cy-hero__system-status i {
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 0.45rem;
	background: var(--cypros-yellow);
	border-radius: 50%;
	box-shadow: 0 0 0.8rem rgba(244, 195, 0, 0.65);
}

@media (max-width: 78rem) {
	.cy-hero__layout {
		grid-template-columns: minmax(20rem, 0.78fr) minmax(0, 1.22fr);
		gap: 2rem;
	}

	.cy-hero__system {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: 30rem;
		padding-top: 1rem;
	}

	.cy-hero__flow-line {
		display: none;
	}
}

@media (max-width: 64rem) {
	.cy-hero__layout {
		grid-template-columns: 1fr;
		gap: 2.75rem;
	}

	.cy-hero__content {
		max-width: 44rem;
	}

	.cy-hero__title {
		max-width: 8ch;
	}

	.cy-hero__system {
		min-height: auto;
	}
}

@media (max-width: 48rem) {
	.cy-hero__container {
		padding-top: 1rem;
		padding-bottom: 2.75rem;
	}

	.cy-hero__header {
		align-items: flex-start;
		gap: 1rem;
	}

	.cy-hero__index {
		text-align: right;
	}

	.cy-hero__layout {
		padding-top: 2.4rem;
	}

	.cy-hero__title {
		font-size: clamp(3rem, 15vw, 4.7rem);
	}

	.cy-hero__seo-title {
		max-width: 27rem;
	}

	.cy-hero__actions {
		width: 100%;
	}

	.cy-hero__button {
		flex: 1 1 12rem;
	}

	.cy-hero__system {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
		padding-bottom: 4.5rem;
	}

	.cy-hero__flow-node,
	.cy-hero__flow-node--generator {
		min-height: 12.5rem;
	}

	.cy-hero__system-status {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 30rem) {
	.cy-hero__system {
		grid-template-columns: 1fr;
		padding-bottom: 5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cy-hero__button {
		transition: none;
	}
}
