*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* type */
.display { font-family: var(--display); font-size: clamp(46px, 6.4vw, 84px); line-height: 1.04; letter-spacing: .002em; }
.display em, .h2 em, .h3 em { font-family: var(--serif); font-style: italic; font-size: 1.06em; letter-spacing: -.01em; }
.h2 { font-family: var(--display); font-size: clamp(36px, 4.4vw, 54px); line-height: 1.04; }
.h3 { font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.serif { font-family: var(--serif); font-style: italic; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--lime); color: var(--ink); font: 700 16px/1 var(--sans); text-decoration: none; box-shadow: var(--shadow-hard); cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 0 var(--ink); background: var(--lime-2); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 0 var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-hard); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: 3px 3px 0 0 var(--ink); }
.btn--paper { background: var(--paper); }
.btn--paper:hover { background: #fff; }
.btn--block { width: 100%; }
.btn .arrow { font-family: var(--sans); font-weight: 700; }
.text-link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.text-link:hover { text-decoration-thickness: 2.5px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--sans); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; } .menu-toggle span::after { position: absolute; top: 6px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 72px 0 auto; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-row > .btn { display: none; }
}

/* polaroid */
.polaroid { position: relative; background: var(--paper); padding: 10px 10px 0; border-radius: 3px; box-shadow: var(--shadow-soft); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; background: var(--cream-2); }
.polaroid figcaption, .polaroid .cap { padding: 10px 4px 12px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.1; text-align: center; }
.polaroid .cap--sm { font: 500 11px/1.3 var(--mono); font-style: normal; text-align: left; padding: 8px 2px 10px; }
.tape::before { content: ""; position: absolute; top: -12px; right: 18%; width: 74px; height: 24px; background: rgba(214, 200, 240, .78); transform: rotate(4deg); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-copy .kicker { margin-bottom: 14px; }
.hero-copy .lede { margin: 22px 0 28px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-note strong { color: var(--ink); }
.hero-links { margin-top: 12px; font-size: 14px; }
.hero-art { position: relative; display: grid; grid-template-columns: .42fr 1fr; gap: 22px; align-items: center; }
.hero-art .stack { display: grid; gap: 18px; }
.hero-art .label { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 8px; }
.hero-art .stack .polaroid:nth-child(2) { transform: rotate(-3deg); }
.hero-art .stack .polaroid:nth-child(3) { transform: rotate(2.5deg); }
.hero-art .main { transform: rotate(1.5deg); }
.hero-art .arrow-doodle { position: absolute; left: 36%; top: 44%; width: 46px; color: var(--ink); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: .5fr 1fr; gap: 14px; max-width: 520px; }
  .hero-art .arrow-doodle { display: none; }
  .hero-art .polaroid figcaption { font-size: 18px; }
}

/* sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--band { background: var(--cream-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head p { max-width: 30em; }
.wavy-top { position: relative; }
.wavy-top::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 12px; background: radial-gradient(circle at 10px 12px, var(--cream-2) 10px, transparent 10.5px) repeat-x; background-size: 20px 12px; }

/* look cards */
.look-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.look-card { position: relative; display: block; text-decoration: none; }
.look-card .img { position: relative; border-radius: 6px; overflow: hidden; background: var(--cream-2); }
.look-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.look-card:hover img { transform: scale(1.035); }
.look-card .badge { position: absolute; left: 10px; top: 10px; }
.look-card .title { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-weight: 700; font-size: 15.5px; }
.look-card .line { margin-top: 2px; font-size: 14px; color: var(--muted); }
.badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; background: var(--lime); border: 1px solid var(--ink); font: 600 11px/1.1 var(--mono); letter-spacing: .02em; }
.badge--paper { background: var(--paper); }
.section-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 960px) { .look-grid { grid-template-columns: repeat(2, 1fr); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.step-card { border-radius: 14px; padding: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.step-card:nth-child(1) { background: var(--cream-2); }
.step-card:nth-child(2) { background: var(--sage); }
.step-card:nth-child(3) { background: var(--lavender); }
.step-card .visual { height: 210px; position: relative; display: grid; place-items: center; }
.step-card h3 { font: 700 19px/1.2 var(--sans); }
.step-card p { color: var(--muted); font-size: 15px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 72px); gap: 8px; }
.mini-grid img { width: 72px; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-soft); }
.mini-grid .on { outline: 2.5px solid var(--ink); outline-offset: 2px; position: relative; }
.mini-pair { display: flex; gap: 14px; }
.mini-pair .polaroid { width: 104px; padding: 6px 6px 0; }
.mini-pair .polaroid:first-child { transform: rotate(-4deg); } .mini-pair .polaroid:last-child { transform: rotate(3deg); }
.watermarked { position: relative; overflow: hidden; }
.watermarked::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='90'%3E%3Ctext x='75' y='50' text-anchor='middle' transform='rotate(-24 75 45)' font-family='monospace' font-size='13' font-weight='600' letter-spacing='4' fill='white' fill-opacity='.5'%3EPREVIEW%3C/text%3E%3C/svg%3E") center / 150px 90px repeat; pointer-events: none; }
.step-cta { text-align: center; margin-top: 36px; display: grid; justify-items: center; gap: 14px; }
.step-cta .serif { font-size: 26px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* book */
.book { --cover: #e9dfcb; --cover-ink: #2c241c; perspective: 1800px; width: min(100%, 360px); margin-inline: auto; }
.book__body { position: relative; aspect-ratio: 1 / 1; transform: rotateY(-24deg) rotateX(6deg); transform-style: preserve-3d; transition: transform .7s var(--ease); }
.book:hover .book__body, .book.is-flat .book__body { transform: rotateY(-8deg) rotateX(2deg); }
.book__pages { position: absolute; inset: 2.5% -3.2% 2.5% 3%; background: repeating-linear-gradient(90deg, #f3ecdf 0 2px, #e2d8c6 2px 3px); border-radius: 2px 6px 6px 2px; transform: translateZ(-14px); box-shadow: 18px 26px 40px -16px rgba(41, 35, 28, .45); }
.book__cover { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; background-color: var(--cover); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px); color: var(--cover-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; padding: 9% 12%; text-align: center; box-shadow: inset 7px 0 10px -6px rgba(0,0,0,.35), inset -1px 0 0 rgba(255,255,255,.25); overflow: hidden; }
.book__cover::before { content: ""; position: absolute; left: 4.5%; top: 0; bottom: 0; width: 1.5px; background: rgba(0,0,0,.14); box-shadow: 2px 0 0 rgba(255,255,255,.18); }
.book__photo { width: 62%; aspect-ratio: 4 / 5; padding: 3.5%; background: #fffdf7; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); }
.book__photo img { width: 100%; height: 100%; object-fit: cover; }
.book__title { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.05; max-width: 100%; overflow-wrap: anywhere; }
.book__sub { font: 500 clamp(8px, .9vw, 10.5px)/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .8; max-width: 100%; overflow-wrap: anywhere; }

/* keepsake feature */
.keepsake { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--blush); border-radius: 20px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); }
.keepsake .book { width: min(100%, 400px); }
.price-tag { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.price-tag strong { font: 400 46px/1 var(--display); }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--lime); border: 1px solid var(--ink); margin-top: 2px; }
@media (max-width: 860px) { .keepsake { grid-template-columns: 1fr; } .keepsake .book { order: -1; width: min(80%, 320px); } }

/* occasions */
.occasions { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s; }
.chip:hover { background: #fff; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--cream); }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.price-card .amt { font: 400 44px/1 var(--display); }
.price-card .amt small { font: 500 14px var(--sans); color: var(--muted); margin-left: 6px; }
.price-card.is-feature { background: var(--lime); border: 1.5px solid var(--ink); box-shadow: var(--shadow-hard); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; font-weight: 600; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* final cta + footer */
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--lavender); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 44px); }
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; } .footer-links a:hover { text-decoration: underline; }

/* simple pages */
.prose { max-width: 720px; }
.prose h2 { font: 700 20px/1.3 var(--sans); margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 10px; }
.notice { background: var(--paper); border: 1.5px dashed var(--ink); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* product mockups */
.mockup { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.mockup svg { width: 100%; height: 100%; }
.mockup--book { display: grid; place-items: center; padding: 12% 14%; background: radial-gradient(circle at 50% 40%, #f6ead6, #e3d1b6); }
.mockup--book .book { width: 100%; }
.mockup--book .book__title { font-size: clamp(14px, 2vw, 24px); }

/* order + admin pages */
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(41,35,28,.18); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.order-card { margin: 0; }
.order-wait { aspect-ratio: 4 / 5; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--cream-2); color: var(--muted); font-size: 14px; }
.order-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px 12px; }
.order-cap .serif { font-size: 19px; }
.admin-login { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; max-width: 520px; margin: 20px 0; }
.admin-login .field { flex: 1 1 200px; display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.admin-login input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); font-size: 16px; }
.admin-orders { display: grid; gap: 16px; margin-top: 20px; }
.admin-order { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.admin-order header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-order.is-pending, .admin-order.is-expired { opacity: .6; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; font-size: 14.5px; }
.admin-cols .kicker { margin: 8px 0 4px; }
.admin-cols pre { font: inherit; white-space: pre-wrap; margin: 0; }
.admin-cols ul { margin: 0; padding-left: 18px; }
.admin-ship { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.admin-ship select, .admin-ship input { min-height: 40px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 10px; background: #fff; }
.admin-files { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.admin-files li { display: flex; justify-content: space-between; gap: 8px; }
.linklike { border: 0; background: none; padding: 4px 0; cursor: pointer; text-decoration: underline; }

/* keepsakes page */
.ks-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.ks-collage > :first-child { grid-row: span 2; aspect-ratio: auto; }
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.set-card { display: grid; gap: 8px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.set-card.is-pick { border: 1.5px solid var(--ink); box-shadow: var(--shadow-hard); }
.set-card .btn { justify-self: start; margin-top: 6px; }
.set-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.set-visual--3 { grid-template-columns: repeat(3, 1fr); }
.set-price { display: flex; align-items: center; gap: 10px; }
.set-price strong { font: 400 34px/1 var(--display); }
.pieces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.piece { display: grid; gap: 4px; align-content: start; text-decoration: none; }
.piece .mockup { margin-bottom: 10px; transition: transform .35s var(--ease); }
.piece:hover .mockup { transform: translateY(-3px); }
.piece h3 { font: 700 16px/1.25 var(--sans); }
.piece-price { font: 400 26px/1 var(--display); margin-top: 6px; }
.keep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .pieces { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .sets { grid-template-columns: 1fr; }
  .pieces, .keep-grid { grid-template-columns: repeat(2, 1fr); }
  .ks-collage { max-width: 520px; }
}

/* cookie choice */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(420px, calc(100% - 32px)); display: grid; gap: 12px; padding: 16px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-hard); font-size: 14px; }
.consent div { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 900px) { .studio-page .consent { bottom: 84px; } }

/* home: fanned polaroids and audience doors */
.hero-fan { position: relative; min-height: 440px; }
.hero-fan .polaroid { position: absolute; width: 44%; }
.hero-fan .polaroid:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.hero-fan .polaroid:nth-child(2) { left: 28%; top: 0; width: 46%; z-index: 2; transform: rotate(1.5deg); }
.hero-fan .polaroid:nth-child(3) { right: 0; top: 56px; transform: rotate(6deg); }
.hero-art--single { grid-template-columns: .5fr 1fr; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.door { display: grid; gap: 6px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 18px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow-hard); border-color: var(--ink); }
.door .img { border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.door img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.door .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; }
  .door { grid-template-columns: clamp(84px, 28vw, 120px) minmax(0, 1fr); column-gap: 14px; }
  .door .btn { white-space: normal; }
  .door .img { grid-row: span 4; margin: 0; }
  .hero-fan { min-height: 0; aspect-ratio: 1.15; max-width: 520px; }
}

/* open pack slots on the order page */
.slots { display: grid; gap: 12px; margin-top: 40px; padding: 24px; border: 1.5px dashed var(--ink); border-radius: 16px; background: var(--paper); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.slot { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; font: 600 13.5px/1.25 var(--sans); cursor: pointer; }
.slot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; outline: 2.5px solid transparent; outline-offset: 2px; }
.slot[aria-pressed="true"] img { outline-color: var(--ink); }
.slot[aria-pressed="true"] span::before { content: "✓ "; }
.slots-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* interactive hardcover book (lib/book.js) */
.bk { --cover: #e9dfcb; --cover-ink: #2c241c; container-type: inline-size; display: grid; gap: 14px; }
.bk-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; perspective: 2600px; outline: none; cursor: pointer; transition: transform .7s cubic-bezier(.3,.7,.3,1); touch-action: pan-y; user-select: none; }
.bk-stage:focus-visible { outline: 3px solid var(--ink); outline-offset: 8px; border-radius: 6px; }
.bk.is-closed .bk-stage { transform: translateX(-25%); }
.bk.is-back .bk-stage { transform: translateX(25%); }
.bk-page, .bk-face { position: relative; overflow: hidden; background: #fbf6ec; }
.bk-page { box-shadow: 0 22px 40px -22px rgba(41, 35, 28, .5); }
.bk-left { border-radius: 4px 0 0 4px; }
.bk-right { border-radius: 0 4px 4px 0; }
.bk-page.is-blank { background: transparent; box-shadow: none; }
/* gutter shading */
.bk-left:not(.is-blank)::after, .bk-face--back::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 18%; background: linear-gradient(90deg, transparent, rgba(0,0,0,.12)); pointer-events: none; }
.bk-right:not(.is-blank)::after, .bk-face--front::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(270deg, transparent, rgba(0,0,0,.12)); pointer-events: none; }
.bk-page[data-kind="cover"]::after, .bk-page[data-kind="back"]::after, .bk-face[data-kind="cover"]::after { display: none; }
/* the turning leaf */
.bk-leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; z-index: 3; transition: transform .7s cubic-bezier(.3,.7,.3,1); }
.bk-leaf--fwd { left: 50%; transform-origin: left center; }
.bk-leaf--back { left: 0; transform-origin: right center; }
.bk-leaf--fwd.is-turning { transform: rotateY(-180deg); }
.bk-leaf--back.is-turning { transform: rotateY(180deg); }
.bk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 30px -12px rgba(41,35,28,.45); }
.bk-face--back { transform: rotateY(180deg); }
.bk-face.is-blank { background: transparent; box-shadow: none; }
/* page content (sizes scale with the book width) */
.bkp { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.2cqw; padding: 5cqw 4cqw; text-align: center; }
.bkp-title { font-family: var(--serif); font-style: italic; font-size: 3.4cqw; line-height: 1.1; overflow-wrap: anywhere; }
.bkp-small { font: 500 1.15cqw/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.bkp-tiny { font-size: 1.2cqw; color: var(--muted); margin-top: 1cqw; }
.bkp-body { font-family: var(--serif); font-size: 1.9cqw; line-height: 1.35; max-width: 32cqw; overflow-wrap: anywhere; }
.bkp-placeholder { color: var(--muted); font-style: italic; }
.bkp--cover { background-color: var(--cover); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px); color: var(--cover-ink); box-shadow: inset 6px 0 10px -6px rgba(0,0,0,.35); }
.bkp--cover .bkp-small { color: inherit; opacity: .8; }
.bkp-cover-photo { width: 26cqw; aspect-ratio: 4 / 5; padding: 1cqw; background: #fffdf7; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); margin-bottom: 1cqw; }
.bkp-cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.bkp-cover-title { font-family: var(--serif); font-style: italic; font-size: 3.6cqw; line-height: 1.05; overflow-wrap: anywhere; }
.bkp--back { place-content: end center; padding-bottom: 6cqw; }
.bkp--endpaper { background: radial-gradient(circle at 20% 20%, rgba(200,80,106,.08) 0 1.2cqw, transparent 1.3cqw) 0 0 / 6cqw 6cqw, #f4ece0; }
.bkp--photo { padding: 3.5cqw; place-content: stretch; }
.bkp--photo img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.bkp-note { position: absolute; left: 4.5cqw; bottom: 4.5cqw; background: rgba(255,253,247,.92); border-radius: 4px; padding: .5cqw 1cqw; font: 600 1.1cqw/1.2 var(--mono); }
.bkp--add { padding: 3.5cqw; place-content: stretch; justify-items: stretch; }
.bkp-add-box { display: grid; place-content: center; justify-items: center; gap: 1.2cqw; border: 2px dashed rgba(41,35,28,.35); border-radius: 6px; background: rgba(255,255,255,.4); }
.bkp-plus { width: 5cqw; height: 5cqw; border-radius: 50%; display: grid; place-items: center; background: var(--lime); border: 1.5px solid var(--ink); font-size: 3cqw; line-height: 1; }
.bkp-add-box .btn { cursor: pointer; }
.bk-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.bk-count { min-width: 12em; text-align: center; font: 500 13px/1.3 var(--mono); letter-spacing: .08em; color: var(--muted); }
.bk-btn[disabled] { opacity: .35; }
@media (max-width: 560px) {
  .bkp-add-box .btn { min-height: 32px; padding: 0 10px; font-size: 12px; box-shadow: 2px 2px 0 var(--ink); }
  .bk-count { min-width: 9em; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .bk-stage, .bk-leaf { transition: none; } }
.bk img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
/* small books (phones): bigger page text so it stays readable */
@container (max-width: 520px) {
  .bkp { padding: 4cqw 3cqw; gap: 1.6cqw; }
  .bkp-title, .bkp-cover-title { font-size: 4.8cqw; }
  .bkp-small { font-size: 2.1cqw; letter-spacing: .1em; }
  .bkp-body { font-size: 3cqw; max-width: 42cqw; }
  .bkp-tiny, .bkp-note { font-size: 2.2cqw; }
  .bkp-plus { width: 7cqw; height: 7cqw; font-size: 4cqw; }
  .bkp-cover-photo { width: 30cqw; }
}
/* short landscape screens: size the book by the screen height so a spread fits */
@media (max-height: 500px) and (orientation: landscape) { .bk { width: min(100%, calc((100svh - 150px) * 2)); margin-inline: auto; } }
/* real product photos (npm run images) */
.mockup--photo img { width: 100%; height: 100%; object-fit: cover; }
.set-visual--photo { grid-template-columns: 1fr !important; }
.keepsake-photo { width: min(100%, 440px); justify-self: center; border-radius: 14px; box-shadow: var(--shadow-soft); }

/* order page: re-rolls and versions */
.order-img { position: relative; }
.order-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.order-card.is-rerolling .order-img img { filter: blur(3px) saturate(.7); }
.order-reroll-note { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); font: 600 14px var(--sans); }
.order-reroll-note .spinner { border-color: rgba(255,255,255,.45); border-top-color: #fff; }
.order-tools { display: grid; gap: 4px; padding: 0 2px 12px; }
.order-tools .text-link { margin-left: 6px; }
.order-tools .linklike { justify-self: start; text-align: left; }
.order-tools .linklike[disabled] { opacity: .5; cursor: default; }
