/* ==========================================================================
   Certified Bling — Home / Hero (Phase 1)
   Full-bleed dark hero, ~90–100vh, content anchored lower-left, cinematic
   dark treatment now / ready for photography via --cb-hero-image.
   ========================================================================== */

.home-hero {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	background: var(--cb-black);
	color: var(--cb-white);
	overflow: hidden;
}

/* --- Media layer --------------------------------------------------- */

.home-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: #040404;
	/* Clean cinematic dark treatment: a low, soft light pooling toward the
	   lower-left, and a deepening toward the base for text legibility.
	   Deliberately subtle — no glow blooms, no sparkle. */
	background-image:
		linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%),
		radial-gradient(120% 90% at 12% 100%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 55%),
		linear-gradient(180deg, #0a0a0b 0%, #050505 60%, #030303 100%);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.home-hero__media.has-image {
	background-image:
		linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.15) 40%, rgba(5,5,5,0.78) 100%),
		linear-gradient(90deg, rgba(5,5,5,0.62) 0%, rgba(5,5,5,0.12) 55%, rgba(5,5,5,0) 100%),
		var(--cb-hero-image);
	background-position: center, center, center;
	background-size: cover, cover, cover;
}

/* Very faint static grain for depth — texture, not effect. */
.home-hero__grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.035;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 140px 140px;
}

/* --- Content ----------------------------------------------------- */

.home-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	align-items: flex-end;
	padding-top: calc(var(--cb-header-h) + var(--cb-space-xl));
	padding-bottom: clamp(3.5rem, 2rem + 9vw, 8rem);
}

.home-hero__content {
	max-width: min(64rem, 100%);
}

.home-hero__eyebrow {
	margin-bottom: var(--cb-space-m);
	color: color-mix(in srgb, var(--cb-white) 62%, transparent);
}

.home-hero__headline {
	font-family: var(--cb-font-display);
	font-weight: 700;
	text-transform: uppercase;
	/* Sized so the longest line ("GET CERTIFIED.") stays on one line from
	   ~360px up to the wide breakpoint. */
	font-size: clamp(2.15rem, 9.4vw, 6.75rem);
	line-height: 0.94;
	letter-spacing: -0.035em;
	margin: 0;
}
.home-hero__headline span {
	display: block;
	white-space: nowrap;
}

.home-hero__copy {
	margin-top: var(--cb-space-l);
	max-width: 34ch;
	font-size: var(--cb-text-lg);
	line-height: 1.5;
	color: color-mix(in srgb, var(--cb-white) 82%, transparent);
}

.home-hero__actions {
	margin-top: clamp(2rem, 1.2rem + 3vw, 3rem);
	display: flex;
	flex-wrap: wrap;
	gap: var(--cb-space-s);
}

/* --- Scroll cue ------------------------------------------------- */

.home-hero__cue {
	position: absolute;
	right: var(--cb-gutter);
	bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	z-index: 1;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	color: color-mix(in srgb, var(--cb-white) 55%, transparent);
	transition: color var(--cb-transition);
}
.home-hero__cue:hover { color: var(--cb-white); text-decoration: none; }
.home-hero__cue-label {
	font-family: var(--cb-font-mono);
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	writing-mode: vertical-rl;
}
.home-hero__cue-line {
	width: 1px;
	height: 44px;
	background: linear-gradient(180deg, currentColor 0%, transparent 100%);
}

.home-hero__anchor {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 1px;
	height: 1px;
}

/* --- Responsive ------------------------------------------------- */

@media (max-width: 900px) {
	.home-hero { min-height: 92svh; }
	.home-hero__content { max-width: 100%; }
	.home-hero__copy { max-width: 40ch; }
	.home-hero__actions { gap: 0.75rem; }
	.home-hero__cue { display: none; }
}

@media (max-width: 480px) {
	.home-hero__actions .cb-btn { flex: 1 1 100%; }
}
