@font-face {
  font-family: Studio Serif;
  src: url("/static/assets/serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Studio Serif;
  src: url("/static/assets/serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Studio Sans;
  src: url("/static/assets/sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf7ef;
  --white: #fffdf7;
  --linen: #f5ede0;
  --oat: #eee1cd;
  --wheat: #f7eacd;
  --ink: #342419;
  --muted: #635044;
  --clay: #963f29;
  --clay-dark: #75301f;
  --clay-soft: #f6e7df;
  --gold: #895e2d;
  --line: #dfcfb9;
  --line-strong: #aa896e;
  --focus: #995230;
  --shadow: 0 10px 28px rgb(74 47 26 / 9%);
  --serif: "Studio Serif", Georgia, serif;
  --sans: "Studio Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.stage h1[tabindex="-1"]:focus { outline: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font: 400 clamp(2.8rem, 5.6vw, 4.5rem)/.98 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
h1 em, h2 em { color: var(--clay); font-weight: 400; }
svg { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden, .upload input[type=file] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; overflow: hidden; }

.header { border-bottom: 1px solid var(--line); background: var(--white); }
.nav, .footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); white-space: nowrap; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 6px; font: 400 1.85rem/1 var(--serif); letter-spacing: -.025em; }
.brand-studio { font: 750 .62rem/1 var(--sans); letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--wheat); color: var(--clay); }
.brand-mark svg { fill: currentColor; width: 19px; height: 19px; }
.nav nav { display: none; }
.nav-action { display: flex; align-items: center; gap: 14px; }
.nav-action .find-order { white-space: nowrap; font-size: .86rem; font-weight: 700; }
.nav-action .nav-cta { display: none; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--clay);
  color: var(--white);
  font-size: .98rem;
  font-weight: 730;
  text-align: center;
  transition: background .18s, color .18s, border-color .18s;
}
.button:hover { background: var(--clay-dark); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button[aria-busy] { cursor: wait; }
.button[aria-busy]::after {
  content: ""; width: 1em; height: 1em; flex: 0 0 1em; margin-inline-start: .45em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: checkout-spin .8s linear infinite;
}
@keyframes checkout-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button[aria-busy]::after { animation: none; } }
.button-small { min-height: 44px; padding: 8px 14px; font-size: .85rem; }
.button-small .icon { width: 1rem; height: 1rem; }
.button-outline { border-color: var(--line-strong); background: var(--white); color: var(--clay-dark); }
.button-outline:hover { border-color: var(--clay); background: var(--clay-soft); }
.link, .back { border: 0; background: transparent; padding: 0; color: var(--clay-dark); text-decoration: underline; text-underline-offset: 4px; }
.link:hover, .back:hover { color: var(--clay); }
.mode-banner { border-bottom: 1px solid var(--line); background: var(--wheat); color: var(--ink); padding: 8px 18px; text-align: center; font-size: .82rem; }

.hero { display: grid; gap: 26px; align-items: center; padding-top: 38px; }
.hero-copy { padding-inline: 1px; }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--clay-dark); font-size: .72rem; font-weight: 760; letter-spacing: .13em; }
.kicker .icon { fill: var(--wheat); width: 16px; height: 16px; }
.hero h1 { font-size: clamp(3.5rem, 10.6vw, 5.65rem); line-height: .94; }
.hero h1 em, .stage h1 em { font-style: normal; }
.hero-copy > p { max-width: 410px; margin: 20px 0; color: var(--muted); font-size: 1.04rem; }
.hero-note { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--muted); font-size: .84rem; }
.hero-note > span:first-child { color: var(--clay-dark); font-weight: 800; }
.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero-display { min-width: 0; position: relative; padding-left: 12px; }
.hero-art {
  min-width: 0;
  padding: 9px 9px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-art img { width: 100%; height: auto; aspect-ratio: 1.16; object-fit: cover; object-position: center 42%; border-radius: 6px; }
.hero-art figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 4px 11px; }
.hero-art figcaption strong { font-size: .86rem; font-weight: 730; }
.hero-art figcaption span { font-size: .69rem; font-weight: 700; color: var(--muted); }
.hero-detail { position: absolute; bottom: 12%; left: -4px; width: 26%; padding: 5px 5px 3px; transform: rotate(-7deg); border: 1px solid var(--line); border-radius: 5px; background: var(--white); box-shadow: var(--shadow); }
.hero-detail img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.hero-detail figcaption { padding: 4px 2px 1px; font-size: clamp(.56rem, 1.3vw, .76rem); font-weight: 700; line-height: 1.14; }

.section { padding-block: 54px; scroll-margin-top: 14px; }
.section-head { display: grid; gap: 12px; margin-bottom: 22px; }
.section-head > p, .price-section > div > p:last-child { max-width: 345px; color: var(--muted); }
.comparison { padding-bottom: 0; }
.comparison-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--linen); }
.comparison-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.comparison-grid figure { margin: 0; min-width: 0; background: var(--white); border-radius: 6px; padding: 4px; }
.comparison-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.comparison-grid figcaption { font-size: .69rem; color: var(--muted); margin: 5px 2px 2px; line-height: 1.18; }
.comparison-grid .comparison-output img { aspect-ratio: 1.5; object-position: center 42%; }
.comparison-arrow { display: none; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; }
.style-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 5px 5px 0; border: 1px solid var(--line); border-radius: 7px; background: var(--white); transition: border-color .18s, box-shadow .18s; }
.style-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.style-card img { width: 100%; height: auto; aspect-ratio: 1/1.04; object-fit: cover; object-position: center 43%; border-radius: 3px; background: var(--oat); }
.style-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; padding: 10px 8px 12px; }
.style-meta > *:first-child { min-width: 0; }
.style-meta h3, .style-meta strong { font: 700 .97rem/1.16 var(--sans); display: block; overflow-wrap: anywhere; }
.style-meta p, .style-meta small { display: block; color: var(--muted); font-size: .79rem; line-height: 1.38; margin-top: 6px; }
.circle-arrow, .check-chip { display: grid; place-items: center; flex: none; border-radius: 50%; width: 24px; height: 24px; border: 1px solid var(--line); background: var(--linen); color: var(--clay-dark); }
.circle-arrow .icon { width: 14px; height: 14px; }
.browse-styles { margin-top: 19px; }
.how-section { background: var(--linen); border-block: 1px solid var(--line); }
.steps-grid { display: grid; gap: 11px; }
.steps-grid article { background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 17px; }
.steps-grid h3 { font: 400 1.85rem/.98 var(--serif); margin: 10px 0 5px; }
.steps-grid p { color: var(--muted); font-size: .93rem; }
.step-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: var(--wheat); color: var(--clay-dark); }
.price-section, .faq-section { display: grid; gap: 22px; }
.price-section > div > p:last-child { margin-top: 12px; }
.landing-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.landing-prices article { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.landing-prices article:last-child { background: var(--wheat); }
.landing-prices article > span { font-size: .79rem; color: var(--muted); }
.landing-prices h3 { font-weight: 720; font-size: .88rem; }
.landing-prices strong { font: 400 3.15rem/.95 var(--serif); color: var(--clay-dark); }
.landing-prices a { display: flex; justify-content: space-between; align-items: center; gap: 5px; border-top: 1px solid var(--line); padding-top: 9px; font-size: .79rem; color: var(--clay-dark); font-weight: 740; }
.landing-prices a .icon { width: 14px; height: 14px; }
.faq-section { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { font-weight: 720; }
details p { color: var(--muted); padding: 8px 0 1px; }
footer { border-top: 1px solid var(--line); background: var(--linen); }
.footer { min-height: 92px; flex-wrap: wrap; padding: 18px 0; font-size: .88rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }

.studio { min-height: 72vh; padding: 26px 0 56px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; list-style: none; margin: 0 auto 28px; max-width: 690px; padding: 0; color: var(--muted); font-size: .81rem; text-align: center; }
.progress li { border-bottom: 2px solid var(--line); padding-bottom: 7px; }
.progress li.done { border-color: var(--line-strong); }
.progress li[aria-current] { border-color: var(--clay); color: var(--clay-dark); font-weight: 760; }
.stage h1 { font-size: clamp(3.4rem, 9vw, 5.65rem); }
.stage-intro { margin: 11px 0 24px; color: var(--muted); }
.narrow { max-width: 775px; margin-inline: auto; }
.style-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.style-filters button { min-height: 39px; border: 1px solid var(--line); border-radius: 22px; padding: 6px 11px; background: var(--white); color: var(--ink); font-size: .84rem; font-weight: 630; }
.style-filters button:hover { border-color: var(--line-strong); }
.style-filters button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.style-option { position: relative; min-width: 0; cursor: pointer; }
.style-option input { position: absolute; opacity: 0; }
.style-option input:focus-visible + .style-card { outline: 3px solid var(--focus); outline-offset: 3px; }
.style-option input:checked + .style-card { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.check-chip { visibility: hidden; background: var(--clay); color: var(--white); border-color: var(--clay); }
.style-option input:checked + .style-card .check-chip { visibility: visible; }
.studio-actions { position: sticky; z-index: 2; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; padding: 8px 0; background: var(--paper); border-top: 1px solid var(--line); }
.studio-actions .button { flex: none; white-space: nowrap; }
#filter-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; color: var(--muted); }
.back { margin-bottom: 12px; font-size: .91rem; }
#selected-style { color: var(--clay-dark); font-weight: 720; }
#photos { border: 1px solid var(--line); border-radius: 13px; background: var(--white); padding: 12px; }
.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload { position: relative; min-width: 0; }
.upload label { display: grid; gap: 7px; cursor: pointer; }
.upload label > strong { font-size: .92rem; }
.upload-box { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 122px; aspect-ratio: 1.18; padding: 6px; border: 1.5px dashed var(--line-strong); border-radius: 9px; background: var(--linen); }
.upload label:hover .upload-box { border-color: var(--clay); }
.upload:focus-within .upload-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.upload-prompt { display: grid; justify-items: center; gap: 6px; color: var(--clay-dark); font-size: .83rem; font-weight: 750; text-align: center; }
.upload-prompt .icon { width: 30px; height: 30px; }
.upload-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-image:not([hidden]) + .upload-prompt { position: absolute; display: block; bottom: 7px; right: 7px; background: var(--white); padding: 4px 7px; border-radius: 5px; }
.upload-image:not([hidden]) + .upload-prompt svg { display: none; }
.upload p, .file-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.uploads + .file-note { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 11px; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 5px; color: var(--muted); font-size: .88rem; }
input[type=radio], input[type=checkbox] { accent-color: var(--clay); width: 17px; height: 17px; flex: none; }
.consent input { margin-top: 4px; }
.upload-privacy { display: block; margin: 0 0 14px 25px; font-size: .85rem; }
#generate { width: 100%; }
.generation-availability .file-note { margin: 8px 0 0; }
.generation-availability .link { min-height: 44px; }
.notice { background: var(--wheat); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 14px; margin-bottom: 17px; font-size: .94rem; }
.notice.error { background: var(--clay-soft); color: var(--clay-dark); border-color: var(--clay); }
.waiting { max-width: 790px; margin-inline: auto; }
.waiting-header { text-align: center; margin-bottom: clamp(19px, 4vw, 32px); }
.waiting-header h1 { font-size: clamp(2.65rem, 6.2vw, 4.3rem); }
#job-status { margin-top: 10px; color: var(--muted); }
.portrait-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 3vw, 22px); max-width: 668px; margin-inline: auto; }
.portrait-progress-card { min-width: 0; border: 1px solid var(--line); padding: clamp(7px, 1.5vw, 13px); background: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.portrait-mat { padding: clamp(4px, 1vw, 9px); border: 1px solid var(--line); border-radius: 4px; background: var(--linen); }
.portrait-aperture { aspect-ratio: 2/3; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--linen); }
.waiting-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--linen); }
.portrait-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.portrait-placeholder::after { content: ""; position: absolute; width: 48px; height: 48px; border: 1px solid var(--line); border-top-color: var(--clay); border-radius: 50%; animation: studio-turn 2.4s linear infinite; }
.portrait-progress-card:is([data-state=failed],[data-state=timeout]) .portrait-placeholder::after { animation: none; border-color: var(--line); }
@keyframes studio-turn { to { transform: rotate(360deg); } }
.portrait-progress-caption { padding: 9px 1px 1px; }
.portrait-progress-caption h2 { font: 730 clamp(.9rem, 2.5vw, 1.05rem)/1.25 var(--sans); letter-spacing: normal; }
.portrait-phase { margin-top: 4px; color: var(--muted); font-size: clamp(.75rem, 2.25vw, .91rem); line-height: 1.3; }
.portrait-progress-card:is([data-state=failed],[data-state=timeout]) .portrait-phase { color: var(--clay-dark); }
.estimate { margin-top: 9px; }
.estimate progress { display: block; appearance: none; width: 100%; height: 5px; border: 0; border-radius: 10px; overflow: hidden; background: var(--oat); color: var(--clay); accent-color: var(--clay); }
.estimate progress::-webkit-progress-bar { background: var(--oat); }
.estimate progress::-webkit-progress-value { background: var(--clay); border-radius: 10px; transition: width .28s linear; }
.estimate progress::-moz-progress-bar { background: var(--clay); border-radius: 10px; transition: width .28s linear; }
.estimate progress:indeterminate { background: var(--oat) linear-gradient(90deg, transparent, var(--clay), transparent) -100% 0 / 38% 100% no-repeat; animation: studio-check 1.5s linear infinite; }
.estimate progress:indeterminate::-webkit-progress-bar { background: transparent; }
@keyframes studio-check { to { background-position: 165% 0; } }
@media (prefers-reduced-motion: reduce) { .estimate progress:indeterminate { animation: none; background-position: center; } }
.estimate-value { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.waiting-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 15px; margin-top: 22px; }
.waiting-actions .link { font-size: .88rem; }
.waiting .wait-detail { color: var(--muted); margin: 8px auto 0; max-width: 385px; text-align: center; font-size: .85rem; }
#problem-stage #delete-failed { display: block; margin: 13px 0; }
#problem-stage #retry-job { margin-bottom: 12px; }

.result-layout { display: grid; gap: 19px; align-items: start; }
.results { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: start; gap: 11px; }
.results figure { max-width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.results figure:has(input:checked:not(:disabled)) { border-color: var(--clay); }
.result-image { display: block; aspect-ratio: 2/3; width: 100%; height: auto; object-fit: cover; background: var(--linen); border-radius: 5px; }
.result-choice { display: flex; align-items: center; gap: 3px; min-height: 32px; margin-top: 4px; font-size: .8rem; line-height: 1.2; }
.order-panel { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--linen); box-shadow: var(--shadow); }
.order-panel h2 { font-size: 2.5rem; }
.order-panel p { margin-top: 7px; color: var(--muted); font-size: .91rem; }
.order-panel .button { width: 100%; margin-top: 12px; }
.order-panel .link { margin-top: 11px; font-size: .87rem; }
.order-panel .expires { font-size: .8rem; }
#order-reference { overflow-wrap: anywhere; }
#order-support { display: inline-block; }

dialog { width: min(530px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 23px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: 0 18px 70px rgb(40 23 11 / 25%); }
dialog::backdrop { background: rgb(45 27 17 / 54%); }
dialog h2 { font-size: clamp(2.5rem, 9vw, 3.25rem); margin-bottom: 12px; }
dialog p + p { margin-top: 10px; }
.close { float: right; border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; background: var(--linen); color: var(--clay-dark); font-size: 1.3rem; }
.close:hover { background: var(--wheat); }
#lookup-form { display: grid; align-items: start; gap: 8px; margin-top: 12px; }
#lookup-form input { min-width: 0; border: 1px solid var(--line-strong); border-radius: 7px; padding: 9px; background: var(--paper); }
#lookup-error { color: var(--clay-dark); font-size: .89rem; }
#saved-orders { display: grid; gap: 6px; }
#saved-orders a { overflow-wrap: anywhere; }
#demo-pay, #delete-confirm { margin-top: 15px; }
#demo-amount { display: inline-block; border-bottom: 1px solid var(--line); padding: 4px 0 7px; color: var(--clay-dark); font-weight: 760; }

@media (min-width: 650px) {
  .shell { width: min(1160px, calc(100% - 76px)); }
  .nav { min-height: 74px; }
  .nav-action .nav-cta { display: inline-flex; }
  .hero { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(27px, 4.3vw, 64px); padding-top: 51px; }
  .hero h1 { font-size: clamp(4rem, 6.8vw, 6.25rem); }
  .hero-display { padding-left: 22px; }
  .hero-detail { left: -7px; width: 25%; max-width: 154px; padding: 7px 7px 4px; }
  .hero-art { padding: 12px 12px 0; }
  .hero-art img { aspect-ratio: 1.19; }
  .hero-art figcaption { padding: 10px 5px 13px; }
  .hero-art figcaption strong { font-size: .96rem; }
  .section { padding-block: 65px; }
  .section-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
  .comparison { padding-bottom: 0; }
  .comparison-grid { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: 14px; max-width: 820px; margin-inline: auto; padding: 17px; }
  .comparison-grid figure { padding: 6px; }
  .comparison-grid figcaption { font-size: .81rem; }
  .comparison-inputs { gap: 12px; }
  .comparison-arrow { display: grid; place-items: center; color: var(--clay-dark); font-size: 1.45rem; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .style-meta { padding: 12px; }
  .style-meta h3, .style-meta strong { font-size: 1.05rem; }
  .style-meta p, .style-meta small { font-size: .84rem; }
  .styles-section .style-card img { aspect-ratio: 1.22; }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .price-section, .faq-section { grid-template-columns: .83fr 1.17fr; gap: 32px; align-items: start; }
  .landing-prices article { padding: 18px; gap: 9px; }
  .landing-prices h3 { font-size: 1rem; }
  .landing-prices strong { font-size: 3.7rem; }
  .landing-prices a { font-size: .85rem; }
  .studio { padding-top: 33px; }
  .progress { margin-bottom: 39px; }
  #photos { padding: 21px; }
  .uploads { gap: 16px; }
  .upload-box { min-height: 148px; }
  #generate { width: auto; }
  .result-layout { grid-template-columns: minmax(0, 1fr) 282px; gap: 20px; }
  .results figure { padding: 9px; }
  .result-choice { font-size: .89rem; }
  dialog { padding: 29px; }
}

@media (min-width: 950px) {
  .nav nav { display: flex; align-items: center; gap: 31px; color: var(--muted); font-size: .91rem; font-weight: 650; }
  .nav nav a:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 5px; }
  .hero { padding-top: 57px; }
  .hero-copy { padding-left: 11px; }
  .hero-copy > p { margin-block: 24px; font-size: 1.13rem; }
  .hero-art img { aspect-ratio: 1.23; }
  .section { padding-block: 76px; }
  .comparison { padding-bottom: 0; }
  .gallery { gap: 19px; }
  .studio-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .style-filters:has([data-filter=featured][aria-pressed=true]) + .studio-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-gallery .style-card img { aspect-ratio: 1.18; }
  .style-meta { padding: 13px 14px 15px; }
  .circle-arrow, .check-chip { width: 30px; height: 30px; }
  .circle-arrow .icon { width: 16px; height: 16px; }
  .result-layout { grid-template-columns: minmax(0, 1fr) 324px; gap: 25px; }
  .results { gap: 17px; }
  .order-panel { padding: 22px; position: sticky; top: 20px; }
}

@media (max-width: 365px) {
  .shell { width: calc(100% - 28px); }
  .brand-studio { display: none; }
  .hero h1 { font-size: 3.7rem; }
  .studio-actions .button { padding-inline: 11px; gap: 8px; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* Guest cart and portrait selection */
.cart-nav { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; color: var(--ink); font-weight: 700; font-size: .84rem; text-decoration: none; white-space: nowrap; }
.cart-nav .icon { width: 17px; height: 17px; }
.cart-nav span { display: none; }
.cart-nav strong { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 50%; background: var(--wheat); color: var(--clay-dark); font-size: .72rem; }
.result-choice { min-height: 40px; padding: 2px 0; cursor: pointer; }
.result-choice input[type="checkbox"] { flex: 0 0 auto; margin: 0 5px 0 0; width: 18px; height: 18px; accent-color: var(--clay); }
.results figure:has(.result-choice input:checked) { border-color: var(--clay); background: var(--linen); }
.results figure:has(.result-choice input:enabled) img { cursor: pointer; }
.has-purchase-bar { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
.purchase-bar { position: fixed; z-index: 4; inset: auto 0 0; padding: 11px 0 calc(11px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line-strong); box-shadow: 0 -7px 25px #34241912; }
.purchase-content { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.purchase-content > div:first-child { display: grid; gap: 1px; line-height: 1.3; }
.purchase-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 16px; }
.purchase-actions .link { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; min-height: 28px; }
@media (max-width: 420px) {
  .purchase-actions { flex-direction: column; align-items: flex-end; gap: 4px; }
  .purchase-actions .link { min-height: 44px; }
  .has-purchase-bar { padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }
}
.purchase-content strong { font-size: .85rem; }
.purchase-content span { color: var(--clay-dark); font-size: 1.07rem; font-weight: 700; }
.purchase-content .button { min-height: 44px; padding-inline: 14px; white-space: nowrap; font-size: .87rem; }
.purchase-content .icon { width: 16px; height: 16px; }
.cart-layout { display: grid; align-items: start; gap: 19px; }
.cart-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.cart-thumbs { display: flex; gap: 4px; }
.cart-thumbs img { display: block; width: clamp(34px, 10vw, 80px); aspect-ratio: 2 / 3; object-fit: cover; border: 2px solid var(--linen); border-radius: 3px; }
.cart-item h2 { font: 700 1rem/1.15 var(--sans); }
.cart-item p { margin: 3px 0; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.cart-item .link { font-size: .78rem; text-align: left; }
.cart-item-price { display: grid; justify-items: end; font-size: 1rem; }
.cart-item-price .link { min-height: 34px; }
.cart-return { margin-top: 18px; }
.cart-layout .order-panel h2 { font-size: 2rem; }
.cart-layout .cart-total { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.cart-total strong { font-size: 1.25rem; }
#cart-checkout label, #preview-checkout label { display: block; margin-bottom: 5px; font-size: .86rem; font-weight: 700; }
#cart-checkout input, #recover-form input, #preview-checkout input { width: 100%; min-height: 43px; padding: 8px 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; }
#cart-checkout .file-note, .recover-form .file-note { font-size: .83rem; }
.checkout-billing { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
.checkout-billing select { width: 100%; min-height: 43px; margin-top: 4px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: inherit; }
#receipt-items { display: grid; gap: 12px; margin: 10px 0 18px; }
#receipt-items > .button { justify-self: start; }
.delivery-group { padding: 16px 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.delivery-group h2 { margin: 0 0 4px; font: 700 1.02rem/1.4 var(--sans); }
.delivery-group .link { display: block; min-height: 44px; text-align: left; }
#receipt-reference { margin-bottom: 14px; overflow-wrap: anywhere; }
.recover-form { padding-top: 13px; border-top: 1px solid var(--line); }
@media (max-width: 420px) {
  .nav-action { gap: 8px; }
  .nav-action .find-order { font-size: .76rem; }
}
@media (min-width: 600px) {
  .cart-nav span { display: inline; }
  .purchase-content .button { padding-inline: 22px; font-size: 1rem; }
  .cart-item { padding: 15px; gap: 18px; }
}
@media (min-width: 760px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

#cart-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.cart-portrait { display: grid; position: relative; align-content: start; gap: 5px; padding: 7px 7px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; min-width: 0; }
.cart-portrait:has(input:checked) { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.cart-portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.cart-portrait input { position: absolute; top: 17px; left: 17px; width: 23px; height: 23px; margin: 0; accent-color: var(--clay); cursor: pointer; }
.cart-portrait strong { font: 700 .9rem/1.3 var(--sans); margin: 4px 3px 0; }
.cart-portrait span, .cart-portrait .link { font-size: .75rem; line-height: 1.4; margin-inline: 3px; }
.cart-portrait span { color: var(--muted); }
.cart-portrait .link { min-height: 44px; display: flex; align-items: center; }
.cart-portrait-paid { cursor: default; border-color: var(--line-strong); }
.purchased-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 9px; border-radius: 20px; background: var(--wheat); color: var(--ink); font-size: .78rem; font-weight: 700; }
.cart-portrait .purchased-badge { position: absolute; top: 15px; left: 10px; color: var(--ink); }
.results figcaption:has(.purchased-badge) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.results figcaption .link { min-height: 44px; }
@media(min-width:1000px) { .landing-prices { grid-template-columns: repeat(3,minmax(0,1fr)); } }

#preview-checkout { margin-top: 16px; }
#preview-checkout .button { margin-top: 14px; }
#preview-purchase-error { margin-top: 8px; color: var(--clay-dark); }
