/* ==========================================================================
   Studio Variant — Contact page layer (.ct-*)
   Built on sv.css tokens and the shared page chrome in scanning.css.
   ========================================================================== */

.ct-hero {
	position: relative;
	overflow: hidden;
	padding: var(--sv-10) 0 var(--sv-9);
	background: radial-gradient(110% 80% at 14% 10%, rgba(140, 155, 163, 0.08) 0%, transparent 60%),
		radial-gradient(90% 70% at 92% 86%, rgba(195, 160, 106, 0.05) 0%, transparent 62%),
		var(--sv-bg);
}
.ct-hero-inner {
	position: relative;
	display: grid;
	gap: clamp(var(--sv-7), 5vw, var(--sv-9));
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: start;
}
.ct-intro {
	max-width: 48ch;
}
.ct-hero h1 {
	margin: var(--sv-5) 0 0;
	font-family: var(--sv-font-display);
	font-size: var(--sv-display-l);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--sv-text);
}
.ct-hero h1 span {
	display: block;
}
.ct-lede {
	margin: var(--sv-5) 0 0;
	color: var(--sv-text-secondary);
}

/* The alternative path: quiet, boxed, below the copy */
.ct-alt {
	margin-top: var(--sv-7);
	padding: var(--sv-5);
	border: 1px solid var(--sv-border);
	border-radius: var(--sv-radius-md);
	background-color: var(--sv-surface);
	background-image: var(--sv-texture-carbon);
	display: flex;
	flex-direction: column;
	gap: var(--sv-3);
	align-items: flex-start;
}
.ct-alt .sv-body-s {
	margin: 0;
	color: var(--sv-text-secondary);
}

/* Form */
.ct-form[hidden],
.ct-done[hidden],
.ct-form .sv-error-text[hidden] {
	display: none;
}
.ct-form,
.ct-done {
	padding: clamp(var(--sv-5), 3vw, var(--sv-7));
	border: 1px solid var(--sv-border);
	border-radius: var(--sv-radius-md);
	background: var(--sv-bg-sunken);
}
.ct-form .sv-label {
	margin-bottom: var(--sv-4);
}
.ct-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sv-4);
}
.ct-grid .sv-field {
	margin: 0;
}
.ct-grid .is-wide {
	grid-column: 1 / -1;
}
.ct-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ct-form .sv-error-text {
	margin-top: var(--sv-4);
}
.ct-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sv-3);
	margin-top: var(--sv-5);
}
.ct-actions.is-done {
	justify-content: flex-start;
}
.ct-status {
	margin: 0;
	font-family: var(--sv-font-mono);
	font-size: var(--sv-micro);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sv-text-muted);
}
.ct-status:empty {
	display: none;
}
.ct-status.is-error {
	color: var(--sv-error);
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--sv-font-body);
	font-size: var(--sv-body-s);
}

/* Confirmation */
.ct-done {
	display: flex;
	flex-direction: column;
	gap: var(--sv-3);
}
.ct-done h2 {
	margin: 0;
	font-family: var(--sv-font-display);
	font-size: var(--sv-h2);
	font-weight: 500;
	color: var(--sv-text);
}
.ct-done .sv-body {
	margin: 0;
	color: var(--sv-text-secondary);
}
.ct-ref {
	margin: 0;
	font-family: var(--sv-font-mono);
	font-size: var(--sv-label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sv-text-muted);
}
.ct-ref b {
	color: var(--sv-titanium);
	font-weight: 500;
}
.ct-done .ct-actions {
	margin-top: var(--sv-3);
}

@media (max-width: 900px) {
	.ct-hero {
		padding: var(--sv-8) 0 var(--sv-8);
	}
	.ct-hero-inner {
		grid-template-columns: 1fr;
	}
	.ct-intro {
		max-width: none;
	}
}
@media (max-width: 600px) {
	.ct-grid {
		grid-template-columns: 1fr;
	}
	.ct-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.ct-actions.is-done {
		flex-direction: column;
	}
	.ct-actions .sv-btn {
		width: 100%;
	}
}

.ct-context {
	margin: 0 0 var(--sv-3);
	padding: var(--sv-3) var(--sv-4);
	border-left: 2px solid var(--sv-titanium);
	background: rgba(185, 192, 196, 0.06);
	font-size: var(--sv-body-s);
	color: var(--sv-text-muted);
}
.ct-context[hidden] {
	display: none;
}

/* ---- Public preview: intro copy and the Instagram connection ---- */

.ct-preview-intro .ct-lede {
	margin-top: var(--sv-4);
}
.ct-preview-intro .sv-body {
	margin: var(--sv-4) 0 0;
	color: var(--sv-text-secondary);
}
.ct-kicker {
	margin: var(--sv-6) 0 0;
	font-family: var(--sv-font-mono);
	font-size: var(--sv-label);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sv-titanium);
}

.ct-connect {
	position: relative;
	padding: clamp(var(--sv-5), 3vw, var(--sv-7));
	border: 1px solid var(--sv-border);
	border-radius: var(--sv-radius-md);
	background-color: var(--sv-bg-sunken);
	background-image: var(--sv-texture-carbon);
	overflow: hidden;
}
/* Accent hairline, as on the gateway cards */
.ct-connect::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, var(--sv-titanium), transparent 70%);
}
.ct-connect .sv-label {
	margin: 0 0 var(--sv-3);
}
.ct-connect h2 {
	margin: 0;
	font-family: var(--sv-font-display);
	font-size: var(--sv-h2);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--sv-text);
}
.ct-handle {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--sv-3);
	margin: var(--sv-3) 0 0;
	font-family: var(--sv-font-mono);
}
.ct-handle span {
	font-size: var(--sv-micro);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sv-text-muted);
}
.ct-handle a {
	font-size: var(--sv-body);
	letter-spacing: 0.04em;
	color: var(--sv-titanium-bright);
	text-decoration: none;
	border-bottom: 1px solid var(--sv-titanium-line);
	transition: color var(--sv-base), border-color var(--sv-base);
}
.ct-handle a:hover,
.ct-handle a:focus-visible {
	color: var(--sv-text);
	border-color: currentColor;
}
.ct-connect-lede {
	margin: var(--sv-4) 0 0;
	color: var(--sv-text-secondary);
}
.ct-qr-row {
	display: flex;
	align-items: center;
	gap: clamp(var(--sv-5), 3vw, var(--sv-7));
	margin-top: var(--sv-6);
	padding-top: var(--sv-6);
	border-top: 1px solid var(--sv-border-hairline);
}
/* The QR sits on its own white tile: the image carries a four-module quiet
   zone and the tile adds more, so nothing of the site's dark surface or
   texture touches the pattern. Proportions are fixed by the square image. */
.ct-qr {
	flex: none;
	display: block;
	width: clamp(168px, 18vw, 220px);
	padding: 10px;
	border-radius: var(--sv-radius-sm);
	background: #fff;
	box-shadow: 0 0 0 1px var(--sv-border-strong);
	transition: box-shadow var(--sv-base);
}
.ct-qr:hover,
.ct-qr:focus-visible {
	box-shadow: 0 0 0 1px var(--sv-titanium);
}
.ct-qr img {
	display: block;
	width: 100%;
	height: auto;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}
.ct-qr-side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sv-4);
	min-width: 0;
}
.ct-qr-hint {
	margin: 0;
	color: var(--sv-text-muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ct-ig-btn span {
	margin-left: 0.4em;
}
.ct-connect-note {
	margin: var(--sv-6) 0 0;
	padding-left: var(--sv-4);
	border-left: 2px solid var(--sv-brass-line);
	font-size: var(--sv-body-s);
	font-style: italic;
	color: var(--sv-text-muted);
}

/* Phones: the link comes first, because scanning a code shown on the same
   device is awkward. The QR stays available below, smaller. */
@media (max-width: 600px) {
	.ct-qr-row {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.ct-qr-side {
		align-items: stretch;
	}
	.ct-ig-btn {
		width: 100%;
	}
	.ct-qr {
		width: 160px;
		margin: 0 auto;
	}
	.ct-qr-hint {
		text-align: center;
	}
}
