/* ==========================================================================
   The maker: your words, on clear acrylic.
   Layers, back to front: laser-bed grid, real product photo, the clear piece.
   ========================================================================== */

.qc-maker {
	position: relative;
	overflow: hidden;
	/* Studio light raking across the workshop, as in the brand photography. */
	background-image:
		radial-gradient(rgba(232, 200, 186, 0.13) 1px, transparent 1.3px),
		radial-gradient(120% 90% at 92% 18%, rgba(155, 111, 101, 0.42), rgba(155, 111, 101, 0) 62%);
	background-size: 24px 24px, 100% 100%;
	padding: var(--top, 6rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
	min-height: 100svh;
}

/* One composition, three tracks: the bench (exactly as wide as the sign), a measured gap that
   carries the reference annotation, and the product photograph. Intro, piece, controls, CTA and
   disclaimer all share the bench's left edge. */
.qc-maker__grid {
	--W: min(50vw, 720px, calc((100svh - 380px) * 1.35));
	--gapw: clamp(56px, 6vw, 96px);
	display: grid;
	grid-template-columns: var(--W) var(--gapw) minmax(0, 1fr);
	grid-template-rows: auto auto auto;
	row-gap: clamp(1.25rem, 2.6svh, 2rem);
	align-content: center;
	max-width: var(--max);
	min-height: calc(100svh - var(--top, 6rem) - 4rem);
	margin-inline: auto;
}

.qc-maker__h1 {
	grid-column: 1 / 3;
	grid-row: 1;
	max-width: 32ch;
	font: 600 clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem)/1.4 var(--f-text);
	color: var(--mist);
}

/* ---------- The bench and the reference photograph ---------- */

.qc-maker__bench { display: contents; }

.qc-maker__photos {
	grid-column: 3;
	grid-row: 2 / 4;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 420px;
	margin: 0;
}
.qc-maker__photo { position: absolute; inset: 0; }
.qc-maker__photo[hidden] { display: none; }
.qc-maker__photo.is-leaving { display: block; z-index: 0; }
.qc-maker__photo.is-active { z-index: 1; }
.qc-maker__photo-frame { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.qc-maker__photo-frame .qc-img { width: 100%; height: 100%; object-fit: cover; }
.qc-maker__photo .qc-note {
	position: absolute;
	left: 1.25rem;
	bottom: 1.25rem;
	z-index: 2;
	color: var(--white);
	white-space: nowrap;
}
.qc-maker__photo .qc-note__line { display: none; }
.qc-maker__photo .qc-note a {
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgba(51, 32, 27, 0.62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* The annotation: a dimension line from the piece to the photograph it refers to. */
.qc-maker__ref {
	position: absolute;
	z-index: 3;
	right: 100%;
	top: calc(var(--W) * 0.35);
	/* From the selected product's right edge to the photograph: the gap plus the bench left unused. */
	width: calc(var(--gapw) + (var(--W) - var(--shape-w)) / 2);
	height: 0;
	border-top: 1px solid rgba(251, 246, 241, 0.55);
	pointer-events: none;
	transition: width 760ms var(--ease-cut);
}
.qc-maker__ref::before,
.qc-maker__ref::after {
	content: "";
	position: absolute;
	top: -5px;
	width: 1px;
	height: 9px;
	background: rgba(251, 246, 241, 0.55);
}
.qc-maker__ref::before { left: 6px; }
.qc-maker__ref::after { right: 0; }
.qc-maker__ref-label {
	position: absolute;
	left: 50%;
	bottom: 0.45rem;
	transform: translateX(-50%);
	font: 600 0.72rem/1 var(--f-text);
	letter-spacing: 0.02em;
	color: var(--mist);
	white-space: nowrap;
}

.qc-maker__stage {
	grid-column: 1;
	grid-row: 2;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	/* Every shape sits on the same centre point in the bench, whatever its width. */
	justify-content: center;
	min-height: calc(var(--W) * 0.7);
	perspective: 1400px;
}

/* The visible width of each shape (the box includes its side wall). The reference line uses it
   to start at the product's right edge; it is never used to position the product. */
.qc-maker__grid { --shape-w: var(--W); }
.qc-maker__grid:has([data-shape="round"]) { --shape-w: min(calc(var(--W) * 0.64), 60svh); }
.qc-maker__grid:has([data-shape="arch"]) { --shape-w: calc(var(--W) * 0.5); }
.qc-maker__grid:has([data-shape="panel"]) { --shape-w: calc(var(--W) * 0.48); }
.qc-maker__grid:has([data-shape="box"]) { --shape-w: calc(var(--W) * 0.5 * 1.1125); }

/* ---------- The piece ---------- */

.qc-maker__piece {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
	transition: transform 900ms var(--ease-out);
}

.qc-maker__sheet {
	--w: var(--W);
	--h: calc(var(--W) * 0.46);
	--r: 6px;
	position: relative;
	z-index: 0;
	display: grid;
	place-items: center;
	width: var(--w);
	height: var(--h);
	border-radius: var(--r);
	container-type: size;
	background: linear-gradient(118deg,
		rgba(255, 255, 255, 0.22) 0%,
		rgba(255, 255, 255, 0.07) 28%,
		rgba(255, 255, 255, 0.02) 52%,
		rgba(255, 255, 255, 0.09) 100%);
	-webkit-backdrop-filter: blur(0.6px) brightness(1.1) saturate(1.1);
	backdrop-filter: blur(0.6px) brightness(1.1) saturate(1.1);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.5),
		inset 0 0 0 3px rgba(235, 202, 180, 0.1),
		inset -3px -4px 10px -4px rgba(235, 202, 180, 0.55),
		inset 3px 4px 10px -6px rgba(255, 255, 255, 0.5),
		24px 40px 60px -26px rgba(0, 0, 0, 0.75);
	transition:
		width 760ms var(--ease-cut),
		height 760ms var(--ease-cut),
		border-radius 760ms var(--ease-cut),
		background-color 600ms var(--ease-out),
		backdrop-filter 600ms var(--ease-out);
}
/* The cut edge: the sheet's thickness, catching light along the lower right. */
.qc-maker__sheet::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	transform: translate(7px, 8px);
	background: linear-gradient(135deg, rgba(235, 202, 180, 0.45), rgba(235, 202, 180, 0.08) 60%);
	box-shadow: inset 0 0 0 1px rgba(235, 202, 180, 0.4);
}
/* A glare band that follows the pointer (LAYER). */
.qc-maker__sheet::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(105deg, transparent calc(var(--gx, 0.3) * 100% - 18%), rgba(255, 255, 255, 0.16) calc(var(--gx, 0.3) * 100%), transparent calc(var(--gx, 0.3) * 100% + 18%));
	transition: background 600ms var(--ease-out);
}

.qc-maker__piece[data-shape="round"] .qc-maker__sheet { --w: min(calc(var(--W) * 0.64), 60svh); --h: var(--w); --r: calc(var(--w) / 2); }
.qc-maker__piece[data-shape="arch"] .qc-maker__sheet { --w: calc(var(--W) * 0.5); --h: calc(var(--W) * 0.6); --r: calc(var(--W) * 0.25) calc(var(--W) * 0.25) 4px 4px; }
.qc-maker__piece[data-shape="panel"] .qc-maker__sheet { --w: calc(var(--W) * 0.48); --h: min(calc(var(--W) * 0.7), 64svh); }
.qc-maker__piece[data-shape="box"] .qc-maker__sheet { --w: calc(var(--W) * 0.5); --h: calc(var(--W) * 0.5); --r: 3px; }

/* Frosted: diffused, and the lettering reads darker through it. */
.qc-maker__piece[data-finish="frosted"] .qc-maker__sheet {
	background-color: rgba(250, 241, 234, 0.42);
	-webkit-backdrop-filter: blur(12px) brightness(1.15) saturate(0.9);
	backdrop-filter: blur(12px) brightness(1.15) saturate(0.9);
}
.qc-maker__piece[data-finish="frosted"] .qc-maker__text {
	color: rgba(51, 32, 27, 0.82);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- Etched lettering ---------- */

.qc-maker__text {
	position: relative;
	z-index: 1;
	max-width: 84%;
	max-height: 76%;
	font-family: var(--f-display);
	font-size: var(--fs, 64px);
	line-height: 1.02;
	text-align: center;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 0 22px rgba(235, 202, 180, 0.3);
	text-wrap: balance;
	overflow-wrap: normal;
	transition: color 600ms, text-shadow 600ms;
}
.qc-maker__text.is-empty { opacity: 0.82; }

.qc-maker__spark {
	position: absolute;
	z-index: 4;
	left: var(--sx, 50%);
	top: var(--sy, 50%);
	width: 9px;
	height: 9px;
	margin: -4.5px 0 0 -4.5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 6px 2px #fff, 0 0 16px 6px var(--edge), 0 0 36px 10px rgba(235, 202, 180, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 260ms var(--ease-out);
}
.qc-maker__spark.is-on { opacity: 1; transition: opacity 60ms; }

/* The laser's pass around a new outline (CUT). */
.qc-maker__cut {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.qc-maker__cut path {
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	filter: drop-shadow(0 0 4px var(--edge)) drop-shadow(0 0 10px var(--edge));
	opacity: 0;
}
.qc-maker__cut.is-cutting path { animation: qc-trace 900ms var(--ease-cut) forwards; }
@keyframes qc-trace {
	0% { stroke-dashoffset: 1; opacity: 1; }
	80% { stroke-dashoffset: 0; opacity: 1; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- Bolts, slot, base: they move with the shape ---------- */

.qc-maker__sheet .qc-bolts { --b: 14px; }
.qc-maker__sheet .qc-bolts i { transition: top 760ms var(--ease-cut), left 760ms var(--ease-cut), right 760ms var(--ease-cut), bottom 760ms var(--ease-cut), opacity 300ms; }
.qc-maker__sheet .qc-bolts i:nth-child(1) { top: 18px; left: 18px; }
.qc-maker__sheet .qc-bolts i:nth-child(2) { top: 18px; right: 18px; left: auto; }
.qc-maker__sheet .qc-bolts i:nth-child(3) { bottom: 18px; left: 18px; top: auto; }
.qc-maker__sheet .qc-bolts i:nth-child(4) { bottom: 18px; right: 18px; }
/* Round signs are fixed at the four compass points. */
.qc-maker__piece[data-shape="round"] .qc-bolts i:nth-child(1) { top: 16px; left: calc(50% - 7px); }
.qc-maker__piece[data-shape="round"] .qc-bolts i:nth-child(2) { top: calc(50% - 7px); right: 16px; }
.qc-maker__piece[data-shape="round"] .qc-bolts i:nth-child(3) { bottom: calc(50% - 7px); left: 16px; }
.qc-maker__piece[data-shape="round"] .qc-bolts i:nth-child(4) { bottom: 16px; right: calc(50% - 7px); }
/* Table signs stand on a base; free-standing panels and boxes have no bolts. */
.qc-maker__piece[data-shape="arch"] .qc-bolts i,
.qc-maker__piece[data-shape="panel"] .qc-bolts i,
.qc-maker__piece[data-shape="box"] .qc-bolts i { opacity: 0; }

.qc-maker__slot {
	position: absolute;
	left: 0; right: 0;
	bottom: 100%;
	height: 0;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
	transform: skewX(-32deg);
	transform-origin: bottom left;
	opacity: 0;
	transition: height 760ms var(--ease-cut), opacity 400ms;
}
.qc-maker__slot::after {
	content: "";
	position: absolute;
	left: 30%; right: 30%;
	top: 45%;
	height: 4px;
	border-radius: 2px;
	background: rgba(51, 32, 27, 0.8);
}
.qc-maker__piece[data-shape="box"] .qc-maker__slot { height: 18%; opacity: 1; }

/* The box's right wall: joins the front face's right edge to the far edge of the top face.
   The top face is 18% of the height, slanted 32°, so it reaches 18% × tan 32° ≈ 11.25% of the height to the right. */
.qc-maker__side {
	position: absolute;
	left: 100%;
	top: 0;
	width: 0;
	height: 100%;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 70%, rgba(235, 202, 180, 0.12));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset -1px 0 0 rgba(235, 202, 180, 0.45);
	transform: skewY(-58deg);
	transform-origin: top left;
	opacity: 0;
	transition: width 760ms var(--ease-cut), opacity 400ms;
}
.qc-maker__piece[data-shape="box"] .qc-maker__side { width: 11.25cqh; opacity: 1; }
/* The box is centred as a whole object, side wall included. */
.qc-maker__piece[data-shape="box"] .qc-maker__sheet { margin-right: calc(var(--W) * 0.5 * 0.1125); }

.qc-maker__base {
	width: 0;
	height: 0;
	border-radius: 2px;
	background: linear-gradient(180deg, #c89a68, #a0714a 60%, #87603f);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 10px 16px 24px -12px rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: width 760ms var(--ease-cut), height 760ms var(--ease-cut), opacity 300ms;
}
.qc-maker__piece[data-shape="arch"] .qc-maker__base { width: calc(var(--W) * 0.4); height: 22px; margin-top: -4px; opacity: 1; }

/* ---------- Kraft backing paper (PEEL) ---------- */

.qc-maker__paper { display: none; }
@media (prefers-reduced-motion: no-preference) {
.qc-js .qc-maker.is-intro .qc-maker__paper {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: block;
	border-radius: inherit;
	overflow: hidden;
}
.qc-maker__paper::before {
	content: "";
	position: absolute;
	inset: 0;
	clip-path: var(--paper, none);
	background-color: var(--kraft);
	background-image: url("../img/kraft-print.png"), repeating-linear-gradient(97deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 7px);
	background-size: 176px, auto;
}
.qc-maker__flap {
	position: absolute;
	inset: 0;
	clip-path: var(--flap, polygon(0 0, 0 0, 0 0));
	background: linear-gradient(135deg, #ead9cf 0%, #cdb0a1 55%, #a88474 100%);
	filter: drop-shadow(-8px -6px 10px rgba(0, 0, 0, 0.35));
}

/* ---------- Entrance: hidden from first paint, then choreographed by maker.js ---------- */

.qc-js .qc-maker.is-intro .qc-maker__piece,
.qc-js .qc-maker.is-intro .qc-maker__text,
.qc-js .qc-maker.is-intro .qc-maker__photos,
.qc-js .qc-maker.is-intro .qc-maker__h1,
.qc-js .qc-maker.is-intro .qc-maker__controls > *,
.qc-js .qc-maker.is-intro .qc-maker__sheet .qc-bolts i {
	opacity: 0;
	/* If the script never arrives, everything simply appears. */
	animation: qc-show 1ms linear 4s forwards;
}
.qc-js .qc-maker.is-intro:not(.is-driven) .qc-maker__paper { animation: qc-hide 1ms linear 4s forwards; }
.qc-js .qc-maker.is-driven .qc-maker__piece,
.qc-js .qc-maker.is-driven .qc-maker__text,
.qc-js .qc-maker.is-driven .qc-maker__photos,
.qc-js .qc-maker.is-driven .qc-maker__h1,
.qc-js .qc-maker.is-driven .qc-maker__controls > *,
.qc-js .qc-maker.is-driven .qc-maker__sheet .qc-bolts i { animation: none; }
}
@keyframes qc-show { to { opacity: 1; } }
@keyframes qc-hide { to { visibility: hidden; } }

.qc-motion .qc-maker .qc-maker__piece.is-mounting { animation: qc-mount 900ms var(--ease-mount) both; }
.qc-motion .qc-maker.is-driven .is-rising,
.qc-motion .qc-maker .is-rising { animation: qc-rise 700ms var(--ease-out) var(--d, 0ms) both; }
@keyframes qc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Controls: a machine's control strip ---------- */

.qc-maker__controls {
	grid-column: 1 / 3;
	grid-row: 3;
	/* Groups keep their natural width and wrap to a new line rather than overlap when space is short. */
	display: flex;
	flex-wrap: wrap;
	padding-right: calc(var(--gapw) * 0.5);
	gap: 1.25rem clamp(0.75rem, 1.6vw, 1.5rem);
	align-items: flex-end;
}
.qc-maker__controls .qc-micro { margin-bottom: 0.55rem; }
.qc-maker__field { flex: 1 1 170px; min-width: 170px; }
.qc-maker__controls > .qc-maker__shapes,
.qc-maker__controls > .qc-maker__finish { flex: none; min-width: max-content; }
.qc-maker__controls > .qc-maker__actions,
.qc-maker__controls > .qc-maker__note { flex: 1 1 100%; }
.qc-maker__input {
	width: 100%;
	height: 56px;
	padding: 0 1rem;
	border: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); /* 3.5:1 boundary (WCAG 1.4.11) */
	color: var(--white);
	font: 400 clamp(1.1rem, 0.55rem + 0.75vw, 1.35rem)/1 var(--f-display);
	caret-color: var(--edge);
	transition: box-shadow var(--t-fast), background-color var(--t-fast);
}
.qc-maker__input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.qc-maker__input:focus { outline: none; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px var(--edge), 0 0 0 4px rgba(235, 202, 180, 0.18); }
.qc-maker__input::selection { background: var(--edge); color: var(--ink); }

.qc-maker__shapes,
.qc-maker__finish { margin: 0; padding: 0; border: 0; min-width: 0; }
.qc-maker__shapes legend,
.qc-maker__finish legend { padding: 0; }
.qc-maker__options { display: flex; gap: 0.35rem; }

.qc-shape { position: relative; display: block; cursor: pointer; }
.qc-shape input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qc-shape__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 56px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); /* 3.5:1 boundary (WCAG 1.4.11) */
	color: var(--mist);
	transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-mount);
}
.qc-shape:hover .qc-shape__icon { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.qc-shape input:checked + .qc-shape__icon { background: var(--white); color: var(--ink); box-shadow: none; transform: translateY(-2px); }
.qc-shape input:focus-visible + .qc-shape__icon { outline: 2px solid var(--edge); outline-offset: 3px; }
.qc-shape__label {
	position: absolute;
	left: 50%;
	top: calc(100% + 0.35rem);
	transform: translateX(-50%);
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--mist);
	white-space: nowrap;
}
.qc-shape input:checked ~ .qc-shape__label { color: var(--white); }

.qc-toggle { display: inline-flex; padding: 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); /* 3.5:1 boundary (WCAG 1.4.11) */ }
.qc-toggle label { position: relative; cursor: pointer; }
.qc-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qc-toggle span {
	display: grid;
	place-items: center;
	min-width: 64px;
	height: 50px;
	padding: 0 0.85rem;
	border-radius: 2px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--mist);
	transition: background-color var(--t-fast), color var(--t-fast);
}
.qc-toggle input:checked + span { background: rgba(255, 255, 255, 0.16); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.qc-toggle input:focus-visible + span { outline: 2px solid var(--edge); outline-offset: 2px; }

.qc-maker__actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 0.5rem;
}
.qc-maker__note {
	grid-column: 1 / -1;
	max-width: 62ch;
	font-size: 0.85rem;
	color: var(--mist);
}

/* ---------- Below 1100px: the piece first, the photograph as a reference card ---------- */

@media (max-width: 1100px) {
	.qc-maker { min-height: 0; padding-bottom: 3rem; }
	.qc-maker__grid {
		--W: min(86vw, 620px);
		--card: clamp(112px, 20vw, 190px);
		display: flex;
		flex-direction: column;
		min-height: 0;
		row-gap: 0;
	}
	.qc-maker__h1 { max-width: 36ch; }
	.qc-maker__bench { display: flex; flex-direction: column; }
	.qc-maker__stage {
		order: 1;
		justify-content: center;
		align-self: center;
		width: var(--W);
		min-height: calc(var(--W) * 0.6);
		margin-top: 1rem;
	}
	/* Reference card: a small mounted photograph with its caption beside it. */
	.qc-maker__photos {
		order: 2;
		width: 100%;
		height: calc(var(--card) * 1.127);
		min-height: 0;
		margin-top: 1.5rem;
		padding-top: 1.25rem;
		border-top: 1px solid var(--ink-line);
		box-sizing: content-box;
	}
	.qc-maker__photo { inset: 1.25rem auto 0 0; width: 100%; }
	.qc-maker__photo-frame { inset: 0 auto 0 0; width: var(--card); border-radius: 2px; box-shadow: 10px 16px 30px -14px rgba(0, 0, 0, 0.6); }
	.qc-maker__photo .qc-note { left: calc(var(--card) + 1rem); right: 0; top: 50%; bottom: auto; transform: translateY(-50%); white-space: normal; }
	.qc-maker__photo .qc-note a { display: inline-block; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font: 400 clamp(1.15rem, 1rem + 1vw, 1.5rem)/1.2 var(--f-display); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
	.qc-maker__ref { display: none; }
	.qc-maker__photo .qc-note { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
	.qc-maker__photo .qc-note::before { content: attr(data-ref); font: 600 0.75rem/1 var(--f-text); letter-spacing: 0.02em; color: var(--mist); }
	/* Tall shapes are shorter here, so the stage reserves a modest height. */
	.qc-maker__piece[data-shape="panel"] .qc-maker__sheet { --h: calc(var(--W) * 0.6); }
	.qc-maker__piece[data-shape="round"] .qc-maker__sheet { --w: calc(var(--W) * 0.58); }
	.qc-maker__piece[data-shape="arch"] .qc-maker__sheet { --h: calc(var(--W) * 0.54); }
	.qc-maker__controls { margin-top: 1.75rem; gap: 1.5rem 1rem; justify-content: space-between; }
	.qc-maker__field { flex-basis: 100%; }
	.qc-maker__actions { margin-top: 0.75rem; }
}
@media (max-width: 560px) {
	.qc-maker__controls > .qc-maker__shapes,
	.qc-maker__controls > .qc-maker__finish { flex: 1 1 100%; min-width: 0; }
	.qc-maker__options { justify-content: space-between; }
	.qc-shape__icon { width: calc((100vw - var(--gutter) * 2 - 1.4rem) / 5); max-width: 64px; }
	.qc-maker__finish .qc-toggle { display: flex; }
	.qc-maker__finish .qc-toggle label { flex: 1; }
	.qc-maker__actions { margin-top: 1.25rem; }
	.qc-maker__actions .qc-btn { width: 100%; }
}
@media (max-width: 1100px) {
	.qc-maker__controls { padding-right: 0; }
}
/* Tablets in landscape: the reference card sits beside the piece, so the controls stay in view. */
@media (min-width: 901px) and (max-width: 1100px) {
	.qc-maker__grid { --W: min(60vw, 600px); }
	.qc-maker__bench { flex-direction: row; align-items: center; gap: 2.5rem; margin-top: 1rem; }
	.qc-maker__stage { margin-top: 0; flex: none; }
	.qc-maker__photos { flex: 1; margin-top: 0; padding-top: 0; border-top: 0; }
	.qc-maker__photo { inset: 0 auto 0 0; }
	.qc-maker__photo .qc-note { left: 0; top: calc(var(--card) * 1.127 + 0.75rem); transform: none; }
	.qc-maker__photos { height: calc(var(--card) * 1.127 + 4rem); }
}
@media (min-width: 901px) and (max-width: 1100px) {
	.qc-maker__grid { --W: min(54vw, 560px); }
	.qc-maker__photo-frame { bottom: auto; height: calc(var(--card) * 1.127); }
}

/* The box's depth comes from its top and side walls; the flat sheet's offset edge would read as a stray fourth outline. */
.qc-maker__piece[data-shape="box"] .qc-maker__sheet::after { opacity: 0; }

/* Narrower desktops: slightly tighter controls so words, shape and finish stay on one line. */
@media (min-width: 1101px) and (max-width: 1400px) {
	.qc-maker__field { flex-basis: 140px; min-width: 140px; }
	.qc-maker__options { gap: 0.25rem; }
	.qc-shape__icon { width: 42px; }
	.qc-toggle span { min-width: 56px; padding: 0 0.7rem; }
}
