/* Homepage-only Rosen Screw facts and live model.
 * Kept out of concept.css so the canonical static concept and concurrent work
 * on checkout/account styles remain untouched. */

.screw-band .screw-facts {
	display: grid;
	grid-template-columns: .95fr 1.25fr .72fr;
	margin: 27px 0 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 13px;
	background: rgba(17, 43, 6, .18);
	overflow: hidden;
}

.screw-band .screw-fact {
	min-width: 0;
	padding: 15px 17px 16px;
}

.screw-band .screw-fact + .screw-fact {
	border-left: 1px solid rgba(255, 255, 255, .14);
}

.screw-band .screw-fact dt {
	margin: 0 0 6px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .105em;
	text-transform: uppercase;
	color: #dcefc2;
}

.screw-band .screw-fact dd {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: #dcefc2;
}

.screw-band .screw-fact strong {
	display: block;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: #fff;
}

.screw-band .screw-fact dd span {
	display: block;
	margin-top: 2px;
}

.screw-model-stage {
	position: relative;
	width: min(100%, 470px);
	aspect-ratio: 1 / 1;
	margin-inline: auto;
	isolation: isolate;
}

.screw-model-stage::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 15%;
	right: 15%;
	bottom: 9%;
	height: 15%;
	border-radius: 50%;
	background: rgba(189, 226, 143, .22);
	filter: blur(27px);
	pointer-events: none;
}

.screw-model__poster,
.screw-model-stage model-viewer {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.screw-band__media .screw-model__poster {
	max-width: none;
	margin: 0;
	object-fit: contain;
	transform: scale(.86);
	filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .32));
	opacity: 1;
	transition: opacity .32s ease;
}

.screw-model-stage model-viewer {
	background: transparent;
	--poster-color: transparent;
	/*
	 * model-viewer draws a loading bar across the middle of its own box. The
	 * stage sits over the poster shot, so for the ~1s the GLB is fetching that
	 * bar reads as a thin pale line struck through the screw render — the first
	 * thing the eye catches on an otherwise still hero. The poster is already
	 * the loading state (it is a photograph of the same part, shown until
	 * `.is-ready`), so the bar has no job here: it is a second, uglier progress
	 * indicator for a wait the viewer cannot perceive as a wait.
	 */
	--progress-bar-color: transparent;
	--progress-bar-height: 0px;
	opacity: 0;
	transition: opacity .32s ease;
}

/* Belt and braces: the custom properties above are the supported seam, but the
   shadow part is what actually paints, and it is addressable directly. */
.screw-model-stage model-viewer::part(default-progress-bar) {
	display: none;
}

.screw-model-stage.is-ready model-viewer {
	opacity: 1;
}

.screw-model-stage.is-ready .screw-model__poster {
	opacity: 0;
	pointer-events: none;
}

.screw-model-stage.is-failed model-viewer,
.screw-model-stage.is-static model-viewer {
	display: none;
}

.screw-model-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 6px auto 0;
	color: #dcefc2;
	font-size: 13px;
}

.screw-model-controls[hidden] {
	display: none;
}

.screw-model-toggle {
	min-height: 44px;
	padding: 9px 15px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	background: rgba(17, 43, 6, .25);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.screw-model-toggle:hover {
	background: rgba(17, 43, 6, .45);
}

.screw-model-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.screw-model-stage {
		width: min(100%, 390px);
	}
}

@media (max-width: 620px) {
	.screw-band .screw-facts {
		grid-template-columns: 1fr;
	}

	.screw-band .screw-fact {
		display: grid;
		grid-template-columns: minmax(110px, .82fr) minmax(0, 1.18fr);
		gap: 13px;
		align-items: center;
		padding: 13px 15px 14px;
	}

	.screw-band .screw-fact + .screw-fact {
		border-top: 1px solid rgba(255, 255, 255, .14);
		border-left: 0;
	}

	.screw-band .screw-fact dt {
		margin: 0;
	}

	.screw-model-stage {
		width: min(100%, 340px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.screw-band__media .screw-model__poster,
	.screw-model-stage model-viewer {
		transition: none;
	}
}
