/* Data blocks from GP Core (gp/*): spec plate, figure chip, categories, products, facilities, certificates, posts. */

/* Blueprint grid used behind dark technical bands. */
.gp-spec,
.gp-hero {
	--gp-grid-line: rgb(255 255 255 / 0.045);
	background-color: var(--wp--preset--color--ink);
	background-image:
		linear-gradient(var(--gp-grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--gp-grid-line) 1px, transparent 1px),
		var(--wp--preset--gradient--ink);
	background-size: 48px 48px, 48px 48px, auto;
	background-position: -1px -1px;
}

.gp-band {
	padding-block: var(--wp--preset--spacing--80);
}

.gp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-bottom: var(--wp--preset--spacing--60);
}

.gp-head > * {
	margin-block: 0;
}

.gp-head__link a,
a.gp-head__link {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--amber);
	padding-bottom: 0.15rem;
	color: var(--wp--preset--color--ink);
}

.gp-head__link a:hover,
a.gp-head__link:hover {
	color: var(--wp--preset--color--indigo);
}

/* ---------- Spec plate: the signature element ---------- */

.gp-spec {
	padding-block: var(--wp--preset--spacing--80);
	overflow: hidden;
}

.gp-spec > * {
	margin-block: 0;
}

.gp-spec__inner,
.gp-spec__rows,
.gp-spec__strip {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--gp-gutter));
	margin-inline: auto;
	padding-inline: var(--gp-gutter);
}

.gp-spec__inner {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

@media (min-width: 64em) {
	.gp-spec__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: var(--wp--preset--spacing--70);
	}
}

.gp-spec__intro > * {
	margin-block: 0;
}

.gp-spec__place {
	color: var(--wp--preset--color--amber);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.gp-spec__title {
	margin-top: 0.35rem !important;
	font-size: var(--wp--preset--font-size--heading-1);
}

.gp-spec__excerpt {
	margin-top: 1.25rem !important;
	max-width: 46ch;
}

.gp-spec__figure {
	margin-top: var(--wp--preset--spacing--60) !important;
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 0.16);
}

.gp-spec__figure > * {
	margin-block: 0;
}

.gp-spec__label {
	color: var(--wp--preset--color--metal);
	font-size: var(--wp--preset--font-size--small);
}

.gp-spec__big {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.9rem;
	margin-top: 0.25rem !important;
	font-family: var(--wp--preset--font-family--display);
	line-height: 0.95;
	color: var(--wp--preset--color--white);
}

.gp-spec__value {
	font-size: clamp(3.75rem, 1.6rem + 8.4vw, 9rem);
	font-weight: 700;
	font-stretch: 118%;
	letter-spacing: -0.035em;
	font-variant-numeric: tabular-nums lining-nums;
}

.gp-spec__unit {
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 500;
	color: var(--wp--preset--color--amber);
}

.gp-spec__note {
	margin-top: 0.85rem !important;
	color: var(--wp--preset--color--metal);
	max-width: 44ch;
}

.gp-spec__more {
	margin-top: var(--wp--preset--spacing--50) !important;
}

.gp-spec__more a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--amber);
	padding-bottom: 0.15rem;
}

/* Photo in a tilted 3D frame; pointer tilt adds --gp-rx/--gp-ry (motion.js). */
.gp-spec__photo {
	perspective: 1600px;
}

.gp-spec__photo {
	margin: 0;
}

.gp-spec__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--large);
	box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.08);
	transform: rotateY(calc(-6deg + var(--gp-ry, 0deg))) rotateX(calc(2deg + var(--gp-rx, 0deg)));
	transform-origin: 60% 50%;
	transition: transform var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

@media (max-width: 63.99em) {
	.gp-spec__photo img {
		transform: none;
	}
}

.gp-spec__rows {
	display: grid;
	gap: 0 var(--wp--preset--spacing--50);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	margin-top: var(--wp--preset--spacing--70) !important;
}

@media (min-width: 72em) {
	.gp-spec__rows {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.gp-spec__row {
	padding-block: 1.25rem 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.16);
	position: relative;
}

/* Amber tick marks the top-left of each cell, like a gauge index. */
.gp-spec__row::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 2.25rem;
	height: 2px;
	background: var(--wp--preset--color--amber);
	transform-origin: left;
	transition: transform var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.gp-spec__row > * {
	margin: 0;
}

.gp-spec__row dt {
	color: var(--wp--preset--color--metal);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0.45rem;
}

.gp-spec__primary,
.gp-spec__row--label dt {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	font-stretch: 105%;
	line-height: 1.25;
	color: var(--wp--preset--color--white);
}

.gp-spec__row--label dt {
	margin-top: calc(0.875rem * 1.65 + 0.45rem);
}

.gp-spec__secondary {
	margin-top: 0.35rem !important;
	font-size: 0.9375rem;
	color: rgb(255 255 255 / 0.72);
}

/* Rows draw their amber index in sequence the first time they scroll into view. */
.gp-spec__rows.gp-pending .gp-spec__row::before {
	transform: scaleX(0);
}

.gp-spec__row:nth-child(2)::before { transition-delay: 60ms; }
.gp-spec__row:nth-child(3)::before { transition-delay: 120ms; }
.gp-spec__row:nth-child(4)::before { transition-delay: 180ms; }
.gp-spec__row:nth-child(5)::before { transition-delay: 240ms; }
.gp-spec__row:nth-child(6)::before { transition-delay: 300ms; }
.gp-spec__row:nth-child(7)::before { transition-delay: 360ms; }
.gp-spec__row:nth-child(8)::before { transition-delay: 420ms; }

.gp-spec__strip {
	display: flex;
	gap: 0.75rem;
	margin-top: var(--wp--preset--spacing--60) !important;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgb(255 255 255 / 0.3) transparent;
	scroll-padding-inline: var(--gp-gutter);
	padding-bottom: 0.75rem;
}

.gp-spec__strip li {
	flex: 0 0 auto;
	max-width: none;
	scroll-snap-align: start;
}

.gp-spec__strip img {
	display: block;
	height: clamp(9rem, 16vw, 13rem);
	width: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--medium);
}

/* ---------- Figure chip (hero) ---------- */

.gp-chip {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	padding: 1rem 1.25rem 1.05rem 1.35rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--lifted);
	border-left: 4px solid var(--wp--preset--color--amber);
	max-width: none;
}

.gp-chip__figure {
	font-family: var(--wp--preset--font-family--display);
	line-height: 1;
}

.gp-chip__value {
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
	font-weight: 700;
	font-stretch: 115%;
	letter-spacing: -0.02em;
}

.gp-chip__unit {
	white-space: nowrap;
	font-weight: 600;
	color: var(--wp--preset--color--indigo);
}

.gp-chip__place {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}

/* ---------- Product categories ---------- */

.gp-cats {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-cats > li {
	margin: 0;
	max-width: none;
}

.gp-cat__link {
	display: grid;
	height: 100%;
	color: inherit;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: var(--wp--custom--radius--large);
	overflow: hidden;
	background: var(--wp--preset--color--white);
	transition: box-shadow var(--wp--custom--motion--base) ease, border-color var(--wp--custom--motion--base) ease, translate var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

.gp-cat__media {
	display: block;
	background: var(--wp--preset--gradient--metal);
	aspect-ratio: 5 / 4;
	overflow: hidden;
}

.gp-cat__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6%;
	box-sizing: border-box;
	mix-blend-mode: multiply;
	transition: scale var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.gp-cat__body {
	display: grid;
	gap: 0.2rem;
	padding: 1.1rem 1.25rem 1.3rem;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.gp-cat__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-4);
}

.gp-cat__count {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}

.gp-cat__lines {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--indigo);
}

.gp-cat__link:hover {
	border-color: var(--wp--preset--color--metal);
	box-shadow: var(--wp--preset--shadow--raised);
	translate: 0 -3px;
}

.gp-cat__link:hover .gp-cat__media img {
	scale: 1.05;
}

/* Two compact columns on phones so the four categories fit in about one screen. */
@media (max-width: 39.99em) {
	.gp-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.gp-cat__body {
		padding: 0.8rem 0.85rem 0.95rem;
	}

	.gp-cat__name {
		font-size: 1.0625rem;
	}

	.gp-cat__lines {
		display: none;
	}
}

/* ---------- Product cards ---------- */

.gp-products {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The featured rail scrolls sideways until all cards fit in one row. */
.gp-products--rail {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: minmax(13.5rem, 72%);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: 0.75rem;
}

@media (min-width: 40em) {
	.gp-products--rail {
		grid-auto-columns: minmax(13.5rem, 34%);
	}
}

@media (min-width: 72em) {
	.gp-products--rail {
		grid-auto-flow: row;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		overflow: visible;
	}
}

.gp-product {
	margin: 0;
	max-width: none;
	scroll-snap-align: start;
}

.gp-product__link {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	color: inherit;
	text-decoration: none;
	border-radius: var(--wp--custom--radius--medium);
}

.gp-product__media {
	display: block;
	aspect-ratio: 1;
	border-radius: var(--wp--custom--radius--medium);
	background: radial-gradient(120% 90% at 50% 15%, #FFFFFF 0%, var(--wp--preset--color--surface) 70%);
	overflow: hidden;
}

.gp-product__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: scale var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.gp-product__body {
	display: grid;
	align-content: start;
	gap: 0.25rem;
	padding: 0.9rem 0.15rem 0;
}

.gp-product__cat {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--steel);
}

.gp-product__name {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.gp-product__line {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--indigo);
}

.gp-product__link:hover .gp-product__media img {
	scale: 1.06;
}

.gp-product__link:hover .gp-product__name {
	color: var(--wp--preset--color--indigo);
}

/* ---------- Facilities footprint ---------- */

.gp-sites {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 64em) {
	.gp-sites {
		grid-template-columns: 1.35fr 1fr 1fr;
		grid-auto-rows: minmax(15rem, auto);
	}

	.gp-site--lead {
		grid-row: span 2;
	}
}

.gp-site {
	margin: 0;
	max-width: none;
}

.gp-site__link {
	position: relative;
	display: flex;
	align-items: end;
	height: 100%;
	min-height: 15rem;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	isolation: isolate;
	background: var(--wp--preset--color--ink);
}

.gp-site__media,
.gp-site__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: scale var(--wp--custom--motion--slow) var(--wp--custom--motion--ease);
}

.gp-site__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgb(21 22 58 / 0) 30%, rgb(21 22 58 / 0.88) 100%);
}

.gp-site__body {
	display: grid;
	gap: 0.15rem;
	padding: 1.25rem 1.35rem 1.35rem;
}

.gp-site__name {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--heading-4);
}

.gp-site--lead .gp-site__name {
	font-size: var(--wp--preset--font-size--heading-3);
}

.gp-site__place {
	font-size: var(--wp--preset--font-size--small);
	color: rgb(255 255 255 / 0.82);
}

.gp-site__figure {
	margin-top: 0.5rem;
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--amber);
	font-weight: 500;
}

.gp-site__figure strong {
	font-size: 1.5rem;
	font-weight: 700;
	font-stretch: 112%;
	color: var(--wp--preset--color--white);
}

.gp-site__link:hover .gp-site__media img {
	scale: 1.05;
}

/* ---------- Certificates ---------- */

.gp-certs {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.gp-certs__title {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--heading-4);
}

.gp-certs__list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-cert {
	margin: 0;
	max-width: none;
}

.gp-certs__group--iso-management-system .gp-certs__list {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.gp-certs__group--iso-management-system .gp-cert {
	padding: 1.4rem 1.5rem;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-top: 3px solid var(--wp--preset--color--indigo);
}

.gp-certs__group--iso-management-system .gp-cert__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 650;
	font-stretch: 110%;
	color: var(--wp--preset--color--ink);
}

.gp-certs__group--quality-approvals .gp-certs__list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 6rem), 1fr));
}

.gp-certs__group--quality-approvals .gp-cert {
	display: grid;
	grid-template-rows: clamp(3rem, 6vw, 4.5rem) auto;
	gap: 0.6rem;
	justify-items: center;
	align-items: center;
	padding: 1rem 0.75rem 0.85rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: var(--wp--custom--radius--medium);
	text-align: center;
}

.gp-certs__group--quality-approvals img {
	max-height: clamp(3rem, 6vw, 4.5rem);
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.gp-certs__group--quality-approvals .gp-cert__name {
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--wp--preset--color--steel);
}

/* Certificate status and detail dialog. */
.gp-cert__status {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.1rem 0.5rem;
	border-radius: var(--wp--custom--radius--pill);
	font-size: 0.75rem;
	font-weight: 600;
}

.gp-cert__status--valid {
	background: #E6F4EA;
	color: #146C2E;
}

.gp-cert__status--expired {
	background: #FCE8E8;
	color: #A4161A;
}

.gp-cert.has-detail {
	padding: 0 !important;
}

.gp-cert__open {
	display: grid;
	gap: 0.6rem;
	justify-items: inherit;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 1rem 0.75rem 0.85rem;
	border: 0;
	border-radius: inherit;
	background: transparent;
	font: inherit;
	text-align: inherit;
	color: inherit;
	cursor: pointer;
	transition: box-shadow var(--wp--custom--motion--base) ease, translate var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

.gp-certs__group--iso-management-system .gp-cert__open {
	justify-items: start;
	padding: 1.4rem 1.5rem;
	text-align: left;
}

.gp-cert__open:hover {
	box-shadow: var(--wp--preset--shadow--raised);
	translate: 0 -2px;
}

.gp-cert__open::after {
	content: "Details";
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--indigo);
}

.gp-cert-dialog {
	width: min(92vw, 34rem);
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border: 0;
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--preset--shadow--lifted);
	color: var(--wp--preset--color--text);
}

.gp-cert-dialog::backdrop {
	background: rgb(10 11 30 / 0.7);
	backdrop-filter: blur(4px);
}

.gp-cert-dialog[open] {
	animation: gp-pop 260ms var(--wp--custom--motion--ease);
}

.gp-cert-dialog > * {
	margin-block: 0;
}

.gp-cert-dialog > * + * {
	margin-top: 1rem;
}

.gp-cert-dialog form {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	margin: 0;
}

.gp-cert-dialog .gp-lightbox__close {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.gp-cert-dialog__logo img {
	max-height: 5rem;
	width: auto;
}

.gp-cert-dialog__group {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}

.gp-cert-dialog h3 {
	margin-top: 0.25rem !important;
	font-size: var(--wp--preset--font-size--heading-3);
}

.gp-cert-dialog__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.gp-cert-dialog__facts dt {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}

.gp-cert-dialog__facts dd {
	margin: 0.1rem 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

@keyframes gp-pop {
	from {
		opacity: 0;
		scale: 0.96;
	}
}

/* ---------- Latest posts ---------- */

.gp-posts {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-post {
	margin: 0;
	max-width: none;
}

.gp-post__link {
	display: grid;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
}

.gp-post__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--medium);
}

.gp-post time {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}

.gp-post__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-4);
}

.gp-post__link:hover .gp-post__title {
	color: var(--wp--preset--color--indigo);
}

@media (prefers-reduced-motion: reduce) {
	.gp-spec__photo img {
		transform: none;
	}
}

/* ---------- Breadcrumbs ---------- */

.gp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}

.gp-crumbs li + li::before {
	content: "/";
	margin-right: 0.5rem;
	color: var(--wp--preset--color--metal);
}

.gp-crumbs a {
	color: var(--wp--preset--color--steel);
}

/* ---------- Motion layer (motion.js adds the classes; nothing is hidden without it) ---------- */

[data-gp-reveal].gp-pending {
	opacity: 0;
	translate: 0 2rem;
}

[data-gp-reveal] {
	transition: opacity 800ms var(--wp--custom--motion--ease), translate 900ms var(--wp--custom--motion--ease);
}

.gp-motion-subtle [data-gp-reveal].gp-pending {
	translate: 0 0.75rem;
}

/* Cards in a revealing section rise one after another. */
[data-gp-reveal] :where(.gp-product, .gp-cat, .gp-site, .gp-solution, .gp-cert, .gp-value) {
	transition: opacity 700ms var(--wp--custom--motion--ease), translate 800ms var(--wp--custom--motion--ease);
}

[data-gp-reveal].gp-pending :where(.gp-product, .gp-cat, .gp-site, .gp-solution, .gp-cert, .gp-value) {
	opacity: 0;
	translate: 0 1.5rem;
}

[data-gp-reveal] :where(.gp-product, .gp-cat, .gp-site, .gp-solution, .gp-value):nth-child(2) { transition-delay: 80ms; }
[data-gp-reveal] :where(.gp-product, .gp-cat, .gp-site, .gp-solution, .gp-value):nth-child(3) { transition-delay: 160ms; }
[data-gp-reveal] :where(.gp-product, .gp-cat, .gp-site, .gp-solution, .gp-value):nth-child(4) { transition-delay: 240ms; }
[data-gp-reveal] :where(.gp-product, .gp-cat, .gp-site, .gp-solution, .gp-value):nth-child(5) { transition-delay: 320ms; }

/* Card depth: perspective tilt with a moving highlight (set by motion.js on desktop pointers only). */
.gp-depth {
	position: relative;
	transform: perspective(1000px) rotateX(var(--gp-rx, 0deg)) rotateY(var(--gp-ry, 0deg));
	transform-style: preserve-3d;
	transition: transform 400ms var(--wp--custom--motion--ease);
	will-change: transform;
}

.gp-depth::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--radius--large);
	background: radial-gradient(28rem circle at var(--gp-lx, 50%) var(--gp-ly, 0%), rgb(255 255 255 / 0.22), transparent 45%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease;
	z-index: 1;
}

.gp-depth:hover::after {
	opacity: 1;
}

.gp-no-light .gp-depth::after {
	display: none;
}

.gp-depth:hover {
	z-index: 2;
}

/* ---------- Page header with optional photo ---------- */

.gp-page-head {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.gp-page-head .gp-wrap > * {
	margin-block: 0;
}

.gp-page-head h1 {
	font-size: var(--wp--preset--font-size--heading-1);
}

.gp-page-head__lead {
	margin-top: 0.75rem !important;
	max-width: 46rem;
	font-size: var(--wp--preset--font-size--lead);
	color: var(--wp--preset--color--steel);
}

.gp-page-head__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.gp-page-head__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gp-page-head.has-photo {
	background: var(--wp--preset--color--ink);
	border-bottom: 0;
}

.gp-page-head.has-photo .gp-page-head__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(21 22 58 / 0.92), rgb(21 22 58 / 0.6));
}

.gp-page-head.has-photo h1 {
	color: var(--wp--preset--color--white);
}

.gp-page-head.has-photo .gp-page-head__lead {
	color: rgb(255 255 255 / 0.82);
}

/* ---------- Facility cards additions ---------- */

.gp-site__desc {
	margin-top: 0.4rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgb(255 255 255 / 0.82);
	max-width: 40ch;
}

.gp-site__cta {
	margin-top: 0.75rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--white);
}

.gp-site__cta::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.45em;
	border: solid var(--wp--preset--color--amber);
	border-width: 2px 2px 0 0;
	transform: translateY(-0.1em) rotate(45deg);
	transition: translate var(--wp--custom--motion--fast) ease;
}

.gp-site__link:hover .gp-site__cta::after {
	translate: 3px 0;
}

/* Text sits on real site photos (bright skies, busy halls): a full-height grade keeps it readable anywhere. */
.gp-site__link::after {
	background: linear-gradient(180deg, rgb(21 22 58 / 0.3) 0%, rgb(21 22 58 / 0.6) 45%, rgb(21 22 58 / 0.94) 100%);
}

.gp-site__body {
	text-shadow: 0 1px 12px rgb(21 22 58 / 0.55);
}

/* ---------- Footer additions ---------- */

.gp-footer__logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 1rem;
}

.gp-footer__logo img {
	width: 180px;
	height: auto;
}

.gp-footer__social,
.gp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.gp-footer__legal {
	margin: 0;
}

/* Product tags: part of the shared product card (homepage, catalogue, related products). */
.gp-product__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.35rem;
}

.gp-tag {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--rule);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
}

.gp-tag--api {
	color: var(--wp--preset--color--blue);
}
