/* ===========================================================================
   Bublr — "Every category" pinned horizontal scroll ending in the brand mark.
   Cards are a media tile with a caption beneath. The final tile holds the bublr
   mark; the JS grows it to fill the screen. Mobile: a horizontal swipe row.
   =========================================================================== */

.bublr-horizon {
	position: relative;
	height: 280vh;                /* shorter pin so next section arrives sooner (Varun review) */
	background:
		radial-gradient(120% 50% at 50% 0%, rgba(127, 229, 168, 0.12), transparent 55%),
		var(--cream, #F5F2EB);
}

.bublr-horizon__pin {
	position: sticky;
	top: 0;
	height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bublr-horizon__head {
	position: absolute;
	top: 6vh;
	left: 0; right: 0;
	text-align: left;                                  /* left-aligned (Varun review) */
	z-index: 2;
	padding: 0 max(48px, calc(50vw - 540px));          /* align to first card's left edge */
}
.bublr-horizon__eyebrow { font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: 0.26em; margin: 0 0 16px; }
.bublr-horizon__head h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; }

.bublr-horizon__viewport { width: 100%; }
.bublr-horizon__track {
	display: flex;
	align-items: flex-start; /* line every tile up along the top */
	gap: 40px;
	padding: 0 max(48px, calc(50vw - 540px));
	margin-top: 12vh; /* clear gap below the section heading */
	will-change: transform, opacity;
}

/* ---------- UMANO-style card: media tile + caption below ---------- */
.bublr-horizon__card {
	flex: 0 0 auto;
	width: 392px;
	display: flex;
	flex-direction: column;
}

.bublr-horizon__tile {
	position: relative;
	width: 392px;
	height: 372px;
	border-radius: 28px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Warm neutral, faintly tinted by the category colour. */
	background:
		linear-gradient(160deg, color-mix(in srgb, var(--c, #7FE5A8) 12%, #EFEAE0), #E9E3D7);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Brand-colour disc behind the item. */
.bublr-horizon__halo {
	position: absolute;
	width: 58%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 42% 38%, color-mix(in srgb, var(--c, #7FE5A8) 92%, #fff), var(--c, #7FE5A8) 70%);
	filter: blur(1px);
	opacity: 0.9;
}
.bublr-horizon__item {
	position: relative;
	z-index: 1;
	width: 56%;
	height: 64%;
	object-fit: contain;
	filter: drop-shadow(0 26px 26px rgba(10, 30, 22, 0.32));
	animation: bublrHzFloat 6s ease-in-out infinite;
}
.bublr-horizon__card:nth-child(2n) .bublr-horizon__item { animation-delay: -2s; }
.bublr-horizon__card:nth-child(3n) .bublr-horizon__item { animation-delay: -4s; animation-duration: 7s; }
@keyframes bublrHzFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Caption beneath the tile. */
.bublr-horizon__cap {
	padding: 22px 2px 0;
}
.bublr-horizon__name {
	font-family: var(--font-head, "Poppins", sans-serif);
	font-weight: 700;
	font-size: 23px;
	letter-spacing: -0.025em;
	line-height: 1.08;
	color: var(--black, #0A0A0A);
	margin-bottom: 11px;
}
/* Stat pills: icon + count. */
.bublr-horizon__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 12px;
}
.bublr-horizon__stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-head, "Poppins", sans-serif);
	font-size: 13px;
	font-weight: 600;
	color: #3a4250;
	background: rgba(10, 10, 10, 0.045);
	border: 1px solid rgba(10, 10, 10, 0.06);
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
}
.bublr-horizon__stat svg {
	width: 15px; height: 15px;
	color: var(--mint-deep, #1B9E66);
	flex: 0 0 auto;
}
.bublr-horizon__stat b { font-weight: 700; color: var(--black, #0A0A0A); }
.bublr-horizon__desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--grey-4, #667085);
	margin: 0;
	max-width: 33ch;
}

/* ---------- Final tile: mark + clouds inside the card frame ---------- */
.bublr-horizon__card--finale { width: 392px; }
.bublr-horizon__tile--finale {
	position: relative;
	overflow: hidden;          /* clips the clouds to the card frame */
	background: #EDE7DC;        /* warm tile, matching the others */
}
.bublr-horizon__finalemark {
	position: relative;
	z-index: 2;
	width: 38%;
	height: auto;
	filter: drop-shadow(0 0 34px rgba(127, 229, 168, 0.4));
	will-change: transform;
}
/* Clouds inside the frame, drifting over the mark. */
.bublr-horizon__fcloud {
	position: absolute;
	z-index: 3;
	height: auto;
	will-change: transform, opacity;
	filter: drop-shadow(0 18px 22px rgba(10, 30, 22, 0.2));
}
.bublr-horizon__fcloud--l { top: -16%;  left: -20%; width: 78%; }
.bublr-horizon__fcloud--r { bottom: -14%; right: -20%; width: 86%; }

/* ---------- Zoom layer: the same tile, grown to fill the screen ---------- */
.bublr-horizon__zoom {
	position: absolute;
	inset: 0;
	z-index: 5;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}
.bublr-horizon__zoomtile {
	position: absolute;
	top: 0; left: 0;           /* horizon.js sets top/left/width/height/radius/bg */
	width: 392px;
	height: 372px;
	box-shadow: none;
	will-change: top, left, width, height;
}

/* ---------- Mobile: horizontal swipe row, no pin or zoom ---------- */
@media (max-width: 960px) {
	.bublr-horizon { height: auto; padding: 70px 0; }
	.bublr-horizon__pin { position: static; height: auto; min-height: 0; }
	.bublr-horizon__head { position: static; margin-bottom: 28px; }
	.bublr-horizon__viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.bublr-horizon__track { transform: none !important; opacity: 1 !important; padding: 0 20px; gap: 24px; }
	.bublr-horizon__card,
	.bublr-horizon__tile { width: 78vw; max-width: 340px; }
	.bublr-horizon__tile { height: 300px; }
	.bublr-horizon__card--finale { display: none; }
}

.bublr-reduce-motion .bublr-horizon { height: auto; }
.bublr-reduce-motion .bublr-horizon__pin { position: static; height: auto; }
.bublr-reduce-motion .bublr-horizon__head { position: static; margin-bottom: 28px; }
.bublr-reduce-motion .bublr-horizon__viewport { overflow-x: auto; }
.bublr-reduce-motion .bublr-horizon__track { transform: none !important; }
.bublr-reduce-motion .bublr-horizon__card--finale { display: none; }
.bublr-reduce-motion .bublr-horizon__item { animation: none; }

/* ===========================================================================
   Photo card — frame inside a frame.
   The tile is a warm mat; an inset bordered photo holds the item, with a
   "Recognised" chip and a byline showing who captured it.
   =========================================================================== */
.bublr-horizon__photo {
	position: absolute;
	inset: 15px;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(112% 82% at 50% 16%,
			color-mix(in srgb, var(--c, #7FE5A8) 18%, #ffffff),
			color-mix(in srgb, var(--c, #7FE5A8) 7%, #F4EFE5) 68%,
			color-mix(in srgb, var(--c, #7FE5A8) 16%, #E6DFD1));
	border: 0;                                  /* faint white stroke removed (Varun review) */
	box-shadow:
		0 16px 32px -20px rgba(10, 40, 28, 0.45);
}
/* Contact shadow under the item. */
.bublr-horizon__photo::after {
	content: "";
	position: absolute;
	bottom: 19%;
	width: 48%; height: 7%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(10, 30, 22, 0.3), transparent);
	filter: blur(3px);
}
/* The item. */
.bublr-horizon__item {
	position: relative;
	z-index: 1;
	width: 60%;
	height: 60%;
	object-fit: contain;
	transform: translateY(-4%);
	filter: drop-shadow(0 16px 16px rgba(10, 30, 22, 0.28));
	animation: none;
}
/* "Recognised" chip, top-left. */
.bublr-horizon__capture {
	position: absolute;
	top: 13px; left: 13px;
	z-index: 3;
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--font-head, "Poppins", sans-serif);
	font-size: 11.5px; font-weight: 600;
	color: #0E3D2E;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	padding: 5px 11px 5px 9px;
	border-radius: 999px;
	box-shadow: 0 4px 12px -6px rgba(10, 40, 28, 0.4);
}
.bublr-horizon__capture svg { width: 13px; height: 13px; color: var(--mint-deep, #1B9E66); flex: 0 0 auto; }
/* Byline overlay, bottom. */
.bublr-horizon__byline {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 3;
	display: flex; align-items: center; gap: 9px;
	padding: 30px 15px 14px;
	background: linear-gradient(transparent, rgba(8, 22, 16, 0.58));
}
.bublr-horizon__ava {
	width: 27px; height: 27px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.9);
	object-fit: cover;
	flex: 0 0 auto;
}
.bublr-horizon__handle {
	font-family: var(--font-head, "Poppins", sans-serif);
	font-size: 13px; font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Real listing photo: fills the inner frame edge-to-edge. */
.bublr-horizon__shot {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.bublr-horizon__photo.has-shot { background: #E6DFD1; }
.bublr-horizon__photo.has-shot::after { display: none; }
