/**
 * Cypros Power — Project process / electrical route.
 *
 * @package Cypros_Core
 */

.cy-process {
	position: relative;
	overflow: hidden;
	padding: var(--cy-layout-section-space) 0;
	color: var(--cypros-white);
	background: #0e0e0e;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	scroll-margin-top: 6rem;
}

.cy-process::before {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle, rgba(244, 195, 0, 0.12) 0 1px, transparent 1.2px),
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-position: 1.5rem 1.5rem, 0 0, 0 0;
	background-size: 4rem 4rem, 4rem 4rem, 4rem 4rem;
	content: "";
	pointer-events: none;
}

.cy-process__circuit-field {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.cy-process__trace {
	position: absolute;
	display: block;
	border-color: rgba(244, 195, 0, 0.44);
	border-style: solid;
	border-width: 0;
}

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

.cy-process__trace--a {
	top: 6rem;
	right: -1rem;
	width: 18rem;
	height: 7rem;
	border-top-width: 1px;
	border-left-width: 1px;
}

.cy-process__trace--a::before { top: -0.2rem; left: -0.2rem; }
.cy-process__trace--a::after { bottom: -0.2rem; right: -0.2rem; }

.cy-process__trace--b {
	bottom: 3rem;
	left: -2rem;
	width: 22rem;
	height: 5rem;
	border-right-width: 1px;
	border-bottom-width: 1px;
}

.cy-process__trace--b::before { top: -0.2rem; right: -0.2rem; }
.cy-process__trace--b::after { bottom: -0.2rem; left: -0.2rem; }

.cy-process__trace--c {
	top: 42%;
	left: 36%;
	width: 14rem;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.cy-process__trace--c::before,
.cy-process__trace--c::after { background: rgba(255, 255, 255, 0.5); }
.cy-process__trace--c::before { top: -0.2rem; left: 0; }
.cy-process__trace--c::after { top: -0.2rem; right: 0; }

.cy-process .cy-container {
	position: relative;
	z-index: 1;
}

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

.cy-process__index,
.cy-process__label {
	margin: 0;
	font-size: var(--cypros-font-size-xs);
	font-weight: var(--cypros-font-weight-bold);
	line-height: 1;
	letter-spacing: var(--cypros-letter-spacing-wide);
	text-transform: uppercase;
}

.cy-process__index { color: var(--cypros-yellow); }
.cy-process__label { color: rgba(255, 255, 255, 0.46); }

.cy-process__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
	align-items: end;
	gap: clamp(2.5rem, 5vw, 5rem);
	padding: clamp(2.6rem, 4vw, 4.25rem) 0 clamp(3rem, 4.6vw, 5rem);
}

.cy-process__intro h2 {
	max-width: 13ch;
	margin: 0;
	color: var(--cypros-white);
	font-size: clamp(3rem, 4.7vw, 5.2rem);
	font-weight: var(--cypros-font-weight-black);
	line-height: 0.88;
	letter-spacing: -0.055em;
	text-transform: uppercase;
}

.cy-process__intro h2 span,
.cy-process__intro h2 strong { display: block; }
.cy-process__intro h2 span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.58); }
.cy-process__intro h2 strong { color: var(--cypros-yellow); font-weight: inherit; }

.cy-process__intro-copy {
	max-width: 34rem;
}

.cy-process__intro-copy > p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: clamp(0.98rem, 1.1vw, 1.08rem);
	line-height: 1.65;
}

.cy-process__system-key {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	margin-top: 1.75rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.48);
	font-size: 0.61rem;
	font-weight: var(--cypros-font-weight-bold);
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.cy-process__system-key span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: rgba(255, 255, 255, 0.76);
}

.cy-process__system-key i {
	width: 0.45rem;
	height: 0.45rem;
	background: var(--cypros-yellow);
	border-radius: 50%;
	box-shadow: 0 0 0 0.3rem rgba(244, 195, 0, 0.09);
}

.cy-process__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.23);
	border-bottom: 1px solid rgba(255, 255, 255, 0.23);
}

.cy-process__steps::before {
	position: absolute;
	top: 4.2rem;
	left: 2.4rem;
	right: 2.4rem;
	height: 1px;
	background: linear-gradient(90deg, rgba(244, 195, 0, 0.26), var(--cypros-yellow), rgba(244, 195, 0, 0.3));
	content: "";
}

.cy-process__step {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	min-height: 18.5rem;
	flex-direction: column;
	padding: 2rem clamp(1rem, 1.7vw, 1.75rem);
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	transition: background-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-emphasis);
}

.cy-process__step:last-child { border-right: 0; }

.cy-process__step:hover,
.cy-process__step.is-active {
	background: rgba(255, 255, 255, 0.04);
	transform: translateY(-0.3rem);
}

.cy-process__number {
	color: var(--cypros-yellow);
	font-size: 0.73rem;
	font-weight: var(--cypros-font-weight-black);
	letter-spacing: 0.15em;
}

.cy-process__signal {
	position: relative;
	height: 4.2rem;
}

.cy-process__signal span {
	position: absolute;
	top: 50%;
	left: 0;
	width: 0.62rem;
	height: 0.62rem;
	background: #0e0e0e;
	border: 2px solid var(--cypros-yellow);
	border-radius: 50%;
	transform: translateY(-50%);
	box-shadow: 0 0 0 0.28rem rgba(244, 195, 0, 0.08);
}

.cy-process__content { margin-top: 0.4rem; }

.cy-process__content h3 {
	margin: 0;
	color: var(--cypros-white);
	font-size: clamp(1.35rem, 1.7vw, 1.8rem);
	font-weight: var(--cypros-font-weight-black);
	line-height: 1;
	letter-spacing: -0.03em;
}

.cy-process__content p {
	margin: 0.8rem 0 0;
	color: rgba(255, 255, 255, 0.56);
	font-size: 0.88rem;
	line-height: 1.62;
}

.cy-process__marker {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	width: 0.35rem;
	height: 0.35rem;
	background: rgba(255, 255, 255, 0.3);
}

.cy-process__step:hover .cy-process__marker,
.cy-process__step.is-active .cy-process__marker { background: var(--cypros-yellow); }

@media (max-width: 68rem) {
	.cy-process { scroll-margin-top: 5.5rem; }
	.cy-process__intro { grid-template-columns: 1fr; gap: 1.75rem; }
	.cy-process__intro-copy { max-width: 38rem; }
	.cy-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cy-process__steps::before { display: none; }
	.cy-process__step { min-height: 15rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
	.cy-process__step:nth-child(2n) { border-right: 0; }
	.cy-process__signal { height: 2rem; }
	.cy-process__signal::after {
		position: absolute;
		top: 50%;
		left: 0.62rem;
		width: 3.5rem;
		height: 1px;
		background: rgba(244, 195, 0, 0.58);
		content: "";
	}
}

@media (max-width: 48rem) {
	.cy-process { padding: 3.5rem 0; scroll-margin-top: 5rem; }
	.cy-process__top { align-items: flex-start; gap: 1rem; padding-bottom: 1.1rem; }
	.cy-process__intro { padding: 2rem 0 2.7rem; }
	.cy-process__intro h2 { max-width: 11ch; font-size: clamp(2.45rem, 11vw, 3.7rem); }
	.cy-process__system-key { align-items: flex-start; flex-direction: column; gap: 0.65rem; }
	.cy-process__steps { grid-template-columns: 1fr; }
	.cy-process__step,
	.cy-process__step:nth-child(2n) { min-height: 0; padding: 1.55rem 0; border-right: 0; }
	.cy-process__step:last-child { border-bottom: 0; }
	.cy-process__step:hover,
	.cy-process__step.is-active { transform: none; }
	.cy-process__signal { height: 1.6rem; }
	.cy-process__trace--a { right: -9rem; }
	.cy-process__trace--b { left: -14rem; }
}

@media (prefers-reduced-motion: reduce) {
	.cy-process__step { transition: none; }
	.cy-process__step:hover,
	.cy-process__step.is-active { transform: none; }
}
