.pcs {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: var(--pcs-h, 760px);
	color: #fff;
	background: #0b1030;
	font-family: inherit;
	box-sizing: border-box;
	/* Left and right insets are always identical. Order of precedence:
	   1) --pcs-inset-js: JS copies the left edge of the theme element chosen in
	      "Align to element", so the heading lines up with the rest of the page;
	   2) the centred container (--pcs-container), if one is set;
	   3) the side padding (--pcs-side). */
	--pcs-side: max(20px, 7vw);
	--pcs-inset: var(--pcs-inset-js, max(var(--pcs-side), calc((var(--pcs-w, 100vw) - var(--pcs-container, 99999px)) / 2)));
	--pcs-per: 3; /* cards visible at once */
	width: 100%;
	max-width: 100vw;
}
.pcs *, .pcs *::before, .pcs *::after { box-sizing: border-box; }

/* ---------- Background layers ---------- */
.pcs__bgs { position: absolute; inset: 0; z-index: -1; }
.pcs__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity .6s ease, transform 1.2s ease;
	will-change: opacity;
}
.pcs__bg--base { opacity: 1; transform: none; }
.pcs__bg--card.is-active { opacity: 1; transform: scale(1); }
.pcs__overlay {
	position: absolute;
	inset: 0;
	background: var(--pcs-overlay, #0b1030);
	opacity: var(--pcs-overlay-op, .25);
	pointer-events: none;
}

/* ---------- Layout ---------- */
.pcs__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 56px;
	min-height: var(--pcs-h, 760px);
	padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
}
.pcs__intro {
	padding-inline: var(--pcs-inset);
	max-width: calc(560px + var(--pcs-inset) * 2);
}
.pcs__eyebrow {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.pcs__text p {
	margin: 0 0 1.2em;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 500;
	text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.pcs__text p:last-child { margin-bottom: 0; }

/* ---------- Carousel ---------- */
.pcs__carousel { position: relative; }

/* The viewport clips the sliding track. It extends a little past the content
   edge on BOTH sides (so the hover shadow isn't cut off) but never more than
   the gap, so the neighbouring card can't peek in. Exactly --pcs-per cards fit
   between the two equal insets. Vertical padding leaves room for the hover lift. */
.pcs__viewport {
	--pcs-pad: min(24px, var(--pcs-gap, 24px));
	overflow: hidden;
	margin: -28px calc(var(--pcs-inset) - var(--pcs-pad)) -64px calc(var(--pcs-inset) - var(--pcs-pad));
	padding: 28px var(--pcs-pad) 64px;
	touch-action: pan-y;
	overscroll-behavior-x: contain;
	cursor: grab;
	outline-offset: -4px;
	-webkit-user-select: none;
	user-select: none;
}
.pcs__viewport.is-dragging { cursor: grabbing; }
.pcs__viewport.is-dragging .pcs-card { pointer-events: none; }
.pcs--nodrag .pcs__viewport { cursor: default; }
.pcs__viewport:focus-visible { outline: 2px solid rgba(255,255,255,.8); }

.pcs__track {
	position: relative;
	display: flex;
	gap: var(--pcs-gap, 24px);
	width: max-content;
	transition: transform var(--pcs-speed, 600ms) cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}
/* Without JS the row simply scrolls. */
.pcs:not(.is-ready) .pcs__viewport { overflow-x: auto; scrollbar-width: none; }
.pcs:not(.is-ready) .pcs__viewport::-webkit-scrollbar { display: none; }
/* Everything fits: no sliding, no clones, no controls. */
.pcs.is-static .pcs-card--clone { display: none; }
.pcs.is-static .pcs__viewport { cursor: default; }
.pcs.is-static .pcs__nav { display: none; }

.pcs-card {
	position: relative;
	flex: 0 0 calc((var(--pcs-w, 100vw) - 2 * var(--pcs-inset) - (var(--pcs-per) - 1) * var(--pcs-gap, 24px)) / var(--pcs-per));
	min-width: 0;
	min-height: var(--pcs-ch, 480px);
	display: flex;
	flex-direction: column;
	padding: 24px;
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,.28);
	background: rgba(255,255,255,.10);
	-webkit-backdrop-filter: blur(var(--pcs-blur, 14px)) saturate(1.2);
	backdrop-filter: blur(var(--pcs-blur, 14px)) saturate(1.2);
	color: #fff;
	text-decoration: none;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
a.pcs-card { cursor: pointer; }
.pcs-card:hover,
.pcs-card:focus-visible,
.pcs-card.is-active {
	transform: translateY(-6px);
	background: rgba(255,255,255,.16);
	border-color: rgba(255,255,255,.5);
	box-shadow: 0 18px 40px rgba(0,0,0,.28);
	color: #fff;
}
.pcs-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pcs-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	min-height: 64px;
	margin-bottom: 18px;
}
.pcs-card__icon { width: 64px; height: 64px; object-fit: contain; display: block; }
.pcs-card__arrow {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 32px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.3);
	background: rgba(255,255,255,.12);
	transition: background .3s ease, color .3s ease, transform .3s ease;
}
.pcs-card:hover .pcs-card__arrow,
.pcs-card:focus-visible .pcs-card__arrow {
	background: #fff;
	color: #0b1030;
	transform: translate(2px, -2px);
}
.pcs-card__title { margin: 0 0 18px; font-size: 22px; line-height: 1.15; font-weight: 600; color: inherit; }
.pcs-card__tagline { margin: 0 0 6px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.pcs-card__desc { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; opacity: .92; }

/* ---------- Nav ---------- */
.pcs__nav {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	padding-inline: var(--pcs-inset);
}
.pcs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.35);
	background: rgba(255,255,255,.12);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
	transition: background .25s ease, opacity .25s ease;
}
.pcs__btn:hover { background: rgba(255,255,255,.28); }
.pcs__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pcs__btn[disabled] { opacity: .35; cursor: default; }
.pcs__btn--play .pcs__ico-play { display: none; }
.pcs__btn--play.is-off .pcs__ico-play { display: block; }
.pcs__btn--play.is-off .pcs__ico-pause { display: none; }

.pcs__dots { display: flex; align-items: center; gap: 8px; }
.pcs__dot {
	position: relative;
	overflow: hidden;
	width: 8px; height: 8px; padding: 0;
	border: 0; border-radius: 999px;
	background: rgba(255,255,255,.4);
	cursor: pointer;
	transition: width .3s ease, background .3s ease;
}
/* larger touch target without changing the look */
.pcs__dot::before { content: ""; position: absolute; inset: -10px -4px; }
.pcs__dot.is-current { width: 28px; background: #fff; }
.pcs__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* autoplay timer fills the active dot */
.pcs--progress .pcs__dot.is-current { background: rgba(255,255,255,.4); }
.pcs--progress .pcs__dot.is-current::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: #fff;
	transform-origin: left center;
	transform: scaleX(0);
	animation: pcs-fill var(--pcs-delay, 4s) linear forwards;
}
.pcs--progress.is-paused .pcs__dot.is-current::after { animation-play-state: paused; }
@keyframes pcs-fill { to { transform: scaleX(1); } }

/* ---------- Responsive: 3 → 2 → 1 cards, always fully visible ---------- */
@media (max-width: 1023px) {
	.pcs { --pcs-per: 2; }
}
@media (max-width: 640px) {
	.pcs { --pcs-per: 1; }
	.pcs-card { padding: 20px; }
	.pcs__btn--prev, .pcs__btn--next { display: none; }
	.pcs__nav { justify-content: center; padding-inline: 20px; }
}
@media (hover: none) {
	.pcs-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pcs__bg, .pcs-card, .pcs-card__arrow, .pcs__dot { transition: none; }
	.pcs__track { transition: none; }
	.pcs--progress .pcs__dot.is-current::after { animation: none; transform: scaleX(1); }
}
