/* =========================================================================
   Vendor wall — provider cards on a tilted plane, with the KYC/KYB
   snapshot below.

   The plane rises left-to-right (rotateZ is POSITIVE here, where the
   original prototype used -38deg and descended). Columns alternate
   direction so the wall reads as many independent providers rather than
   one sliding image, and the drift is driven by scroll position rather
   than a timer — see dist/platform-page.js.
   ========================================================================= */

.pp-vendors {
	padding: 0 20px;
	background: #fff;
	overflow: hidden;
}

.pp-vendors__frame {
	max-width: 1400px;
	margin: 0 auto;
	border-left: 1px solid rgba(0, 0, 0, 0.2);
	border-right: 1px solid rgba(0, 0, 0, 0.2);
	padding: 96px 0 0;
}

.pp-vendors__panel {
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding: 0 0 0 40px;
}

/* ---------------------------------------------------------- Copy column */

.pp-vendors__eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7a6b74;
	margin: 0 0 16px;
}

.pp-vendors__title {
	margin: 0 0 20px;
	font-size: 48px;
	line-height: 1.0833;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: #1a0f16;
}

.pp-vendors__lede {
	margin: 0;
	font-size: 18px;
	line-height: 1.5556;
	color: #4a3c44;
}

.pp-vendors__cta {
	display: inline-flex;
	align-items: center;
	margin-top: 28px;
	padding: 14px 26px;
	border-radius: 999px;
	background: #430933;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease;
}

.pp-vendors__cta:hover,
.pp-vendors__cta:focus-visible {
	background: #2d0622;
	color: #fff;
}

/* ------------------------------------------------------------- The wall */

.pp-vendors__wall {
	position: relative;
	height: 620px;
	/* The columns run well past the viewport on both sides by design;
	   clipping here keeps them off the document's scroll width. */
	overflow: hidden;
	/*
	 * Two fades intersected: the left one dissolves the columns into the
	 * copy rather than guillotining them in open white, the vertical one
	 * keeps cards off the section's own hairlines. The right edge is left
	 * hard so it lands on the frame's rail, where a cut reads as intended.
	 *
	 * A radial mask was the obvious choice and the wrong one: sized to the
	 * box it never reached its transparent stop before the edge, so it
	 * masked nothing at all.
	 */
	-webkit-mask-image:
		linear-gradient(90deg, transparent 0, #000 22%),
		linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(90deg, transparent 0, #000 22%),
		linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%);
	mask-composite: intersect;
}

.pp-vendors__plane {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2200px;
	height: 1600px;
	margin: -800px 0 0 -1100px;
	/*
	 * A gentler tilt and a closer camera.
	 *
	 * At 58/38 the plane was steep enough that a card's own text ran at
	 * nearly 40 degrees and had to be puzzled out rather than read, and
	 * the vertical squash left the cards small in frame. 46/22 keeps the
	 * isometric read while putting the type back within a glance.
	 */
	transform: rotateX(46deg) rotateZ(22deg) scale(1.08);
	transform-origin: 50% 50%;
	transform-style: preserve-3d;
}

.pp-vendors__cols {
	display: flex;
	gap: 28px;
	height: 100%;
	justify-content: center;
}

.pp-vendors__col {
	width: 340px;
	flex: 0 0 340px;
	/* Each column is taller than the plane; the run inside it is what
	   moves, and it holds two identical copies of the column's cards so
	   a shift of exactly half its height wraps seamlessly. */
	overflow: hidden;
}

.pp-vendors__run {
	display: flex;
	flex-direction: column;
	gap: 20px;
	will-change: transform;
	transform: translate3d(0, var(--run-y, 0px), 0);
}

/* Stagger the columns so the wall does not read as a single ruled line. */
.pp-vendors__col:nth-child(2) .pp-vendors__run { margin-top: -90px; }
.pp-vendors__col:nth-child(3) .pp-vendors__run { margin-top: -40px; }
.pp-vendors__col:nth-child(4) .pp-vendors__run { margin-top: -130px; }

/* ------------------------------------------------------- Provider cards */

.pp-vendors__card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 14px;
	padding: 18px 20px;
	box-shadow: 0 18px 40px -24px rgba(26, 15, 22, 0.45);
}

.pp-vendors__card-top {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.pp-vendors__pill {
	padding: 4px 10px;
	border-radius: 999px;
	background: #f4f1f3;
	color: #5c4e56;
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
}

.pp-vendors__card-id {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pp-vendors__ini {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: #430933;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
}

/* Coverage flag, pushed to the top-right corner of the card's pill row. */
.pp-vendors__flag {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-left: auto;
	align-self: center;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	object-fit: cover;
}

.pp-vendors__names {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.pp-vendors__name {
	font-size: 15px;
	font-weight: 500;
	color: #1a0f16;
}

.pp-vendors__loc {
	font-size: 12px;
	color: #7a6b74;
}

/*
 * What the provider actually sells, under where it sells it. Set in the
 * accent rather than the muted grey: on a wall where every card carries
 * the same fields, this is the one a reader scans for.
 */
.pp-vendors__svc {
	font-size: 12px;
	font-weight: 500;
	color: #430933;
	opacity: 0.75;
}

.pp-vendors__fee {
	flex: 0 0 auto;
	font-size: 16px;
	font-weight: 500;
	color: #1a0f16;
}

.pp-vendors__desc {
	margin: 12px 0 14px;
	font-size: 13px;
	line-height: 1.4615;
	color: #4a3c44;
}

.pp-vendors__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pp-vendors__chip {
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 11px;
	color: #5c4e56;
	white-space: nowrap;
}

.pp-vendors__chip.is-ok {
	border-color: rgba(31, 122, 74, 0.25);
	background: rgba(31, 122, 74, 0.08);
	color: #1f7a4a;
}

/* -------------------------------------------------- KYC / KYB snapshot */

.pp-vendors__snapshot {
	margin: 0;
	padding: 40px;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.pp-vendors__snap-head {
	margin-bottom: 32px;
}

.pp-vendors__snap-title {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.2143;
	font-weight: 400;
	color: #1a0f16;
}

.pp-vendors__snap-sub {
	margin: 0;
	font-size: 14px;
	color: #7a6b74;
}

.pp-vendors__snap-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.pp-vendors__snap-block-title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7a6b74;
}

.pp-vendors__rows {
	margin: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pp-vendors__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pp-vendors__row dt {
	font-size: 14px;
	color: #4a3c44;
}

.pp-vendors__row dd {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #1a0f16;
	text-align: right;
}

.pp-vendors__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #1f7a4a;
	/* Baseline-aligned text puts a 7px box on the baseline itself, which
	   reads as sitting too low next to the cap height. */
	transform: translateY(-1px);
}

.pp-vendors__row dd.is-watch .pp-vendors__dot { background: #c2820c; }
.pp-vendors__row dd.is-watch { color: #8a5c06; }

.pp-vendors__works {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}

.pp-vendors__works-label {
	font-size: 13px;
	color: #7a6b74;
	margin-right: 4px;
}

/* ---------------------------------------------------------- Breakpoints */

@media (max-width: 1100px) {
	.pp-vendors__panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding: 0 40px;
	}

	.pp-vendors__wall { height: 460px; }
	.pp-vendors__plane { transform: rotateX(46deg) rotateZ(22deg) scale(0.82); }
}

@media (max-width: 782px) {
	.pp-vendors__frame { padding-top: 64px; }
	.pp-vendors__panel { padding: 0 20px; }
	.pp-vendors__wall { margin: 0 -20px; }
	.pp-vendors__title { font-size: 34px; }
	.pp-vendors__lede { font-size: 16px; }

	.pp-vendors__wall { height: 380px; }
	.pp-vendors__plane { transform: rotateX(46deg) rotateZ(22deg) scale(0.6); }

	.pp-vendors__snapshot {
		margin: 0;
		padding: 32px 20px;
	}

	.pp-vendors__snap-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* The drift is an ambient effect, not information. */
@media (prefers-reduced-motion: reduce) {
	.pp-vendors__run {
		transform: none !important;
		transition: none !important;
	}
}

/*
 * Bare variant — the wall dropped into a media slot that brings its own
 * heading and frame (see inc/functions/animation-library.php). The framed
 * column and the copy track come off; the wall itself is untouched, so the
 * two uses cannot drift apart.
 */
.pp-vendors--bare {
	padding: 0;
}

.pp-vendors--bare .pp-vendors__frame {
	max-width: none;
	border-left: 0;
	border-right: 0;
	padding: 0;
}

.pp-vendors--bare .pp-vendors__panel {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	padding: 0;
}

.pp-vendors--bare .pp-vendors__wall {
	height: 100%;
	min-height: 380px;
}
