/* ============================================================
   Chelsea Wolfe - The Dark
   This file only covers what blocks can't express:
   film grain, the cinematic hero grade, eyebrows, and the
   scroll-snap video carousel + lazy YouTube facade.
   ============================================================ */

   :root {
	--color-accent: oklch(0.74 0.07 86);
}

/* ---- Visually Hidden (Screen Reader Only) --------------- */
.visuallyhidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Prevent horizontal overflow ----------------------- */
html,
body {
	overflow-x: hidden;
	max-width: 100vw;
}

/* ---- Global Form Elements (IBM Plex Mono) --------------- */
input,
textarea,
select,
label,
button[type="submit"] {
	font-family: var(--wp--preset--font-family--mono) !important;
}

/* ============================================================
   HEADER - Fixed navigation with scroll effects
   ============================================================ */

#cw-header,
.cw-header {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	transition: background 0.45s ease, border-color 0.45s ease, padding 0.45s ease;
	border-bottom: 1px solid transparent !important;
	background: transparent;
}

#cw-header.scrolled,
.cw-header.scrolled {
	background: rgba(10, 9, 8, 0.78) !important;
	backdrop-filter: blur(14px) saturate(1.1);
	-webkit-backdrop-filter: blur(14px) saturate(1.1);
	border-bottom-color: var(--wp--preset--color--smoke) !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

/* Logo transitions */
.cw-brand,
.cw-header .wp-block-site-logo {
	display: block;
	transition: opacity 0.45s ease, width 0.45s ease;
}

/* Logo filter - turns dark logo to warm bone/white tone */
.cw-brand img,
.cw-header .wp-block-site-logo img,
.wp-block-site-logo img,
.cw-footer .wp-block-site-logo img {
	height: auto;
	filter: invert(1) sepia(0.16) brightness(0.98) saturate(0.7);
	transition: height 0.45s ease;
}

.cw-header .wp-block-site-logo a {
	display: block;
	transition: width 0.45s ease;
}

/* Logo size reduction on scroll */
.cw-header.scrolled .cw-brand,
.cw-header.scrolled .wp-block-site-logo {
	width: clamp(108px, 14vw, 144px) !important;
}

.cw-header.scrolled .wp-block-site-logo a {
	width: 100%;
}

.cw-brand:hover,
.cw-header .wp-block-site-logo:hover {
	opacity: 0.75;
}

/* Footer logo slight opacity */
.cw-footer .wp-block-site-logo img {
	opacity: 0.6;
}

/* Mobile: reduce footer logo size */
@media (max-width: 640px) {
	.cw-footer .wp-block-site-logo {
		width: 120px !important;
	}
}

/* Header social links spacing */
.cw-site-header .wp-block-social-links {
	gap: 1.25em;
}

.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor {
	transition: color 0.3s ease;
}

.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover {
	color: #fff;
}

/* Mobile: reduce social icon size to fit on one line */
@media (max-width: 640px) {
	.cw-site-header .wp-block-social-links,
	.cw-footer .wp-block-social-links {
		gap: 0.75em;
		font-size: 0.85em;
	}
}

/* Footer social links spacing and color */
.cw-footer .wp-block-social-links {
	gap: 1.25em;
}

.cw-footer .wp-block-social-links a,
.cw-footer .wp-block-social-link a {
	color: #9c958a;
	transition: color 0.3s ease;
}

.cw-footer .wp-block-social-links a:hover,
.cw-footer .wp-block-social-link a:hover {
	color: var(--wp--preset--color--contrast);
}

/* Navigation links - text based */
.cw-nav .wp-block-navigation__container {
	gap: clamp(10px, 1.4vw, 20px);
}

.cw-nav .wp-block-navigation-item a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #cbc5ba;
	text-decoration: none;
	transition: color 0.3s ease, font-size 0.45s ease;
	position: relative;
}

.cw-header.scrolled .cw-nav .wp-block-navigation-item a {
	font-size: 0.52rem;
}

.cw-nav .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--contrast);
}

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	text-decoration: none;
	transition: color 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:hover {
	color: #fff;
}

/* Responsive text: show abbreviations on mobile, full names on desktop */
.cw-nav-full {
	display: none;
}

@media (min-width: 600px) {
	.cw-nav-abbr {
		display: none;
	}
	.cw-nav-full {
		display: inline;
	}
}

@media (max-width: 640px) {
	.cw-header {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}
}

/* ---- Film grain over the whole site --------------------- */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9000;
	pointer-events: none;
	opacity: 0.05;
	mix-blend-mode: soft-light;
	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='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Eyebrow (mono label with a short accent rule) ------ */
.cw-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ash);
	display: inline-flex;
	align-items: center;
	gap: 0.85em;
	margin: 0;
}
.cw-eyebrow::before {
	content: "";
	width: clamp(20px, 4vw, 46px);
	height: 1px;
	background: var(--color-accent);
	display: inline-block;
}
.cw-eyebrow--center { justify-content: center; }

::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); }

/* ---- Hero : cinematic grade so bone type reads ---------- */
.cw-hero {
	isolation: isolate;
	position: relative;
}

/* Inner container must be above fog (z-index 4) */
.cw-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 4 !important;
	width: 100%;
}

/* Cinematic grade - below fog (z-index 2) */
.cw-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(to right, rgba(10,9,8,0.74) 0%, rgba(10,9,8,0.34) 40%, rgba(10,9,8,0) 70%),
		linear-gradient(to bottom, rgba(10,9,8,0.5) 0%, rgba(10,9,8,0) 24%, rgba(10,9,8,0) 46%, rgba(10,9,8,0.74) 84%, var(--wp--preset--color--base) 100%);
}

/* Fog canvas - between grade and content (z-index 3) */
.cw-hero__fog {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	mix-blend-mode: screen;
}
.cw-display {
	text-transform: lowercase;
	line-height: 0.92;
}

/* Hero text elements - ensure full opacity in foreground */
.cw-hero-eyebrow,
.cw-hero-title,
.cw-hero__tagline {
	position: relative;
	z-index: inherit;
	color: var(--wp--preset--color--contrast);
}

.cw-hero__tagline {
	max-width: 46ch;
}

/* Mobile hero image - swap to mobile version and center the artist */
@media (max-width: 768px) {
	.cw-hero .wp-block-cover__image-background {
		content: url('../images/hero-mobile.jpg');
		object-position: 50% 50% !important;
	}
}

/* Scroll indicator - bottom right corner of hero */
.cw-scrollcue {
	position: absolute;
	z-index: 5;
	bottom: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.62rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ash);
}

.cw-scrollcue > span:first-child {
	writing-mode: vertical-rl;
	text-orientation: mixed;
}

.cw-scrollcue__bar {
	position: relative;
	height: 54px;
	width: 1px;
	background: var(--wp--preset--color--ash);
	overflow: hidden;
	writing-mode: horizontal-tb;
}

.cw-scrollcue__bar::after {
	content: "";
	position: absolute;
	top: -40%;
	left: 0;
	width: 100%;
	height: 40%;
	background: var(--color-accent);
	animation: cw-drop 2.4s ease-in-out infinite;
}

@keyframes cw-drop {
	0% {
		transform: translateY(-100%);
	}
	60%, 100% {
		transform: translateY(360%);
	}
}

@media (max-width: 640px) {
	.cw-scrollcue {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cw-scrollcue__bar::after {
		animation: none;
	}
}

/* ---- Statement ------------------------------------------ */
.cw-statement__line { line-height: 1.28; max-width: 22ch; text-wrap: balance; }
.cw-em { color: var(--wp--preset--color--accent); font-style: italic; }

/* ---- Newsletter ----------------------------------------- */
.cw-news__title em,
.cw-news__title { line-height: 1.1; }
.cw-news__sub { max-width: 40ch; margin-inline: auto; }
.cw-klaviyo {
	width: min(520px, 100%);
	margin-inline: auto;
}

/* Klaviyo form styling - using correct selectors */
#newsletter .klaviyo-form {
	background: none!important;
	width: 600px!important; max-width: 100%!important;
}

/* Remove background from all Klaviyo form variations */
.needsclick.klaviyo-form,
.klaviyo-form-version-cid_1,
.kl-private-reset-css-Xuajs1,
form.klaviyo-form {
	background: none !important;
	background-color: transparent !important;
}

/* Klaviyo private reset - force Helvetica */
.kl-private-reset-css-inner-Zxasda,
.kl-private-reset-css-Xuajs1 input:not([type=image])::placeholder,
.kl-private-reset-css-Xuajs1::before,
.kl-private-reset-css-Xuajs1::after,
.kl-private-reset-css-Xuajs1 input:not([type]),
.kl-private-reset-css-Xuajs1 input[type=text],
.kl-private-reset-css-Xuajs1 input[type=email],
.kl-private-reset-css-Xuajs1 input[type=number],
.kl-private-reset-css-Xuajs1 input[type=date],
.kl-private-reset-css-Xuajs1 input[type=tel],
.kl-private-reset-css-Xuajs1 {
	font-family: Helvetica, Arial, sans-serif !important;
}
.klaviyo-form .needsclick label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.klaviyo-form .needsclick input {
	width: 100% !important;
	padding: 18px 20px !important;
	background: var(--wp--preset--color--base-2) !important;
	border: 1px solid var(--wp--preset--color--smoke) !important;
	border-radius: 0 !important;
	color: var(--wp--preset--color--contrast) !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	transition: border-color 0.3s ease, background 0.3s ease !important;
	box-sizing: border-box !important;
}

.klaviyo-form .needsclick input::placeholder {
	color: var(--wp--preset--color--ash) !important;
	opacity: 1 !important;
}

.klaviyo-form .needsclick input:focus {
	outline: none !important;
	border-color: var(--wp--preset--color--contrast) !important;
	background: var(--wp--preset--color--smoke) !important;
}

.klaviyo-form .klaviyo-form-button {
	width: 100% !important;
	padding: 18px 30px !important;
	background: transparent !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
	color: var(--wp--preset--color--contrast) !important;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: 1rem !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: background 0.4s ease, color 0.4s ease !important;
	box-sizing: border-box !important;
}

.klaviyo-form .klaviyo-form-button:hover {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

.klaviyo-form .klaviyo-form-richtext p,
.klaviyo-form .klaviyo-form-richtext p a,
.klaviyo-form .klaviyo-form-richtext p a span {
	color: var(--wp--preset--color--ash) !important;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: 0.7rem !important;
	letter-spacing: 0.08em !important;
	line-height: 1.6 !important;
	text-align: center !important;
	text-decoration: none!important;
}

.klaviyo-form .klaviyo-form-richtext p a {
	transition: color 0.3s ease !important;
}

.klaviyo-form .klaviyo-form-richtext p a:hover {
	color: var(--wp--preset--color--contrast) !important;
}

/* ---- Shopify Buy Button --------------------------------- */
/* Match Klaviyo button styling for consistency */
.shopify-buy__btn-wrapper .shopify-buy__btn,
.shopify-buy__btn {
	width: 100% !important;
	padding: 18px 30px !important;
	background: transparent !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
	color: var(--wp--preset--color--contrast) !important;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: 1rem !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: background 0.4s ease, color 0.4s ease !important;
	box-sizing: border-box !important;
}

.shopify-buy__btn-wrapper .shopify-buy__btn:hover,
.shopify-buy__btn:hover {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

/* ---- Discord -------------------------------------------- */
.cw-discord__line { line-height: 1.18; }

/* Discord button styling */
.cw-discord .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
	background: transparent;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease, gap 0.4s ease;
}

.cw-discord .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--contrast);
	gap: 20px;
}

/* Mobile: center Community section */
@media (max-width: 640px) {
	.cw-discord .wp-block-group {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* ---- Era band (album) ----------------------------------- */
.cw-era {
	isolation: isolate;
	position: relative;
}
.cw-era img.wp-block-cover__image-background {
	filter: brightness(0.82) saturate(0.92);
}
.cw-era::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to bottom, rgba(10,9,8,0) 0%, rgba(10,9,8,0.6) 50%, rgba(10,9,8,0.9) 100%);
	pointer-events: none;
	z-index: 1;
}
.cw-era .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}
.cw-era__word {
	font-size: clamp(3rem, 11vw, 7.5rem);
	line-height: 0.92;
	letter-spacing: 0.01em;
	text-transform: lowercase;
	margin: 0;
	filter: blur(10px);
	opacity: 0;
	will-change: filter, opacity;
	transition: filter 1.2s ease, opacity 1.2s ease;
}
.cw-era__cap {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--faint);
	margin: clamp(14px, 2vw, 22px) 0 0;
	filter: blur(10px);
	opacity: 0;
	will-change: filter, opacity;
	transition: filter 1.2s ease 0.2s, opacity 1.2s ease 0.2s;
}
.cw-era.in .cw-era__word,
.cw-era.in .cw-era__cap {
	filter: blur(0);
	opacity: 1;
}

/* ---- Footer fine print ---------------------------------- */
.cw-flabel { font-family: var(--wp--preset--font-family--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--wp--preset--color--faint); }
.cw-fcol a { font-family: var(--wp--preset--font-family--mono); letter-spacing: 0.08em; color: var(--wp--preset--color--ash); }
.cw-fine { font-family: var(--wp--preset--font-family--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--faint); }

/* ============================================================
   VIDEO CAROUSEL  (Swiper Element + lazy facade)
   ============================================================ */

/* header row: "Watch" eyebrow on the left, arrows on the right */
.cw-videos__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1320px;
	margin-inline: auto;
	width: 100%;
}

/* prev / next arrows */
.cw-vnav { display: flex; gap: 10px; flex: 0 0 auto; }
.cw-vnav__btn {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	padding: 0;
	background: transparent;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 50%;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.cw-vnav__btn svg { width: 18px; height: 18px; }
.cw-vnav__btn:hover:not(:disabled) {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}
.cw-vnav__btn:focus-visible {
	outline: 1px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Mobile: reduce carousel navigation arrows and adjust layout */
@media (max-width: 640px) {
	.cw-videos__head {
		padding-left: var(--wp--preset--spacing--20);
		padding-right: var(--wp--preset--spacing--20);
		gap: 12px;
	}
	.cw-vnav {
		margin-right: 1.75em;
	}
	.cw-vnav__btn {
		width: 36px;
		height: 36px;
	}
	.cw-vnav__btn svg {
		width: 14px;
		height: 14px;
	}
}
/* Swiper container: horizontal padding so first/last slides clear the edge */
.cw-swiper {
	display: block;
	width: 100%;
	padding: 4px clamp(18px, 3.4vw, 56px);
}

/* slidesPerView:'auto' reads the slide width from here */
.cw-vcard {
	width: clamp(280px, 78vw, 560px);
	height: auto;
}
.cw-vcard__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	padding: 0;
	border: 1px solid var(--wp--preset--color--smoke);
	background: var(--wp--preset--color--smoke);
	cursor: pointer;
}
.cw-vcard__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.82) saturate(0.9);
	transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.6s ease;
}
.cw-vcard__frame:hover img { transform: scale(1.05); filter: brightness(0.6) saturate(0.85); }
.cw-vcard__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10,9,8,0.6), rgba(10,9,8,0) 55%);
	pointer-events: none;
}
.cw-play {
	position: absolute;
	right: clamp(12px, 2vw, 18px);
	bottom: clamp(12px, 2vw, 18px);
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--ash);
	background: rgba(10,9,8,0.3);
	backdrop-filter: blur(2px);
	transition: border-color 0.3s ease;
}
.cw-vcard__frame:hover .cw-play { border-color: var(--wp--preset--color--accent); }
.cw-play svg { width: 42%; margin-left: 6%; fill: var(--wp--preset--color--contrast); }

.cw-vcard__cap {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-top: 16px;
}
.cw-vcard__title {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	line-height: 1.1;
	margin: 0;
	transition: color 0.4s ease;
}
.cw-vcard__frame:hover + .cw-vcard__cap .cw-vcard__title { color: var(--wp--preset--color--accent); }
.cw-vcard__num { font-family: var(--wp--preset--font-family--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--wp--preset--color--faint); }

/* When a facade is activated, JS swaps in the iframe */
.cw-vcard__frame.is-playing { cursor: default; }
.cw-vcard__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cw-vcard__frame.is-playing img,
.cw-vcard__frame.is-playing .cw-play,
.cw-vcard__frame.is-playing::after { display: none; }

/* ============================================================
   VIDEO LIGHTBOX
   ============================================================ */

/* Lightbox container - hidden by default */
.cw-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cw-lb[aria-hidden="false"],
.cw-lb.is-open {
	opacity: 1;
	visibility: visible;
}

/* Backdrop/scrim - click to close */
.cw-lb__scrim {
	position: absolute;
	inset: 0;
	background: rgba(10, 9, 8, 0.95);
	backdrop-filter: blur(8px);
	cursor: pointer;
}

/* Video stage container */
.cw-lb__stage {
	position: relative;
	width: clamp(300px, 90vw, 1280px);
	max-height: 90vh;
	aspect-ratio: 16 / 9;
	z-index: 1;
}

/* Close button - slightly outside video boundary upper right */
.cw-lb__close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--smoke);
	border-radius: 50%;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 2;
}

.cw-lb__close:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	transform: rotate(90deg);
}

.cw-lb__close:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.cw-lb__close svg {
	width: 20px;
	height: 20px;
}

/* Video content container */
.cw-lb__content {
	position: relative;
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--smoke);
}

.cw-lb__content iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.cw-lb__stage {
		width: 95vw;
	}

	.cw-lb__close {
		top: -12px;
		right: -12px;
		width: 40px;
		height: 40px;
	}

	.cw-lb__close svg {
		width: 18px;
		height: 18px;
	}
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

#cw-toTop {
	position: fixed;
	z-index: 9500;
	left: auto;
	right: max(20px, calc((100vw - 1320px) / 4));
	bottom: clamp(16px, 4vh, 40px);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(233, 227, 216, 0.26);
	color: var(--wp--preset--color--contrast);
	background: rgba(10, 9, 8, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: grid;
	place-items: center;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, background 0.3s ease;
	cursor: pointer;
	padding: 0;
}

#cw-toTop.show {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

#cw-toTop:hover {
	border-color: var(--wp--preset--color--contrast);
	background: rgba(10, 9, 8, 0.72);
}

#cw-toTop svg {
	width: 14px;
	height: 14px;
}

/* ============================================================
   REVEAL ON SCROLL ANIMATIONS
   ============================================================ */

.cw-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cw-reveal.in {
	opacity: 1;
	transform: none;
}

/* Focus blur effect - initial state */
.cw-focus {
	filter: blur(10px);
	opacity: 0;
	will-change: filter, opacity;
	transition: filter 1.2s ease, opacity 1.2s ease;
}

/* Focus blur effect - revealed state */
.cw-reveal.in .cw-focus {
	filter: blur(0);
	opacity: 1;
}

/* ---- Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.cw-vcard__frame img { transition: none; }
	.cw-lb { transition: none; }
	.cw-lb__close { transition: none; }
	#cw-toTop {
		transition: opacity 0.3s ease;
		transform: none;
	}
	.cw-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none;
	}
	.cw-focus,
	.cw-era__word,
	.cw-era__cap {
		filter: blur(0) !important;
		opacity: 1 !important;
		transition: none;
	}
	.cw-scrollcue__bar::after {
		animation: none;
	}
}

/* ============================================================
   BLACKOUT TEMPLATE
   Teaser page with atmospheric effects and entrance animation
   ============================================================ */

/* ---- Layout: Perfect Centering ----- */

/* Main container: Flexbox column layout */
.cw-blackout {
	display: flex;
	flex-direction: column;
	min-height: 100svh;
}

/* Header: Fixed height at top */
.cw-blackout .cw-blackout-header {
	flex: 0 0 auto;
}

/* Main content: Centered in remaining space */
.cw-blackout .cw-blackout-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Footer: Fixed height at bottom */
.cw-blackout .cw-blackout-footer {
	flex: 0 0 auto;
}

/* ---- Atmosphere Effects (position: fixed, z-index: -1) ----- */

/* Glow: Soft radial gradient for ambient light */
.cw-blackout .atmos__glow {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(
		56% 46% at 50% 46%,
		rgba(196, 192, 182, 0.11) 0%,
		rgba(0, 0, 0, 0) 70%
	);
}

/* Vignette: Dark edges to focus attention on center */
.cw-blackout .atmos__vignette {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(
		125% 108% at 50% 50%,
		rgba(0, 0, 0, 0) 50%,
		rgba(0, 0, 0, 0.6) 100%
	);
}

/* Grain: Subtle film texture overlay */
.cw-blackout .atmos__grain {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.05;
	mix-blend-mode: soft-light;
	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='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Entrance Animations (staggered rise) ------------------ */

/* Initial state: Hidden and translated down to prevent jump during load */
.cw-blackout .reveal {
	opacity: 0;
	transform: translateY(26px);
}

/* Header initial state: Hidden but NO transform (fade only, no movement) */
.cw-blackout .cw-blackout-header {
	opacity: 0;
	transform: none;
}

/* Fade-in animation keyframes (header only - no translateY) */
@keyframes cw-blackout-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Rise animation keyframes (other elements - fade + translateY) */
@keyframes cw-blackout-rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cw-blackout .cw-klaviyo,
.cw-blackout .klaviyo-form {
	padding-right: 0!important; padding-left: 0!important;
}

/* Apply animation only when motion is allowed and page is ready */
@media (prefers-reduced-motion: no-preference) {
	/* Header: Simple fade-in first (no movement, no delay) */
	body.is-ready .cw-blackout .cw-blackout-header {
		animation: cw-blackout-fade 0.9s ease-out 0s both;
	}

	/* "stay close…" and Signup: Fade-up together with slight stagger */
	body.is-ready .cw-blackout .cw-blackout-copy {
		animation: cw-blackout-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both;
	}

	body.is-ready .cw-blackout .cw-klaviyo,
	body.is-ready .cw-blackout .klaviyo-form {
		animation: cw-blackout-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.65s both;
	}

	/* Footer: Fade-up last */
	body.is-ready .cw-blackout .cw-blackout-footer {
		animation: cw-blackout-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.95s both;
	}
}

/* Fallback: Show content immediately if motion is reduced OR if JS fails after 2s */
@media (prefers-reduced-motion: reduce) {
	.cw-blackout .reveal {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

/* Safety net: Fade in content after 2s if JavaScript hasn't loaded */
.cw-blackout .reveal {
	animation: cw-blackout-safety 0.8s ease-out 2s both;
}

@keyframes cw-blackout-safety {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* When JS is ready, the staggered animations override the safety animation */
body.is-ready .cw-blackout .reveal {
	animation: none; /* Clear safety animation */
}

/* ---- Klaviyo Form Overrides (.cw-klaviyo) ------------------ */
/* Applied to both blackout and mystery-offering pages for consistency */

/* Translucent dark inputs with subtle borders - all input types */
.cw-blackout .cw-klaviyo input[type="email"],
.cw-blackout .klaviyo-form input[type="email"],
.cw-blackout .cw-klaviyo input[type="text"],
.cw-blackout .klaviyo-form input[type="text"],
.cw-blackout .cw-klaviyo input:not([type]),
.cw-blackout .klaviyo-form input:not([type]),
.cw-mystery-offering .cw-klaviyo input[type="email"],
.cw-mystery-offering .klaviyo-form input[type="email"],
.cw-mystery-offering .cw-klaviyo input[type="text"],
.cw-mystery-offering .klaviyo-form input[type="text"],
.cw-mystery-offering .cw-klaviyo input:not([type]),
.cw-mystery-offering .klaviyo-form input:not([type]) {
	background: rgba(26, 23, 21, 0.6) !important;
	border: 1px solid rgba(242, 242, 238, 0.12) !important;
	color: var(--wp--preset--color--contrast) !important;
	font-size: 1.1rem !important;
	padding: 20px 16px !important;
	transition: border-color 0.3s ease, background 0.3s ease !important;
}

/* Hover state: Slightly brighter border */
.cw-blackout .cw-klaviyo input:hover,
.cw-blackout .klaviyo-form input:hover,
.cw-mystery-offering .cw-klaviyo input:hover,
.cw-mystery-offering .klaviyo-form input:hover {
	border-color: rgba(242, 242, 238, 0.24) !important;
}

/* Focus state: Full contrast border and slightly brighter background */
.cw-blackout .cw-klaviyo input:focus,
.cw-blackout .klaviyo-form input:focus,
.cw-mystery-offering .cw-klaviyo input:focus,
.cw-mystery-offering .klaviyo-form input:focus {
	border-color: var(--wp--preset--color--contrast) !important;
	background: rgba(26, 23, 21, 0.8) !important;
	outline: none !important;
}

/* Placeholder styling */
.cw-blackout .cw-klaviyo input::placeholder,
.cw-blackout .klaviyo-form input::placeholder,
.cw-mystery-offering .cw-klaviyo input::placeholder,
.cw-mystery-offering .klaviyo-form input::placeholder {
	color: rgba(242, 242, 238, 0.5) !important;
	opacity: 1 !important;
}

/* Full-width mono CTA button with tracked uppercase text */
.cw-blackout .cw-klaviyo button[type="submit"],
.cw-blackout .klaviyo-form button[type="submit"],
.cw-blackout .klaviyo-form .klaviyo-form-button,
.cw-mystery-offering .cw-klaviyo button[type="submit"],
.cw-mystery-offering .klaviyo-form button[type="submit"],
.cw-mystery-offering .klaviyo-form .klaviyo-form-button {
	width: 100% !important;
	background: transparent !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--contrast) !important;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: 1rem !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	padding: 18px 30px !important;
	transition: background 0.4s ease, color 0.4s ease !important;
	cursor: pointer !important;
}

/* Button hover state: Invert colors */
.cw-blackout .cw-klaviyo button[type="submit"]:hover,
.cw-blackout .klaviyo-form button[type="submit"]:hover,
.cw-blackout .klaviyo-form .klaviyo-form-button:hover,
.cw-mystery-offering .cw-klaviyo button[type="submit"]:hover,
.cw-mystery-offering .klaviyo-form button[type="submit"]:hover,
.cw-mystery-offering .klaviyo-form .klaviyo-form-button:hover {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

/* Mobile responsive: Single column layout under 640px */
@media (max-width: 640px) {
	.cw-blackout .cw-klaviyo,
	.cw-blackout .klaviyo-form,
	.cw-mystery-offering .cw-klaviyo,
	.cw-mystery-offering .klaviyo-form {
		width: 100% !important;
	}

	.cw-blackout .cw-klaviyo .klaviyo-form-row,
	.cw-blackout .klaviyo-form .klaviyo-form-row,
	.cw-mystery-offering .cw-klaviyo .klaviyo-form-row,
	.cw-mystery-offering .klaviyo-form .klaviyo-form-row {
		flex-direction: column !important;
	}

	.cw-blackout .cw-klaviyo input[type="email"],
	.cw-blackout .klaviyo-form input[type="email"],
	.cw-mystery-offering .cw-klaviyo input[type="email"],
	.cw-mystery-offering .klaviyo-form input[type="email"] {
		width: 100% !important;
	}

	/* Mobile: Reduce placeholder font size for better fit */
	.cw-blackout .cw-klaviyo input::placeholder,
	.cw-blackout .klaviyo-form input::placeholder,
	.cw-mystery-offering .cw-klaviyo input::placeholder,
	.cw-mystery-offering .klaviyo-form input::placeholder {
		font-size: 0.889rem !important;
	}

	/* Mobile header: Centered stack layout */
	.cw-blackout .cw-blackout-header,
	.cw-mystery-offering .cw-blackout-header {
		flex-direction: column !important;
		align-items: center !important;
		padding-top: 30px !important;
	}

	.cw-blackout .cw-blackout-logo,
	.cw-mystery-offering .cw-blackout-logo {
		width: 220px !important;
	}

	.cw-blackout .cw-blackout-social,
	.cw-mystery-offering .cw-blackout-social {
		justify-content: center !important;
	}

	/* Mobile copy: Slightly smaller font */
	.cw-blackout .cw-blackout-copy,
	.cw-mystery-offering .cw-soldout-copy {
		font-size: 2.5rem !important;
	}
}

/* ============================================================
   MYSTERY OFFERING - Product sold out toggle
   ============================================================ */

/* Default state: Show product, hide sold out message */
.cw-mystery-offering .cw-product-active {
	display: block;
}

.cw-mystery-offering .cw-product-soldout {
	display: none;
}

/* When sold out: Hide product, show sold out message
   To activate: Add "is-sold-out" class to <main class="cw-mystery-offering"> */
.cw-mystery-offering.is-sold-out .cw-product-active {
	display: none;
}

.cw-mystery-offering.is-sold-out .cw-product-soldout {
	display: block;
}