/* Design CTA + design studio page styles. Loaded on the homepage and /design/. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Design CTA
   -------------------------------------------------------------------------- */

.design-cta {
	position: relative;
	padding-block: clamp(64px, 6vw, 96px);
	border-block: 1px solid var(--line-soft);
	background:
		radial-gradient(58% 66% at 10% 16%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 62%),
		radial-gradient(46% 54% at 92% 88%, rgba(196, 177, 142, 0.26), rgba(196, 177, 142, 0) 68%),
		linear-gradient(180deg, #efe8da 0%, #f5efe4 46%, #ede5d5 100%);
	overflow: hidden;
}

.design-cta__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	max-width: 1180px;
	margin-inline: auto;
}

.design-cta__copy {
	padding: clamp(36px, 3.5vw, 52px);
	border: 1px solid rgba(74, 58, 32, 0.12);
	border-radius: 32px;
	background: rgba(255, 252, 246, 0.72);
	box-shadow:
		0 1px 2px rgba(72, 54, 24, 0.04),
		0 12px 32px rgba(72, 54, 24, 0.08),
		0 48px 96px rgba(72, 54, 24, 0.06);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.design-cta__copy .eyebrow {
	margin: 0 0 18px;
	font-family: "Inter", -apple-system, sans-serif;
	letter-spacing: 0.08em;
}

.design-cta__copy h2 {
	max-width: 12ch;
	margin: 0;
	font-family: "Inter", -apple-system, sans-serif;
	font-size: clamp(44px, 5.2vw, 72px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 0.98;
}

.design-cta__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin: 32px 0 36px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.design-cta__steps li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: var(--ink-soft);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.01em;
}

.design-cta__num {
	color: var(--gold-deep);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.design-cta__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.design-cta__note {
	max-width: 42ch;
	margin-top: 20px;
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: -0.005em;
}

.design-cta__media {
	width: 100%;
	max-width: 460px;
	margin-inline: auto;
}

.design-cta__gallery {
	position: relative;
}

.design-cta__track {
	position: relative;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--radius);
	outline: none;
}

.design-cta__track::-webkit-scrollbar {
	display: none;
}

.design-cta__track:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.design-cta__slide {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(74, 58, 32, 0.1);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: 0 30px 70px rgba(60, 45, 20, 0.13);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.design-cta__slide > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 32%;
}

.design-cta__gallery-top {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

.design-cta__gallery-dots {
	display: flex;
	align-items: center;
	gap: 0;
}

.design-cta__gallery-dot {
	position: relative;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.design-cta__gallery-dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	border-radius: 99px;
	background: var(--line);
	transform: translate(-50%, -50%);
	transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.design-cta__gallery-dot.is-active::before {
	width: 24px;
	background: var(--ink);
}

.design-cta__gallery-dot:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 1px;
}

.design-cta__gallery-nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

.design-cta__gallery-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.design-cta__gallery-btn:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--cream);
}

.design-cta__gallery-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.design-cta__gallery-btn:disabled:hover {
	border-color: var(--line);
	background: transparent;
	color: var(--ink);
}

.design-cta__gallery-btn .icon {
	width: 16px;
	height: 16px;
}

.design-cta__overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 18px 22px 20px;
	background: rgba(251, 247, 240, 0.64);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--ink);
	pointer-events: none;
}

.design-cta__prompt-label {
	display: inline-block;
	color: var(--ink);
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	opacity: 0.7;
	text-transform: uppercase;
}

.design-cta__overlay p {
	margin: 6px 0 8px;
	color: var(--ink);
	font-family: "Poppins", "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.4;
}

.design-cta__overlay .design-cta__status {
	color: var(--ink);
	opacity: 0.7;
}

.design-cta__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.design-cta__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gold);
}

/* --------------------------------------------------------------------------
   Design page
   -------------------------------------------------------------------------- */

.design-page {
	padding-block: clamp(24px, 2.5vw, 32px) clamp(96px, 10vw, 144px);
}

.design-page__crumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: clamp(20px, 2.2vw, 28px);
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.design-page__crumbs a {
	transition: color 0.25s var(--ease);
}

.design-page__crumbs a:hover {
	color: var(--gold-deep);
}

.design-page__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	column-gap: clamp(40px, 5vw, 64px);
	align-items: end;
	margin-bottom: clamp(48px, 5vw, 72px);
}

.design-page__head .eyebrow {
	grid-column: 1;
	grid-row: 1;
	font-family: "Inter", -apple-system, sans-serif;
	letter-spacing: 0.08em;
}

.design-page__head h1 {
	grid-column: 1;
	grid-row: 2;
	max-width: 13ch;
	margin: 14px 0 0;
	font-family: "Inter", -apple-system, sans-serif;
	font-size: clamp(48px, 5.5vw, 76px);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
}

.design-page__head .lede {
	grid-column: 2;
	grid-row: 2;
	align-self: end;
	max-width: 38ch;
	margin: 0 0 6px;
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: var(--ink-soft);
}

.studio {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.studio__form {
	padding: clamp(32px, 4.2vw, 56px);
	border: 1px solid rgba(74, 58, 32, 0.12);
	border-radius: 24px;
	background: var(--paper);
	box-shadow:
		0 1px 2px rgba(72, 54, 24, 0.03),
		0 8px 24px rgba(72, 54, 24, 0.04),
		0 32px 64px rgba(72, 54, 24, 0.03);
}

.studio__form-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.studio__form-head .eyebrow {
	font-family: "Inter", -apple-system, sans-serif;
	letter-spacing: 0.08em;
}

.studio__form-note {
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.005em;
	white-space: nowrap;
}

.studio__step {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 20px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line-soft);
}

.studio__step-num {
	color: var(--gold);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	padding-top: 2px;
}

.studio__step-body {
	min-width: 0;
}

.studio__step-label {
	display: block;
	margin-bottom: 12px;
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	opacity: 0.7;
}

.studio__hint {
	margin-top: 10px;
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.65;
	letter-spacing: -0.005em;
}

.studio__hint.is-error {
	color: #a4513f;
}

.studio__group {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 16px;
}

.studio__pets-custom {
	padding-top: 2px;
}

.studio__topper {
	padding: 18px 20px;
	border: 1px solid rgba(74, 58, 32, 0.14);
	border-radius: 12px;
	background: var(--cream);
	box-shadow: 0 1px 3px rgba(72, 54, 24, 0.04);
}

.studio__upload {
	margin-top: 20px;
	scroll-margin-top: 120px;
}

.studio__upload:target .studio__upload-drop {
	border-color: var(--gold);
	background: rgba(198, 168, 106, 0.08);
	box-shadow: 0 0 0 4px rgba(198, 168, 106, 0.14);
}

.studio__upload-drop {
	display: block;
	margin-top: 12px;
	padding: 20px 24px;
	border: 1.5px dashed rgba(74, 58, 32, 0.2);
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.studio__upload-drop:hover {
	border-color: var(--gold);
	background: rgba(247, 241, 231, 0.6);
}

.studio__upload-label {
	display: block;
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.studio__upload-note {
	display: block;
	margin-top: 5px;
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.005em;
}

.studio__upload-thumbs {
	display: flex;
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.studio__upload-thumbs li {
	position: relative;
	width: 72px;
	height: 72px;
}

.studio__upload-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid rgba(74, 58, 32, 0.12);
}

.studio__upload-thumbs button {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(74, 58, 32, 0.12);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(72, 54, 24, 0.12);
	transition: transform 0.2s var(--ease);
}

.studio__upload-thumbs button:hover {
	transform: scale(1.1);
}

.studio__upload-error {
	color: #a4513f;
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
}

.studio__turnstile {
	margin-top: 18px;
}

.studio__submit-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 28px;
}

.studio__submit {
	flex: 0 0 auto;
	min-width: 200px;
	padding: 14px 28px;
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.studio__submit:disabled {
	opacity: 0.5;
	cursor: progress;
}


.studio__status {
	flex: 1;
	min-width: 180px;
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.005em;
}

.studio__status.is-error {
	color: #a4513f;
}

.studio__validation {
	margin: 16px 0 0;
	padding: 12px 16px;
	border: 1px solid rgba(165, 81, 63, 0.24);
	border-radius: 8px;
	background: rgba(165, 81, 63, 0.05);
	color: #8a3d2e;
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.005em;
}

.studio__validation[hidden] {
	display: none;
}

.studio__form .field input.is-invalid,
.studio__form .field select.is-invalid,
.studio__form .field textarea.is-invalid {
	border-bottom-color: #a4513f;
}

.studio__form .field input.is-invalid:focus,
.studio__form .field select.is-invalid:focus,
.studio__form .field textarea.is-invalid:focus {
	border-bottom-color: #a4513f;
}

.studio__fallback {
	margin-top: 20px;
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.005em;
}

.studio__fallback a {
	color: var(--gold-deep);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s var(--ease);
}

.studio__fallback a:hover {
	color: var(--gold);
}

.studio__preview {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px);
	overflow: hidden;
	border: 1px solid rgba(74, 58, 32, 0.12);
	border-radius: 24px;
	background: var(--paper);
	box-shadow:
		0 1px 2px rgba(72, 54, 24, 0.03),
		0 8px 24px rgba(72, 54, 24, 0.04),
		0 32px 64px rgba(72, 54, 24, 0.03);
}

.studio__preview-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 24px;
	border-bottom: 1px solid var(--line-soft);
	background: rgba(251, 247, 240, 0.6);
}

.studio__preview-title {
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	opacity: 0.7;
}

.studio__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--gold-deep);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.studio__badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gold);
}

.studio__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--sand);
}

.studio__media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.7;
	transition: opacity 0.6s var(--ease);
}

.studio__media > img.is-loaded {
	opacity: 1;
}

/*
 * Finish preview. The server stores one transparent knockout of the black
 * concept; this layer paints the chosen acrylic colour through it. Switching
 * swatches only changes a CSS custom property — no request, no image work.
 */
.studio__media > .studio__wash {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--ts-color, #171717);
	pointer-events: none;
	-webkit-mask-image: var(--ts-mask);
	mask-image: var(--ts-mask);
	-webkit-mask-size: cover;
	mask-size: cover;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.studio__media > .studio__wash[hidden] {
	display: none;
}

/* Empty-state placeholder: simple, on-brand, and cheap to render. */
.studio__placeholder {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: clamp(32px, 6.5vw, 56px);
	text-align: center;
	background:
		radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 58%),
		linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}

.studio__placeholder[hidden] {
	display: none;
}

.studio__placeholder::before {
	content: "";
	position: absolute;
	top: 10%;
	left: 50%;
	width: min(66%, 300px);
	height: 68%;
	transform: translateX(-50%);
	border: 1px solid rgba(30, 29, 25, 0.06);
	border-radius: 999px 999px 16px 16px;
	background: rgba(255, 255, 255, 0.4);
	pointer-events: none;
}

.studio__placeholder > * {
	position: relative;
	z-index: 1;
}

.studio__placeholder-mark {
	width: clamp(130px, 40%, 200px);
	color: rgba(30, 29, 25, 0.48);
}

.studio__placeholder-mark svg {
	display: block;
	width: 100%;
	height: auto;
}

.studio__placeholder-title {
	margin: 0;
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: clamp(11.5px, 1.25vw, 13.5px);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.45;
}

.studio__placeholder-title::before {
	content: "";
	display: block;
	width: 32px;
	height: 1.5px;
	margin: 0 auto 16px;
	background: var(--gold);
}

.studio__placeholder-note {
	max-width: 28ch;
	margin: -10px 0 0;
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.65;
	letter-spacing: -0.005em;
}

/* Failure state: the retry button sits in the middle of the preview. */
.studio__failure {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: clamp(32px, 6.5vw, 56px);
	text-align: center;
	background: var(--paper);
}

.studio__failure[hidden] {
	display: none;
}

.studio__failure-title {
	margin: 0;
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.studio__failure-text {
	max-width: 34ch;
	margin: 0;
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.65;
	letter-spacing: -0.005em;
}

.studio__failure .btn {
	min-width: 160px;
	margin-top: 8px;
}

.studio__loading {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	background: rgba(251, 247, 240, 0.85);
	backdrop-filter: blur(4px);
}

.studio__spinner {
	width: 36px;
	height: 36px;
	border: 2px solid var(--line);
	border-top-color: var(--gold);
	border-radius: 50%;
	animation: studio-spin 0.8s linear infinite;
}

@keyframes studio-spin {
	to {
		transform: rotate(360deg);
	}
}

.studio__loading-text {
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: -0.005em;
	opacity: 0.7;
}

.studio__colors {
	padding: 16px 20px;
	border-top: 1px solid var(--line-soft);
	background: rgba(251, 247, 240, 0.4);
}

.studio__colors[hidden] {
	display: none;
}

.studio__finish {
	position: relative;
}

.studio__finish-label {
	display: block;
	margin-bottom: 8px;
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	opacity: 0.6;
}

.studio__finish-trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid rgba(74, 58, 32, 0.18);
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.005em;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.studio__finish-trigger:hover {
	border-color: rgba(74, 58, 32, 0.34);
}

.studio__finish-trigger:focus-visible,
.studio__finish-trigger[aria-expanded="true"] {
	outline: none;
	border-color: var(--gold-deep);
	box-shadow: 0 0 0 3px rgba(184, 141, 46, 0.14);
}

.studio__finish-name {
	flex: 1 1 auto;
	min-width: 0;
}

.studio__finish-current {
	flex: 0 0 auto;
	width: 34px;
	height: 20px;
	border-radius: 5px;
	background: var(--swatch, #171717);
	box-shadow: inset 0 0 0 1px rgba(30, 29, 25, 0.16);
}

.studio__finish-caret {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--muted);
	transition: transform 0.18s var(--ease);
}

.studio__finish-trigger[aria-expanded="true"] .studio__finish-caret {
	transform: rotate(180deg);
}

.studio__finish-list {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 20;
	max-height: min(320px, 46vh);
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	border: 1px solid rgba(74, 58, 32, 0.16);
	border-radius: 14px;
	background: var(--paper);
	box-shadow:
		0 2px 6px rgba(40, 28, 10, 0.06),
		0 18px 40px rgba(40, 28, 10, 0.16);
}

.studio__finish-list[hidden] {
	display: none;
}

.studio__finish-list::-webkit-scrollbar {
	width: 8px;
}

.studio__finish-list::-webkit-scrollbar-thumb {
	border: 2px solid var(--paper);
	border-radius: 99px;
	background: rgba(74, 58, 32, 0.2);
}

.studio__finish-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 9px;
	color: var(--ink);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.005em;
	cursor: pointer;
}

.studio__finish-option + .studio__finish-option {
	margin-top: 2px;
}

.studio__finish-option:hover,
.studio__finish-option:focus-visible,
.studio__finish-option.is-active {
	outline: none;
	background: rgba(184, 141, 46, 0.1);
}

.studio__finish-option[aria-selected="true"] {
	background: var(--sand);
}

.studio__finish-option[aria-selected="true"] .studio__finish-option-name {
	font-weight: 700;
}

.studio__finish-option-name {
	flex: 1 1 auto;
	min-width: 0;
}

.studio__finish-option-chip {
	flex: 0 0 auto;
	width: 34px;
	height: 20px;
	border-radius: 5px;
	background: var(--swatch, #171717);
	box-shadow: inset 0 0 0 1px rgba(30, 29, 25, 0.16);
}

.studio__preview-foot {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-top: 1px solid var(--line-soft);
}

.studio__preview-foot[hidden] {
	display: none;
}

.studio__variants {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.studio__variants p {
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.005em;
}

.studio__send {
	width: 100%;
}

.studio__note {
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: -0.005em;
}

.studio__error {
	color: #a4513f;
}

.studio__result-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

/* Compact the mission band now that the list lives on the story page. */
.values__inner {
	min-height: 0;
}

.values__media {
	min-height: 440px;
}

/* The photo no longer sets the band height; the copy does. */
.values__media > img {
	position: absolute;
	inset: 0;
}

.values__lede--second {
	margin-top: 12px;
}

.values__copy .link-arrow {
	margin-top: 20px;
	align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.design-page__head {
		display: block;
		max-width: 860px;
	}

	.design-page__head h1 {
		margin: 12px 0 20px;
	}

	.design-page__head .lede {
		max-width: 56ch;
		margin: 0;
	}

	.design-cta__inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.design-cta__media {
		max-width: 480px;
		margin-inline: auto;
	}

	.studio {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.studio__preview {
		position: static;
	}
}

@media (max-width: 720px) {
	.design-cta {
		padding-block: 48px;
	}

	.design-cta__copy {
		padding: clamp(28px, 7vw, 36px);
	}

	.design-cta__copy h2 {
		font-size: clamp(36px, 9.5vw, 52px);
	}

	.design-cta__steps {
		gap: 12px 24px;
		margin: 24px 0 28px;
	}

	.design-cta__overlay {
		padding: 16px 20px 18px;
	}

	.design-cta__overlay p {
		font-size: 14px;
	}

	.design-cta__gallery-top {
		margin-bottom: 10px;
	}

	.design-cta__gallery-nav {
		margin-top: 10px;
	}

	.design-page__head h1 {
		font-size: clamp(38px, 10vw, 54px);
	}

	.design-page__head .lede {
		font-size: 15px;
	}

	.studio__form {
		padding: clamp(24px, 6vw, 32px);
	}

	.studio__step {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 14px;
		padding: 24px 0;
	}

	.studio__step-num {
		font-size: 20px;
	}

	.studio__form-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.studio__form-note {
		white-space: normal;
	}

	.studio__colors {
		padding: 14px 16px;
	}

	.studio__preview-foot {
		padding: 20px;
	}
}

/* --------------------------------------------------------------------------
   Generate dialog — email once, Turnstile every generation
   -------------------------------------------------------------------------- */

.studio__step--generate .studio__submit-row {
	padding-top: 8px;
}

.studio__dialog {
	width: min(460px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: var(--paper);
	color: var(--ink);
	box-shadow:
		0 2px 6px rgba(40, 28, 10, 0.08),
		0 30px 80px rgba(40, 28, 10, 0.28);
}

.studio__dialog::backdrop {
	background: rgba(30, 29, 25, 0.5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.studio__dialog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 5vw, 32px);
}

.studio__dialog-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.studio__dialog-close:hover {
	background: rgba(30, 29, 25, 0.06);
	color: var(--ink);
}

.studio__dialog .eyebrow {
	margin: 0;
}

.studio__dialog h2 {
	margin: 0;
	padding-right: 24px;
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(22px, 4vw, 27px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.studio__dialog-note {
	margin: 0;
	color: var(--muted);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.005em;
}

.studio__identity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	padding: 12px 14px;
	border: 1px solid var(--line-soft);
	border-radius: 12px;
	background: rgba(251, 247, 240, 0.55);
	font-family: "Inter", -apple-system, sans-serif;
	font-size: 12.5px;
	line-height: 1.5;
}

.studio__identity strong {
	font-weight: 600;
}

.studio__dialog .studio__turnstile {
	width: 100%;
	min-height: 65px;
	margin-top: 0;
}

.studio__dialog .studio__validation {
	margin: 0;
}

.studio__dialog-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.studio__dialog-actions .btn {
	flex: 1 1 150px;
	justify-content: center;
}

body.studio-dialog-open {
	overflow: hidden;
}
