.stg-root {
	--stg-card-w: 365px;
	--stg-card-h: 365px;
	--stg-overlap: 33;
	--stg-rotation: 2.5deg;
	--stg-scale: 1;
	--stg-lift: 65px;
	--stg-drop: 15px;
	--stg-fade: 0;
	--stg-cut: 70px;
	--stg-duration: 700ms;
	--stg-bg: #fff;
	--stg-bg-active: #4f3cf0;
	--stg-tx: #111;
	--stg-tx-active: #fff;
	--stg-border: #111;
	--stg-bw: 2px;
	--stg-pad: 32px;
	--stg-img: 52px;
	position: relative;
	width: 100%;
	overflow: hidden;
	user-select: none;
}
.stg-stage {
	position: relative;
	width: 100%;
	height: calc(var(--stg-card-h) * 1.2 + 40px);
}
.stg-card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--stg-card-w);
	height: var(--stg-card-h);
	box-sizing: border-box;
	cursor: pointer;
	color: var(--stg-tx);
	background: transparent;
	transition: transform var(--stg-duration) cubic-bezier(.65,0,.35,1), opacity var(--stg-duration) ease, color .5s ease;
	will-change: transform;
}
/* border layer + fill layer (so the border survives the clip-path) */
.stg-card::before,
.stg-card::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}
.stg-card::before {
	inset: 0;
	background: var(--stg-border);
}
.stg-card::after {
	inset: var(--stg-bw);
	background: var(--stg-bg);
	transition: background .5s ease;
}
/* active card + hover: other color */
.stg-card.is-active,
.stg-card:hover {
	color: var(--stg-tx-active);
}
.stg-card.is-active::after,
.stg-card:hover::after {
	background: var(--stg-bg-active);
}
/* cut corner (top right, 45deg) on the active card */
.stg-card.is-active::before {
	clip-path: polygon(0 0, calc(100% - var(--stg-cut)) 0, 100% var(--stg-cut), 100% 100%, 0 100%);
}
.stg-card.is-active::after {
	clip-path: polygon(0 0, calc(100% - var(--stg-cut) + var(--stg-bw) * .4142) 0, 100% calc(var(--stg-cut) - var(--stg-bw) * .4142), 100% 100%, 0 100%);
}
.stg-content {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	padding: var(--stg-pad);
	display: flex;
	flex-direction: column;
}
.stg-photo {
	width: var(--stg-img);
	height: var(--stg-img);
	object-fit: cover;
	margin-bottom: 16px;
}
.stg-quote {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
}
.stg-author {
	margin: auto 0 0;
	font-size: 14px;
	font-style: italic;
	opacity: .8;
}
.stg-nav-wrap {
	display: flex;
	justify-content: center;
	gap: 60px;
	padding: 8px 0;
}
.stg-nav {
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 6px 10px;
}
