.zram, .zram * { box-sizing: border-box; }

.zram {
	--zram-accent: #86f05c;
	--zram-bg: #0a0d0b;
	--zram-panel: #0f1511;
	--zram-line: #1d2820;
	--zram-ease: cubic-bezier(.65, 0, .25, 1);
	--zram-dur: .95s;
	position: relative;
	z-index: 0;
	isolation: isolate;   /* pins and the edge shade stay inside the map, never over a sticky bar */
	width: 100%;
	padding: 24px 0 8px;
	color: #e9efe9;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 1.4;
}

/* ---------- stats ---------- */
.zram .zram__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 56px;
	margin: 0 0 26px;
}
.zram .zram__stat-num {
	font-family: 'Anton', 'Arial Narrow', sans-serif;
	font-size: 40px;
	line-height: 1;
	color: var(--zram-accent);
}
.zram .zram__stat-label {
	margin-top: 10px;
	font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #7d877f;
}

/* ---------- filter pills ---------- */
.zram .zram__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
}
.zram .zram__pill {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
		padding: 9px 16px;
	min-height: 0;
	height: auto;
	border: 1px solid #26332a;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: #aab4ad;
	font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .13em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: color .25s, border-color .25s, background .25s, box-shadow .25s;
}
.zram .zram__pill:hover {
	border-color: color-mix(in srgb, var(--zram-accent) 55%, transparent);
	color: #fff;
	background: transparent;
}
.zram .zram__pill.is-active {
	border-color: var(--zram-accent);
	color: var(--zram-accent);
	font-weight: 700;
	background: color-mix(in srgb, var(--zram-accent) 12%, transparent);
	box-shadow: 0 0 16px color-mix(in srgb, var(--zram-accent) 28%, transparent);
}
.zram .zram__pill:focus-visible { outline: 2px solid var(--zram-accent); outline-offset: 2px; }

/* ---------- map panel ---------- */
.zram .zram__map {
	padding: 20px;
	border: 1px solid var(--zram-line);
	border-radius: 14px;
	background: var(--zram-panel);
	container-type: inline-size;
}
.zram .zram__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 2.4 / 1;
	overflow: hidden;
	border-radius: 6px;
	background:
		radial-gradient(ellipse at 50% 45%, rgba(134, 240, 92, .07), transparent 70%),
		#111a14;
}
/* edge vignette */
.zram .zram__viewport::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 5;
	background:
		linear-gradient(90deg, rgba(10, 13, 11, .75), transparent 12%, transparent 88%, rgba(10, 13, 11, .75)),
		linear-gradient(180deg, rgba(10, 13, 11, .5), transparent 14%, transparent 86%, rgba(10, 13, 11, .6));
}

.zram .zram__stage {
	position: absolute;
	inset: 0;
	transform-origin: 0 0;
	will-change: transform;
	transition: transform var(--zram-dur) var(--zram-ease);
}
.zram .zram__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.zram .zram__land {
	fill: rgba(134, 240, 92, .06);
	stroke: color-mix(in srgb, var(--zram-accent) 48%, transparent);
	stroke-width: 1;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 5px color-mix(in srgb, var(--zram-accent) 22%, transparent));
}
.zram .zram__route {
	fill: none;
	stroke: color-mix(in srgb, var(--zram-accent) 55%, transparent);
	stroke-width: 1.6;
	stroke-dasharray: 6 6;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	opacity: .75;
	animation: zram-flow 1.2s linear infinite;
}
@keyframes zram-flow {
	to { stroke-dashoffset: -24; }
}
/* Hope Mills ↔ Budapest line: flow towards Hope Mills */
.zram .zram__route:nth-of-type(3) { animation-direction: reverse; }
.zram .zram__region {
	position: absolute;
	transform: translate(-50%, -50%);
	font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
	font-size: 1.25cqw;
	letter-spacing: .38em;
	white-space: nowrap;
	color: color-mix(in srgb, var(--zram-accent) 24%, transparent);
	pointer-events: none;
	user-select: none;
}

/* ---------- pins ---------- */
.zram .zram__pins { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.zram .zram__pin {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
	pointer-events: auto;
	transition: left var(--zram-dur) var(--zram-ease), top var(--zram-dur) var(--zram-ease), opacity .5s ease;
}
.zram .zram__pin.is-hidden { opacity: 0; pointer-events: none; }

.zram .zram__pin-in {
	--ps: 1;
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 4.9cqw;
	transform: translate(-50%, -100%) scale(var(--ps));
	transform-origin: 50% 100%;
	transition: transform var(--zram-dur) var(--zram-ease);
}
.zram .zram__pin.is-focus .zram__pin-in { --ps: 1.35; }
.zram .zram__pin:hover .zram__pin-in { transform: translate(-50%, -100%) scale(calc(var(--ps) * 1.07)); }
.zram .zram__pin:focus-visible { outline: none; }
.zram .zram__pin:focus-visible .zram__pin-box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--zram-accent) 60%, transparent); }

.zram .zram__pin-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border: .24cqw solid var(--zram-accent);
	border-radius: 1.1cqw;
	background: #0e1310;
	box-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .55), 0 0 1.4cqw color-mix(in srgb, var(--zram-accent) 28%, transparent);
	overflow: hidden;
}
.zram .zram__pin-box svg, .zram .zram__pin-box img { display: block; width: 78%; height: 78%; object-fit: contain; }
.zram .zram__pin-tail {
	display: block;
	width: 1.3cqw;
	height: .95cqw;
	margin: -.05cqw auto 0;
	background: var(--zram-accent);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.zram .zram__pin-dot {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 1.05cqw;
	height: 1.05cqw;
	border-radius: 50%;
	background: var(--zram-accent);
	transform: translate(-50%, 50%);
	box-shadow: 0 0 0 .9cqw color-mix(in srgb, var(--zram-accent) 18%, transparent), 0 0 1.6cqw color-mix(in srgb, var(--zram-accent) 70%, transparent);
}
.zram .zram__pin-label {
	position: absolute;
	left: 50%;
	top: 100%;
	margin-top: 1.1cqw;
	transform: translateX(-50%);
	white-space: nowrap;
	font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
	font-size: 1.28cqw;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 0 .4cqw #000, 0 0 .4cqw #000, 0 0 .9cqw #000, 0 .1cqw .3cqw #000;
	-webkit-text-stroke: .08cqw rgba(0, 0, 0, .7);
	paint-order: stroke fill;
}

/* ---------- cards ---------- */
.zram .zram__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
	align-items: stretch;
}
.zram .zram__card {
	padding: 20px 18px 18px;
	border: 1px solid var(--zram-line);
	border-radius: 12px;
	background: var(--zram-panel);
	transition: border-color .3s, transform .3s, box-shadow .3s;
}
.zram .zram__card[hidden] { display: none; }
.zram .zram__card:hover {
	border-color: color-mix(in srgb, var(--zram-accent) 45%, transparent);
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .35), 0 0 18px color-mix(in srgb, var(--zram-accent) 10%, transparent);
}
.zram .zram__card.is-in { animation: zramIn .55s .25s var(--zram-ease) both; }
@keyframes zramIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}
.zram .zram__tag {
	margin: 0 0 8px;
	font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--zram-accent);
}
.zram .zram__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #fff;
	-webkit-text-stroke: .6px #fff;
}
.zram .zram__desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #a9b3ac;
}
.zram .zram__trial {
	color: var(--zram-accent);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.zram .zram__trial:hover { text-decoration: underline; }

/* no animation while resizing / first paint */
.zram.is-static .zram__stage,
.zram.is-static .zram__pin,
.zram.is-static .zram__pin-in { transition: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.zram .zram__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.zram .zram__map { padding: 10px; border-radius: 12px; }
	.zram .zram__cards { grid-template-columns: 1fr; gap: 14px; }
	.zram .zram__pin-in { width: 7cqw; }
	.zram .zram__pin-label { font-size: 2cqw; }
	.zram .zram__region { font-size: 1.8cqw; }
}
@media (prefers-reduced-motion: reduce) {
	.zram { --zram-dur: .01s; }
	.zram .zram__card.is-in { animation: none; }
}
