/* Specimen 03 — shared by the live concept (index.html) and the case study
   (project.html). One dark plate, one mono voice, no rounded corners: the
   showcase is a laboratory plate, not a marketing page. */

:root {
	--ink: #e8e6e2;
	--dim: #8a8681;
	--ground: #0b0b0c;
	--rule: rgba(232, 230, 226, 0.16);
	--rule-strong: rgba(232, 230, 226, 0.45);
	--mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--mono);
	font-size: 13px;
	line-height: 1.8;
}

a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}

a:hover {
	border-bottom-color: var(--rule-strong);
}

/* — the plate ——————————————————————————————————————————————————— */

body.plate {
	overflow: hidden;
}

#stage {
	position: fixed;
	inset: 0;
	cursor: grab;
}

#stage.is-dragging {
	cursor: grabbing;
}

.hud {
	position: fixed;
	inset: 0;
	pointer-events: none;
	padding: clamp(16px, 3.2vw, 40px);
	display: grid;
	grid-template-rows: auto 1fr auto;
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.hud a,
.hud button {
	pointer-events: auto;
}

.row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
}

.row.bottom {
	align-items: flex-end;
}

.hud-nav {
	display: flex;
	gap: 18px;
	color: var(--dim);
}

.hud-nav a {
	border-bottom: 0;
}

.hud-nav a:hover {
	color: var(--ink);
}

.title {
	font-size: clamp(30px, 6.5vw, 74px);
	line-height: 0.92;
	letter-spacing: -0.02em;
	text-transform: none;
	font-weight: 400;
	margin: 0 0 18px;
}

.lede {
	max-width: 27ch;
	color: var(--dim);
	line-height: 1.75;
	text-transform: none;
	letter-spacing: 0.02em;
	margin: 0;
}

.index {
	font-size: clamp(38px, 8vw, 92px);
	line-height: 0.86;
	letter-spacing: -0.03em;
}

.specs {
	display: grid;
	gap: 4px;
	color: var(--dim);
	text-align: right;
}

.left {
	max-width: 40ch;
}

/* registration marks, like a printed plate */
.mark {
	position: fixed;
	width: 9px;
	height: 9px;
	border: 1px solid var(--rule);
}

.mark.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.mark.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.mark.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.mark.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.crosshair {
	position: fixed;
	left: 50%;
	top: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	opacity: 0.22;
}

.crosshair::before,
.crosshair::after {
	content: "";
	position: absolute;
	background: var(--ink);
}

.crosshair::before { left: 50%; top: 0; width: 1px; height: 100%; }
.crosshair::after { top: 50%; left: 0; height: 1px; width: 100%; }

/* — parameter panel ————————————————————————————————————————————— */

.ghost-button {
	appearance: none;
	background: transparent;
	border: 1px solid var(--rule);
	color: var(--ink);
	font: inherit;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 7px 11px;
	cursor: pointer;
}

.ghost-button:hover {
	border-color: var(--rule-strong);
}

#panel {
	position: fixed;
	top: clamp(16px, 3.2vw, 40px);
	right: clamp(16px, 3.2vw, 40px);
	width: 232px;
	padding: 14px;
	border: 1px solid var(--rule);
	background: rgba(11, 11, 12, 0.82);
	backdrop-filter: blur(6px);
	display: grid;
	gap: 10px;
	pointer-events: auto;
	font-size: 10px;
	letter-spacing: 0.08em;
}

#panel[hidden] {
	display: none;
}

#panel label {
	display: grid;
	gap: 5px;
	color: var(--dim);
	text-transform: uppercase;
}

#panel label span {
	display: flex;
	justify-content: space-between;
}

#panel input[type="range"] {
	appearance: none;
	width: 100%;
	height: 1px;
	background: var(--rule);
	outline: none;
}

#panel input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 9px;
	height: 9px;
	background: var(--ink);
	cursor: pointer;
}

#panel input[type="range"]::-moz-range-thumb {
	width: 9px;
	height: 9px;
	border: 0;
	background: var(--ink);
	cursor: pointer;
}

#fallback {
	position: fixed;
	inset: 0;
	display: none;
	place-items: center;
	text-align: center;
	padding: 24px;
	color: var(--dim);
}

/* — the case study ——————————————————————————————————————————————— */

.study {
	max-width: 960px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 72px) clamp(20px, 5vw, 56px) 96px;
}

.nav {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--rule);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.nav-links {
	display: flex;
	gap: 18px;
	color: var(--dim);
}

.nav-links a {
	border-bottom: 0;
}

.nav-links a:hover {
	color: var(--ink);
}

.study h1 {
	font-size: clamp(32px, 5.6vw, 60px);
	line-height: 1;
	letter-spacing: -0.02em;
	font-weight: 400;
	margin: clamp(40px, 7vw, 72px) 0 20px;
	max-width: 18ch;
}

.study .lede-block {
	max-width: 62ch;
	color: var(--dim);
	font-size: 14px;
}

.study section {
	margin-top: clamp(40px, 6vw, 64px);
}

.study h2 {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 400;
	color: var(--dim);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
}

.study p {
	max-width: 68ch;
	margin: 0 0 16px;
}

.plate-shot {
	display: block;
	width: 100%;
	margin: clamp(28px, 5vw, 48px) 0 0;
	border: 1px solid var(--rule);
}

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
	margin-top: clamp(28px, 5vw, 44px);
}

.facts div {
	background: var(--ground);
	padding: 16px 18px;
}

.facts dt {
	color: var(--dim);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.facts dd {
	margin: 0;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}

.cards article {
	background: var(--ground);
	padding: 22px 20px 24px;
}

.cards h3 {
	font-size: 13px;
	font-weight: 400;
	margin: 0 0 10px;
}

.cards p {
	color: var(--dim);
	margin: 0;
}

.study ul {
	max-width: 68ch;
	margin: 0;
	padding-left: 18px;
	color: var(--dim);
}

.study li {
	margin-bottom: 8px;
}

.study code {
	color: var(--ink);
	background: rgba(232, 230, 226, 0.07);
	padding: 1px 5px;
}

.study footer {
	margin-top: clamp(48px, 8vw, 88px);
	padding-top: 18px;
	border-top: 1px solid var(--rule);
	color: var(--dim);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

@media (max-width: 760px) {
	.lede,
	.specs {
		display: none;
	}

	#panel {
		top: auto;
		bottom: 74px;
		right: 16px;
		left: 16px;
		width: auto;
	}
}
