/* Studio design system. Each product line sets its palette and display face in
   lines/<line>/theme.css; everything here is built only from these tokens. */

@font-face {
    font-family: DM Sans;
    src: url('/static/dm-sans.woff2');
    font-weight: 100 900;
    font-display: swap
}

@font-face {
    font-family: Instrument Serif;
    src: url('/static/instrument-serif.woff2');
    font-display: swap
}

:root {
    --bg: #f4f2ee;
    --surface: #ffffff;
    --sunk: #ebe8e2;
    --stage: #e8e5df;
    --ink: #161513;
    --muted: #5f5c56;
    --faint: #8b877f;
    --line: #e2ded6;
    --line-strong: #cbc5ba;
    --accent: #161513;
    --accent-ink: #ffffff;
    --highlight: #7d6f5b;
    --camera: #151513;
    --camera-ink: #f4f2ee;
    --display: 'Instrument Serif', Georgia, serif;
    --display-weight: 400;
    --display-tracking: -0.015em;
    --sans: 'DM Sans', system-ui, -apple-system, Arial, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgb(20 18 15 / 4%), 0 12px 32px rgb(20 18 15 / 7%);
    --page: 1200px;
    --gutter: clamp(20px, 5vw, 56px)
}

*, *::before, *::after {box-sizing: border-box}
[hidden] {display: none !important}
html {scroll-behavior: smooth; -webkit-text-size-adjust: 100%}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility
}
button, input, textarea, select {font: inherit; color: inherit}
button, a {touch-action: manipulation; -webkit-tap-highlight-color: transparent}
button {cursor: pointer}
button:disabled {opacity: .5; cursor: default}
a {color: inherit; text-decoration: none}
p {margin: 0 0 16px}
img {width: 100%; display: block; object-fit: cover}
figure {margin: 0}
main:focus {outline: none}
:focus-visible {outline: 2px solid var(--highlight); outline-offset: 3px; border-radius: 4px}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    line-height: 1.05;
    margin: 0 0 16px;
    text-wrap: balance
}
h1 {font-size: clamp(40px, 6vw, 64px)}
h2 {font-size: clamp(30px, 4vw, 44px)}
h3 {font-size: 22px}
h1 em, h2 em {font-style: italic; color: var(--highlight)}

.eyebrow {
    display: block;
    margin: 0 0 14px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--highlight)
}
figcaption, .photo-note {font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 10px}
.notice {padding: 16px 18px; background: var(--sunk); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.6}
.mt {margin-top: 32px}
.skip {position: absolute; left: 10px; top: -100px; z-index: 50; background: var(--surface); padding: 14px; border-radius: var(--radius-sm)}
.skip:focus {top: 10px}

/* Buttons: one solid action per screen, quiet secondary actions, no ornaments. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .01em;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease
}
.button:hover:not(:disabled) {box-shadow: 0 6px 20px rgb(20 18 15 / 18%); transform: translateY(-1px)}
.button:active:not(:disabled) {transform: none; box-shadow: none}
.button.secondary {background: transparent; color: var(--ink); border-color: var(--line-strong)}
.button.secondary:hover:not(:disabled) {border-color: var(--ink); box-shadow: none}
.button.full {width: 100%}
.button.small {min-height: 42px; padding: 0 18px; font-size: 14px}
.text-button {border: 0; background: none; padding: 10px 0; min-height: 44px; font-size: 14px; text-align: left; color: inherit}
a.text-button {display: inline-flex; align-items: center}
.text-link {display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px}
.text-link span {display: none}

/* Header and footer: the frame of an established studio. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line)
}
.site-header-inner {height: 64px; max-width: var(--page); margin: auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px}
.wordmark {font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; letter-spacing: -.02em; line-height: 1; white-space: nowrap}
.wordmark small {font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-left: 8px; vertical-align: 3px}
.site-header nav {display: flex; align-items: center; gap: 22px; font-size: 14px}
.site-header nav .nav-link {display: none}
.site-header nav [data-action=studio] {display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px}
#studio-count {display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600}
.site-footer {margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface)}
.site-footer-inner {max-width: var(--page); margin: auto; padding: 48px var(--gutter) 32px; display: grid; gap: 32px; font-size: 14px; color: var(--muted)}
.site-footer .wordmark {color: var(--ink); display: block; margin-bottom: 12px}
.site-footer p {margin: 0; max-width: 34ch; line-height: 1.6}
.site-footer h2 {font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px}
.site-footer ul {list-style: none; padding: 0; margin: 0; display: grid; gap: 2px}
.site-footer .text-button {min-height: 34px; padding: 6px 0; font-size: 14px; color: var(--muted)}
.site-footer .text-button:hover {color: var(--ink)}
.site-footer .legal {grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px}

/* Homepage */
.home {max-width: var(--page); margin: auto; padding: 32px var(--gutter) 56px; display: grid; gap: 28px}
.home-copy h1 {font-size: clamp(46px, 11vw, 84px); line-height: .98; margin-bottom: 18px}
.home-copy p {font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 30ch; margin: 0}
.home-object {position: relative; border-radius: var(--radius); overflow: hidden; background: var(--stage)}
.home-object img:first-child {aspect-ratio: 4 / 5; height: auto}
.home-object .home-source {position: absolute; left: 18px; bottom: 54px; width: 26%; max-width: 128px; aspect-ratio: 1; height: auto; border-radius: 50%; border: 4px solid var(--surface); box-shadow: var(--shadow)}
.home-object .hero-model {position: absolute; inset: 0; width: 100%; height: 100%; background: var(--stage); opacity: 0; transition: opacity .6s ease; --poster-color: transparent}
.home-object .hero-model.ready {opacity: 1}
.home-object .home-source, .home-object figcaption {z-index: 1}
@media (prefers-reduced-motion: reduce) {.home-object .hero-model {transition: none}}
.home-object figcaption {position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 18px; font-size: 12px; color: var(--muted); background: linear-gradient(transparent, color-mix(in srgb, var(--stage) 92%, transparent) 45%)}
.home-action {display: grid; gap: 14px; justify-items: start}
.home-action .button {min-width: min(100%, 300px)}
.cta-note {font-size: 14px; color: var(--muted); margin: 0}
.home-price {display: flex; align-items: baseline; gap: 10px; margin: 4px 0 0}
.home-price strong {font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; color: var(--ink)}
.home-price span {font-size: 14px; color: var(--muted)}
.trust {list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted)}
.trust li {display: flex; gap: 10px; align-items: baseline}
.trust li::before {content: ''; flex: none; width: 14px; height: 8px; border-left: 2px solid var(--highlight); border-bottom: 2px solid var(--highlight); transform: translateY(-3px) rotate(-45deg)}

.home-section {max-width: var(--page); margin: auto; padding: 72px var(--gutter)}
.home-section + .home-section {border-top: 1px solid var(--line)}
.home-section > h2 {max-width: 18ch}
.home-section > p {font-size: 17px; max-width: 56ch; color: var(--muted); margin: 0 0 32px}
.steps {list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 36px; counter-reset: step}
.steps li {padding-top: 22px; border-top: 1px solid var(--line-strong)}
.steps li span {display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--highlight); margin-bottom: 18px}
.steps h3 {font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 0 0 8px}
.steps p {margin: 0; color: var(--muted)}
.craft {list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden}
.craft li {background: var(--surface); padding: 28px}
.craft h3 {font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 0 0 8px}
.craft p {margin: 0; color: var(--muted); font-size: 15px}
.promise {max-width: none; padding: 0 var(--gutter)}
.promise + .home-section {border-top: 0}
.promise-inner, .home-section.promise {background: var(--accent); color: var(--accent-ink)}
.home-section.promise {max-width: var(--page); margin: 24px auto; border-radius: var(--radius); padding: 64px var(--gutter); text-align: center}
.home-section.promise h2 {max-width: none; margin-bottom: 12px}
.home-section.promise p {color: color-mix(in srgb, var(--accent-ink) 72%, transparent); margin: 0 auto; max-width: 48ch}
.gift-steps {list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px}
.gift-steps li {padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px}
.gift-steps b {display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 6px}
.specs {list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--line-strong)}
.specs li {padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px}
.specs b {display: block; color: var(--ink); font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; margin-bottom: 4px}
.faq {border-bottom: 1px solid var(--line); max-width: 760px}
.faq summary {list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 500}
.faq summary::-webkit-details-marker {display: none}
.faq summary span {flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 16px; transition: transform .2s ease}
.faq[open] summary span {transform: rotate(45deg)}
.faq p {margin: 0 0 22px; color: var(--muted); max-width: 62ch}
.closing {text-align: center}
.closing h2 {margin-inline: auto}
.closing .button {min-width: min(100%, 300px)}
.closing .cta-note {margin: 14px auto 0}

/* Craft page */
.craft-page h1 {font-size: clamp(42px, 8vw, 76px); max-width: 15ch; margin: 0 0 22px}
.craft-page .lede {font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 52ch; margin: 0 0 48px}
.craftway {list-style: none; padding: 0; margin: 0; display: grid; gap: 40px}
.craftway li {padding-top: 22px; border-top: 1px solid var(--line-strong)}
.craftway span {display: block; font-family: var(--display); font-size: 36px; line-height: 1; color: var(--highlight); margin-bottom: 14px}
.craftway h2 {font-size: clamp(26px, 3vw, 32px); margin: 0 0 10px}
.craftway p {margin: 0; color: var(--muted); max-width: 52ch}

/* Studio flow: photos, design, proposal, checkout, order */
.flow {max-width: var(--page); margin: auto; padding: 28px var(--gutter) 56px}
.flow-steps {list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 auto 36px; max-width: 560px; font-size: 13px; color: var(--faint)}
.flow-steps li {flex: 1; display: grid; gap: 8px; align-content: start}
.flow-steps li::before {content: ''; height: 3px; border-radius: 3px; background: var(--line)}
.flow-steps li.done::before, .flow-steps [aria-current]::before {background: var(--accent)}
.flow-steps [aria-current] {color: var(--ink); font-weight: 600}
.flow-steps .done {color: var(--muted)}
.flow-heading {margin: 0 0 24px; max-width: 640px}
.flow-heading h1 {font-size: clamp(34px, 5vw, 48px); margin: 0 0 10px}
.flow-heading p {font-size: 16px; color: var(--muted); margin: 0}
.flow-top {display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; color: var(--muted)}
.flow-top .back {background: none; border: 0; padding: 0; font-size: 14px; color: var(--ink)}
.flow-actions {margin: 16px 0}

/* Form fields */
label {display: block; font-size: 14px; font-weight: 500; line-height: 1.5}
input:not([type=checkbox]), textarea, select {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 8px 0 20px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 16px;
    font-weight: 400;
    transition: border-color .15s ease, box-shadow .15s ease
}
input:not([type=checkbox]):focus, textarea:focus, select:focus {outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--highlight) 18%, transparent)}
textarea {min-height: 110px; resize: vertical}
input[type=checkbox] {flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent)}
.consent {display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; font-size: 14px; font-weight: 400; color: var(--muted)}
.field-note {margin: -12px 0 24px; font-size: 13px}
.form-section {font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 32px 0 14px}
fieldset {border: 0; margin: 24px 0; padding: 0}
legend {font-size: 14px; font-weight: 500; margin-bottom: 12px}
input.file-input {position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; border: 0; padding: 0; clip-path: inset(50%); overflow: hidden}

/* Design screen */
.design-form {max-width: 560px; margin: auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow)}
.design-form .flow-heading h1 {font-size: clamp(30px, 4vw, 40px)}
.photo-strip {display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px}
.photo-strip > button {width: 56px; height: 70px; padding: 0; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--muted); font-size: 20px}
.photo-strip > button:has(img) {border-style: solid}
.photo-strip img {width: 100%; height: 100%; object-fit: cover}
.photo-strip > span {margin-left: 10px; font-size: 14px; font-weight: 500}
.photo-strip > span > span {display: block; font-size: 13px; font-weight: 400; color: var(--muted)}
.name-field {margin: 24px 0 0}
.name-field input {font-size: 18px}
.choices {display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px}
.choice {min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 14px; transition: border-color .15s ease, background-color .15s ease}
.choice:hover {border-color: var(--ink)}
.choice.selected {background: var(--accent); border-color: var(--accent); color: var(--accent-ink)}
.style-cards {display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px}
.style-cards .choice {display: grid; gap: 10px; padding: 8px 8px 12px; border-radius: var(--radius); text-align: center; font-weight: 500}
.style-cards .choice.selected {background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink)}
.style-cards img {aspect-ratio: 1; height: auto; border-radius: var(--radius-sm)}
.design-options {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; padding: 18px 0; border-block: 1px solid var(--line)}
.design-options:has(> label:nth-child(4)) {grid-template-columns: repeat(2, minmax(0, 1fr))}
.design-options label {font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted)}
.design-options select {margin-bottom: 0; text-transform: none; letter-spacing: 0}
.fixed-option {display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink)}
.design-form > .button {width: 100%; margin-top: 8px}
.form-note {display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted)}
.form-note .text-button {font-size: 13px; text-decoration: underline; text-underline-offset: 4px}

/* Proposal, order and studio */
.preview-layout {display: grid; gap: 32px; align-items: start}
.preview-image {position: relative; border-radius: var(--radius); overflow: hidden; background: var(--stage)}
.preview-image > img {aspect-ratio: 1; height: auto}
.preview-image model-viewer {display: block; width: 100%; aspect-ratio: 1; height: auto; background: radial-gradient(circle at 50% 40%, var(--surface), var(--stage) 75%)}
.preview-image .model-reference {position: absolute; right: 14px; bottom: 14px; width: 24%; max-width: 120px; margin: 0; pointer-events: none}
.preview-image .model-reference img {aspect-ratio: 1; height: auto; border-radius: var(--radius-sm); border: 3px solid var(--surface); box-shadow: var(--shadow)}
.model-reference figcaption {margin-top: 4px; font-size: 11px; text-align: center}
.waiting-art {aspect-ratio: 1; display: grid; place-content: center; gap: 20px; text-align: center; font-size: 15px; color: var(--muted)}
.waiting-art .wordmark {font-size: 56px; color: var(--ink)}
.preview-copy .flow-heading h1 {font-size: clamp(34px, 5vw, 52px)}
.preview-copy > .button {width: 100%}
.preview-copy > p {color: var(--muted)}
.design-spec {display: flex; flex-wrap: wrap; gap: 4px 0; margin: 4px 0 20px; font-size: 14px; color: var(--muted)}
.design-spec span + span::before {content: '·'; margin: 0 10px; color: var(--faint)}
.order-line {display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px}
.order-line strong {font-family: var(--display); font-weight: var(--display-weight); font-size: 40px; line-height: 1}
.order-line span {color: var(--muted); font-size: 14px}
.decision-note {font-size: 14px; color: var(--muted); margin: 14px 0 0}
.proposal-actions {display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 18px 0 8px}
.proposal-actions .text-button {text-decoration: underline; text-underline-offset: 4px}
.proposal-actions .text-button span, .preview-copy .button span, .button > span:last-child:empty {display: none}
.review-details {border-top: 1px solid var(--line); margin: 16px 0}
.review-details summary {display: flex; justify-content: space-between; align-items: center; min-height: 52px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500}
.review-details summary::-webkit-details-marker {display: none}
.review-details p {font-size: 14px; color: var(--muted)}
.progress-status {display: flex; align-items: center; gap: 12px; font-weight: 500}
.spinner {display: block; width: 22px; height: 22px; margin: auto; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite}
.progress-status .spinner {width: 18px; height: 18px; margin: 0}
@keyframes spin {to {transform: rotate(360deg)}}
.studio-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 8px 0 40px}
/* A project card is one target: the art, name and state open it. */
.project-card {position: relative}
.project-open {display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: var(--radius)}
.project-art {position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--stage); box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease}
.project-art img, .project-art .state-tile {aspect-ratio: 1; height: auto}
.project-open:hover .project-art, .project-open:focus-visible .project-art {transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow)}
.project-name {margin-top: 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; line-height: 1.15; overflow-wrap: anywhere}
.project-status {font-size: 14px; color: var(--muted)}
.project-badge {position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600}
.state-tile {display: grid; place-content: center; gap: 14px; padding: 16px; font-size: 14px; color: var(--muted); text-align: center}
.project-delete {position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); font-size: 20px; line-height: 1; box-shadow: 0 1px 4px rgb(20 18 15 / 12%); opacity: .85; transition: opacity .15s ease, color .15s ease}
.project-delete:hover {opacity: 1; color: var(--ink)}
@media (hover: hover) {.project-delete {opacity: 0} .project-card:hover .project-delete, .project-delete:focus-visible {opacity: .9}}
/* Starting another sculpture is the next tile in the grid, not a button under it. */
.project-new {display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 1; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; transition: border-color .15s ease, color .15s ease, background-color .15s ease}
.project-new span {display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 26px; font-weight: 300; line-height: 1}
.project-new:hover {border-color: var(--ink); color: var(--ink); background: var(--surface)}
.studio-subhead {font-size: clamp(28px, 3vw, 36px); margin: 16px 0 16px; padding-top: 32px; border-top: 1px solid var(--line)}
a.order-card {display: grid; gap: 4px; align-content: start; color: inherit}
a.order-card:hover .project-art, a.order-card:focus-visible .project-art {transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow)}
/* Five steps from payment to shipping: the bar fills as the sculpture travels to the customer. */
.order-track {display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px}
.order-track span {height: 5px; border-radius: 5px; background: var(--line)}
.order-track span.done {background: var(--highlight)}
.order-track span.next {background: linear-gradient(90deg, var(--highlight) 0 35%, var(--line) 35%)}
.order-step {font-size: 13px; color: var(--muted)}

/* Checkout: the form beside a fixed summary of what is bought. */
.checkout {display: grid; gap: 32px; align-items: start}
.checkout-summary {padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow)}
.checkout-summary .preview-image {margin-bottom: 18px}
.checkout-summary h2 {font-size: 26px; margin: 0 0 4px}
.checkout-summary .design-spec {margin-bottom: 16px}
.order-price {display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px}
.order-price.total {font-weight: 600; font-size: 17px; border-top-color: var(--line-strong)}
.checkout-trust {list-style: none; padding: 16px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; color: var(--muted)}
.checkout-trust li {display: flex; gap: 10px; align-items: baseline}
.checkout-trust li::before {content: ''; flex: none; width: 12px; height: 7px; border-left: 2px solid var(--highlight); border-bottom: 2px solid var(--highlight); transform: translateY(-3px) rotate(-45deg)}
.gift-toggle {padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink)}
.gift-toggle b {display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px}
.gift-toggle span {color: var(--muted); font-size: 14px}
.voucher-entry {margin: 4px 0 20px; font-size: 14px}
.voucher-entry summary {cursor: pointer; padding: 8px 0; font-weight: 500; text-decoration: underline; text-underline-offset: 4px}
#checkout-error, [role=alert] {color: #a8321e; font-size: 14px}
.order-policies {margin-top: 48px; max-width: 760px}
.order-policies h2 {font-size: 28px}
.order-policies details {border-bottom: 1px solid var(--line)}
.order-policies summary {padding: 16px 0; cursor: pointer; font-weight: 500}
.order-policies details p {font-size: 14px; color: var(--muted)}
.order-steps {max-width: 680px}

/* Dialogs and messages */
dialog {border: 0; border-radius: var(--radius); padding: 44px 28px 28px; background: var(--surface); color: var(--ink); max-width: 580px; width: calc(100% - 32px); max-height: 85vh; box-shadow: 0 24px 80px rgb(20 18 15 / 30%)}
dialog::backdrop {background: rgb(20 18 15 / 45%); backdrop-filter: blur(3px)}
dialog details {border-bottom: 1px solid var(--line)}
dialog summary {padding: 14px 0; cursor: pointer; font-weight: 500}
dialog details p {font-size: 14px; color: var(--muted)}
.dialog-close {position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sunk); font-size: 22px; line-height: 1}
#toast {position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 560px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-size: 14px; z-index: 30; box-shadow: 0 12px 40px rgb(20 18 15 / 30%)}

/* Gift card, printable */
.gift-card {text-align: center; padding: 8px 4px 20px}
.gift-card .eyebrow {margin: 0}
.gift-card h2 {font-size: 42px; margin: 6px 0 18px}
.gift-card img {width: min(100%, 300px); aspect-ratio: 1; height: auto; margin: 0 auto 18px; border-radius: var(--radius-sm)}
.gift-card blockquote {margin: 0 auto 14px; max-width: 34ch; font-family: var(--display); font-size: 22px; line-height: 1.3; white-space: pre-line}
.gift-card p {margin: 0 auto 12px; max-width: 38ch; font-size: 14px; color: var(--muted)}
.gift-card .gift-sign {margin-top: 20px; font-weight: 600; letter-spacing: .04em; color: var(--ink)}
@media print {
    body.printing-card > :not(#info-dialog) {display: none !important}
    body.printing-card #info-dialog {position: static; display: block; max-width: none; max-height: none; box-shadow: none; padding: 0; background: #fff}
    body.printing-card #info-dialog::backdrop {display: none}
    body.printing-card .dialog-close, body.printing-card [data-print-card] {display: none}
    body.printing-card .gift-card img {width: 9cm}
}

/* Admin: what needs the operator first, every card a summary with its next step. */
.admin h2 {font-size: clamp(26px, 3vw, 32px); margin: 40px 0 14px}
.admin-login {max-width: 420px; margin: 48px auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow)}
.admin-login h1 {font-size: 36px}
.admin-kpis {list-style: none; padding: 0; margin: 24px 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px}
.admin-kpis li {display: grid; gap: 2px; min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm)}
.admin-kpis b {font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(22px, 6.5vw, 34px); line-height: 1; white-space: nowrap}
.admin-kpis span {font-size: 13px; color: var(--muted)}
.admin-kpis li.yours {border-color: var(--highlight); box-shadow: inset 0 0 0 1px var(--highlight)}
.admin-card {margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden}
.admin-card > summary {display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none}
.admin-card > summary::-webkit-details-marker {display: none}
.admin-card > summary:hover {background: color-mix(in srgb, var(--sunk) 45%, var(--surface))}
.admin-thumb {display: block; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--stage)}
.admin-title {display: grid; gap: 2px; min-width: 0}
.admin-title b {font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.admin-title > span {font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.admin-title .order-track {max-width: 260px; margin-top: 6px}
.pill {justify-self: end; max-width: 240px; padding: 5px 12px; border-radius: 999px; background: var(--sunk); font-size: 12px; font-weight: 500; text-align: right; line-height: 1.35}
.pill.yours {background: var(--highlight); color: #fff}
.admin-body {padding: 4px 18px 18px; border-top: 1px solid var(--line); font-size: 14px}
.admin-body form {display: grid; gap: 4px; max-width: 520px; margin-top: 8px}
.admin-body details {border-top: 1px solid var(--line); margin-top: 10px}
.admin-body details summary {padding: 10px 0; cursor: pointer; font-weight: 500}
.admin-body a {text-decoration: underline; text-underline-offset: 3px}
.admin-assets {display: flex; gap: 10px; overflow-x: auto; margin: 14px 0}
.admin-assets img {width: 104px; height: 130px; object-fit: cover; border-radius: 8px; background: var(--stage)}
.admin-body model-viewer {display: block; width: 100%; height: 380px; border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 40%, var(--surface), var(--stage) 75%)}
.admin-body pre {font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--sunk); padding: 12px; border-radius: 8px}
.admin-files {display: flex; flex-wrap: wrap; gap: 6px 18px}
.admin-tabs {display: flex; gap: 6px; margin: 20px 0 8px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; background: var(--sunk); border-radius: 999px}
.admin-tabs button {flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted)}
.admin-tabs button[aria-current=page] {background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(20 18 15 / 12%)}
/* Proposal analytics: the customer's photo beside what we made of it, and what it led to. */
.pairs {display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px}
.pair {background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden}
.pair-images {display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line)}
.pair-images img, .pair-empty {display: grid; place-items: center; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--stage); font-size: 12px; color: var(--muted)}
.pair-meta {display: grid; gap: 4px; padding: 12px 14px 14px}
.pair-meta b {font-size: 15px}
.pair-meta > span:not(.pill) {font-size: 13px; color: var(--muted)}
.pair-meta .pill {justify-self: start; text-align: left}
.pill.outcome-paid {background: #2f7a4f; color: #fff}
.pill.outcome-ordered {background: color-mix(in srgb, #2f7a4f 18%, var(--surface)); color: #1f5c39}
.pill.outcome-rejected {background: color-mix(in srgb, #a8321e 14%, var(--surface)); color: #8a2a19}
.remake {margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg)}
.remake h3 {font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 0 0 8px}
.remake fieldset {margin: 8px 0}
.remake .consent {margin: 8px 0; color: var(--ink)}
.remake input[type=radio] {flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent)}
.remake-history {margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: var(--muted)}
@media (max-width: 560px) {.admin-card > summary {grid-template-columns: auto minmax(0, 1fr)} .pill {grid-column: 1 / -1; justify-self: start; text-align: left}}
@media (min-width: 760px) {.admin-kpis {grid-template-columns: repeat(4, minmax(0, 1fr))}}

/* Motion: quiet and quick; the photograph stays the focal point. */
.screen-enter > section {animation: screen-enter .28s ease-out}
@keyframes screen-enter {from {opacity: 0; transform: translateY(8px)} to {opacity: 1; transform: none}}

@media (min-width: 760px) {
    .site-header nav .nav-link {display: inline-flex}
    .site-footer-inner {grid-template-columns: 1.4fr 1fr 1fr}
    .home {grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto auto; column-gap: 7%; row-gap: 28px; padding-top: 56px; padding-bottom: 80px; align-items: end}
    .home-copy {grid-column: 1; grid-row: 1}
    .home-object {grid-column: 2; grid-row: 1 / 3; align-self: center}
    .home-action {grid-column: 1; grid-row: 2; align-self: start}
    .steps {grid-template-columns: repeat(3, 1fr); gap: 40px}
    .craft {grid-template-columns: repeat(2, 1fr)}
    .gift-steps {grid-template-columns: repeat(3, 1fr)}
    .craftway {grid-template-columns: repeat(2, 1fr); column-gap: 64px; row-gap: 48px}
    .preview-layout {grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 6%}
    .preview-copy {position: sticky; top: 96px}
    .studio-grid {grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px}
    .checkout {grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 6%}
    .checkout-summary {position: sticky; top: 96px; grid-column: 2; grid-row: 1}
    .checkout > form {grid-column: 1; grid-row: 1}
}

/* The viewport is the camera: preview and controls stay together, including safe areas. */
.camera-dialog {position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 0; padding: 0; background: var(--camera); color: var(--camera-ink); overflow: hidden; box-shadow: none}
.camera-dialog[open] {display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; animation: reveal .18s ease-out}
.camera-dialog::backdrop {background: var(--camera)}
.camera-top {display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 16px 4px; gap: 12px}
.camera-top button {width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; background: transparent; color: inherit; font-size: 20px}
.camera-progress {display: flex; gap: 8px; list-style: none; margin: 0; padding: 0}
.camera-progress li {width: 28px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 25%)}
.camera-progress li.current {background: var(--camera-ink)}
.camera-progress li.done {background: #8fd5a6}
.camera-guidance {text-align: center; padding: 8px 24px 14px}
.camera-guidance h2 {font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 0 0 6px; color: inherit}
.camera-guidance p {font-size: 14px; line-height: 1.5; margin: 0; opacity: .8}
/* The frame shows the whole camera image at its own aspect ratio, so the oval marks exactly where the
   head lands in the photo. The oval is head-shaped (3:4); its size and position match OVAL_HEIGHT and
   OVAL_Y in camera.js. */
.camera-view {position: relative; min-height: 0; margin: 0 16px; display: grid; place-items: center; container-type: size}
.camera-frame {position: relative; width: min(100cqw, 100cqh * var(--ratio, 0.75)); aspect-ratio: var(--ratio, 0.75); container-type: size; overflow: hidden; border-radius: 14px; background: rgb(0 0 0 / 30%)}
.camera-frame video, .camera-frame img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain}
.camera-view img:not([hidden]) {animation: reveal .18s ease-out}
.camera-frame .mirrored {transform: scaleX(-1)}
.face-guide {position: absolute; left: 50%; top: 43%; height: min(55cqh, 73.3cqw); width: auto; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 100vmax rgb(0 0 0 / 50%); overflow: visible; pointer-events: none}
.face-guide ellipse {fill: none; stroke-width: 3; vector-effect: non-scaling-stroke}
.oval-track {stroke: rgb(255 255 255 / 70%); transition: stroke .2s ease}
.face-guide.aligned .oval-track {stroke: #8fd5a6}
.oval-hold {stroke: #8fd5a6; stroke-width: 6; stroke-dasharray: calc(var(--hold, 0) * 100) 100; stroke-linecap: round}
.turn-hint {position: absolute; top: 43%; right: 5%; transform: translateY(-50%); font-size: 52px; line-height: 1; color: var(--camera-ink); animation: nudge-right 1s ease-in-out infinite; pointer-events: none}
.turn-hint.left {right: auto; left: 5%; animation-name: nudge-left}
.turn-hint::before {content: '›››'; letter-spacing: -6px; text-shadow: 0 2px 10px rgb(0 0 0 / 35%)}
.turn-hint.left::before {content: '‹‹‹'}
@keyframes nudge-right {50% {transform: translate(10px, -50%)}}
@keyframes nudge-left {50% {transform: translate(-10px, -50%)}}
.camera-flash {position: absolute; inset: 0; background: #fff; animation: flash .25s ease-out forwards; pointer-events: none}
@keyframes flash {from {opacity: .85} to {opacity: 0}}
@keyframes reveal {from {opacity: 0} to {opacity: 1}}
.camera-loading {font-size: 14px; position: absolute}
.camera-controls {padding: 12px 16px max(12px, env(safe-area-inset-bottom)); text-align: center}
.camera-status {font-size: 13px; line-height: 1.4; min-height: 20px; margin: 0 0 10px}
.camera-buttons {display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; gap: 12px; min-height: 76px}
.camera-buttons:has([data-camera=keep]:not([hidden])) {grid-template-columns: 1fr 1fr}
.camera-upload {background: transparent; border: 0; color: var(--camera-ink); font-size: 12px; min-height: 54px; display: grid; justify-items: center; gap: 5px}
.camera-upload > span {font-size: 24px}
.camera-shutter {grid-column: 2; border: 2px solid var(--camera-ink); border-radius: 50%; padding: 5px; width: 72px; height: 72px; background: transparent}
.camera-shutter span {display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--camera-ink)}
.camera-shutter:disabled {opacity: .5}
.camera-buttons .button {flex: 1; min-height: 54px; padding: 0 12px; background: var(--camera-ink); color: var(--camera); border-color: var(--camera-ink); font-size: 15px}
.camera-buttons .secondary {background: transparent; color: var(--camera-ink); border-color: rgb(255 255 255 / 40%)}
.camera-finish {display: block; margin: 4px auto 0; color: var(--camera-ink); opacity: .85; background: transparent; border: 0; font-size: 14px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px}
.camera-dialog [hidden] {display: none}
.camera-dialog.upload-mode .camera-buttons:not(:has([data-camera=keep]:not([hidden]))) {grid-template-columns: 1fr}
.camera-dialog.upload-mode .camera-upload {display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--camera-ink); color: var(--camera); border-radius: 999px; min-height: 56px; font-size: 15px; font-weight: 500}
.camera-dialog.upload-mode .camera-upload > span {font-size: 20px}
.camera-dialog.upload-mode .camera-loading {top: 82%; opacity: .75; font-size: 14px}
@media (orientation: landscape) and (max-height: 600px) {
    .camera-dialog[open] {grid-template-columns: minmax(0, 1fr) minmax(220px, 35%); grid-template-rows: auto auto minmax(0, 1fr)}
    .camera-top {grid-column: 1 / -1}
    .camera-view {grid-column: 1; grid-row: 2 / 4; margin-bottom: max(12px, env(safe-area-inset-bottom))}
    .camera-guidance {grid-column: 2; padding: 8px 16px}
    .camera-controls {grid-column: 2; padding-top: 4px}
    .camera-status {min-height: 0}
    .camera-guidance h2 {font-size: 17px}
}

@media (prefers-reduced-motion: reduce) {
    html {scroll-behavior: auto}
    .spinner, .screen-enter > section, .camera-dialog[open], .camera-view img:not([hidden]), .turn-hint, .camera-flash {animation: none}
    .button, .choice, .faq summary span {transition: none}
}

/* Photo step (lines with a photo choice): pick from the photo roll or take new photos. */
.photo-step {max-width: 760px; margin: auto}
.photo-methods {display: grid; gap: 12px; margin: 8px 0 28px}
.photo-method {display: grid; gap: 4px; padding: 20px 22px; text-align: left; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease}
.photo-method b {font-size: 17px; font-weight: 600}
.photo-method span {font-size: 14px; color: var(--muted)}
.photo-method:first-child {background: var(--accent); border-color: var(--accent); color: var(--accent-ink)}
.photo-method:first-child span {color: color-mix(in srgb, var(--accent-ink) 75%, transparent)}
.photo-method:hover:not(:disabled) {transform: translateY(-1px); box-shadow: var(--shadow)}
.photo-slots {list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px}
.photo-slot {position: relative; display: grid; gap: 2px; align-content: start; font-size: 13px}
.photo-slot b {margin-top: 8px; font-size: 14px; font-weight: 600}
.photo-slot span {color: var(--muted); line-height: 1.4}
.photo-slot em {font-style: normal; color: #a8321e; line-height: 1.4; margin-top: 4px}
.photo-slot-pick {display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 28px; font-weight: 300}
.photo-slot.filled .photo-slot-pick {border-style: solid; border-color: var(--line)}
.photo-slot-pick img {width: 100%; height: 100%; object-fit: cover}
.photo-slot.uploading .photo-slot-pick {position: relative}
.photo-slot.uploading .photo-slot-pick::after {content: ''; position: absolute; width: 26px; height: 26px; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite}
.photo-slot-remove {position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink); font-size: 18px; line-height: 1; box-shadow: 0 1px 4px rgb(20 18 15 / 15%)}
.photo-tips {list-style: none; padding: 16px 18px; margin: 0 0 24px; display: grid; gap: 8px; background: var(--sunk); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted)}
.photo-tips li {display: flex; gap: 10px; align-items: baseline}
.photo-tips li::before {content: ''; flex: none; width: 12px; height: 7px; border-left: 2px solid var(--highlight); border-bottom: 2px solid var(--highlight); transform: translateY(-3px) rotate(-45deg)}
.photo-step > .button {width: 100%}
@media (min-width: 760px) {.photo-methods {grid-template-columns: 1fr 1fr}}
@media (prefers-reduced-motion: reduce) {.photo-slot.uploading .photo-slot-pick::after {animation: none}}
