:root {
  --paper: #fffdfd;
  --paper-soft: #fff7fa;
  --paper-warm: #fff2ec;
  --pink: #f8b8d1;
  --pink-soft: #fbd8e6;
  --peach: #f7c9ad;
  --wine: #7d2047;
  --wine-deep: #56152f;
  --ink: #4c1c30;
  --muted: #805f6d;
  --white: #ffffff;
  --focus: #006fcc;
  --display: "Bree Serif", Georgia, serif;
  --body: "Nunito Sans", ui-rounded, system-ui, sans-serif;
  --button-shadow: 0 9px 20px rgba(76, 28, 48, .18);
  --photo-shadow: 0 20px 48px rgba(76, 28, 48, .13);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper-soft); }
body { margin: 0; color: var(--ink); background: var(--paper-soft); font-family: var(--body); font-size: 17px; line-height: 1.45; }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { color: var(--white); background: var(--wine); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 12px; color: var(--white); background: var(--wine); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header { height: 88px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; background: rgba(255, 253, 253, .95); box-shadow: 0 7px 24px rgba(76, 28, 48, .045); }
.brand { font-family: var(--display); font-size: 29px; line-height: 1; letter-spacing: -.02em; }
.brand span, .footer-mark span { color: #d83976; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.site-header nav > a:not(.header-action) { text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-header nav > a:not(.header-action):hover { text-decoration: underline; }
.header-action, .primary-action, .request-button { border: 0; border-radius: 15px; min-height: 52px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; color: var(--white); background: var(--wine); font-weight: 800; box-shadow: var(--button-shadow); transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease; }
.header-action:hover, .primary-action:hover, .request-button:hover:not(:disabled) { transform: translateY(-3px); background: var(--wine-deep); box-shadow: 0 14px 27px rgba(76, 28, 48, .22); }
.header-action:active, .primary-action:active, .request-button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.primary-action svg, .request-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.hero { min-height: calc(100svh - 88px); padding: 42px 34px 58px; position: relative; overflow: hidden; display: grid; grid-template-columns: 37% 63%; align-items: center; background: var(--paper-soft); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; background: var(--pink); }
.hero::before { width: 20px; height: 20px; left: 34px; top: 25%; }
.hero::after { width: 11px; height: 11px; left: 41%; bottom: 8%; }
.hero-copy { align-self: start; padding-top: 7vh; position: relative; z-index: 3; }
.hero h1, .choice-stage h2, .dialog-top h2, .review-sheet h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.025em; line-height: .94; text-wrap: balance; }
.hero h1 { max-width: 10ch; font-size: clamp(62px, 6.5vw, 96px); }
.hero-copy > p { max-width: 28ch; margin: 28px 0 0; font-size: clamp(18px, 1.5vw, 22px); }
.copy-paw-trail { position: relative; width: min(29vw, 360px); height: 180px; margin-top: 28px; color: var(--wine); pointer-events: none; }
.copy-paw { position: absolute; width: 54px; height: 54px; fill: currentColor; opacity: .085; mix-blend-mode: multiply; }
.copy-paw-one { left: 2%; top: 8%; transform: rotate(-24deg) scale(.82); }
.copy-paw-two { left: 25%; top: 34%; transform: rotate(18deg); }
.copy-paw-three { left: 51%; top: 12%; transform: rotate(-18deg) scale(.9); }
.copy-paw-four { left: 75%; top: 48%; transform: rotate(24deg) scale(.76); }

.portrait-desk { height: min(72vw, 720px); min-height: 600px; position: relative; isolation: isolate; }
.paw-print { position: absolute; z-index: 0; color: var(--wine); fill: currentColor; opacity: .075; mix-blend-mode: multiply; pointer-events: none; }
.paw-print-cat { width: 58px; height: 58px; }
.paw-print-dog { width: 76px; height: 76px; }
.paw-print-one { left: 34%; top: 9%; transform: rotate(-24deg); }
.paw-print-two { left: 40%; top: 68%; transform: rotate(18deg); }
.paw-print-three { right: 4%; top: 3%; transform: rotate(28deg) scale(.82); }
.paw-print-four { right: 2%; bottom: 3%; transform: rotate(-18deg) scale(.72); }
.photo-card { position: absolute; padding: 0; border: 0; display: flex; flex-direction: column; align-items: center; color: var(--wine); background: transparent; transition: transform .42s var(--ease-out); }
.photo-frame { width: 100%; padding: 11px 11px 41px; display: block; position: relative; background: var(--white); box-shadow: var(--photo-shadow); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-label { position: relative; z-index: 7; margin-top: 11px; font-family: var(--display); font-size: clamp(29px, 2.8vw, 44px); font-weight: 400; line-height: .95; letter-spacing: -.02em; }
.source-card { width: 25%; z-index: 3; }
.source-card .photo-frame { aspect-ratio: 4 / 5; }
.source-card .photo-label { position: absolute; left: 50%; bottom: 7px; margin: 0; transform: translateX(-50%); font-size: clamp(27px, 2.4vw, 36px); }
.source-card input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.you-card { left: 4%; top: 12%; z-index: 4; transform: rotate(-15deg); animation: you-in .72s .12s var(--ease-out) both; }
.pet-card { left: 8%; top: 54%; z-index: 3; transform: rotate(15deg); animation: pet-in .72s .24s var(--ease-out) both; }
.you-card:hover { transform: rotate(-11deg) translateY(-7px); }
.pet-card:hover { transform: rotate(11deg) translateY(-7px); }
.upload-mark { width: 42px; height: 42px; border-radius: 13px; position: absolute; right: -13px; top: -13px; display: grid; place-items: center; color: var(--white); background: var(--wine); box-shadow: var(--button-shadow); transition: transform .3s var(--ease-out), background .3s ease; }
.upload-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.upload-check { display: none; }
.source-card.has-file .upload-mark { background: #27744a; transform: rotate(8deg); }
.source-card.has-file .upload-arrow { display: none; }
.source-card.has-file .upload-check { display: block; }
.result-card { right: 1%; top: 8%; width: 55%; z-index: 2; transform: rotate(-5deg); animation: result-in .85s .34s var(--ease-out) both; }
.result-card:hover { transform: rotate(-2deg) translateY(-7px); }
.result-frame { aspect-ratio: 4 / 5; padding: 14px 14px 47px; }
.result-frame img { object-position: center 25%; }
.scene-cue { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); color: var(--wine); font-weight: 800; font-size: 15px; white-space: nowrap; }
.result-style { margin-top: 8px; padding: 6px 11px; border-radius: 10px; color: var(--wine); background: var(--pink-soft); font-size: 13px; font-weight: 800; transform: rotate(2deg); }
.scribble-arrow { position: absolute; left: 25%; top: 31%; width: 32%; z-index: 5; overflow: visible; transform: rotate(-7deg); }
.scribble-arrow path { fill: none; stroke: var(--wine); stroke-linecap: round; stroke-linejoin: round; }
.arrow-line { stroke-width: 5; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw-arrow 1.2s .4s var(--ease-out) forwards; }
.arrow-head { stroke-width: 5; opacity: 0; animation: arrow-head-in .3s 1.35s ease forwards; }
.maker-status { position: absolute; left: 30%; bottom: 1%; max-width: 31ch; margin: 0; color: var(--muted); font-size: 16px; }
.maker-status.is-error { color: #a41732; font-weight: 700; }

@keyframes draw-arrow { to { stroke-dashoffset: 0; } }
@keyframes arrow-head-in { to { opacity: 1; } }
@keyframes you-in { from { opacity: 0; transform: translate(-35px, 28px) rotate(-22deg); } to { opacity: 1; transform: rotate(-15deg); } }
@keyframes pet-in { from { opacity: 0; transform: translate(-26px, 38px) rotate(23deg); } to { opacity: 1; transform: rotate(15deg); } }
@keyframes result-in { from { opacity: 0; transform: translate(38px, 22px) rotate(2deg); } to { opacity: 1; transform: rotate(-5deg); } }

.choice-stage { min-height: 92svh; padding: 96px 34px 82px; overflow: hidden; }
.choice-stage h2 { font-size: clamp(64px, 7.4vw, 104px); }
.choice-copy > p, .finish-heading > p { max-width: 27ch; margin: 28px 0; font-size: 21px; }
.moments { display: grid; grid-template-columns: 34% 66%; background: var(--pink); }
.choice-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; z-index: 4; }
.primary-action svg { width: 20px; height: 20px; }
.moment-stack { width: 100%; min-height: 660px; padding: 0; border: 0; position: relative; display: block; color: var(--ink); background: transparent; text-align: left; }
.moment-card { width: 43%; padding: 11px 11px 45px; position: absolute; display: block; background: var(--white); box-shadow: var(--photo-shadow); transition: transform .42s var(--ease-out); }
.moment-card img { width: 100%; height: 100%; object-fit: cover; }
.moment-card span { position: absolute; left: 14px; bottom: 12px; font-weight: 800; font-size: 15px; }
.moment-hold { left: 4%; top: 21%; transform: rotate(-11deg); }
.moment-touch { left: 31%; top: 7%; transform: rotate(7deg); }
.moment-side { right: 0; top: 26%; transform: rotate(-5deg); }
.stack-zoom { width: 66px; height: 66px; border-radius: 18px; position: absolute; top: 14%; right: 6%; z-index: 8; display: grid; place-items: center; color: var(--white); background: var(--wine); box-shadow: var(--button-shadow); transition: transform .3s var(--ease-out); }
.stack-zoom svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.stack-hint { position: absolute; right: 3%; top: 27%; z-index: 8; padding: 8px 13px; background: var(--paper); font-weight: 800; transform: rotate(3deg); }
.moment-stack:hover .moment-hold { transform: rotate(-14deg) translateX(-14px); }
.moment-stack:hover .moment-touch { transform: rotate(10deg) translateY(-13px); }
.moment-stack:hover .moment-side { transform: rotate(-2deg) translateX(12px); }
.moment-stack:hover .stack-zoom { transform: translateY(-5px) rotate(4deg) scale(1.04); }

.finishes { background: var(--paper-warm); }
.finish-heading { margin-bottom: 52px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.finish-heading h2 { max-width: 8ch; }
.finish-heading > p { margin: 0 4vw 9px 0; }
.finish-rail { padding: 20px 6vw 42px 3vw; display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--wine) transparent; }
.finish-card { flex: 0 0 clamp(190px, 20vw, 270px); padding: 10px 10px 46px; border: 0; position: relative; color: var(--ink); background: var(--white); box-shadow: var(--photo-shadow); scroll-snap-align: center; transform: rotate(-2deg); transition: transform .35s var(--ease-out), filter .25s ease; }
.finish-card:nth-child(even) { transform: rotate(2deg) translateY(18px); }
.finish-card img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; filter: saturate(.9); transition: filter .25s ease; }
.finish-card span { position: absolute; left: 14px; bottom: 13px; font-family: var(--display); font-size: 20px; }
.finish-card:hover { transform: rotate(0) translateY(-7px); }
.finish-card:hover img { filter: saturate(1.05); }
.finish-card.is-selected { outline: 4px solid var(--wine); outline-offset: 5px; transform: rotate(-1deg) translateY(-7px); }
.finish-card.is-selected::after { content: "Selected"; position: absolute; right: -11px; top: 18px; padding: 7px 11px; color: var(--white); background: var(--wine); font-size: 12px; font-weight: 800; transform: rotate(4deg); }

.request-dock { width: min(1120px, calc(100% - 40px)); margin: -32px auto 74px; padding: 21px 24px; position: relative; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--white); background: var(--wine-deep); box-shadow: 0 24px 52px rgba(76, 28, 48, .24); }
.request-copy { display: flex; flex-direction: column; gap: 2px; }
.request-label { color: var(--pink); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.request-copy strong { font-family: var(--display); font-size: 25px; font-weight: 400; }
.request-copy > span:last-child { color: #f7dce6; font-size: 14px; }
.request-button { min-width: 250px; color: var(--wine-deep); background: var(--paper); box-shadow: none; }
.request-button:hover:not(:disabled) { color: var(--white); }
.request-button:disabled { cursor: not-allowed; opacity: .58; }

.site-footer { min-height: 360px; padding: 78px 7vw 38px; display: grid; grid-template-columns: 1.3fr 1fr; align-content: center; gap: 30px 60px; background: var(--peach); }
.footer-mark { margin: 0; font-family: var(--display); font-size: clamp(54px, 6.5vw, 88px); line-height: .9; }
.site-footer > p:not(.footer-mark) { max-width: 30ch; margin: 8px 0 0; align-self: center; font-size: 20px; }
.site-footer nav { display: flex; gap: 26px; grid-column: 1 / -1; font-weight: 800; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

.choice-dialog, .review-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; color: var(--ink); background: rgba(255, 248, 251, .76); backdrop-filter: blur(24px) saturate(.86); -webkit-backdrop-filter: blur(24px) saturate(.86); }
.choice-dialog::backdrop, .review-dialog::backdrop { background: rgba(90, 21, 51, .30); backdrop-filter: blur(8px); }
.choice-dialog[open], .review-dialog[open] { animation: dialog-in .38s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; } to { opacity: 1; } }
.choice-explorer { width: 100%; max-width: 100%; height: 100dvh; padding: 28px clamp(22px, 3vw, 48px) 22px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; overflow: hidden; background: linear-gradient(135deg, rgba(255, 253, 253, .62), rgba(247, 168, 201, .18)); }
.dialog-top { width: 100%; min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; position: relative; z-index: 20; }
.dialog-top h2 { font-size: clamp(44px, 4.8vw, 68px); }
.dialog-step { margin: 0 0 7px; color: var(--wine); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dialog-instruction { margin: 9px 0 0; color: var(--muted); font-size: 15px; }
.mobile-only { display: none; }
.dialog-close { width: 52px; height: 52px; padding: 0; border: 0; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center; color: var(--white); background: var(--wine); box-shadow: var(--button-shadow); transition: transform .22s var(--ease-out); }
.dialog-close:hover { transform: translateY(-3px) rotate(3deg); }
.dialog-close:active { transform: scale(.96); }
.dialog-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.composition-panel, .style-panel { width: 100%; min-width: 0; min-height: 0; }
.composition-gallery { width: 100%; min-width: 0; height: 100%; padding: 14px max(34px, calc(50% - min(22vw, 300px))) 28px; display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 50%; overscroll-behavior: contain; scrollbar-width: none; }
.composition-gallery::-webkit-scrollbar { display: none; }
.composition-option { height: min(52dvh, 500px); flex: 0 0 min(44vw, 600px); padding: 11px 11px 74px; border: 0; position: relative; overflow: visible; color: var(--ink); background: var(--white); box-shadow: var(--photo-shadow); scroll-snap-align: center; scroll-snap-stop: always; opacity: .45; filter: blur(.7px) saturate(.72); transform: scale(.9) rotate(-1deg); transform-origin: center; transition: transform .42s var(--ease-out), opacity .28s ease, filter .28s ease; }
.composition-option:nth-child(even) { transform: scale(.9) rotate(1deg); }
.composition-option:hover { opacity: .78; filter: saturate(.95); transform: scale(.93) rotate(0); }
.composition-option.is-selected { z-index: 2; opacity: 1; filter: none; transform: scale(1) rotate(-1deg); }
.composition-option > img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.option-copy { position: absolute; left: 14px; right: 14px; bottom: 13px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; text-align: left; }
.option-copy strong { font-family: var(--display); font-size: 22px; font-weight: 400; }
.option-copy small { color: var(--muted); font-size: 13px; }
.selected-mark { position: absolute; top: 18px; right: -8px; padding: 7px 11px; color: var(--white); background: var(--wine); font-size: 12px; font-weight: 800; opacity: 0; transform: rotate(3deg); transition: opacity .2s ease, transform .3s var(--ease-out); }
.composition-option.is-selected .selected-mark { opacity: 1; transform: rotate(3deg) translateY(-3px); }
.style-panel { overflow-y: auto; overscroll-behavior: contain; }
.style-grid { min-height: 100%; padding: 16px 2vw 26px; display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: clamp(15px, 2vw, 28px); align-items: center; }
.style-option { min-width: 0; padding: 9px 9px 15px; border: 0; color: var(--ink); background: var(--white); box-shadow: var(--photo-shadow); text-align: left; transform: rotate(-1deg); transition: transform .32s var(--ease-out); }
.style-option:nth-child(even) { transform: rotate(1deg) translateY(14px); }
.style-option:hover { transform: translateY(-5px) rotate(0); }
.style-option.is-selected { outline: 4px solid var(--wine); outline-offset: 4px; transform: translateY(-5px) rotate(-1deg); }
.style-option img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.style-option span { display: block; margin-top: 10px; font-family: var(--display); font-size: 19px; }
.style-option small { display: block; min-height: 2.8em; margin-top: 3px; color: var(--muted); font-size: 12px; }
.dialog-footer { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr); align-items: center; gap: 20px; position: relative; z-index: 20; }
.dialog-selection { display: flex; align-items: baseline; gap: 14px; }
.dialog-selection span { color: var(--wine); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.dialog-selection strong { font-family: var(--display); font-size: 23px; font-weight: 400; }
.dialog-actions { display: flex; gap: 12px; }
.secondary-action { min-height: 52px; padding: 11px 18px; border: 1px solid rgba(125, 32, 71, .22); border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: var(--wine); background: var(--paper); font-weight: 800; }
.secondary-action:hover { background: var(--pink-soft); }
.dialog-footer > p { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }

.review-dialog { display: none; align-items: center; justify-content: center; padding: 22px; }
.review-dialog[open] { display: flex; }
.review-sheet { width: min(920px, 100%); max-height: calc(100dvh - 44px); padding: 34px; overflow-y: auto; background: var(--paper); box-shadow: 0 30px 70px rgba(76, 28, 48, .26); }
.review-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.review-sheet h2 { font-size: clamp(42px, 6vw, 68px); }
.review-sheet header p { margin: 12px 0 0; color: var(--muted); }
.review-body { margin-top: 32px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; }
.review-photos { display: flex; align-items: center; gap: 12px; }
.review-photos > span { font-family: var(--display); font-size: 36px; }
.review-photos figure { flex: 1; margin: 0; padding: 8px 8px 38px; position: relative; background: var(--white); box-shadow: var(--photo-shadow); transform: rotate(-3deg); }
.review-photos figure:nth-of-type(2) { transform: rotate(4deg); }
.review-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.review-photos figcaption { position: absolute; bottom: 8px; left: 0; right: 0; font-family: var(--display); font-size: 22px; text-align: center; }
.review-details { margin: 0; }
.review-details div { padding: 15px 0; border-bottom: 1px solid rgba(125, 32, 71, .16); display: grid; grid-template-columns: 110px 1fr; gap: 18px; }
.review-details dt { color: var(--muted); font-size: 14px; font-weight: 800; }
.review-details dd { margin: 0; font-weight: 700; }
.generation-result { margin-top: 30px; padding: 24px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(240px, 1.2fr); align-items: center; gap: 28px; background: var(--paper-warm); border: 1px solid rgba(125, 32, 71, .12); }
.generation-result[hidden] { display: none; }
.generation-result h3 { margin: 5px 0 8px; font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1; }
.generation-result p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.generation-kicker { color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.generation-result figure { margin: 0; padding: 9px; background: var(--white); box-shadow: var(--photo-shadow); transform: rotate(1.5deg); }
.generation-result img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.review-sheet > footer { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.review-sheet > footer p { max-width: 48ch; margin: 0; color: var(--muted); font-size: 13px; }
.review-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.review-actions button:disabled { cursor: wait; opacity: .65; transform: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; min-width: min(360px, calc(100% - 32px)); padding: 14px 18px; border-radius: 14px; color: var(--white); background: var(--wine-deep); box-shadow: var(--button-shadow); text-align: center; transform: translateX(-50%); }
.toast[hidden] { display: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { max-width: none; }
  .portrait-desk { height: 720px; margin-top: 10px; }
  .moments { grid-template-columns: 1fr; }
  .choice-copy { justify-content: flex-start; }
  .moment-stack { min-height: 560px; margin-top: 30px; }
  .style-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .site-header nav > a:not(.header-action) { display: none; }
}

@media (max-width: 700px) {
  .site-header { height: 72px; padding: 0 18px; }
  .brand { font-size: 24px; }
  .site-header nav { gap: 12px; }
  .header-action { min-height: 44px; padding: 10px 15px; }
  .hero { min-height: 0; padding: 46px 18px 34px; }
  .hero::before { display: none; }
  .hero h1 { font-size: clamp(57px, 16vw, 72px); }
  .hero-copy > p { margin-top: 21px; font-size: 18px; }
  .copy-paw-trail { width: 240px; height: 82px; margin-top: 14px; }
  .copy-paw { width: 40px; height: 40px; opacity: .065; }
  .copy-paw-one { left: 4%; top: 3%; }
  .copy-paw-two { left: 31%; top: 25%; }
  .copy-paw-three { left: 59%; top: 1%; }
  .copy-paw-four { display: none; }
  .portrait-desk { height: 620px; min-height: 0; margin-top: 15px; }
  .paw-print { opacity: .06; }
  .paw-print-cat { width: 44px; height: 44px; }
  .paw-print-dog { width: 57px; height: 57px; }
  .paw-print-one { left: 33%; top: 3%; }
  .paw-print-two { left: 31%; top: 79%; }
  .paw-print-three { right: 1%; top: 4%; }
  .paw-print-four { right: 0; bottom: 1%; }
  .source-card { width: 31%; }
  .you-card { left: 3%; top: 7%; transform: rotate(-11deg); }
  .pet-card { left: 5%; top: 50%; transform: rotate(11deg); }
  .photo-frame { padding: 7px 7px 31px; }
  .photo-label { font-size: 31px; }
  .source-card .photo-label { font-size: 28px; }
  .upload-mark { width: 36px; height: 36px; border-radius: 11px; right: -10px; top: -10px; }
  .upload-mark svg { width: 18px; height: 18px; }
  .result-card { right: -1%; top: 13%; width: 61%; transform: rotate(-4deg); }
  .result-frame { padding: 8px 8px 34px; }
  .scene-cue { bottom: 7px; font-size: 14px; }
  .result-style { font-size: 12px; margin-top: 6px; }
  .scribble-arrow { left: 30%; top: 27%; width: 32%; transform: rotate(-3deg); }
  .scribble-arrow path { stroke-width: 6; }
  .maker-status { left: 4%; bottom: 0; font-size: 15px; }
  .choice-stage { min-height: auto; padding: 76px 18px 62px; }
  .choice-stage h2 { font-size: 60px; }
  .choice-copy > p, .finish-heading > p { margin: 21px 0 25px; font-size: 18px; }
  .moment-stack { min-height: 450px; margin-top: 36px; }
  .moment-card { width: 50%; padding: 7px 7px 37px; }
  .moment-card span { left: 10px; bottom: 10px; font-size: 14px; }
  .moment-hold { left: -4%; top: 24%; }
  .moment-touch { left: 27%; top: 5%; }
  .moment-side { right: -12%; top: 31%; }
  .stack-zoom { width: 56px; height: 56px; top: 13%; right: 2%; border-radius: 16px; }
  .stack-hint { top: 29%; right: -1%; font-size: 13px; }
  .finish-heading { margin-bottom: 24px; display: block; }
  .finish-heading > p { margin-right: 0; }
  .finish-rail { margin: 0 -18px; padding: 18px 44px 42px; gap: 24px; }
  .finish-card { flex-basis: 66vw; }
  .request-dock { width: calc(100% - 24px); margin: -22px auto 42px; padding: 19px; align-items: stretch; flex-direction: column; gap: 16px; }
  .request-button { width: 100%; min-width: 0; }
  .site-footer { min-height: 420px; padding: 70px 22px 32px; display: flex; flex-direction: column; justify-content: flex-end; }
  .footer-mark { font-size: 58px; }
  .site-footer nav { flex-wrap: wrap; }

  .choice-explorer { padding: 18px 15px 14px; gap: 6px; }
  .dialog-top { gap: 12px; }
  .dialog-top h2 { font-size: 39px; }
  .dialog-step { margin-bottom: 3px; font-size: 11px; }
  .dialog-instruction { margin-top: 5px; font-size: 13px; }
  .desktop-only { display: none; }
  .mobile-only { display: inline; }
  .dialog-close { width: 46px; height: 46px; }
  .composition-panel { margin: 0 -15px; }
  .composition-gallery { --drag-y: 0px; padding: 0; display: block; position: relative; overflow: hidden; touch-action: none; cursor: grab; }
  .composition-gallery.is-dragging { cursor: grabbing; }
  .composition-gallery.is-dragging .composition-option { transition: none; }
  .composition-option { position: absolute; left: 50%; top: 40%; width: min(84vw, 370px); height: min(47dvh, 390px); padding: 8px 8px 66px; opacity: 1; filter: none; transform-origin: center; }
  .composition-option[data-deck-position="0"] { z-index: 10; opacity: 1; transform: translate(-50%, calc(-50% + var(--drag-y))) scale(1) rotate(-1deg); }
  .composition-option[data-deck-position="1"] { z-index: 9; opacity: .91; filter: saturate(.94); transform: translate(-50%, calc(-50% + 32px + var(--drag-y))) scale(.97) rotate(1deg); }
  .composition-option[data-deck-position="2"] { z-index: 8; opacity: .79; filter: saturate(.88); transform: translate(-50%, calc(-50% + 64px + var(--drag-y))) scale(.94) rotate(-1deg); }
  .composition-option[data-deck-position="3"] { z-index: 7; opacity: .66; filter: saturate(.82); transform: translate(-50%, calc(-50% + 96px + var(--drag-y))) scale(.91) rotate(.8deg); }
  .composition-option[data-deck-position="4"] { z-index: 6; opacity: .53; filter: blur(.3px) saturate(.76); transform: translate(-50%, calc(-50% + 128px + var(--drag-y))) scale(.88) rotate(-.8deg); }
  .composition-option[data-deck-position="5"] { z-index: 5; opacity: .4; filter: blur(.6px) saturate(.7); transform: translate(-50%, calc(-50% + 160px + var(--drag-y))) scale(.85) rotate(.6deg); }
  .composition-option[data-deck-position="6"], .composition-option[data-deck-position="7"], .composition-option[data-deck-position="8"], .composition-option[data-deck-position="9"] { z-index: 0; opacity: 0; pointer-events: none; transform: translate(-50%, calc(-50% + 176px)) scale(.82); }
  .option-copy { bottom: 12px; flex-direction: column; align-items: flex-start; gap: 0; }
  .option-copy strong { font-size: 20px; }
  .option-copy small { font-size: 12px; }
  .composition-option:not([data-deck-position="0"]) .option-copy { opacity: 0; }
  .selected-mark { top: 14px; right: -5px; }
  .style-panel { margin: 0 -15px; padding: 4px 15px 18px; }
  .style-grid { padding: 10px 5px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; align-items: start; }
  .style-option:nth-child(even) { transform: rotate(1deg); }
  .style-option span { font-size: 17px; }
  .dialog-footer { grid-template-columns: 1fr auto; grid-template-areas: "selection actions" "note note"; gap: 8px 12px; }
  .dialog-selection { grid-area: selection; display: block; }
  .dialog-selection span { display: block; font-size: 11px; }
  .dialog-selection strong { display: block; margin-top: 1px; font-size: 19px; }
  .dialog-actions { grid-area: actions; }
  .dialog-actions .primary-action { min-height: 50px; padding: 11px 14px; font-size: 14px; }
  .secondary-action { min-height: 50px; padding: 10px 13px; }
  .dialog-footer > p { grid-area: note; text-align: left; font-size: 11px; }
  .review-dialog { padding: 0; align-items: end; }
  .review-sheet { width: 100%; max-height: 96dvh; padding: 24px 18px 20px; }
  .review-sheet h2 { font-size: 42px; }
  .review-body { margin-top: 25px; grid-template-columns: 1fr; gap: 24px; }
  .review-photos { max-width: 360px; margin: 0 auto; }
  .generation-result { grid-template-columns: 1fr; padding: 18px; }
  .generation-result figure { grid-row: 1; }
  .review-sheet > footer { align-items: stretch; flex-direction: column; gap: 18px; }
  .review-actions { width: 100%; }
  .review-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .arrow-line { stroke-dashoffset: 0; }
  .arrow-head { opacity: 1; }
}
