/* ==========================================================================
   The studio flow: create, private memory page, gifts, keepsakes, find.
   Builds on styles.css (tokens, .display, .eyebrow, .cta, .btn, header, footer).
   ========================================================================== */

body.menu-open .site-header { z-index: 70; }
body.menu-open .site-overlay { display: block; }

/* Flow header: back arrow, logo, step indicator, home link */
.flow-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.flow-bar { width: min(100% - 40px, 1280px); margin: 0 auto; min-height: 88px; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 18px; }
.flow-back { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; }
.flow-back:hover { background: var(--surface); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 0; }
.flow-steps li { position: relative; padding: 0 20px 14px; font-size: 14px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.flow-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.flow-steps li::before { content: ""; position: absolute; left: calc(50% - 5px); bottom: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); z-index: 1; }
.flow-steps li.is-current { color: var(--ink); font-weight: 700; }
.flow-steps li.is-current::after, .flow-steps li.is-done::after { background: var(--accent); }
.flow-steps li.is-current::before, .flow-steps li.is-done::before { background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink); }
.flow-home { justify-self: end; }

.flow-main { width: min(100% - 40px, 1280px); margin: 28px auto 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.flow-main.with-side { grid-template-columns: minmax(0, 1fr) 320px; }
.flow-title { font-size: clamp(40px, 5.5vw, 64px); }
.flow-sub { margin: 8px 0 0; color: var(--muted); max-width: 56ch; }
.flow-section + .flow-section { margin-top: 40px; }

/* Cards */
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card-head svg { width: 20px; height: 20px; flex-shrink: 0; }
.card-hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

/* Photo step */
.photo-card { max-width: 560px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 300px; padding: 28px 20px; border: 1px dashed var(--line-dash); border-radius: 8px; background: var(--surface); cursor: pointer; transition: background .16s, border-color .16s; }
.dropzone:hover, .dropzone.is-over, body.is-over .dropzone { background: var(--accent-wash); border-color: var(--ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .plus { font: 400 40px/1 var(--font-display); }
.dropzone strong { font-size: 16px; }
.dropzone span.small { color: var(--muted); font-size: 13px; }
.good-avoid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.good-avoid div { display: grid; grid-template-rows: auto 1fr; gap: 6px; font-size: 13px; }
.good-avoid figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--surface-inset); border: 1px solid var(--line-soft); }
.good-avoid img { width: 100%; height: 100%; object-fit: cover; }
.good-avoid .avoid img { filter: saturate(.85); }
.good-avoid b { display: inline-flex; align-items: center; gap: 6px; }
.good-avoid b svg { width: 12px; height: 12px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.photo-preview { display: none; }
.photo-preview.show { display: block; }
.photo-preview .print { background: var(--surface-raised); border: 1px solid var(--line-soft); padding: 8px 8px 0; box-shadow: 2px 5px 12px #29231c1c; width: fit-content; max-width: 100%; margin: 0 auto; transform: rotate(-1deg); }
.photo-preview img { display: block; max-height: 420px; max-width: 100%; object-fit: contain; margin-bottom: 8px; }
.photo-status { margin: 14px 0 4px; font-weight: 700; font-size: 14px; }
.photo-status + p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.format-line { color: var(--muted); font-size: 13px; margin: 16px 0 6px; }
.consent-line { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* Moments step */
.filters { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; }
.filters button { padding: 8px 2px; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.filters button.is-active { color: var(--ink); font-weight: 700; border-color: var(--ink); }
.choose-count { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.moment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.moment-card { position: relative; text-align: left; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: box-shadow .16s, transform .16s; }
.moment-card:hover { transform: translateY(-2px); box-shadow: 2px 5px 12px #29231c14; }
.moment-card.is-selected { border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: #fbfcef; }
.moment-card.is-disabled { opacity: .5; }
.moment-card video, .moment-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-inset); }
.moment-card .tag { position: absolute; left: 10px; top: 10px; background: var(--accent); border: 1px solid var(--ink); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; }
.moment-card .tag::before { content: "✦ "; }
.moment-card .pick { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); font-size: 18px; line-height: 1; }
.moment-card.is-selected .pick { background: var(--ink); color: var(--paper); font: 500 12px var(--font-ibm-plex-mono); }
.moment-card .free { position: absolute; left: 10px; bottom: calc(100% - 100% + 92px); }
.moment-card .free-label { position: absolute; left: 10px; top: calc(min(220px, 100%) - 30px); display: none; }
.moment-card figcaption { padding: 12px 14px 14px; }
.moment-card figcaption b { display: block; font-size: 16px; margin-bottom: 4px; }
.moment-card figcaption span { color: var(--muted); font-size: 13px; }
.moment-card .sample-note { position: absolute; left: 10px; bottom: 86px; background: var(--accent); font: 500 10px/1.5 var(--font-ibm-plex-mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; }

/* Side card: the lineup */
.side { position: sticky; top: 108px; display: grid; gap: 14px; }
.side .card h2 { font: 400 clamp(28px, 3vw, 36px)/1.05 var(--font-display); letter-spacing: -.02em; margin: 0 0 10px; }
.side .card h2 em { font: italic 1em/1.05 var(--font-instrument-serif); letter-spacing: -.03em; }
.lineup-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 10px 0 6px; border-top: 1px solid var(--line-soft); }
.lineup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lineup-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.lineup-list img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: var(--surface-inset); }
.lineup-list b { display: block; font-size: 14px; }
.lineup-list small { color: var(--muted); font-size: 12px; }
.lineup-list button { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; }
.lineup-list button:hover { background: var(--surface); }
.lineup-empty { font: italic 16px/1.4 var(--font-instrument-serif); color: var(--muted); margin: 8px 0 0; }
.side-form label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); font: 500 15px/1.3 var(--font-archivo); }
.field:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
textarea.field { min-height: 120px; resize: vertical; }
.side-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; line-height: 1.5; }
.side .cta { width: 100%; margin-top: 14px; }
.progress-line { height: 6px; border-radius: 999px; background: var(--surface-inset); overflow: hidden; margin: 10px 0 6px; }
.progress-line i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .4s; }
.error-line { color: var(--error); font-size: 14px; margin: 10px 0 0; display: none; }
.error-line.show { display: block; }

/* The private memory page */
.render-state { max-width: 640px; margin: 40px auto; text-align: center; }
.render-state .print-frame { width: min(360px, 80%); margin: 24px auto; background: var(--surface-raised); border: 1px solid var(--line-soft); padding: 10px 10px 36px; box-shadow: 2px 5px 12px #29231c1c; transform: rotate(-2deg); position: relative; }
.render-state .print-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.render-state .print-frame::after { content: ""; position: absolute; inset: 10px 10px 36px; background: repeating-linear-gradient(135deg, transparent 0 18px, #ffffff22 18px 36px); animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { to { background-position: 72px 0; } }
.render-state p.lede { font: italic 20px/1.4 var(--font-instrument-serif); margin: 12px auto; max-width: 42ch; }
.render-state .mono { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.memory-head { margin-bottom: 20px; }
.memory-head p { color: var(--muted); max-width: 56ch; margin: 10px 0 0; font-size: 15px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.item { position: relative; }
.item .frame { position: relative; aspect-ratio: 1; background: var(--surface-inset); border-radius: 6px; overflow: hidden; border: 1px solid var(--line-soft); }
.item video, .item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item .frame .still { filter: saturate(.8); }
.item .frame .lock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; background: #29231c66; color: var(--paper); font: italic 18px/1.3 var(--font-instrument-serif); }
.item .frame .busy { position: absolute; inset: auto 0 0; background: #29231ccc; color: var(--paper); font: 500 11px/1.5 var(--font-ibm-plex-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; text-align: center; }
.watermark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Ctext x='0' y='60' font-family='Arial' font-size='14' font-weight='700' fill='%23ffffff' fill-opacity='.55' transform='rotate(-20 110 60)'%3ELITTLE PAWS · PREVIEW%3C/text%3E%3C/svg%3E"); background-size: 220px 120px; }
.item .check { position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: var(--paper); display: grid; place-items: center; z-index: 1; }
.item .check svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.item figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.item figcaption b { font: italic 19px/1.2 var(--font-instrument-serif); }
.item figcaption span { color: var(--muted); font-size: 12px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.item-actions .btn { min-height: 38px; padding: 6px 12px; font-size: 13px; }

.offer { position: sticky; top: 108px; }
.offer h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 20px; }
.offer-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.offer-row .label { font-size: 15px; font-weight: 500; }
.offer-row .price { font: 400 40px/1 var(--font-display); letter-spacing: -.02em; }
.offer-fine { color: var(--muted); font-size: 12px; margin: 6px 0 16px; }
.offer-fine s { margin-right: 2px; }
.offer .cta { width: 100%; }
.offer hr { border: 0; border-top: 1px solid var(--line-soft); margin: 20px 0 16px; }
.offer-alt { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.offer-alt small { display: block; color: var(--muted); font-size: 12px; }
.offer-alt b { font-size: 15px; }
.offer-alt .btn { min-height: 44px; font-size: 13px; padding-inline: 12px; }
.offer-promise { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 16px 0 0; }
.gift-toggle { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.gift-toggle .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-wash); border: 1px solid var(--line); display: grid; place-items: center; }
.gift-toggle b { display: block; font-size: 15px; }
.gift-toggle small { color: var(--muted); font-size: 12px; display: block; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .16s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); transition: transform .16s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.offer-links { display: grid; gap: 4px; justify-items: center; margin-top: 24px; }
.offer-links .text-link { min-height: 36px; }
.made-for { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form .field { min-height: 44px; }
.inline-form .btn { min-height: 44px; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; font-size: 14px; z-index: 100; display: none; max-width: min(90vw, 520px); text-align: center; }
.toast.show { display: block; }

.paid-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-top: 24px; }
.panel.lav { background: var(--lavender); border-color: #c7bddb; }
.panel.cit { background: var(--accent-wash); border-color: var(--ink); }
.panel h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.panel p { color: var(--muted); font-size: 14px; margin: 0 0 12px; max-width: 60ch; }
.panel .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel label { display: block; font-weight: 600; font-size: 13px; margin: 10px 0 6px; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 12px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); background: var(--accent); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }

/* Gift landing and reveal */
.center-hero { text-align: center; max-width: 720px; margin: 40px auto 24px; }
.center-hero .display { font-size: clamp(44px, 7vw, 84px); }
.center-hero p { margin: 16px auto 0; max-width: 46ch; }
.unwrap-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; max-width: 420px; margin: 24px auto; padding: 16px 18px; background: var(--lavender); border: 1px solid #c7bddb; border-radius: 8px; text-align: left; }
.unwrap-card small { display: block; color: var(--muted); font-size: 12px; }
.unwrap-card .play { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; background: var(--paper); }
.gift-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1040px; margin: 24px auto; }
.gift-card { padding: 26px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); text-align: center; display: grid; gap: 10px; justify-items: center; }
.gift-card.lav { background: var(--lavender); border: 1.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.gift-card .prints { display: flex; justify-content: center; height: 220px; align-items: center; }
.gift-card .prints img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-raised); padding: 6px 6px 26px; border: 1px solid var(--line-soft); box-shadow: 2px 5px 12px #29231c1c; }
.gift-card .prints img:nth-child(1) { transform: rotate(-8deg) translateX(20px); }
.gift-card .prints img:nth-child(3) { transform: rotate(8deg) translateX(-20px); }
.gift-card h3 { font: italic 28px/1.1 var(--font-instrument-serif); margin: 0; }
.gift-card .price { font: 400 44px/1 var(--font-display); }
.gift-card p { color: var(--muted); font-size: 14px; margin: 0; }
.gift-card .cta, .gift-card .secondary-button { width: 100%; }
.included { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 36px auto 6px; font-size: 14px; }
.included span { display: inline-flex; align-items: center; gap: 8px; }
.included svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.included + p { text-align: center; color: var(--muted); font-size: 13px; }
.steps-band { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; max-width: 1040px; margin: 36px auto; }
.steps-band h2 { font: italic 32px/1.1 var(--font-instrument-serif); margin: 0 0 22px; }
.steps-band h2 b { font-style: normal; font-weight: 400; display: block; }
.steps-band ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps-band li { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.steps-band li i { font: 500 11px/1.9 var(--font-ibm-plex-mono); color: var(--muted); }
.steps-band li b { display: block; font-size: 15px; }
.steps-band li span { color: var(--muted); font-size: 14px; }
.bigger { text-align: center; margin: 24px 0 48px; }

.reveal-stage { max-width: 760px; margin: 40px auto; text-align: center; }
.parcel-box { position: relative; width: min(320px, 80%); aspect-ratio: 1; margin: 24px auto; cursor: pointer; }
.parcel-box .lid, .parcel-box .base { position: absolute; left: 0; right: 0; background: #cfc4e8; border: 1.5px solid var(--ink); }
.parcel-box .base { top: 30%; bottom: 0; border-radius: 0 0 8px 8px; }
.parcel-box .lid { top: 18%; height: 18%; border-radius: 6px; transform-origin: left bottom; transition: transform .8s cubic-bezier(.3, 1.3, .5, 1); }
.parcel-box .ribbon-v { position: absolute; top: 18%; bottom: 0; left: calc(50% - 10px); width: 20px; background: var(--accent); border-inline: 1px solid var(--ink); transition: opacity .4s; }
.parcel-box .bow { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); font-size: 40px; transition: transform .5s; }
.parcel-box.open .lid { transform: rotate(-110deg) translateY(-10px); }
.parcel-box.open .ribbon-v, .parcel-box.open .bow { opacity: 0; }
.reveal-stage .tap { font: italic 20px/1.3 var(--font-instrument-serif); }
.reveal-note { max-width: 420px; margin: 0 auto 24px; padding: 20px 22px; background: var(--surface-raised); border: 1px solid var(--line-soft); font: italic 20px/1.35 var(--font-instrument-serif); transform: rotate(-1.5deg); box-shadow: 2px 5px 12px #29231c1c; white-space: pre-line; text-align: left; }
.reveal-note small { display: block; margin-top: 10px; font: 14px var(--font-archivo); color: var(--muted); }
.reveal-items { display: grid; gap: 24px; justify-items: center; }
.reveal-items figure { margin: 0; width: min(420px, 100%); background: var(--surface-raised); border: 1px solid var(--line-soft); padding: 10px 10px 0; box-shadow: 2px 5px 12px #29231c1c; }
.reveal-items video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.reveal-items figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px 12px; font: italic 20px/1.1 var(--font-instrument-serif); }
.reveal-items figcaption .btn { font-style: normal; }
.hidden { display: none !important; }

/* Keepsakes */
.keep-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; width: min(100% - 40px, 1280px); margin: 28px auto 40px; align-items: center; }
.keep-hero .display { font-size: clamp(40px, 6vw, 72px); }
.keep-hero p.lead { margin: 16px 0 20px; max-width: 46ch; }
.keep-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks svg { width: 18px; height: 18px; flex-shrink: 0; }
.xmas { margin-top: 16px; padding: 12px 14px; background: var(--accent-wash); border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; }
.mock-wall { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; min-height: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.mock-wall figcaption, .mock-note { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-align: center; }
.mock { position: relative; margin: 0; }
.mock .label { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; }
.mock-frame { background: #fff; padding: 12px; border: 10px solid #fdfdfb; box-shadow: 0 1px 0 #d9d3c4, 2px 8px 18px #29231c2a; }
.mock-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mock-frame::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 14px; height: 14px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 7px 7px; opacity: .8; }
.mock-mug { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.mock-mug .body { position: relative; width: 64%; aspect-ratio: .9; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 8px 8px 22px 22px; overflow: hidden; box-shadow: 2px 6px 14px #29231c22; }
.mock-mug .body img { position: absolute; left: 14%; top: 14%; width: 60%; height: 66%; object-fit: cover; }
.mock-mug .handle { position: absolute; right: 10%; top: 28%; width: 18%; height: 36%; border: 7px solid #fff; border-left: 0; border-radius: 0 20px 20px 0; box-shadow: 1px 0 0 var(--line-strong); }
.mock-blanket { position: relative; width: 100%; aspect-ratio: 1.15; background: #f4efe4; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; box-shadow: 2px 6px 14px #29231c22; }
.mock-blanket img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: cover; }
.mock-blanket::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 14px, #29231c08 14px 16px); }
.mock-blanket::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: #ebe4d6; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.mock-ornament { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.mock-ornament .heart { position: relative; width: 60%; aspect-ratio: 1; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 50% 50% 46% 46%; overflow: hidden; box-shadow: 2px 6px 14px #29231c22; }
.mock-ornament .heart img { width: 100%; height: 100%; object-fit: cover; }
.mock-ornament .string { width: 2px; height: 22px; background: var(--ink); margin: -2px auto 0; }
.keep-section { width: min(100% - 40px, 1280px); margin: 56px auto; }
.keep-section .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 24px; }
.keep-section .head p { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 0; }
.sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.set-card { position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.set-card.pick { border: 1.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.set-card .art { background: var(--surface); padding: 18px; display: flex; justify-content: center; gap: 12px; align-items: end; min-height: 240px; }
.set-card .art .mock { width: 42%; }
.set-card .art .mock-mug, .set-card .art .mock-ornament { width: 36%; }
.set-card .pieces { position: absolute; left: 12px; top: 12px; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; }
.set-card .our-pick { position: absolute; right: 12px; top: 12px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.set-card .body { padding: 18px; display: grid; gap: 6px; align-content: start; }
.set-card .body .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.set-card .body h3 { font: italic 24px/1.1 var(--font-instrument-serif); margin: 0; }
.set-card .price { font: 400 26px/1 var(--font-display); }
.set-card .blurb { color: var(--muted); font-size: 14px; margin: 0; }
.set-card .spec { font-size: 12px; color: var(--muted); }
.set-card .save { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; }
.set-card .save b { background: var(--accent); border: 1px solid var(--ink); border-radius: 4px; padding: 1px 6px; }
.set-card .btn { margin-top: 8px; width: 100%; }
.pieces-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.piece { display: grid; gap: 8px; }
.piece .art { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; min-height: 240px; display: grid; place-items: center; }
.piece .art .mock { width: 70%; }
.piece .eyebrow { margin-top: 10px; }
.piece h3 { font: italic 24px/1.1 var(--font-instrument-serif); margin: 0; }
.piece p { color: var(--muted); font-size: 14px; margin: 0; }
.piece .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.piece .spec { font-size: 12px; color: var(--muted); }
.piece .price { font: 400 24px/1 var(--font-display); }
.keep-steps { background: var(--surface); padding: 56px 0; position: relative; }
.keep-steps::before, .keep-steps::after { content: ""; pointer-events: none; background-repeat: repeat-x; background-size: 20px 20px; height: 10px; position: absolute; inset-inline: 0; }
.keep-steps::before { background-image: radial-gradient(circle at 10px 10px, var(--surface) 9.5px, transparent 10px); top: -10px; }
.keep-steps::after { background-image: radial-gradient(circle at 10px 0, var(--surface) 9.5px, transparent 10px); bottom: -10px; }
.keep-steps ol { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.keep-steps li { display: grid; gap: 8px; }
.keep-steps li .vis { background: var(--surface-inset); border: 1px solid var(--line); border-radius: 8px; min-height: 180px; display: grid; place-items: center; padding: 16px; }
.keep-steps li .vis.lav { background: var(--lavender); }
.keep-steps li i { font: 500 11px/1.5 var(--font-ibm-plex-mono); color: var(--muted); }
.keep-steps li b { font-size: 16px; }
.keep-steps li span { color: var(--muted); font-size: 14px; }
.tracking { background: var(--surface-raised); border: 1px solid var(--ink); border-radius: 6px; padding: 14px 16px; width: 100%; max-width: 220px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
.tracking b { font: italic 18px/1.2 var(--font-instrument-serif); display: block; margin-bottom: 8px; }
.tracking div { display: flex; gap: 8px; align-items: center; }
.tracking small { display: block; margin-top: 8px; font: 10px/1.5 var(--font-ibm-plex-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.credit-note { padding: 14px 16px; background: var(--lavender); border: 1px solid #c7bddb; border-radius: 8px; font-size: 14px; margin-top: 16px; }

/* Order modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: #29231cb3; }
.modal.active { display: flex; }
.modal-box { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--paper); border: 1px solid var(--ink); border-radius: 8px; padding: 24px; }
.modal-box h2 { font: 400 32px/1.05 var(--font-display); letter-spacing: -.02em; margin: 0 0 6px; }
.modal-box .close { float: right; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); font-size: 20px; }
.choice-list { display: grid; gap: 8px; margin: 14px 0; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); cursor: pointer; }
.choice:has(input:checked) { border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: #f0f3c5; }
.choice input { width: 18px; height: 18px; accent-color: var(--ink); }
.choice b { display: block; font-size: 14px; }
.choice small { color: var(--muted); font-size: 12px; }
.choice .p { font: 400 20px/1 var(--font-display); }
.totals { display: grid; gap: 4px; margin: 14px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }

/* Find, rewards, partners */
.narrow { width: min(100% - 40px, 640px); margin: 40px auto 72px; }
.narrow .display { font-size: clamp(40px, 6vw, 64px); }
.narrow .mascot { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 1.5px solid var(--ink); display: block; margin: 0 auto 18px; }
.narrow p { color: var(--muted); }
.narrow form { display: grid; gap: 10px; margin-top: 20px; }
.narrow .ok { padding: 14px 16px; background: var(--accent-wash); border: 1px solid var(--ink); border-radius: 8px; }
.bullets { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.bullets li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.bullets i { font: 500 11px/1.9 var(--font-ibm-plex-mono); color: var(--muted); }
.bullets b { display: block; }
.bullets span { color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label, .narrow label { font-weight: 600; font-size: 13px; display: grid; gap: 6px; }
select.field { appearance: auto; }

@media (max-width: 899px) {
  .flow-main.with-side { grid-template-columns: 1fr; }
  .side, .offer { position: static; }
  .flow-bar { grid-template-columns: auto auto 1fr; min-height: 68px; gap: 10px; }
  .flow-steps { grid-column: 1 / -1; justify-content: start; margin-bottom: 6px; }
  .flow-steps li { padding: 0 14px 10px 0; font-size: 13px; }
  .flow-home { display: none; }
  .panel .grid2, .form-grid { grid-template-columns: 1fr; }
  .mock-wall { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .keep-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .item-grid { grid-template-columns: 1fr 1fr; }
  .good-avoid { grid-template-columns: 1fr 1fr; }
  .moment-grid { grid-template-columns: 1fr 1fr; }
  .unwrap-card { grid-template-columns: auto 1fr; }
}

/* The hidden attribute wins over display: grid/flex on sections */
[hidden] { display: none !important; }

/* Portrait studio: looks, casts, subjects */
.filters { align-items: center; justify-content: space-between; }
.filter-group { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.people-pick { display: inline-flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); margin-bottom: 6px; }
.people-pick label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cast-select { min-height: 36px; padding: 4px 10px; font-size: 14px; width: auto; }
.moment-card .cast-tags { display: block; margin-top: 6px; font: 500 10px/1.5 var(--font-ibm-plex-mono); letter-spacing: .04em; color: var(--muted); }
.moment-card img { aspect-ratio: 4 / 5; }
.cast-line { font-size: 13px; color: var(--muted); margin: -4px 0 8px; display: flex; align-items: center; gap: 6px; }
.side-sub { font: 400 26px/1.1 var(--font-display); letter-spacing: -.02em; margin: 6px 0 8px; }
.side-sub em { font: italic 1em/1.1 var(--font-instrument-serif); letter-spacing: -.03em; }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.subject-card .dropzone { min-height: 220px; }
.ph { position: relative; }
.ph-good::before, .ph-avoid::before, .ph-avoid::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #d7cfbc; }
.ph-good::before { width: 44%; height: 58%; }
.ph-avoid::before { width: 24%; height: 32%; margin-left: -20%; }
.ph-avoid::after { width: 24%; height: 32%; margin-left: 20%; }
.subject-strip { display: flex; justify-content: center; gap: 18px; margin: 24px 0; flex-wrap: wrap; }
.subject-print { margin: 0; background: var(--surface-raised); border: 1px solid var(--line-soft); padding: 8px 8px 0; box-shadow: 2px 5px 12px #29231c1c; width: 150px; }
.subject-print:nth-child(odd) { transform: rotate(-3deg); }
.subject-print:nth-child(even) { transform: rotate(3deg); }
.subject-print img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.subject-print figcaption { font: italic 15px/1.1 var(--font-instrument-serif); padding: 8px 0 10px; text-align: center; }
.item .frame.portrait { aspect-ratio: 4 / 5; }
.item .frame .pending { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--surface-inset) 0 18px, var(--surface) 18px 36px); }
.item .frame img { user-select: none; -webkit-user-drag: none; }
@media (max-width: 599px) { .people-pick { border-left: 0; padding-left: 0; } }

/* Ticking portraits on the reveal page */
.item .frame.pickable { cursor: pointer; transition: box-shadow .16s, transform .16s; }
.item .frame.pickable:hover { transform: translateY(-2px); }
.item .frame.is-picked { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.item .check.empty { background: #ffffffd9; border: 1.5px solid var(--ink); color: transparent; }
.item .check { border: 0; cursor: pointer; }

/* Phone fixes: no figure margins, badges in flow, sticky action bar on the create page */
.item { margin: 0; }
.moment-card .sample-note { position: static; display: inline-block; margin: 10px 14px 0; bottom: auto; left: auto; }
.moment-card figcaption { padding-top: 10px; }
.reveal-note { width: min(420px, 94%); }
.reveal-stage { overflow: hidden; padding-inline: 8px; }
.unwrap-card { grid-template-columns: auto 1fr auto; gap: 12px; }
.mobile-bar { display: none; }
@media (max-width: 899px) {
  .flow-main.with-side { padding-bottom: 96px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 18px #29231c14; }
  .mobile-bar b { display: block; font-size: 14px; }
  .mobile-bar small { color: var(--muted); font-size: 12px; }
  .mobile-bar .cta { min-height: 48px; padding-inline: 16px; font-size: 14px; white-space: nowrap; }
  .mobile-bar[hidden] { display: none; }
  .item-grid { gap: 14px; }
  .flow-steps li { padding-right: 12px; }
}
@media (max-width: 599px) {
  .gift-card .prints { height: 190px; }
  .gift-card .prints img { width: 120px; padding-bottom: 20px; }
  .gift-card .prints img:nth-child(1) { transform: rotate(-8deg) translateX(14px); }
  .gift-card .prints img:nth-child(3) { transform: rotate(8deg) translateX(-14px); }
  .unwrap-card { padding: 12px 14px; }
  .center-hero .display { font-size: clamp(38px, 12vw, 56px); }
  .memory-head p { font-size: 15px; }
  .offer h2 { font-size: 22px; }
}
