/**
 * V9.00 RC13 — Visual Storytelling & Mobile Conversion
 * Runtime-led refinements after desktop/mobile review.
 */

/* ==========================================================
   01. Home — restore contrast and make the engineering flow read instantly
========================================================== */
.cy-industrial-evidence__intro h2 {
	color: #fff;
}

.cy-industrial-evidence__intro h2 span {
	color: var(--cypros-yellow, #ffc600);
	-webkit-text-stroke: 0;
}

.cy-industrial-evidence__grid li {
	isolation: isolate;
}

.cy-industrial-evidence__grid li::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(255, 198, 0, .055), rgba(255,255,255,0) 42%);
	opacity: 0;
	transition: opacity 280ms ease;
	content: "";
}

.cy-industrial-evidence__grid li:hover::after,
.cy-industrial-evidence__grid li:focus-within::after,
.cy-industrial-evidence__grid li.is-cy-current::after {
	opacity: 1;
}

/* ==========================================================
   02. Equipment — stronger brand choice and safe mobile typography
========================================================== */
.cy-equipment-brands {
	position: relative;
	overflow: hidden;
}

.cy-equipment-brands::before {
	position: absolute;
	top: 0;
	left: max(1.25rem, calc((100vw - var(--cypros-container, 90rem)) / 2));
	width: clamp(4.5rem, 8vw, 8rem);
	height: 3px;
	background: var(--cypros-yellow, #ffc600);
	content: "";
}

.cy-equipment-brands__header h2 {
	max-width: 13ch;
	text-wrap: balance;
}

.cy-equipment-brands__header h2 span {
	display: block;
	color: var(--cypros-yellow, #ffc600);
}

.cy-equipment-brands__nav {
	gap: clamp(.75rem, 1.5vw, 1.25rem);
}

.cy-equipment-brands__tab {
	position: relative;
	overflow: hidden;
	transition: transform 260ms cubic-bezier(.22,1,.36,1), border-color 220ms ease, background-color 220ms ease;
}

.cy-equipment-brands__tab::after {
	position: absolute;
	right: -1.5rem;
	bottom: -1.5rem;
	width: 4rem;
	height: 4rem;
	border: 1px solid rgba(255,198,0,.45);
	border-radius: 50%;
	transform: scale(.45);
	opacity: 0;
	transition: transform 360ms cubic-bezier(.22,1,.36,1), opacity 260ms ease;
	content: "";
}

.cy-equipment-brands__tab:hover,
.cy-equipment-brands__tab:focus-visible {
	transform: translateY(-4px);
}

.cy-equipment-brands__tab:hover::after,
.cy-equipment-brands__tab:focus-visible::after,
.cy-equipment-brands__tab.is-active::after {
	transform: scale(1);
	opacity: 1;
}

/* ==========================================================
   03. Services — turn the service list into an active technical sequence
========================================================== */
.cy-services-page-services__list {
	counter-reset: cy-service;
}

.cy-services-page-services__list > article {
	--cy-service-progress: 0%;
	background-image: linear-gradient(90deg, rgba(255,198,0,.07), transparent 28%);
	background-repeat: no-repeat;
	background-size: var(--cy-service-progress) 100%;
	transition: background-size 520ms cubic-bezier(.22,1,.36,1), transform 260ms ease, box-shadow 280ms ease;
}

.cy-services-page-services__list > article.is-cy-current,
.cy-services-page-services__list > article:hover,
.cy-services-page-services__list > article:focus-within {
	--cy-service-progress: 100%;
}

.cy-services-page-services__list > article .cy-card__number {
	position: relative;
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 2.3rem;
	border: 1px solid rgba(16,18,20,.28);
	background: #fff;
	transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 260ms ease;
}

.cy-services-page-services__list > article.is-cy-current .cy-card__number,
.cy-services-page-services__list > article:hover .cy-card__number,
.cy-services-page-services__list > article:focus-within .cy-card__number {
	background: var(--cypros-yellow, #ffc600);
	border-color: var(--cypros-yellow, #ffc600);
	color: #111;
	transform: rotate(-3deg) scale(1.04);
}

.cy-services-page-services__list > article.cy-card--dark .cy-card__number {
	border-color: rgba(255,255,255,.38);
	background: rgba(255,255,255,.06);
	color: #fff;
}

.cy-services-page-services__list > article.cy-card--dark .cy-card__eyebrow,
.cy-services-page-services__list > article.cy-card--dark .cy-card__title,
.cy-services-page-services__list > article.cy-card--dark .cy-card__body,
.cy-services-page-services__list > article.cy-card--dark .cy-card__tag {
	color: #fff;
}

.cy-services-page-services__list > article.cy-card--dark.is-cy-current .cy-card__number,
.cy-services-page-services__list > article.cy-card--dark:hover .cy-card__number {
	color: #111;
}

.cy-services-page-services__list > article::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 8rem;
	height: 1px;
	background: linear-gradient(90deg, var(--cypros-yellow, #ffc600), transparent);
	transform: scaleX(.35);
	transform-origin: left;
	transition: transform 460ms cubic-bezier(.22,1,.36,1);
	content: "";
}

.cy-services-page-services__list > article.is-cy-current::before,
.cy-services-page-services__list > article:hover::before,
.cy-services-page-services__list > article:focus-within::before {
	transform: scaleX(1);
}

/* ==========================================================
   04. Contact — more visual fields, less friction above the fold
========================================================== */
.cy-contact-page-form__field input,
.cy-contact-page-form__field select,
.cy-contact-page-form__field textarea {
	border: 1px solid rgba(17,17,17,.14);
	border-radius: .72rem;
	background: #fafafa;
	padding-inline: 1rem;
}

.cy-contact-page-form__field input:focus,
.cy-contact-page-form__field select:focus,
.cy-contact-page-form__field textarea:focus {
	background: #fff;
	border-color: #111;
	box-shadow: 0 0 0 3px rgba(255,198,0,.22);
}

.cy-contact-page-form__field label {
	margin-bottom: .45rem;
}

.cy-contact-page-start__panel {
	border-top: 3px solid var(--cypros-yellow, #ffc600);
}

@media (min-width: 64rem) {
	.cy-contact-page-hero {
		padding-top: clamp(2.4rem, 4vw, 4rem);
		padding-bottom: clamp(2rem, 3vw, 3rem);
	}

	.cy-contact-page-start {
		padding-top: 1.8rem;
	}

	.cy-contact-page-start__header {
		grid-template-columns: minmax(11rem,.42fr) minmax(0,1fr);
		margin-bottom: 1rem;
	}

	.cy-contact-page-start__intro {
		display: grid;
		grid-template-columns: minmax(0,.72fr) minmax(18rem,.5fr);
		align-items: end;
		gap: 1.5rem;
	}

	.cy-contact-page-start__intro h2 {
		font-size: clamp(2.15rem, 2.8vw, 3.25rem);
	}

	.cy-contact-page-start__intro p {
		font-size: .9rem;
		line-height: 1.55;
	}

	.cy-contact-page-start__grid {
		grid-template-columns: minmax(0,1fr) minmax(17rem,20rem);
		gap: clamp(1.75rem, 3vw, 3rem);
	}

	.cy-contact-page-form__section {
		padding: 1.05rem 0;
	}

	.cy-contact-page-form__section-heading {
		margin-bottom: .9rem;
	}

	.cy-contact-page-form__section-heading h3 {
		font-size: clamp(1.55rem, 2vw, 2.3rem);
	}

	.cy-contact-page-form__fields {
		gap: .8rem 1rem;
	}

	.cy-contact-page-form__field input,
	.cy-contact-page-form__field select {
		min-height: 2.9rem;
	}

	.cy-contact-page-start__panel {
		padding: 1.15rem 1.25rem;
	}

	.cy-contact-page-start__meta-list div {
		padding-block: .75rem;
	}
}

/* ==========================================================
   05. Mobile — no broken titles, conversion first, controlled motion
========================================================== */
@media (max-width: 48rem) {
	.cy-industrial-evidence {
		padding: 3.6rem 0 5.25rem;
	}

	.cy-industrial-evidence__intro {
		display: block;
		padding: 2rem 0 2.25rem;
	}

	.cy-industrial-evidence__intro h2 {
		max-width: 11ch;
		font-size: clamp(2.55rem, 14vw, 4.2rem);
		line-height: .88;
		letter-spacing: -.055em;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
	}

	.cy-industrial-evidence__intro > p {
		margin-top: 1.4rem;
		font-size: .96rem;
		line-height: 1.6;
	}

	.cy-equipment-brands__header {
		display: block;
	}

	.cy-equipment-brands__header h2,
	.cy-equipment-page__intro h2 {
		max-width: none;
		font-size: clamp(2rem, 10.5vw, 3rem);
		line-height: .98;
		letter-spacing: -.045em;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
		white-space: normal;
	}

	.cy-equipment-brands__header h2 span,
	.cy-equipment-page__intro h2 span {
		display: block;
		margin-top: .22em;
	}

	.cy-equipment-brands__nav {
		grid-template-columns: 1fr;
	}

	.cy-services-page-services__list > article {
		background-size: 0 100%;
	}

	.cy-services-page-services__list > article.is-cy-current {
		background-size: 100% 100%;
	}

	.cy-contact-page-hero {
		padding-top: 2rem;
		padding-bottom: 1.5rem;
	}

	.cy-contact-page-hero__content a {
		display: none;
	}

	.cy-contact-page-start {
		padding-top: 1.35rem;
	}

	.cy-contact-page-start__header {
		margin-bottom: 1rem;
	}

	.cy-contact-page-start__meta {
		display: none;
	}

	.cy-contact-page-start__intro h2 {
		font-size: clamp(2rem, 10vw, 2.8rem);
	}

	.cy-contact-page-start__intro p {
		font-size: .9rem;
	}

	.cy-contact-page-start__grid {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}

	.cy-contact-page-form-wrap {
		order: 1;
	}

	.cy-contact-page-start__panel {
		order: 2;
		position: static;
		padding: 1.15rem;
	}

	.cy-contact-page-form__section {
		padding: 1rem 0;
	}

	.cy-contact-page-form__section-heading h3 {
		font-size: 1.7rem;
	}

	.cy-contact-page-form__field input,
	.cy-contact-page-form__field select {
		min-height: 3rem;
	}
}

@media (max-width: 22rem) {
	.cy-equipment-brands__header h2,
	.cy-equipment-page__intro h2,
	.cy-industrial-evidence__intro h2 {
		font-size: 2rem;
		letter-spacing: -.035em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cy-industrial-evidence__grid li::after,
	.cy-equipment-brands__tab,
	.cy-equipment-brands__tab::after,
	.cy-services-page-services__list > article,
	.cy-services-page-services__list > article::before,
	.cy-services-page-services__list > article .cy-card__number {
		transition: none !important;
	}
}
