/* ===========================================================================
   Bublr — Hero
   Cream stage, floating collection, mint dot that expands into a portal.
   Motion (load, scroll-scrub, cursor parallax) is driven by hero.js (GSAP).
   The --dark class is kept as the JS/markup hook; the palette is light.
   =========================================================================== */

.bublr-hero--dark {
	--hero-bg: #F5F2EB;       /* brand cream — light stage */
	position: relative;
	height: 250vh;            /* scroll track; the effect plays over ~150vh, then releases */
	background: var(--hero-bg);
}

.bublr-hero-viewport {
	position: sticky;
	top: 0;
	height: 100svh;
	min-height: 100svh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 196px 0 104px;
	background: var(--hero-bg);
	isolation: isolate;
}

/* Film grain overlay. */
.bublr-hero-viewport::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 6;
	pointer-events: none;
	opacity: 0.035;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Ground ---------- */
.bublr-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(120% 80% at 50% -12%, rgba(127, 229, 168, 0.22) 0%, transparent 55%),
		radial-gradient(90% 60% at 50% 120%, rgba(184, 221, 232, 0.18) 0%, transparent 60%),
		var(--hero-bg);
}

.bublr-hero-glow {
	position: absolute;
	top: -6%;
	left: 50%;
	width: min(820px, 90vw);
	height: min(820px, 90vw);
	transform: translateX(-50%);
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(circle, rgba(127, 229, 168, 0.34), rgba(127, 229, 168, 0.04) 55%, transparent 72%);
	filter: blur(56px);
}
@keyframes bublrGlowPulse {
	0%, 100% { opacity: 0.82; transform: translateX(-50%) scale(1); }
	50%      { opacity: 1;    transform: translateX(-50%) scale(1.05); }
}

.bublr-hero-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.6;
	background-image: radial-gradient(rgba(10, 40, 28, 0.07) 1.3px, transparent 1.3px);
	background-size: 30px 30px;
	mask-image: radial-gradient(120% 92% at 50% 36%, #000 28%, transparent 78%);
	-webkit-mask-image: radial-gradient(120% 92% at 50% 36%, #000 28%, transparent 78%);
}

/* ---------- Floating collection stage ---------- */
.bublr-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bublr-stage__layer { position: absolute; inset: 0; will-change: transform; }
.bublr-stage__layer--near { z-index: 3; }
.bublr-stage__layer--far  { z-index: 1; }

.bublr-chip {
	position: absolute;
	max-width: 188px;
	will-change: transform, opacity;
}

@keyframes bublrFloat {
	0%, 100% { transform: translateY(0)     rotate(var(--tilt, 0deg)) scale(var(--dscale, 1)); }
	50%      { transform: translateY(-12px) rotate(var(--tilt, 0deg)) scale(var(--dscale, 1)); }
}

/* Each collectible sits in its own bubble: no card chrome, just the bubble and a
   small caption. They drift, then are pulled into the mint dot on scroll. */
.bublr-chip-inner {
	--dscale: calc(1 - var(--depth, 0) * 0.30);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	filter: blur(calc(var(--depth, 0) * 2px));
	opacity: calc(1 - var(--depth, 0) * 0.5);
	animation: bublrFloat var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
	transform-origin: center;
}

.bublr-chip-bubble {
	position: relative;
	width: 138px;
	height: 138px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Mostly white so the item's own colours read, with a faint colour cast at the rim. */
	background:
		radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.97), color-mix(in srgb, var(--bubble, #7FE5A8) 10%, #ffffff) 52%, color-mix(in srgb, var(--bubble, #7FE5A8) 24%, #ffffff) 100%),
		#ffffff;
	border: 1px solid color-mix(in srgb, var(--bubble, #7FE5A8) 45%, transparent);
	box-shadow:
		inset 0 2px 3px rgba(255, 255, 255, 0.85),
		inset 0 -14px 30px -14px color-mix(in srgb, var(--bubble, #7FE5A8) 45%, transparent),
		0 18px 34px -14px rgba(10, 60, 40, 0.28),
		0 0 28px -8px color-mix(in srgb, var(--bubble, #7FE5A8) 45%, transparent);
}
/* Specular sheen + contact shadow. */
.bublr-chip-bubble::before {
	content: "";
	position: absolute;
	top: 9%; left: 20%; width: 40%; height: 26%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 72%);
	z-index: 2;
}
.bublr-chip-bubble::after {
	content: "";
	position: absolute;
	bottom: 13px; left: 50%; width: 50%; height: 8px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(ellipse, rgba(10, 40, 28, 0.18), transparent 72%);
	z-index: 0;
}
.bublr-chip-bubble img {
	position: relative;
	z-index: 1;
	width: 88%;
	height: 88%;
	object-fit: contain;
	filter: drop-shadow(0 9px 9px rgba(0, 0, 0, 0.28));
}
.bublr-chip-bubble svg { position: relative; z-index: 1; width: 34px; height: 34px; color: var(--bubble, #7FE5A8); }

/* Verified badge, in the bubble's colour, on its rim. */
.bublr-chip-badge {
	position: absolute;
	z-index: 3;
	right: 3px; bottom: 7px;
	width: 24px; height: 24px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(150deg, color-mix(in srgb, var(--bubble, #2BC47E) 55%, white), var(--bubble, #2BC47E));
	box-shadow: 0 2px 6px rgba(10, 40, 28, 0.3), 0 0 0 2.5px rgba(255, 255, 255, 0.9);
}
.bublr-chip-badge svg { width: 11px; height: 11px; fill: #06160E; }

/* Caption under the bubble. */
.bublr-chip-cap { text-align: center; max-width: 150px; }
.bublr-chip-name {
	display: block;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: -0.006em;
	color: #0A0A0A;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bublr-chip-meta { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 3px; }
.bublr-chip-ava {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 1px solid color-mix(in srgb, var(--bubble, #7FE5A8) 70%, transparent);
	box-shadow: 0 1px 3px rgba(10, 40, 28, 0.25);
}
.bublr-chip-loc {
	font-size: 10.5px;
	color: #667085;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 130px;
}

/* ---------- The bubble portal (contained ripple behind the dot) ---------- */
.bublr-portal {
	position: absolute;
	z-index: 9;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	pointer-events: none;
	will-change: transform, opacity;
	background: radial-gradient(circle at 38% 34%, #CFF8E0, var(--mint-green, #7FE5A8) 64%);
	box-shadow: 0 0 60px rgba(127, 229, 168, 0.85);
}

/* ---------- Centre column ---------- */
.bublr-hero-inner {
	position: relative;
	z-index: 4;
	text-align: center;
	max-width: 920px;
	margin: 0 auto;
	padding: 0 var(--container-pad, 24px);
}

.bublr-hero-eyebrow {
	font-family: var(--font-mono, ui-monospace, "SF Mono", monospace);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.26em;
	color: var(--mint-deep, #1B9E66);
	margin: 0 0 22px;
}

.bublr-hero-wordmark {
	display: flex;
	justify-content: center; /* centre the LETTERS — the dot hangs off to the right */
	margin: 0 0 clamp(16px, 2.2vw, 24px); /* tight gap to the tagline below */
	will-change: transform, opacity;
}

/* The dot is positioned absolutely off the logo's right edge, so it sits like the
   brand period WITHOUT shifting the word off true centre. */
.bublr-hero-logo-wrap {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.bublr-hero-logo {
	height: clamp(56px, 11vw, 146px);
	width: auto;
	display: block;
}

.bublr-dot {
	position: absolute;
	left: 100%;
	bottom: 0; /* on the baseline, like the brand period */
	margin-left: clamp(5px, 1.1vw, 14px); /* brand gap = 0.096 × wordmark height */
	width: clamp(13px, 2.6vw, 35px);  /* brand period = 0.237 × wordmark height */
	height: clamp(13px, 2.6vw, 35px);
	border-radius: 50%;
	/* The mint orb: soft even mint with an off-centre core, a faint rim, and a glow.
	   The highlight is a diffuse sheen (below), not a hard glint. */
	background: radial-gradient(circle at 44% 39%, #D6FAE6 0%, #93EAB8 36%, var(--mint-green, #7FE5A8) 70%, #5BD79A 100%);
	box-shadow:
		0 0 24px rgba(127, 229, 168, 0.6),
		0 0 62px rgba(127, 229, 168, 0.28),
		inset 0 -3px 9px rgba(33, 140, 92, 0.20),
		inset 0 1px 2px rgba(255, 255, 255, 0.35);
	transform-origin: center;
}

/* Diffuse sheen: a soft wash of light over the top, fading out. */
.bublr-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(46% 38% at 38% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 72%);
	pointer-events: none;
}

.bublr-hero-sub {
	font-size: clamp(17px, 2vw, 22px);
	line-height: 1.45;
	color: #3C4A43;
	max-width: 480px;
	margin: 0 auto 34px;
	font-weight: 500;
}

.bublr-hero-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.bublr-cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	margin-right: 1px;
}
.bublr-cta-icon svg { height: 15px; width: auto; display: block; } /* aspect kept — Apple mark stays crisp */

.bublr-hero--dark .store-btn {
	background: rgba(10, 11, 14, 0.04);
	border: 1px solid rgba(10, 11, 14, 0.14);
	color: #0A0A0A;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.bublr-hero--dark .store-btn:hover {
	background: rgba(10, 11, 14, 0.08);
	border-color: rgba(10, 11, 14, 0.26);
	transform: translateY(-1px);
}

/* Scroll cue. */
.bublr-hero-scrollcue {
	width: 26px;
	height: 42px;
	border: 2px solid rgba(10, 11, 14, 0.2);
	border-radius: 14px;
	margin: 16px auto 0;
	display: flex;
	justify-content: center;
	padding-top: 7px;
}
.bublr-hero-scrollcue span {
	width: 4px;
	height: 9px;
	border-radius: 3px;
	background: var(--mint-deep, #1B9E66);
	animation: bublrScrollCue 1.7s ease-in-out infinite;
}
@keyframes bublrScrollCue {
	0%   { opacity: 0; transform: translateY(-4px); }
	40%  { opacity: 1; }
	80%  { opacity: 0; transform: translateY(12px); }
	100% { opacity: 0; }
}

/* ---------- Category marquee ---------- */
.bublr-marquee {
	position: absolute;
	bottom: 2.5%;
	left: 0;
	width: 100%;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
	white-space: nowrap;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.bublr-marquee-track {
	display: inline-flex;
	align-items: center;
	will-change: transform;
	animation: bublrMarquee 42s linear infinite;
}
.bublr-marquee-word {
	font-family: var(--font-head, "Schibsted Grotesk", sans-serif);
	font-weight: 800;
	font-size: clamp(34px, 5.2vw, 76px);
	letter-spacing: 0.01em;
	color: rgba(10, 11, 14, 0.05);
	padding: 0 0.14em;
}
.bublr-marquee-dot { color: rgba(10, 11, 14, 0.08); font-size: clamp(20px, 3vw, 40px); padding: 0 0.1em; }
@keyframes bublrMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Reduced motion ---------- */
.bublr-reduce-motion .bublr-hero-glow,
.bublr-reduce-motion .bublr-chip-inner,
.bublr-reduce-motion .bublr-marquee-track,
.bublr-reduce-motion .bublr-hero-scrollcue span { animation: none; }

/* ---------- Waitlist capture (standby — shown when hero CTA mode = waitlist) ---------- */
.bublr-waitlist {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 460px;
	margin-inline: auto;
}
.bublr-waitlist__row {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 6px;
	padding: 5px 5px 5px 6px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(10, 10, 10, 0.1);
	border-radius: 999px;
	box-shadow: 0 12px 34px rgba(10, 10, 10, 0.08);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.bublr-waitlist__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0 8px 0 14px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--black, #0A0A0A);
	outline: none;
}
.bublr-waitlist__input::placeholder { color: rgba(10, 10, 10, 0.45); }
.bublr-waitlist__btn { flex: 0 0 auto; }
.bublr-waitlist__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px; height: 1px;
	opacity: 0;
	pointer-events: none;
}
.bublr-waitlist__note {
	margin: 0;
	font-family: var(--font-mono, monospace);
	font-size: 11.5px;
	letter-spacing: 0.01em;
	color: rgba(10, 10, 10, 0.5);
	text-align: center;
}
.bublr-waitlist__msg {
	margin: 0;
	min-height: 1.1em;
	font-size: 13.5px;
	text-align: center;
}
.bublr-waitlist__msg.is-error { color: #C2410C; }
.bublr-waitlist__msg.is-success { color: var(--mint-deep, #1B9E66); font-weight: 600; font-size: 15px; }
.bublr-waitlist.is-loading .bublr-waitlist__btn { opacity: 0.7; pointer-events: none; }

@media (max-width: 520px) {
	.bublr-waitlist__row { flex-direction: column; border-radius: 22px; padding: 10px; gap: 8px; }
	.bublr-waitlist__input { width: 100%; padding: 10px 12px; text-align: center; }
	.bublr-waitlist__btn { width: 100%; justify-content: center; }
}

/* Phones: shrink the floating cards and tuck them into the corners so they
   frame the wordmark and form rather than crowding the central column. */
@media (max-width: 640px) {
	.bublr-stage__layer--near .bublr-chip { width: 108px !important; max-width: 108px !important; }
	.bublr-stage__layer--near .bublr-chip:nth-child(1) { inset: 1.5% auto auto 2% !important; }   /* top-left */
	.bublr-stage__layer--near .bublr-chip:nth-child(2) { inset: 3% 2% auto auto !important; }      /* top-right */
	.bublr-stage__layer--near .bublr-chip:nth-child(3) { inset: auto auto 12% 2% !important; }     /* bottom-left */
	.bublr-stage__layer--near .bublr-chip:nth-child(4) { inset: auto 2% 14% auto !important; }      /* bottom-right */
	.bublr-chip-handle { font-size: 10.5px; }
	.bublr-chip-byline { padding: 6px 9px; gap: 6px; }
	.bublr-chip-ava { width: 17px; height: 17px; }
}
@media (max-width: 400px) {
	/* Narrowest screens: keep only two diagonal cards. */
	.bublr-stage__layer--near .bublr-chip:nth-child(2),
	.bublr-stage__layer--near .bublr-chip:nth-child(3) { display: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
	.bublr-hero--dark { height: 200vh; }
	.bublr-hero-viewport { padding: 120px 0 92px; }
	.bublr-hero-logo { height: clamp(46px, 15vw, 92px); }
	.bublr-stage__layer--far { display: none; }
	.bublr-chip { max-width: 188px; }
	.bublr-marquee { bottom: 3%; }
}

/* Hero tagline — sentence-case line under the wordmark (replaces the kicker). */
.bublr-hero-tagline {
	font-family: var(--font-head, "Poppins", sans-serif);
	font-size: clamp(17px, 1.8vw, 21px);
	font-weight: 400;
	line-height: 1.5;
	color: #3a4250;
	max-width: 28ch;
	margin: 0 auto clamp(30px, 4vw, 44px);
}

/* ===========================================================================
   Hero floating cards — photo cards + product peeks (web/mobile).
   The .bublr-chip / .bublr-chip-inner wrapper (position, depth, float) is shared;
   only the inner card markup changes per type.
   =========================================================================== */
.bublr-chip--photo, .bublr-chip--polaroid { max-width: 166px; }
.bublr-chip--web   { max-width: 230px; }
.bublr-chip--phone { max-width: 122px; }

/* ---- Photo card: a photo + a byline ---- */
.bublr-chip-card {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(10, 11, 14, 0.06);
	box-shadow: 0 24px 42px -22px rgba(10, 40, 28, 0.42), 0 2px 7px rgba(10, 40, 28, 0.08);
}
.bublr-chip-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.bublr-chip-byline { display: flex; align-items: center; gap: 7px; padding: 8px 11px; }
.bublr-chip-ava { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(10, 40, 28, 0.2); }
.bublr-chip-handle { font-family: var(--font-head, "Poppins", sans-serif); font-size: 12px; font-weight: 600; color: #0A0A0A; letter-spacing: -0.01em; }

/* ---- Polaroid: white frame, photo on top, handle beneath, centred ---- */
.bublr-chip--polaroid .bublr-chip-card { border-radius: 6px; padding: 8px 8px 0; }
.bublr-chip--polaroid .bublr-chip-photo { border-radius: 3px; }
.bublr-chip--polaroid .bublr-chip-byline { justify-content: center; padding: 9px 4px 11px; }

/* ---- Mini collection grid (inside phone + web peeks) ---- */
.bublr-chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bublr-chip--phone .bublr-chip-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
.bublr-chip-tile {
	aspect-ratio: 1;
	border-radius: 9px;
	display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 38% 30%, #fff, color-mix(in srgb, var(--tc, #7FE5A8) 24%, #fff) 62%, color-mix(in srgb, var(--tc, #7FE5A8) 42%, #fff));
	border: 1px solid color-mix(in srgb, var(--tc, #7FE5A8) 38%, transparent);
}
.bublr-chip-tile img { width: 66%; height: 66%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.2)); }

/* ---- Phone peek (mobile app) ---- */
.bublr-chip-phone {
	background: #0A0A0A;
	border-radius: 24px;
	padding: 6px;
	box-shadow: 0 26px 46px -22px rgba(10, 40, 28, 0.5), 0 2px 8px rgba(10, 40, 28, 0.12);
}
.bublr-chip-phone__screen { background: #F5F2EB; border-radius: 18px; padding: 10px 9px; }
.bublr-chip-phone__bar { display: flex; align-items: center; gap: 5px; margin-bottom: 9px; }
.bublr-chip-phone__bar span { height: 5px; border-radius: 3px; background: rgba(10, 11, 14, 0.16); }
.bublr-chip-phone__bar span:nth-child(1) { width: 22px; background: var(--mint, #2BC47E); }
.bublr-chip-phone__bar span:nth-child(2) { width: 12px; }

/* ---- Web peek (browser chrome) ---- */
.bublr-chip-web {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(10, 11, 14, 0.08);
	box-shadow: 0 28px 50px -24px rgba(10, 40, 28, 0.45), 0 2px 8px rgba(10, 40, 28, 0.1);
}
.bublr-chip-web__bar {
	display: flex; align-items: center; gap: 5px;
	padding: 8px 10px;
	background: #EFEAE0;
	border-bottom: 1px solid rgba(10, 11, 14, 0.06);
}
.bublr-chip-web__bar .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.bublr-chip-web__bar .dot:nth-child(1) { background: #FF5F57; }
.bublr-chip-web__bar .dot:nth-child(2) { background: #FEBC2E; }
.bublr-chip-web__bar .dot:nth-child(3) { background: #28C840; }
.bublr-chip-web__url {
	margin-left: 6px; flex: 1;
	font-family: var(--font-mono, monospace); font-size: 9px; color: #667085;
	background: #fff; padding: 3px 9px; border-radius: 6px;
	border: 1px solid rgba(10, 11, 14, 0.05);
}
.bublr-chip-web__body { padding: 11px; }

/* Explicit widths per card type (override the base max-width). */
.bublr-chip--photo, .bublr-chip--polaroid { width: 166px; max-width: 166px; }
.bublr-chip--web   { width: 230px; max-width: 230px; }
.bublr-chip--phone { width: 122px; max-width: 122px; }
.bublr-chip-card, .bublr-chip-web, .bublr-chip-phone { width: 100%; }
