/* ==========================================================================
   British Dragon Pro — experience layer
   Display type, motion, cursor, loader, page transitions, editorial details.
   Loads after every other stylesheet. All motion respects reduced-motion.
   ========================================================================== */

:root {
	--bd-display: "Space Grotesk", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
	--bd-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--bd-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--bd-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Page transitions (cross-document View Transitions) ---------- */

@view-transition { navigation: auto; }
.site-header { view-transition-name: bd-header; }
::view-transition-old(root) { animation: 0.32s var(--bd-ease-io) both bd-vt-out; }
::view-transition-new(root) { animation: 0.55s var(--bd-ease-out) both bd-vt-in; }
@keyframes bd-vt-out { to { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
@keyframes bd-vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }

/* ---------- Display typography ---------- */

h1, h2,
.bd-h2, .bd-title-xl, .bd-hero__title, .bd-section-head__title, .bd-collection-head__title,
.bd-page-head__title, .bd-shop-hero__title, .bd-shop-head__title, .bd-faq__title,
.single-product .product_title, .bd-statement, .site-footer__wordmark, .bd-ticker__item,
.bd-card__title, .bd-why-card__title, .bd-coa-card__title, .bd-stat__value {
	font-family: var(--bd-display);
}
h1, h2, .bd-h2, .bd-title-xl, .bd-section-head__title, .bd-collection-head__title, .bd-page-head__title {
	letter-spacing: -0.035em;
}
.bd-kicker, .bd-eyebrow, .bd-tag-pill, .bd-card__cat, .bd-why-card__tag, .bd-archive-head__badge,
.bd-lab-btn__micro, .bd-single-tier, .site-footer__title, .bd-shop-filters__label {
	font-family: var(--bd-mono);
	letter-spacing: 0.12em;
}

/* ---------- Film grain ---------- */

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9000;
	pointer-events: none;
	opacity: 0.04;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */

.bd-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1200;
	height: 2px;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--bd-cyan), var(--bd-violet), var(--bd-magenta), var(--bd-red));
	pointer-events: none;
}
body.admin-bar .bd-progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bd-progress { top: 46px; } }
@supports (animation-timeline: scroll()) {
	.bd-progress { animation: bd-progress linear both; animation-timeline: scroll(root block); }
	@keyframes bd-progress { to { transform: scaleX(1); } }
}

/* ---------- Header: glass capsule nav, hides on scroll down ---------- */

.site-header { transition: transform 0.55s var(--bd-ease-out), background-color 0.38s var(--bd-ease), border-color 0.38s var(--bd-ease), box-shadow 0.38s var(--bd-ease); }
.site-header.is-hidden { transform: translateY(-110%); box-shadow: none; }
.site-header.is-hidden::after { opacity: 0; }
body.bd-nav-open .site-header.is-hidden,
body.bd-lock .site-header.is-hidden { transform: none; }

@media (min-width: 1025px) {
	.site-nav__menu {
		gap: 2px;
		padding: 6px;
		background: rgba(10, 12, 20, 0.5);
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 999px;
		-webkit-backdrop-filter: blur(16px) saturate(160%);
		backdrop-filter: blur(16px) saturate(160%);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	}
	.site-nav__menu a { padding: 9px 18px; font-family: var(--bd-display); font-size: 14px; letter-spacing: 0; }
	.site-nav__menu a:hover,
	.site-nav__menu a:focus-visible { transform: none; box-shadow: none; }
	.bd-cart-toggle,
	.bd-icon-btn {
		background: rgba(10, 12, 20, 0.5);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
	}
}
.bd-cart-toggle { font-family: var(--bd-display); }

/* ---------- Custom cursor (fine pointers only, set up by JS) ---------- */

.bd-cursor { display: none; }
html.bd-cursor-on .bd-cursor {
	position: fixed;
	top: 0; left: 0;
	z-index: 9500;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	margin: -19px 0 0 -19px;
	pointer-events: none;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	mix-blend-mode: difference;
	transform: translate3d(-100px, -100px, 0);
	transition: width 0.35s var(--bd-ease-out), height 0.35s var(--bd-ease-out), margin 0.35s var(--bd-ease-out), background-color 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
	will-change: transform;
}
html.bd-cursor-on .bd-cursor.is-hidden { opacity: 0; }
html.bd-cursor-on .bd-cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
html.bd-cursor-on .bd-cursor.is-view {
	width: 92px; height: 92px;
	margin: -46px 0 0 -46px;
	background: var(--bd-ink);
	border-color: var(--bd-ink);
	mix-blend-mode: normal;
}
.bd-cursor__label { font: 600 11px/1 var(--bd-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.2s ease; }
.bd-cursor.is-view .bd-cursor__label { opacity: 1; }

/* ---------- Intro loader (home, first visit per session) ---------- */

.bd-loader {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #05060a;
	transition: clip-path 0.9s var(--bd-ease-io), visibility 0s linear 0.9s;
	clip-path: inset(0 0 0 0);
}
html:not(.bd-js) .bd-loader,
html.bd-seen .bd-loader { display: none; }
.bd-loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.bd-loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bd-loader__logo .bd-logo-img { width: auto; height: 72px; animation: bd-loader-logo 1.4s var(--bd-ease-out) both; }
@keyframes bd-loader-logo { from { opacity: 0; transform: scale(0.92); filter: blur(8px); } }
.bd-loader__count { font: 500 clamp(48px, 9vw, 120px)/1 var(--bd-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bd-loader__bar { position: relative; width: min(320px, 70vw); height: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.15); }
.bd-loader__bar span { position: absolute; inset: 0; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; background: linear-gradient(90deg, var(--bd-cyan), var(--bd-magenta)); }
.bd-loader__label { font: 500 11px/1 var(--bd-mono); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

/* ---------- Split-line headings + reveals ---------- */

.bd-split-ready .bd-w { display: inline-block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; vertical-align: top; }
.bd-split-ready .bd-wi { display: inline-block; transform: translate3d(0, 108%, 0) rotate(4deg); transform-origin: 0 100%; transition: transform 1.05s var(--bd-ease-out); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms)); will-change: transform; }
.bd-split-ready.is-in .bd-wi { transform: none; }

.bd-js [data-bd-reveal] { filter: blur(6px); transition: opacity 0.9s var(--bd-ease-out), transform 0.9s var(--bd-ease-out), filter 0.9s var(--bd-ease-out); }
.bd-js [data-bd-reveal].is-visible { filter: none; }

/* Image-style reveals: clip instead of slide */
.bd-js .bd-coa-card[data-bd-reveal],
.bd-js .bd-why__photo[data-bd-reveal] {
	opacity: 1;
	transform: none;
	filter: none;
	clip-path: inset(14% 10% 14% 10% round 28px);
	transition: clip-path 1.4s var(--bd-ease-out), box-shadow 0.45s var(--bd-ease), background-size 0.6s ease;
}
.bd-js .bd-coa-card[data-bd-reveal].is-visible,
.bd-js .bd-why__photo[data-bd-reveal].is-visible { clip-path: inset(0 0 0 0 round 24px); }

/* ---------- Magnetic targets ---------- */

[data-bd-magnetic] { transition: transform 0.45s var(--bd-ease-out); will-change: transform; }

/* ---------- Editorial index labels ---------- */

.bd-index {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
	font: 500 12px/1 var(--bd-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bd-slate);
}
.bd-index__num { color: var(--bd-red); }
.bd-index::after { content: ""; flex: 1 1 auto; max-width: 120px; height: 1px; background: currentColor; opacity: 0.35; }
.bd-index--center { justify-content: center; }
.bd-index--center::before { content: ""; flex: 1 1 auto; max-width: 120px; height: 1px; background: currentColor; opacity: 0.35; }
.bd-index--light { color: rgba(255, 255, 255, 0.6); }
.bd-index--light .bd-index__num { color: var(--bd-cyan); }

/* ==========================================================================
   Home
   ========================================================================== */

/* ---------- Hero v2 ---------- */

.bd-hero--v2 {
	min-height: max(760px, 100svh);
	padding: 150px 6vw 190px;
	background: #05060a;
	isolation: isolate;
}
@media (min-width: 1025px) { .bd-hero--v2 { background-attachment: scroll; } }
.bd-hero--v2::after { display: none; }
.bd-hero__media { position: absolute; inset: -40px; z-index: -3; will-change: transform; }
.bd-hero__img {
	position: absolute;
	inset: 0;
	background-image: var(--hero-bg, none);
	background-position: 72% center;
	background-size: cover;
	animation: bd-hero-zoom 22s ease-in-out infinite alternate;
}
@keyframes bd-hero-zoom { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.bd-hero--v2::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(90deg, rgba(5, 6, 10, 0.96) 0%, rgba(5, 6, 10, 0.82) 30%, rgba(5, 6, 10, 0.25) 62%, rgba(5, 6, 10, 0.1) 100%),
		linear-gradient(180deg, rgba(5, 6, 10, 0.55) 0%, transparent 22%, transparent 62%, #05060a 100%);
}
.bd-hero__glow {
	position: absolute;
	z-index: -1;
	right: 8%;
	top: 22%;
	width: 46vw;
	height: 46vw;
	max-width: 760px;
	max-height: 760px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, rgba(141, 35, 255, 0.1) 40%, transparent 70%);
	pointer-events: none;
}

.bd-hero--v2 .bd-hero__inner { max-width: 1440px; }
.bd-hero--v2 .bd-hero__content { width: min(760px, 62%); max-width: none; }
.bd-hero__meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 26px;
	padding: 8px 14px;
	font: 500 11px/1 var(--bd-mono);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.bd-hero__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--bd-cyan); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6); animation: bd-pulse-cyan 2s infinite; }
@keyframes bd-pulse-cyan { 70% { box-shadow: 0 0 0 9px rgba(0, 229, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); } }

.bd-hero--v2 .bd-hero__title {
	max-width: 12ch;
	margin: 0 0 30px;
	font-size: clamp(48px, 7.4vw, 132px);
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: -0.05em;
	text-shadow: none;
}
.bd-outline {
	font-style: normal;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
	background: linear-gradient(90deg, var(--bd-cyan), var(--bd-magenta)) 0 100% / 0% 100% no-repeat;
	-webkit-background-clip: text;
	background-clip: text;
	transition: background-size 1.1s var(--bd-ease-out);
}
.bd-outline .bd-wi { color: transparent; }
.bd-hero__title:hover .bd-outline { background-size: 100% 100%; }

.bd-hero--v2 .bd-hero__text { max-width: 440px; margin-bottom: 36px; font-size: 17px; line-height: 1.6; color: rgba(226, 232, 240, 0.85); text-shadow: none; }
.bd-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }
.bd-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font: 500 14px/1 var(--bd-display);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	transition: border-color 0.3s ease, color 0.3s ease;
}
.bd-hero__link .bd-icon { width: 16px; height: 16px; transition: transform 0.35s var(--bd-ease-out); }
.bd-hero__link:hover { color: var(--bd-cyan); border-color: var(--bd-cyan); }
.bd-hero__link:hover .bd-icon { transform: translateX(4px) rotate(-45deg); }

.bd-hero__scroll {
	position: absolute;
	right: 4vw;
	bottom: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	font: 500 10px/1 var(--bd-mono);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	writing-mode: vertical-rl;
}
.bd-hero__scroll:hover { color: #fff; }
.bd-hero__scroll-line { position: relative; width: 1px; height: 70px; overflow: hidden; background: rgba(255, 255, 255, 0.18); }
.bd-hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--bd-cyan); animation: bd-scroll-cue 2.2s var(--bd-ease-io) infinite; }
@keyframes bd-scroll-cue { to { top: 100%; } }

.bd-hero__stats {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0 6vw;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(180deg, rgba(5, 6, 10, 0.2), rgba(5, 6, 10, 0.7));
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.bd-hero__stat { padding: 26px 24px 28px 0; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.bd-hero__stat + .bd-hero__stat { padding-left: 24px; }
.bd-hero__stat:last-child { border-right: 0; }
.bd-hero__stat dt { margin-bottom: 8px; font: 500 11px/1 var(--bd-mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.bd-hero__stat dd { margin: 0; font: 500 clamp(18px, 1.8vw, 26px)/1.1 var(--bd-display); letter-spacing: -0.02em; color: #fff; }
.bd-js .bd-hero__stat { opacity: 0; transform: translateY(16px); animation: bd-stat-in 0.9s var(--bd-ease-out) forwards; animation-delay: calc(0.9s + var(--i) * 0.1s); }
.bd-js.bd-loading .bd-hero__stat { animation-play-state: paused; }
.bd-js .bd-hero-in { opacity: 0; transform: translateY(22px); animation: bd-stat-in 1s var(--bd-ease-out) forwards; animation-delay: var(--d, 0s); }
.bd-js.bd-loading .bd-hero-in { animation-play-state: paused; }
@keyframes bd-stat-in { to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
	.bd-hero--v2 { padding: 130px 32px 230px; }
	.bd-hero--v2 .bd-hero__content { width: min(620px, 80%); }
	.bd-hero__stats { grid-template-columns: repeat(2, 1fr); padding: 0 32px; }
	.bd-hero__stat:nth-child(2) { border-right: 0; }
	.bd-hero__stat:nth-child(3) { padding-left: 0; }
	.bd-hero__stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
	.bd-hero__stat { padding-top: 18px; padding-bottom: 20px; }
	.bd-hero__scroll { display: none; }
}
@media (max-width: 767px) {
	.bd-hero--v2 { min-height: max(700px, 100svh); padding: 120px 20px 220px; }
	.bd-hero--v2::before { background: linear-gradient(180deg, rgba(5, 6, 10, 0.7) 0%, rgba(5, 6, 10, 0.74) 45%, rgba(5, 6, 10, 0.94) 78%, #05060a 100%); }
	.bd-hero__img { background-position: 68% 30%; }
	.bd-hero--v2 .bd-hero__content { width: 100%; }
	.bd-hero--v2 .bd-hero__title { font-size: clamp(40px, 12.5vw, 60px); max-width: none; }
	.bd-hero--v2 .bd-hero__text { font-size: 15px; max-width: 340px; }
	.bd-hero__stats { padding: 0 20px; }
	.bd-hero__stat dd { font-size: 17px; }
	.bd-hero__stat dt { font-size: 10px; }
}

/* ---------- Ticker band ---------- */

.bd-ticker {
	position: relative;
	z-index: 3;
	overflow: hidden;
	padding: 26px 0 30px;
	background: #05060a;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bd-ticker__track { display: flex; width: max-content; animation: bd-ticker 38s linear infinite; }
.bd-ticker:hover .bd-ticker__track { animation-play-state: paused; }
.bd-ticker__group { display: flex; align-items: center; flex: 0 0 auto; }
.bd-ticker__item {
	padding: 0 34px;
	font-size: clamp(40px, 6.4vw, 104px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.045em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}
.bd-ticker__item.is-outline { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.55); }
.bd-ticker__star { font-size: clamp(22px, 2.6vw, 40px); color: var(--bd-red); text-shadow: 0 0 18px rgba(225, 29, 72, 0.7); }
@keyframes bd-ticker { to { transform: translateX(-50%); } }

/* Trust strip follows the dark ticker */
.bd-trust { margin-top: 0; }

/* ---------- About v2: statement ---------- */

.bd-about--v2 { padding-top: 120px; }
.bd-statement {
	max-width: 1180px;
	margin: 0 0 70px;
	font-size: clamp(28px, 3.6vw, 56px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.035em;
	color: var(--bd-ink-2);
}
.bd-hl-ready .bd-hl { color: rgba(15, 23, 42, 0.14); transition: color 0.35s ease; }
.bd-hl-ready .bd-hl.is-on { color: var(--bd-ink-2); }
.bd-about--v2 .bd-about__grid { grid-template-columns: 0.8fr 1.2fr; align-items: end; gap: 40px 80px; }
.bd-about--v2 .bd-about__text p { font-size: 18px; line-height: 1.65; color: var(--bd-slate); font-weight: 400; }
.bd-coa-card__tag { position: absolute; top: 24px; left: 28px; font: 500 11px/1 var(--bd-mono); letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.75); }
.bd-about--v2 .bd-coa-card { min-height: 420px; }
@media (max-width: 1024px) {
	.bd-about--v2 .bd-about__grid { grid-template-columns: 1fr; }
	.bd-statement { margin-bottom: 44px; }
}
@media (max-width: 767px) {
	.bd-about--v2 { padding-top: 80px; }
	.bd-about--v2 .bd-coa-card { min-height: 260px; }
}

/* ---------- Section heading refinements ---------- */

.bd-collection-head__title,
.bd-section-head__title,
.bd-title-xl { font-weight: 600; }
.bd-title-xl { font-size: clamp(36px, 5vw, 72px); padding: 0 0 34px; }
.bd-section-head__title { font-size: clamp(40px, 5.2vw, 76px); text-transform: none; }
.bd-collection-head__title { font-size: clamp(36px, 4.6vw, 68px); }
.bd-faq__title { font-size: clamp(42px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }

/* ---------- Cards: cursor spotlight + crisper hover ---------- */

.bd-card { --mx: 50%; --my: 30%; isolation: isolate; }
.bd-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--bd-accent-rgb), 0.16), transparent 45%);
	transition: opacity 0.4s ease;
}
.bd-card:hover::before { opacity: 1; }
.bd-card__media,
.bd-card__body { position: relative; z-index: 1; }
.bd-card__title { letter-spacing: -0.02em; font-weight: 600; }
.bd-card__price { font-family: var(--bd-display); letter-spacing: -0.02em; }

.bd-why-card { --mx: 50%; --my: 50%; }
.bd-why-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	background: radial-gradient(360px circle at var(--mx) var(--my), rgba(var(--bd-accent-rgb), 0.1), transparent 50%);
	transition: opacity 0.4s ease;
}
.bd-why-card:hover::before { opacity: 1; }

/* Buttons: fill sweep */
.bd-dark-btn,
.bd-pill-btn { position: relative; overflow: hidden; isolation: isolate; }
.bd-dark-btn::before,
.bd-pill-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--bd-accent, var(--bd-red));
	border-radius: inherit;
	transform: translateY(101%);
	transition: transform 0.55s var(--bd-ease-out);
}
.bd-dark-btn:hover::before,
.bd-pill-btn:hover::before { transform: none; }
.bd-pill-btn:hover { background: #292b2e; }
.bd-outline-btn { position: relative; overflow: hidden; isolation: isolate; border-radius: 999px; padding: 16px 44px; font-family: var(--bd-display); }
.bd-outline-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.5s var(--bd-ease-out); }
.bd-outline-btn:hover { background: transparent; }
.bd-outline-btn:hover::before { transform: scaleY(1); }

/* ---------- Trust strip: dark glass counter ---------- */

.bd-trust { background: #05060a; border-radius: 0 0 36px 36px; padding-top: 44px; padding-bottom: 56px; }
.bd-trust__badge { height: 132px; }
.bd-trust__counter {
	position: relative;
	min-height: 0;
	padding: 26px 34px;
	background: linear-gradient(#0b0e17, #0b0e17) padding-box, linear-gradient(120deg, rgba(0, 229, 255, 0.75), rgba(141, 35, 255, 0.4), rgba(255, 48, 242, 0.6)) border-box;
	border: 1px solid transparent;
	border-radius: 22px;
	box-shadow: 0 20px 60px -20px rgba(0, 229, 255, 0.35);
}
.bd-trust__avatars { margin-top: 0; }
.bd-trust__num { font: 600 44px/1 var(--bd-display); letter-spacing: -0.04em; }
.bd-trust__label { margin-top: 6px; font: 500 11px/1 var(--bd-mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

/* ---------- Disclaimer: slim notice bar ---------- */

.bd-disclaimer__box {
	gap: 16px;
	padding: 18px 24px;
	background: #0b1220;
	border: 1px solid rgba(0, 229, 255, 0.18);
	border-radius: 16px;
	box-shadow: none;
}
.bd-disclaimer__icon { width: 22px; height: 22px; padding: 7px; color: var(--bd-cyan); background: rgba(0, 229, 255, 0.1); }
.bd-disclaimer__box p { max-width: none; font: 500 13px/1.5 var(--bd-mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }

/* ---------- Testing results ---------- */

.bd-testing__title { font-family: var(--bd-mono); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 6px; }
.bd-stat { align-items: flex-start; text-align: left; padding: 26px 24px; gap: 8px; }
.bd-stat__icon { width: 40px; height: 40px; order: -1; margin-bottom: 8px; }
.bd-stat__title { font: 500 12px/1.2 var(--bd-mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.bd-stat__label { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.bd-stat__value { margin: 4px 0 0; font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -0.04em; }
.bd-stat__unit { font: 500 11px/1.3 var(--bd-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bd-cyan); opacity: 1; }

/* ---------- Consistent title case ---------- */

.bd-title-xl,
.bd-faq__title { text-transform: none; }

/* ---------- Footer column headings ---------- */

.site-footer__title { font: 500 11px/1 var(--bd-mono); letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.5); margin-bottom: 22px; }
.site-footer__links a,
.site-footer__links span { font-family: var(--bd-display); }
.site-footer__links a { position: relative; }
.site-footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.45s var(--bd-ease-out); }
.site-footer__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.bd-page-head { padding: 90px 0 80px; }
.bd-page-head::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 80px 80px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 70%);
}
.bd-page-head__title { font-size: clamp(40px, 6vw, 88px); font-weight: 600; line-height: 0.95; }
.bd-shop-hero__title { font-weight: 600; letter-spacing: -0.05em; }
.bd-shop-head__title { font-weight: 600; letter-spacing: -0.04em; }
.single-product .product_title { font-weight: 600; letter-spacing: -0.04em; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer__wordmark {
	margin: 10px 0 0;
	font-size: clamp(40px, 10.2vw, 188px);
	font-weight: 600;
	line-height: 0.82;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	text-align: center;
	color: transparent;
	/* Brand red: outlined letters, a red fill fading downwards and a slow light sheen. */
	-webkit-text-stroke: 1px rgba(225, 29, 72, 0.75);
	background:
		linear-gradient(100deg, transparent 42%, rgba(255, 140, 160, 0.55) 50%, transparent 58%) 0 0 / 250% 100% no-repeat,
		linear-gradient(180deg, rgba(225, 29, 72, 0.5) 0%, rgba(225, 29, 72, 0.12) 55%, rgba(225, 29, 72, 0) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	animation: bd-wordmark-sheen 7s var(--bd-ease-io) infinite;
	user-select: none;
	overflow: hidden;
}
@keyframes bd-wordmark-sheen {
	0%, 35% { background-position: 120% 0, 0 0; }
	100% { background-position: -20% 0, 0 0; }
}
.site-footer .site-footer__wordmark,
.site-footer .site-footer__wordmark.is-visible { filter: drop-shadow(0 0 30px rgba(225, 29, 72, 0.28)); }
@media (prefers-reduced-motion: reduce) {
	.site-footer__wordmark { animation: none; }
}
.site-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 34px;
	font: 500 12px/1 var(--bd-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bd-muted);
}
.site-footer__clock { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__clock time { color: #fff; font-variant-numeric: tabular-nums; }
.site-footer__dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px #10b981; }
.site-footer__top { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.site-footer__top .bd-icon { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform 0.35s var(--bd-ease-out); }
.site-footer__top:hover { color: var(--bd-cyan); }
.site-footer__top:hover .bd-icon { transform: rotate(-90deg) translateX(3px); }
.site-footer__meta + .site-footer__bottom { margin-top: 22px; }

/* ==========================================================================
   Reduced motion: switch every flourish off
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	.bd-loader { display: none !important; }
	.bd-split-ready .bd-wi { transform: none !important; }
	.bd-hl-ready .bd-hl { color: inherit !important; }
	.bd-js .bd-hero__stat,
	.bd-js .bd-hero-in { opacity: 1; transform: none; animation: none; }
	.bd-js .bd-coa-card[data-bd-reveal],
	.bd-js .bd-why__photo[data-bd-reveal] { clip-path: none; }
	.bd-ticker__track { animation: none; }
	.bd-hero__img { animation: none; }
	.bd-js [data-bd-reveal] { filter: none; }
}

/* ==========================================================================
   Unified button skin — the footer newsletter "shiny" CTA (.bd-shiny-btn),
   applied to every primary action button on the site.
   Secondary/ghost buttons, chips, steppers, pagination, icon buttons and the
   hero "lab" CTA keep their own styles.
   #review_form .submit in the list also lifts the whole group's specificity
   above the per-component rules, so this layer wins everywhere.
   ========================================================================== */

:is(
	.bd-btn:not(.bd-btn--ghost),
	.woocommerce a.button:not(.bd-btn--ghost),
	.woocommerce button.button:not(.bd-btn--ghost),
	.woocommerce input.button,
	.bd-outline-btn,
	.bd-dark-btn,
	.bd-pill-btn,
	.bd-shop-search__btn,
	.bd-buybar__btn,
	.bd-report__btn,
	.bd-contact-submit,
	#review_form .submit
) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 26px;
	font-family: "Inter", var(--bd-font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	border: 1px solid transparent;
	border-radius: 0.5rem;
	background:
		linear-gradient(#000, #000) padding-box,
		conic-gradient(from var(--bd-angle), transparent, var(--bd-cyan-soft) 5%, #fff 10%, var(--bd-cyan-soft) 15%, transparent 20%) border-box;
	box-shadow: inset 0 0 0 1px #1a1818, 0 4px 14px rgba(0, 0, 0, 0.35);
	animation: bd-spin-angle 3s linear infinite;
	transition: box-shadow 0.6s var(--bd-ease-out), transform 0.3s ease, opacity 0.2s ease;
}
:is(
	.bd-btn:not(.bd-btn--ghost),
	.woocommerce a.button:not(.bd-btn--ghost),
	.woocommerce button.button:not(.bd-btn--ghost),
	.woocommerce input.button,
	.bd-outline-btn,
	.bd-dark-btn,
	.bd-pill-btn,
	.bd-shop-search__btn,
	.bd-buybar__btn,
	.bd-report__btn,
	.bd-contact-submit,
	#review_form .submit
):is(:hover, :focus-visible) {
	color: #fff;
	background:
		linear-gradient(#000, #000) padding-box,
		conic-gradient(from var(--bd-angle), transparent, var(--bd-cyan-soft) 5%, #fff 10%, var(--bd-cyan-soft) 15%, transparent 20%) border-box;
	border-color: transparent;
	box-shadow: inset 0 -1ex 2rem 4px var(--bd-cyan-soft), 0 0 24px rgba(103, 232, 249, 0.45);
	transform: translateY(-1px);
}
:is(
	.bd-btn:not(.bd-btn--ghost),
	.woocommerce a.button:not(.bd-btn--ghost),
	.woocommerce button.button:not(.bd-btn--ghost),
	.bd-outline-btn,
	.bd-dark-btn,
	.bd-pill-btn,
	.bd-shop-search__btn,
	.bd-buybar__btn,
	.bd-report__btn,
	.bd-contact-submit,
	#review_form .submit
) .bd-icon {
	width: 15px;
	height: 15px;
	padding: 0;
	color: var(--bd-cyan-soft);
	background: none;
	border-radius: 0;
	transform: none;
	transition: transform 0.3s var(--bd-ease-out);
}
:is(
	.bd-btn:not(.bd-btn--ghost),
	.woocommerce a.button:not(.bd-btn--ghost),
	.woocommerce button.button:not(.bd-btn--ghost),
	.bd-outline-btn,
	.bd-dark-btn,
	.bd-pill-btn,
	.bd-shop-search__btn,
	.bd-buybar__btn,
	.bd-report__btn,
	.bd-contact-submit,
	#review_form .submit
):hover .bd-icon { transform: translateX(4px); }

/* Fill-sweep pseudo elements from older button styles are not part of this skin */
.bd-outline-btn::before,
.bd-dark-btn::before,
.bd-pill-btn::before { content: none; }

/* Disabled / busy states keep the skin, just quieter */
:is(#review_form .submit, .bd-btn, .woocommerce button.button, .bd-contact-submit):is(.disabled, :disabled, [disabled]),
:is(#review_form .submit, .bd-btn, .woocommerce button.button, .bd-contact-submit):is(.disabled, :disabled, [disabled]):hover { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1px #1a1818; }

/* Product cards: full-width, cyan arrow / plus instead of the round chip */
.bd-card.bd-card.bd-card .bd-card__action .button.bd-btn { width: 100%; justify-content: center; }
.bd-card.bd-card.bd-card .bd-card__action .button.bd-btn::after {
	width: 15px;
	height: 15px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 15px;
	border: 0;
	border-radius: 0;
	transform: none;
}
.bd-card.bd-card.bd-card .bd-card__action .button.bd-btn.ajax_add_to_cart::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.bd-card.bd-card.bd-card .bd-card__action .button.bd-btn:hover::after { background-color: transparent; transform: translateX(4px); }
.bd-card.bd-card.bd-card .bd-card__action .button.bd-btn.ajax_add_to_cart:hover::after { transform: rotate(90deg); }
.bd-card.bd-card.bd-card .bd-card__action .button.bd-btn.loading::after { background: none; border: 2px solid rgba(103, 232, 249, 0.35); border-top-color: var(--bd-cyan-soft); border-radius: 50%; animation: bd-spin 0.8s linear infinite; }

/* Containers around the buttons follow the squarer shape */
.bd-shop-search { border-radius: 14px; }
.bd-shop-search__btn { min-height: 46px; height: 46px; }
.bd-buybar { border-radius: 16px; }
.bd-buybar__btn { min-height: 48px; }
.woocommerce.bd-single-product div.product form.cart div.quantity { border-radius: 0.6rem; }
.bd-qty-step { border-radius: 0.4rem; }
.single-product div.product form.cart .button.single_add_to_cart_button { min-height: 58px; font-size: 14px; }

/* WooCommerce block cart & checkout buttons (their own rules use !important) */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-totals-coupon__button {
	font-family: "Inter", var(--bd-font) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	color: #fff !important;
	border: 1px solid transparent !important;
	border-radius: 0.5rem !important;
	background:
		linear-gradient(#000, #000) padding-box,
		conic-gradient(from var(--bd-angle), transparent, var(--bd-cyan-soft) 5%, #fff 10%, var(--bd-cyan-soft) 15%, transparent 20%) border-box !important;
	box-shadow: inset 0 0 0 1px #1a1818, 0 4px 14px rgba(0, 0, 0, 0.35) !important;
	animation: bd-spin-angle 3s linear infinite;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-totals-coupon__button:hover {
	box-shadow: inset 0 -1ex 2rem 4px var(--bd-cyan-soft), 0 0 24px rgba(103, 232, 249, 0.45) !important;
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	:is(.bd-btn, .woocommerce a.button, .woocommerce button.button, .bd-outline-btn, .bd-dark-btn, .bd-pill-btn, .bd-shop-search__btn, .bd-buybar__btn, .bd-report__btn, .bd-contact-submit, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) { animation: none; }
}

/* Secondary (outline) buttons keep their outline look but share the squarer shape */
.bd-btn.bd-btn--ghost,
.bd-report__dl,
.bd-coa-search__clear { border-radius: 0.5rem; }

/* ==========================================================================
   Mobile & touch polish (site-wide)
   ========================================================================== */

/* Off-canvas panels waiting off-screen must never widen the page (clip them at their fixed container — never on html, which would break position: sticky) */
.bd-mobile-nav, .bd-drawer { overflow: hidden; }

/* Logged-in admins: keep the WP admin bar from covering the header and overlays */
@media (max-width: 600px) {
	body.admin-bar #wpadminbar { position: fixed; }
	body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 782px) {
	body.admin-bar .bd-mobile-nav,
	body.admin-bar .bd-drawer { top: 46px; }
}
@media (min-width: 783px) {
	body.admin-bar .bd-mobile-nav,
	body.admin-bar .bd-drawer { top: 32px; }
}
@media (max-width: 900px) {
	body.admin-bar .bd-shop-filters { top: 46px; }
}
@media (min-width: 783px) and (max-width: 900px) {
	body.admin-bar .bd-shop-filters { top: 32px; }
}

/* Comfortable touch targets (≥ 40px) on small, frequently tapped links */
@media (max-width: 900px) {
	.site-footer__links li { margin-bottom: 4px; }
	.site-footer__links a { display: inline-block; padding: 8px 0; }
	.site-footer__legal a { display: inline-block; padding: 10px 0; }
	.site-footer__top { padding: 12px 0; }
	.single-product .reset_variations,
	.woocommerce.bd-single-product div.product form.cart .reset_variations { padding: 12px 0; }
	.woocommerce.bd-single-product div.product .product_meta a { display: inline-block; padding: 6px 0; }
	.bd-ct-direct__jump,
	.bd-ct-channel__action,
	.bd-ct-faq__more { padding: 12px 0; }
	.woocommerce-breadcrumb a { display: inline-block; padding: 8px 0; }
}
/* Carousel dots keep their look but get a 26px hit area */
.bd-carousel__dot { position: relative; }
.bd-carousel__dot::after { content: ""; position: absolute; inset: -9px -6px; }
/* Cart: remove button big enough to tap */
.wc-block-cart .wc-block-cart-items .wc-block-cart-item__remove-link { width: 40px; height: 40px; min-width: 40px; }

/* Home "Our products": swipeable row on phones instead of one tall card per screen */
@media (max-width: 640px) {
	.bd-products .bd-tabs__panel .bd-grid--4 {
		display: flex;
		gap: 14px;
		margin: 0 calc(var(--bd-gutter, 20px) * -1);
		padding: 6px var(--bd-gutter, 20px) 22px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--bd-gutter, 20px);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.bd-products .bd-tabs__panel .bd-grid--4::-webkit-scrollbar { display: none; }
	.bd-products .bd-tabs__panel .bd-grid--4 > .bd-card { flex: 0 0 80%; scroll-snap-align: start; }
}

/* Product cards on phones: a squarer image stage keeps cards shorter */
@media (max-width: 540px) {
	.bd-card__media { aspect-ratio: 1 / 1; padding: 46px 22px 20px; }
}

/* Off-canvas panels: size to the visible viewport (100vw includes the scrollbar) */
.bd-drawer__panel { width: min(var(--bd-drawer-w), 100%); }
@media (max-width: 600px) { .bd-drawer { --bd-drawer-w: 100%; } }

/* Home testing stats: let the 2-up grid shrink on very small phones (1fr won't go below content width) */
.bd-testing__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .bd-testing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bd-stat { min-width: 0; overflow-wrap: anywhere; }

/* ==========================================================================
   Hero overlays — lighter, so the photography reads. The side behind the
   copy stays dark enough for contrast; the image side is nearly clear.
   ========================================================================== */

/* Home */
.bd-hero--v2::before {
	background:
		linear-gradient(90deg, rgba(5, 6, 10, 0.86) 0%, rgba(5, 6, 10, 0.55) 30%, rgba(5, 6, 10, 0.12) 58%, transparent 100%),
		linear-gradient(180deg, rgba(5, 6, 10, 0.4) 0%, transparent 18%, transparent 70%, #05060a 100%);
}
@media (max-width: 767px) {
	.bd-hero--v2::before { background: linear-gradient(180deg, rgba(5, 6, 10, 0.45) 0%, rgba(5, 6, 10, 0.55) 45%, rgba(5, 6, 10, 0.8) 75%, #05060a 100%); }
}

/* Shop */
.bd-shop-hero {
	background-image:
		linear-gradient(180deg, rgba(5, 6, 10, 0.4) 0%, transparent 25%, transparent 62%, rgba(5, 6, 10, 0.75) 92%, #05060a 100%),
		linear-gradient(90deg, rgba(5, 6, 10, 0.78) 0%, rgba(5, 6, 10, 0.35) 45%, transparent 75%),
		var(--shop-hero, none);
}
@media (max-width: 767px) {
	.bd-shop-hero {
		background-image:
			linear-gradient(180deg, rgba(5, 6, 10, 0.45) 0%, rgba(5, 6, 10, 0.3) 35%, rgba(5, 6, 10, 0.7) 75%, #05060a 100%),
			var(--shop-hero, none);
	}
}

/* Contact */
.bd-ct-hero__veil {
	background:
		linear-gradient(90deg, rgba(5, 6, 10, 0.85) 0%, rgba(5, 6, 10, 0.5) 40%, rgba(5, 6, 10, 0.1) 100%),
		linear-gradient(180deg, rgba(5, 6, 10, 0.4) 0%, transparent 25%, transparent 65%, #05060a 100%),
		radial-gradient(45% 60% at 85% 20%, rgba(225, 29, 72, 0.2) 0%, transparent 70%);
}
@media (max-width: 1024px) {
	.bd-ct-hero__veil {
		background:
			linear-gradient(180deg, rgba(5, 6, 10, 0.5) 0%, rgba(5, 6, 10, 0.4) 40%, rgba(5, 6, 10, 0.75) 75%, #05060a 100%),
			radial-gradient(60% 50% at 80% 10%, rgba(225, 29, 72, 0.2) 0%, transparent 70%);
	}
}

/* Research supplies */
.bd-rs-hero__overlay {
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 70%),
		linear-gradient(180deg, transparent 70%, #000 100%);
}

/* Lead copy keeps its contrast on the brighter photos */
.bd-hero--v2 .bd-hero__text,
.bd-shop-hero__lead,
.bd-ct-hero__lead,
.bd-rs-hero p,
.bd-faqp-hero p { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55); }

/* Performance: a fixed-attachment background repaints the whole hero on every scroll frame */
.bd-shop-hero { background-attachment: scroll; }

/* ==========================================================================
   Product imagery motion
   Every product image floats slowly on its own (each card offset so they never
   move in sync); hovering a card freezes it exactly where it is.
   Cards also rise into view once as they scroll in (initProductMotion in experience.js).
   ========================================================================== */

/* --- Idle float: card images --- */
@keyframes bd-idle-float {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
	25% { transform: translate3d(0, -9px, 0) rotate(-1.2deg); }
	50% { transform: translate3d(0, -16px, 0) rotate(0deg); }
	75% { transform: translate3d(0, -8px, 0) rotate(1.2deg); }
}
/* the contact shadow tightens as the product rises */
@keyframes bd-idle-shadow {
	0%, 100% { width: 58%; opacity: 1; }
	50% { width: 44%; opacity: 0.55; }
}
.bd-card.bd-card .bd-card__float {
	animation: bd-idle-float 7s ease-in-out infinite;
	animation-delay: var(--bd-float-delay, 0s);
	will-change: transform;
}
.bd-card .bd-card__media::after {
	animation: bd-idle-shadow 7s ease-in-out infinite;
	animation-delay: var(--bd-float-delay, 0s);
}
/* desynchronise neighbouring cards */
:nth-child(4n + 1) > .bd-card,
.bd-card:nth-child(4n + 1) { --bd-float-delay: 0s; }
:nth-child(4n + 2) > .bd-card,
.bd-card:nth-child(4n + 2) { --bd-float-delay: -1.8s; }
:nth-child(4n + 3) > .bd-card,
.bd-card:nth-child(4n + 3) { --bd-float-delay: -3.5s; }
:nth-child(4n + 4) > .bd-card,
.bd-card:nth-child(4n + 4) { --bd-float-delay: -5.2s; }

/* hover: freeze in place (no extra lift or zoom) */
.bd-card.bd-card:hover .bd-card__float,
.bd-card:hover .bd-card__media::after { animation-play-state: paused; }
.bd-card.bd-card:hover .bd-card__img { transform: none; }

/* --- Reveal: images rise out of a blur as they enter (only once JS is running) --- */
.bd-pm .bd-card__image {
	opacity: 0;
	transform: translate3d(0, 6%, 0) scale(0.98);
	transition: opacity 0.45s var(--bd-ease-out), transform 0.6s var(--bd-ease-out);
	transition-delay: var(--rd, 0ms);
}
.bd-pm .bd-card__image.is-revealed { opacity: 1; transform: none; }

/* --- Product page: the main image floats the same way and freezes on hover --- */
.woocommerce.bd-single-product div.product div.images .woocommerce-product-gallery__image img.wp-post-image {
	animation: bd-idle-float 8s ease-in-out infinite;
	will-change: transform;
}
.woocommerce.bd-single-product div.product div.images:hover .woocommerce-product-gallery__image img.wp-post-image { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	.bd-card.bd-card .bd-card__float,
	.bd-card .bd-card__media::after,
	.woocommerce.bd-single-product div.product div.images .woocommerce-product-gallery__image img.wp-post-image { animation: none; }
}
.bd-card.bd-card:hover { transform: none; }


/* ==========================================================================
   Studio
   Every product photo stands on a glossy floor with a true reflection that
   moves opposite to the float (experience.js → initStudio). On hover a card
   turns into a dark studio lit by a beam in its tier colour; the product
   page gallery is that studio permanently.
   ========================================================================== */
@keyframes bd-idle-float-mirror {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
	25% { transform: translate3d(0, 9px, 0) rotate(1.2deg); }
	50% { transform: translate3d(0, 16px, 0) rotate(0deg); }
	75% { transform: translate3d(0, 8px, 0) rotate(-1.2deg); }
}
@keyframes bd-floor-shadow {
	0%, 100% { transform: translate(-50%, -50%) scaleX(1); opacity: 1; }
	50% { transform: translate(-50%, -50%) scaleX(0.74); opacity: 0.45; }
}

.bd-studio-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* Reflection: the photo mirrored about its own base, fading into the floor */
.bd-reflect {
	position: absolute;
	inset: 0;
	opacity: 0.17;
	transform-origin: 50% calc((var(--bd-floor, 0.9) * 2 - 0.5) * 100%);
	animation: bd-idle-float-mirror 7s ease-in-out infinite;
	animation-delay: var(--bd-float-delay, 0s);
	transition: opacity 0.7s var(--bd-ease);
}
.bd-reflect__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
	border-radius: 0;
	transform: scaleY(-1);
	transform-origin: 50% calc(var(--bd-floor, 0.9) * 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent calc((var(--bd-floor, 0.9) - 0.17) * 100%), #000 calc(var(--bd-floor, 0.9) * 100%));
	mask-image: linear-gradient(to bottom, transparent calc((var(--bd-floor, 0.9) - 0.17) * 100%), #000 calc(var(--bd-floor, 0.9) * 100%));
	filter: blur(0.5px);
	transition: opacity 0.5s ease;
}
/* beat WooCommerce's `li.product a img` / gallery img sizing (0,5,3) */
.bd-studio-layer .bd-reflect .bd-reflect__img.bd-reflect__img.bd-reflect__img.bd-reflect__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	box-shadow: none;
	border-radius: 0;
	filter: blur(0.5px);
	animation: none;
}
.bd-reflect__img.is-secondary { opacity: 0; }
.bd-card.has-secondary.bd-alt-ready:hover .bd-reflect__img:not(.is-secondary) { opacity: 0; }
.bd-card.has-secondary.bd-alt-ready:hover .bd-reflect__img.is-secondary { opacity: 1; }

/* Floor: contact shadow at the base, a light pool and a glossy plane (lit states) */
.bd-floor { position: absolute; left: 0; right: 0; top: calc(var(--bd-floor, 0.9) * 100%); height: 0; }
.bd-floor::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 44%;
	height: 16px;
	background: radial-gradient(closest-side, rgba(11, 13, 18, 0.32), transparent);
	transform: translate(-50%, -50%);
	animation: bd-floor-shadow 7s ease-in-out infinite;
	animation-delay: var(--bd-float-delay, 0s);
}
.bd-floor::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 92%;
	height: 70px;
	background: radial-gradient(closest-side, rgba(var(--bd-accent-rgb), 0.55), rgba(var(--bd-accent-rgb), 0.12) 55%, transparent);
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 0.7s var(--bd-ease);
}
.bd-floor__plane {
	position: absolute;
	left: -10%;
	right: -10%;
	top: 0;
	height: 90px;
	background: radial-gradient(50% 100% at 50% 0%, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0) 100%);
	opacity: 0;
	transition: opacity 0.7s var(--bd-ease);
}
.bd-floor__plane::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.16) 50%, transparent 88%);
}
.bd-card__media.has-studio::after { display: none; } /* replaced by the floor's contact shadow */

/* Card hover: the dark studio and its beam */
.bd-card__studio {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: inherit;
	background:
		radial-gradient(70% 55% at 50% 34%, rgba(var(--bd-accent-rgb), 0.24) 0%, transparent 72%),
		linear-gradient(180deg, #1a1d26 0%, #0b0d12 78%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.7s var(--bd-ease);
}
.bd-card__studio::before,
.bd-pdp-beam::before {
	content: "";
	position: absolute;
	inset: 0;
	background: conic-gradient(from 166deg at 50% 0%, transparent 0deg, rgba(var(--bd-accent-rgb), 0.42) 9deg, rgba(255, 255, 255, 0.5) 14deg, rgba(var(--bd-accent-rgb), 0.42) 19deg, transparent 28deg, transparent 360deg);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 60%, transparent 95%);
	mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 60%, transparent 95%);
	filter: blur(7px);
}
.bd-card__studio::before { left: -25%; right: -25%; top: -4%; }
/* the lamp */
.bd-card__studio::after,
.bd-pdp-beam::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -34px;
	width: 150px;
	height: 68px;
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(var(--bd-accent-rgb), 0.25) 55%, transparent);
	transform: translateX(-50%);
}
.bd-card:hover .bd-card__studio { opacity: 1; }
.bd-card:hover .bd-reflect { opacity: 0.36; }
.bd-card:hover .bd-floor::after,
.bd-card:hover .bd-floor__plane { opacity: 1; }
.bd-card:hover .bd-card__img { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.55)); }

/* hover: the reflection freezes with the product */
.bd-card.bd-card:hover .bd-reflect,
.bd-card:hover .bd-floor::before { animation-play-state: paused; }

/* --- Product page: the gallery is the studio --- */
.woocommerce.bd-single-product div.product div.images.woocommerce-product-gallery {
	background:
		radial-gradient(62% 48% at 50% 40%, rgba(var(--bd-accent-rgb), 0.24) 0%, rgba(var(--bd-accent-rgb), 0.05) 55%, transparent 76%),
		linear-gradient(180deg, #1a1d26 0%, #0b0d12 72%);
	border-color: rgba(255, 255, 255, 0.06);
}
.woocommerce.bd-single-product div.product div.images.woocommerce-product-gallery::before {
	background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}
.bd-pdp-beam { position: absolute; left: -10%; right: -10%; top: 0; height: 88%; z-index: -1; pointer-events: none; }
.bd-pdp-beam::before { filter: blur(14px); }
.bd-pdp-beam::after { width: 260px; height: 110px; top: -55px; }
.woocommerce.bd-single-product div.product div.images .bd-studio-layer { z-index: -1; }
.woocommerce.bd-single-product div.product div.images .bd-reflect { opacity: 0.34; animation-duration: 8s; animation-delay: 0s; }
.woocommerce.bd-single-product div.product div.images .bd-floor::before { width: 40%; height: 22px; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); animation-duration: 8s; animation-delay: 0s; }
.woocommerce.bd-single-product div.product div.images .bd-floor::after { width: 80%; height: 120px; opacity: 1; }
.woocommerce.bd-single-product div.product div.images .bd-floor__plane { display: none; } /* the slide would clip it into a visible box */
.woocommerce.bd-single-product div.product div.images:hover .bd-reflect,
.woocommerce.bd-single-product div.product div.images:hover .bd-floor::before { animation-play-state: paused; }
.woocommerce.bd-single-product div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg):not(.bd-reflect__img) { filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.55)); }
/* Zoom lens: WooCommerce paints it on white — keep it in the studio's dark. */
.woocommerce.bd-single-product div.product div.images .woocommerce-product-gallery__wrapper .zoomImg { background-color: #11131a; }
.bd-stage-label { color: rgba(255, 255, 255, 0.5); }
.bd-stage-mark { -webkit-text-stroke-color: rgba(var(--bd-accent-rgb), 0.5); }
.woocommerce.bd-single-product div.product div.images .flex-control-thumbs li img { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.woocommerce.bd-single-product div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce.bd-single-product div.product div.images .flex-control-thumbs li img:hover { border-color: rgba(255, 255, 255, 0.85); }

@media (prefers-reduced-motion: reduce) {
	.bd-reflect,
	.bd-floor::before { animation: none; }
}
