/* Homepage — single-screen vehicle studio poster.
 *
 * Geometry is ported 1:1 from the reference layout: a 1440 x 1081 design
 * canvas, a 386 unit dark panel with a tiled skyline, the render straddling
 * the seam, the spectrum ribbon behind it, the statement, and a six-tile
 * strip cropped by the fold.
 *
 * One design unit (--u) resolves to the smaller of 1/1440 of the viewport
 * width and 1/1081 of the viewport height — the same ratio the reference
 * uses, so the poster measures identically at any window size. The site
 * header is fixed and floats over the top of the dark panel, which is empty
 * dark space in the reference composition.
 */

.clone {
	--u: min(0.069444vw, 0.092507vh);
	--paper: #f2f2f2;
	--band: #222222;
	--ink: #222222;
	/* Alpha variants of the body ink are derived from this channel triple so
	   the dark ramp flips them all at once. */
	--clone-ink-rgb: 34 34 34;

	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: calc(var(--sa-nav-h) * -1);
	min-height: 100dvh;
	overflow: hidden;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--hb-font);
	line-height: normal;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.clone,
.clone * {
	font-family: var(--hb-font) !important;
}

.clone-page {
	position: relative;
	width: calc(1440 * var(--u));
	height: calc(1081 * var(--u));
	max-height: calc(1081 * var(--u));
	background: var(--paper);
	color: var(--ink);
	display: flex;
	flex-direction: column;
	overflow: visible;
}

/* ------------------------------------------------------------------ panel */

.clone-panel {
	position: relative;
	flex: none;
	height: calc(386 * var(--u));
	background: var(--band);
	padding: calc(26 * var(--u)) calc(40 * var(--u)) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(64 * var(--u));
	box-sizing: border-box;
}

.clone-panel::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -100vw;
	right: -100vw;
	background: var(--band);
	z-index: 0;
	pointer-events: none;
}

.clone-skyline {
	position: absolute;
	left: -100vw;
	right: -100vw;
	bottom: 0;
	height: calc(220 * var(--u));
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	z-index: 0;
	pointer-events: none;
}

.clone-skyline img {
	flex: none;
	display: block;
	width: calc(900 * var(--u));
	height: auto;
	align-self: flex-end;
}

/* ------------------------------------------------------------------ stage */

.clone-stage {
	position: relative;
	z-index: 2;
	flex: none;
	margin-top: calc(-254 * var(--u));
	padding-top: calc(89 * var(--u));
}

.clone-ribbon {
	position: absolute;
	top: calc(-70 * var(--u));
	left: calc(50% - 50vw);
	width: 100vw;
	height: calc(320 * var(--u));
	z-index: 1;
	pointer-events: none;
	overflow: visible;
	display: block;
}

.clone-probe {
	position: absolute;
	left: 0;
	top: 0;
	width: calc(1000 * var(--u));
	height: 0;
	visibility: hidden;
	pointer-events: none;
}

.clone-car {
	position: relative;
	z-index: 2;
	width: calc(752 * var(--u));
	margin: 0 auto;
}

.clone-car img {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------- copy */

.clone-copy {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* Extra top padding nudges the centred block down by half of it; the strip
	   and footer that used to fill the lower half are gone, so the copy sits
	   higher than the composition wants. */
	padding: calc(140 * var(--u)) calc(40 * var(--u)) calc(20 * var(--u));
	text-align: center;
}

.clone .clone-copy h1 {
	margin: 0;
	font-size: calc(56 * var(--u));
	font-weight: 500;
	line-height: 1.08 !important;
	letter-spacing: -0.015em;
	color: var(--ink);
	max-width: calc(960 * var(--u));
	text-wrap: pretty;
}

.clone-copy p[data-m="sub"] {
	margin: calc(12 * var(--u)) 0 0;
	font-size: max(14px, calc(16 * var(--u)));
	line-height: 1.5;
	color: rgb(var(--clone-ink-rgb) / 0.68);
	max-width: calc(520 * var(--u));
	text-wrap: pretty;
}

.clone-copy a[data-m="cta"] {
	margin-top: calc(34 * var(--u));
	font-size: max(15px, calc(18 * var(--u)));
	padding: calc(19 * var(--u)) calc(40 * var(--u));
	border-radius: var(--hb-btn-radius);
}

.clone-join {
	margin-top: calc(8 * var(--u));
	font-size: max(12px, calc(13 * var(--u)));
	color: rgb(var(--clone-ink-rgb) / 0.72);
	text-decoration: none;
}

.clone-join:hover {
	color: rgb(var(--clone-ink-rgb) / 0.85);
}

/* -------------------------------------------------------------- keyframes */

@keyframes clone-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes clone-glow {
	0%,
	100% {
		opacity: 0.65;
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.12);
	}
}

/* ----------------------------------------------------------------- mobile */

@media (max-width: 760px) {
	.clone {
		--u: min(0.24vw, 0.12vh);
		display: block;
		align-items: flex-start;
		padding-top: var(--sa-nav-h);
	}

	.clone-page {
		width: 100vw;
		height: calc(100dvh - var(--sa-nav-h));
		max-height: calc(1081 * var(--u));
		overflow: hidden;
	}

	.clone-panel {
		height: calc(224 * var(--u));
		padding: calc(24 * var(--u)) calc(20 * var(--u)) 0;
		gap: 0;
	}

	.clone-stage {
		margin-top: calc(-90 * var(--u));
		padding-top: calc(20 * var(--u));
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
	}

	.clone-ribbon {
		top: calc(-234 * var(--u));
	}

	.clone-car {
		width: min(calc(340 * var(--u)), 88vw);
		max-width: 100%;
		margin: 0 auto;
	}

	.clone-car img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	.clone-copy {
		flex: 1 1 auto;
		padding: calc(100 * var(--u)) calc(40 * var(--u)) calc(32 * var(--u));
		text-align: center;
	}

	.clone .clone-copy h1 {
		font-size: calc(32 * var(--u));
		line-height: 1.15 !important;
		max-width: 100%;
		text-wrap: balance;
	}

	.clone-copy h1 br {
		display: none;
	}

	.clone-copy p[data-m="sub"] {
		max-width: calc(320 * var(--u));
		font-size: calc(15 * var(--u));
		line-height: 1.45;
		margin: calc(12 * var(--u)) auto 0;
		text-wrap: balance;
	}

	.clone-copy a[data-m="cta"] {
		margin-top: calc(24 * var(--u));
		font-size: max(14px, calc(16 * var(--u)));
		padding: calc(15 * var(--u)) calc(36 * var(--u));
	}
}

/* ------------------------------------------------------- featured releases */

/* Second frame: the poster is exactly one viewport, so this is what the first
   scroll lands on. Three catalogue cards on the house grid, one centred head. */
.hbg-featured {
	position: relative;
	z-index: 3;
	padding: 96px 0 104px;
	background: var(--hb-bg);
	color: var(--hb-ink);
	font-family: var(--hb-font);
}

.hbg-featured-title {
	margin: 0 0 46px;
	text-align: center;
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.035em;
	color: var(--hb-ink);
}

.hbg-featured-grid {
	max-width: 1180px;
	margin: 0 auto;
}

@media (max-width: 760px) {
	.hbg-featured {
		padding: 64px 0 72px;
	}

	.hbg-featured-title {
		margin-bottom: 30px;
		font-size: clamp(26px, 7.4vw, 34px);
	}
}

/* ------------------------------------------------------------------- dark */

/* The poster declares its own palette on `.clone`, which outranks the shell's
   `body.dark` background and text rules, so the page used to stay light while
   the nav flipped. Flipping the paper and the ink here keeps the copy legible
   in both themes. The panel is fixed: `--band` stays #222222 on both ramps, so
   the dark section at the top of the homepage is the same colour whatever the
   theme. It reads lighter than the dark paper, darker than the light paper -
   the seam holds either way. */
body.dark .clone {
	--paper: #131316;
	--band: #222222;
	--ink: #f2f2f2;
	--clone-ink-rgb: 242 242 242;
}

