/* ===== Infinite Easel: Pop Studio =====
   Bold bordered cards, stickers and one colour per collection. The "Premium layer" at the end adds
   the motion-ready polish (gloss, light streaks, glass header, painting window, checkout drawer). */
:root {
  --bg: #F4F1FF; --surface: #FFFFFF; --surface-2: #EEEAFB;
  --ink: #15131C; --muted: #5B566B; --line: #D9D3EE;
  --yellow: #FFD23F; --pink: #FF5CA8; --blue: #3D7BFF; --mint: #2FD69A; --orange: #FF8A3D;
  --purple: #A77BFF; --turquoise: #2CD3CB;
  --accent: var(--pink); --accent-ink: var(--ink);
  --danger: #D92D20; --ok: #0F8A5F; --warn: #E09A00;
  --radius: 16px; --border: 2.5px solid var(--ink); --shadow: 5px 5px 0 var(--ink);
  --head: "Unbounded", "Hind Siliguri", "Rubik", system-ui, sans-serif;
  --body: "Rubik", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.state-msg { color: var(--muted); padding: 24px 0; grid-column: 1 / -1; font-weight: 500; }

/* category colours */
[data-c="logos-branding"], [data-cat-id="logos-branding"] { --cc: var(--blue); --cc-ink: #fff; }
[data-c="cartoon-anime"], [data-cat-id="cartoon-anime"] { --cc: var(--pink); --cc-ink: var(--ink); }
[data-c="home-decor"], [data-cat-id="home-decor"] { --cc: var(--turquoise); --cc-ink: var(--ink); }
[data-c="movies-series-sitcoms"], [data-cat-id="movies-series-sitcoms"] { --cc: var(--purple); --cc-ink: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px;
  background: var(--yellow); color: var(--ink); border: var(--border); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn.ghost { background: var(--surface); }
.btn.block { width: 100%; }

.sticker { display: inline-block; font: 700 .78rem var(--head); letter-spacing: .02em; text-transform: uppercase; padding: 7px 12px; border: var(--border); border-radius: 999px; background: var(--surface); }
.sticker.yellow { background: var(--yellow); }
.sticker.pink { background: var(--pink); }
mark { color: inherit; padding: 0 .12em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.m-pink { background: linear-gradient(transparent 52%, var(--pink) 52%, var(--pink) 92%, transparent 92%); }
.m-blue { background: linear-gradient(transparent 52%, #8FB2FF 52%, #8FB2FF 92%, transparent 92%); }
.m-mint { background: linear-gradient(transparent 52%, var(--mint) 52%, var(--mint) 92%, transparent 92%); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: var(--border); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.2rem var(--head); text-decoration: none; white-space: nowrap; letter-spacing: -.02em; }
/* the tulip-vine emblem in a round badge */
.logo-mark { width: 44px; height: 44px; flex: none; border: var(--border); border-radius: 50%; background: #F7F1D7; box-shadow: 2px 2px 0 var(--ink); object-fit: cover; }
.cat-nav { display: flex; gap: 8px; margin-left: auto; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.cat-nav a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 7px 14px; border: var(--border); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.cat-nav a:hover { background: var(--cc); color: var(--cc-ink); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
/* Hero: Anika's photo, her letter and the slideshow.
   Wide screens: one row, all three the same size, buttons under the photo + letter.
   Narrower screens: stacked (photo, letter, buttons, slideshow). */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.hero-grid > .artist-photo { max-width: 540px; }
.hero-grid > .hero-cta { order: 3; margin-top: -8px; }
.hero-grid > .hero-carousel { order: 4; width: 100%; max-width: 420px; margin: 0 auto; }
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 30px clamp(26px, 2.8vw, 40px); align-items: stretch; }
  .hero-grid > .artist-photo { grid-area: 1 / 1; align-self: center; max-width: none; margin: 0 14px 0 4px; }
  .hero-grid > .paper-stage { grid-area: 1 / 2; display: flex; flex-direction: column; justify-content: center; }
  /* the slideshow card shares row 1 with the photo and letter; its arrows and dots sit in row 2 */
  .hero-grid > .hero-carousel { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; row-gap: 0; max-width: none; margin: 0; }
  .hero-grid > .hero-carousel .hc-controls { align-self: start; margin-top: 30px; }
  .hero-grid > .hero-cta { grid-column: 1 / span 2; grid-row: 2; align-self: start; margin: 0; }
  .hero-grid .hc-slide .card-img { aspect-ratio: 4 / 3; }
}
.hero h1 { font: 800 clamp(2.1rem, 4.6vw, 3.6rem)/1.08 var(--head); letter-spacing: -.035em; margin: 18px 0 18px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card { transform: rotate(2.5deg); }
.hero-card:hover { transform: rotate(0) translate(-2px, -2px); }
.hero-sticker { position: absolute; top: -16px; left: -14px; z-index: 2; transform: rotate(-8deg); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 20px 22px; background: var(--cc); color: var(--cc-ink); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .12s, box-shadow .12s; overflow: hidden; }
.tile:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.tile-name { font: 800 1.22rem/1.2 var(--head); letter-spacing: -.02em; max-width: 12em; }
.tile-count { font-weight: 600; font-size: .92rem; opacity: .9; }
.tile-go { position: absolute; right: 18px; bottom: 14px; width: 44px; height: 44px; border: var(--border); border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 1.2rem; }

.marquee { border-top: var(--border); border-bottom: var(--border); background: var(--ink); color: var(--yellow); overflow: hidden; margin-top: 24px; }
.marquee-track { display: flex; gap: 22px; width: max-content; padding: 14px 0; animation: marquee 32s linear infinite; font: 700 1rem var(--head); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.collection { padding: 72px 0 24px; }
.col-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 30px; }
.col-head h2 { font: 800 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--head); letter-spacing: -.03em; margin: 0; padding: 10px 18px; background: var(--cc); color: var(--cc-ink); border: var(--border); border-radius: 14px; box-shadow: var(--shadow); transform: rotate(-1deg); }
.col-head p { margin: 0; color: var(--muted); max-width: 34em; flex: 1 1 260px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 26px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .14s, box-shadow .14s; }
a.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card-img { position: relative; aspect-ratio: 1; border-bottom: var(--border); background: var(--surface-2); border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; right: 12px; font: 700 .72rem var(--head); text-transform: uppercase; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); }
.badge.low { background: var(--orange); }
.badge.out { background: var(--ink); color: var(--yellow); transform: rotate(6deg); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-body h3 { font: 700 1.04rem/1.25 var(--head); letter-spacing: -.02em; margin: 0; }
.card-body p { margin: 0; font-size: .88rem; color: var(--muted); }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price-tag { font: 800 1rem var(--head); background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 3px 10px; }
.sold { font-size: .84rem; font-weight: 600; color: var(--muted); }
.go { font-weight: 700; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pills [data-also-in] { display: contents; }
.cat-pill.also { text-decoration: none; background: var(--surface); }
.cat-pill.also:hover { background: var(--cc); color: var(--cc-ink); }
.cat-pill { display: inline-block; font: 700 .74rem var(--head); text-transform: uppercase; letter-spacing: .03em; padding: 5px 11px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cc, var(--surface-2)); color: var(--cc-ink, var(--ink)); margin-bottom: 6px; align-self: flex-start; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), #fff, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.sq { aspect-ratio: 1; border-radius: calc(var(--radius) - 3px); }
.skeleton-card { min-height: 100px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Info + footer ---------- */
.info { padding: 72px 0 80px; }
.info h2 { font: 800 2rem var(--head); letter-spacing: -.03em; margin: 0 0 24px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.box { border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.box.yellow { background: var(--yellow); } .box.blue { background: #CFDDFF; } .box.pink { background: #FFC6E0; }
.box h3 { font: 800 1.12rem var(--head); margin: 0 0 8px; letter-spacing: -.02em; }
.box p { margin: 0; }
.fees { display: flex; flex-direction: column; gap: 4px; }
.fees b { font: 800 1.35rem var(--head); margin-right: 6px; }
.site-foot { background: var(--ink); color: #CFCBDD; padding: 48px 0 32px; border-top: var(--border); }
.foot-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px 40px; }
.site-foot .logo { color: #fff; }
.site-foot .logo-mark { border-color: #fff; box-shadow: 2px 2px 0 rgba(255,255,255,.35); }
.site-foot p { margin: 8px 0 0; }
.site-foot a { color: var(--yellow); }
.fine { grid-column: 1 / -1; font-size: .84rem; border-top: 1px solid #39344A; padding-top: 16px; color: #8E89A0; }

/* ---------- Artwork page ---------- */
.back { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 22px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); }
.back:hover { background: var(--yellow); }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.art-media { position: sticky; top: 96px; }
.art-frame { position: relative; background: var(--cc, var(--surface-2)); border: var(--border); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); padding: 22px; }
.art-frame img { width: 100%; max-height: 72vh; object-fit: contain; border: var(--border); border-radius: 12px; background: var(--surface); }
.st-sold { position: absolute; left: -14px; top: 26px; transform: rotate(-9deg); font-size: .85rem; }
.st-stock { position: absolute; right: -12px; bottom: 30px; transform: rotate(6deg); background: var(--mint); font-size: .85rem; }
.st-stock[data-stock-state="low"] { background: var(--orange); }
.st-stock[data-stock-state="out"] { background: var(--ink); color: var(--yellow); }
.thumbs { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.thumb { width: 74px; height: 74px; padding: 0; border: var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { box-shadow: 3px 3px 0 var(--ink); outline: 3px solid var(--yellow); outline-offset: -6px; }

.art-info h1 { font: 800 clamp(1.9rem, 3.8vw, 2.9rem)/1.08 var(--head); letter-spacing: -.035em; margin: 8px 0 4px; }
.artist { margin: 0; color: var(--muted); font-weight: 500; }
.price-row { margin: 18px 0 16px; }
.price-big { display: inline-block; font: 800 1.8rem var(--head); background: var(--yellow); border: var(--border); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); padding: 6px 16px; transform: rotate(-1.5deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; background: var(--surface); font-size: .9rem; }
.chip b { font-weight: 700; margin-right: 2px; }
.desc { color: var(--muted); white-space: pre-line; margin: 0 0 24px; font-size: 1.02rem; }

/* ---------- Order form ---------- */
.order { background: var(--surface); border: var(--border); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); padding: 24px; }
.order-title { font: 800 1.35rem var(--head); letter-spacing: -.02em; margin: 0 0 4px; }
.order fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.order legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-row legend { width: 100%; }
.qty { display: inline-flex; align-items: stretch; border: var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.qty button { width: 44px; height: 46px; border: 0; background: var(--yellow); color: var(--ink); font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.qty button:hover:not(:disabled) { background: #FFC300; }
.qty button:disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.qty button:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }
.qty input { width: 58px; border: 0; border-left: var(--border); border-right: var(--border); background: var(--surface); color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; text-align: center; font: 800 1.1rem var(--head); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus, .qty input:focus-visible { outline: none; background: #FFF6CC; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; padding: 12px 14px; border: var(--border); border-radius: 14px; height: 100%; background: var(--surface); transition: background .12s, box-shadow .12s, transform .12s; }
.choice strong { font-weight: 700; }
.choice em { font-style: normal; font-size: .85rem; color: var(--muted); }
.choice:hover span { background: var(--surface-2); }
.choice input:checked + span { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.choice input:checked + span em { color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pay-note { font-size: .88rem; color: var(--muted); margin: 8px 0 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields label, .review-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; }
.fields .span2 { grid-column: 1 / -1; }
.fields label .hint { display: inline; }
.fields input, .fields textarea, .review-form input, .review-form textarea {
  font-weight: 400; width: 100%; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--surface); resize: vertical;
}
.fields input:focus, .fields textarea:focus, .review-form input:focus, .review-form textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--blue); }
.sum { margin: 22px 0 16px; padding: 14px 16px; border: 2px dashed var(--ink); border-radius: 14px; background: var(--bg); }
.sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--muted); }
.sum dd { margin: 0; color: var(--ink); font-weight: 600; }
.sum .sum-total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--ink); color: var(--ink); font: 800 1.15rem var(--head); }
.form-error { background: #FFE1DE; border: 2px solid var(--danger); color: #9B1C14; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: .93rem; margin: 0 0 12px; }
.form-ok { background: #D7F7EA; border: 2px solid var(--ok); color: var(--ok); border-radius: 12px; padding: 10px 12px; font-weight: 600; margin: 0 0 12px; }
.secure-note { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.soldout { background: var(--ink); color: #fff; border: var(--border); border-radius: 20px; box-shadow: 8px 8px 0 var(--pink); padding: 22px; }
.soldout strong { font: 800 1.5rem var(--head); color: var(--yellow); }
.soldout p { margin: 6px 0 0; }
.soldout a { color: var(--yellow); }

/* ---------- Reviews ---------- */
.reviews { margin-top: 84px; }
.rev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.rev-head h2 { font: 800 2rem var(--head); letter-spacing: -.03em; margin: 0; }
.rating-sum { display: flex; align-items: center; gap: 10px; background: var(--surface); border: var(--border); border-radius: 999px; padding: 6px 16px; }
.rating-big { font: 800 1.4rem var(--head); }
.stars { color: #F2A900; letter-spacing: 1px; }
.stars .off { color: var(--line); }
.rev-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.review-list { display: grid; gap: 22px; }
.review { position: relative; background: var(--surface); border: var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); }
.review::after { content: ""; position: absolute; left: 26px; bottom: -11px; width: 18px; height: 18px; background: var(--surface); border-right: var(--border); border-bottom: var(--border); transform: rotate(45deg); }
.review header { display: flex; justify-content: space-between; gap: 12px; }
.review p { margin: 6px 0 4px; white-space: pre-line; }
.review time { font-size: .82rem; color: var(--muted); }
.review.mine { background: #FFF6D6; }
.review.mine::after { background: #FFF6D6; }
.you-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border: var(--border); border-radius: 999px; background: var(--surface); font-size: .72rem; font-weight: 700; vertical-align: 2px; }
.rev-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.rev-acts { margin-left: auto; display: inline-flex; gap: 4px; }
.link-btn { background: none; border: 0; padding: 6px 8px; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 6px; }
.link-btn:hover { background: rgba(0,0,0,.06); }
.link-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.link-btn.danger { color: #B3261E; }
.link-btn[disabled] { opacity: .5; cursor: progress; }
.review-form { scroll-margin-top: 130px; background: #CFDDFF; border: var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 12px; }
.review-form h3 { margin: 0; font: 800 1.2rem var(--head); letter-spacing: -.02em; }
.star-field { border: 0; padding: 0; margin: 0; }
.star-field legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 2px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; vertical-align: middle; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.1rem; line-height: 1; padding: 2px; color: #fff; -webkit-text-stroke: 2px var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .08s, transform .12s; }
.star-input input:checked ~ label, .star-input label.on { color: var(--yellow); }
.star-input label.on { transform: scale(1.06); }
/* Preview on hover only with a mouse: on phones a "stuck" hover fought with the real choice. */
@media (hover: hover) and (pointer: fine) {
  .star-input:hover label { color: #fff; }
  .star-input:hover label:hover, .star-input:hover label:hover ~ label { color: var(--yellow); }
}
.star-note { display: inline-block; margin-left: 10px; vertical-align: middle; font-size: .9rem; font-weight: 700; }
@media (max-width: 600px) {
  .star-input { gap: 4px; }
  .star-input label { font-size: 2.6rem; padding: 3px; }
}
.star-input input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.missing { text-align: center; padding: 80px 0; }
.missing h1 { font: 800 2.2rem var(--head); margin: 0 0 8px; }
.missing p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Order confirmation ---------- */
.order-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: var(--border); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink); padding: 34px; text-align: center; }
.order-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; border: var(--border); background: var(--surface-2); }
.order-icon::after { content: "…"; font: 800 1.6rem var(--head); }
.order-card[data-state="cod"] .order-icon, .order-card[data-state="paid"] .order-icon { background: var(--mint); }
.order-card[data-state="cod"] .order-icon::after, .order-card[data-state="paid"] .order-icon::after { content: "✓"; }
.order-card[data-state="failed"] .order-icon, .order-card[data-state="cancelled"] .order-icon, .order-card[data-state="missing"] .order-icon, .order-card[data-state="error"] .order-icon { background: var(--pink); }
.order-card[data-state="failed"] .order-icon::after, .order-card[data-state="cancelled"] .order-icon::after, .order-card[data-state="missing"] .order-icon::after, .order-card[data-state="error"] .order-icon::after { content: "!"; }
.order-card h1 { font: 800 1.9rem/1.15 var(--head); letter-spacing: -.03em; margin: 0 0 8px; }
.order-lead { color: var(--muted); margin: 0 auto 24px; max-width: 30em; }
.order-item { display: flex; gap: 14px; align-items: center; text-align: left; padding: 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--bg); }
.order-item img { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; }
.order-item div { display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.order-item strong { color: var(--ink); }
.receipt { margin: 16px 0; text-align: left; padding: 12px 16px; border: 2px dashed var(--ink); border-radius: 14px; }
.receipt div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.receipt dd { margin: 0; color: var(--ink); font-weight: 600; }
.receipt .total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; color: var(--ink); font: 800 1.1rem var(--head); }
.order-code { font-size: .88rem; color: var(--muted); background: var(--yellow); border: 2px solid var(--ink); padding: 10px; border-radius: 12px; }
.order-code strong { color: var(--ink); word-break: break-all; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 14px; }
.order-help { font-size: .86rem; color: var(--muted); margin: 0; }


/* ---------- Navigation state ---------- */
.cat-nav a[aria-current="page"] { background: var(--cc); color: var(--cc-ink); box-shadow: 3px 3px 0 var(--ink); }
.foot-nav { display: flex; flex-direction: column; gap: 6px; }
.foot-nav a { color: #CFCBDD; text-decoration: none; }
.foot-nav a:hover { color: var(--yellow); }

/* ---------- Home: tile previews ---------- */
.tile { min-height: 190px; padding-right: 150px; }
.tile-pics { position: absolute; right: 16px; top: 16px; width: 124px; height: 110px; }
.tile-pics .mini { position: absolute; width: 74px; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 3px 3px 0 var(--ink); }
.tile-pics .mini img { width: 100%; height: 100%; object-fit: cover; }
.tile-pics .mini:nth-child(1) { right: 44px; top: 18px; transform: rotate(-8deg); }
.tile-pics .mini:nth-child(2) { right: 0; top: 0; transform: rotate(7deg); z-index: 1; }
.tile-pics .mini:nth-child(3) { right: 26px; top: 40px; transform: rotate(-2deg); z-index: 2; }
.tile-pics .mini.empty { border-style: dashed; box-shadow: none; background: transparent; }
.tile-go { z-index: 3; }
.col-head[data-c="new"] { --cc: var(--yellow); --cc-ink: var(--ink); }

/* ---------- Collection page ---------- */
.cat-count { font-size: .9rem; transform: rotate(-4deg); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 28px; }
.showing { font-weight: 600; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sort { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.sort select { padding: 9px 12px; border: var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 3px 3px 0 var(--ink); }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle span { display: inline-block; padding: 9px 14px; border: var(--border); border-radius: 10px; background: var(--surface); font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.toggle input:checked + span { background: var(--ink); color: var(--yellow); }
.toggle input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-carousel { max-width: 400px; margin: 0 auto; width: 100%; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { min-height: 130px; padding-right: 196px; }
  .tile-pics { right: 70px; top: 10px; }
  .info-grid { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; gap: 36px; }
  .art-media { position: static; }
  .rev-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .head-row { flex-wrap: wrap; gap: 4px; padding-top: 10px; padding-bottom: 6px; }
  .cat-nav { margin: 0 -16px; padding: 4px 16px 8px; width: calc(100% + 32px); }
  .hero { padding-top: 32px; }
  .order { padding: 18px; box-shadow: 5px 5px 0 var(--ink); }
  .choice-grid, .fields { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr; }
  .tile { padding-right: 170px; }
  .tile-pics { transform: scale(.82); transform-origin: top right; right: 64px; }
  .art-frame { padding: 14px; }
  .st-sold { left: -6px; }
  .st-stock { right: -6px; }
  .order-card { padding: 26px 18px; box-shadow: 6px 6px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* delivery note + bKash/Nagad panel */
.delivery-note{display:flex;gap:8px;align-items:center;margin:14px 0;padding:10px 14px;border:var(--border);border-radius:var(--radius);background:var(--surface-2);font-weight:500}
.mpay{margin-top:12px;padding:14px;border:var(--border);border-radius:var(--radius);background:var(--surface-2);display:grid;gap:12px}
.mpay ol{margin:0;padding-left:20px;display:grid;gap:6px}
.mpay .numrow{display:inline-flex;gap:10px;align-items:center;flex-wrap:wrap}.mpay .numrow strong{font-family:var(--head);font-size:1.2rem}
.mpay label{display:grid;gap:4px;font-weight:600}
.mpay input{padding:10px 12px;border:1.5px solid var(--line);border-radius:8px;font:inherit;background:var(--surface);color:var(--ink)}
.mpay .btn.sm{min-height:36px;padding:6px 12px;font-size:.88rem}

/* ===== Customized paintings, Facebook footer links, payment page, order code ===== */
[data-c="customized-paintings"], [data-cat-id="customized-paintings"] { --cc: var(--yellow); --cc-ink: var(--ink); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .88rem; }

/* footer: contact + Facebook */
.foot-social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.foot-social a { font-weight: 600; }

/* home: customized paintings section */
.custom-band { padding: 40px 0 16px; }
.custom-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--cc); color: var(--cc-ink); border: var(--border); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); padding: 38px; }
.custom-card h2 { font: 800 clamp(1.7rem, 3.4vw, 2.5rem)/1.1 var(--head); letter-spacing: -.03em; margin: 16px 0 12px; }
.custom-copy > p:not(.sticker) { margin: 0 0 24px; max-width: 34em; font-size: 1.05rem; }
.custom-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.custom-steps li { display: flex; align-items: center; gap: 14px; background: var(--surface); color: var(--ink); border: var(--border); border-radius: 14px; padding: 12px 14px; font-weight: 600; box-shadow: 3px 3px 0 var(--ink); }
.custom-steps b { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: var(--border); border-radius: 50%; background: var(--pink); font: 800 1rem var(--head); }

/* customized paintings page */
.custom-how { padding: 56px 0 8px; }
.custom-how h2, .custom-panel h2 { font: 800 clamp(1.5rem, 3vw, 2rem)/1.15 var(--head); letter-spacing: -.03em; margin: 0 0 22px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.how-n { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: var(--border); border-radius: 50%; background: var(--yellow); font: 800 1.1rem var(--head); }
.how-steps h3 { font: 800 1.05rem var(--head); letter-spacing: -.02em; margin: 2px 0 6px; }
.how-steps p { margin: 0; color: var(--muted); }
.custom-request { padding: 56px 0 88px; scroll-margin-top: 84px; }
.custom-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.custom-form .ref-note { margin: 14px 0; }
.custom-form .btn.block { margin-top: 4px; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.custom-done { text-align: center; background: var(--surface); border: var(--border); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); padding: 34px 24px; }
.custom-done .order-icon { background: var(--mint); }
.custom-done .order-icon::after { content: "✓"; }
.custom-done h3 { font: 800 1.5rem var(--head); letter-spacing: -.03em; margin: 0 0 8px; }
.custom-done p { color: var(--muted); margin: 0 auto 20px; max-width: 28em; }
.custom-done b { color: var(--ink); }
.custom-side { background: #CFDDFF; border: var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; }
.custom-side h3 { font: 800 1.2rem var(--head); letter-spacing: -.02em; margin: 0 0 6px; }
.custom-side p { margin: 0 0 14px; }
.contact-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; }
.contact-list span { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contact-list a { font-weight: 600; word-break: break-all; }
.side-social { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 0; }

/* payment page (bKash / Nagad) */
.pay-flow { margin: 10px 0 0; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: 12px; background: var(--bg); font-size: .92rem; }

/* order successful: prominent order code */
.order-card[data-state="verify"] .order-icon { background: var(--mint); }
.order-card[data-state="verify"] .order-icon::after { content: "✓"; }
.order-code { display: grid; justify-items: center; gap: 6px; padding: 16px; margin: 0 0 18px; background: var(--yellow); border: var(--border); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); font-size: .9rem; }
.order-code-label { font: 700 .76rem var(--head); text-transform: uppercase; letter-spacing: .05em; }
.order-code .code { font: 800 clamp(1.1rem, 4.6vw, 1.65rem)/1.2 var(--head); letter-spacing: .02em; word-break: break-all; user-select: all; }
.order-code-note { font-size: .84rem; }

@media (max-width: 900px) {
  .custom-card { grid-template-columns: 1fr; padding: 28px 22px; box-shadow: 6px 6px 0 var(--ink); }
  .how-steps { grid-template-columns: 1fr; }
  .custom-grid { grid-template-columns: 1fr; }
}

/* primary buttons on the yellow customized-paintings areas: dark, so they stand out */
.custom-card .btn:not(.ghost) { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--pink); }
.custom-card .btn:not(.ghost):hover { box-shadow: 6px 6px 0 var(--pink); }
.custom-card .btn:not(.ghost):active { box-shadow: 1px 1px 0 var(--pink); }

/* ===== Home: hero carousel that takes on each collection's colour =====
   The colour change is animated by heroColours() in js/core.js. It goes around the colour wheel
   (pink → purple → blue → turquoise), because a plain CSS fade between opposite colours passes
   through a dull grey and looked like a flicker. */
.hero { --hc: var(--yellow); --hc-ink: var(--ink); --hero-bg: var(--bg); background-color: var(--hero-bg); overflow-x: clip; }
[data-hero-c="logos-branding"] { --hc: var(--blue); --hc-ink: #fff; --hero-bg: #DCE6FF; }
[data-hero-c="cartoon-anime"] { --hc: var(--pink); --hc-ink: var(--ink); --hero-bg: #FFE0EE; }
[data-hero-c="home-decor"] { --hc: var(--turquoise); --hc-ink: var(--ink); --hero-bg: #D2F5F3; }
[data-hero-c="movies-series-sitcoms"] { --hc: var(--purple); --hc-ink: var(--ink); --hero-bg: #EDE4FF; }
[data-hero-c="customized-paintings"] { --hc: var(--yellow); --hc-ink: var(--ink); --hero-bg: #FFF3C2; }
.hero .hero-shop { background-color: var(--hc); color: var(--hc-ink); transition: transform .12s, box-shadow .12s; }

.hero-carousel { position: relative; }
.hc-stage { position: relative; display: grid; touch-action: pan-y; }
/* coloured block behind the card, follows the active collection */
.hc-stage::before { content: ""; position: absolute; inset: 22px -14px -14px 22px; background-color: var(--hc); border: var(--border); border-radius: 22px; transform: rotate(-4deg); }
.hc-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transform: translateX(28px) rotate(5deg); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.hc-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
/* keep every slide, the paper and the photo on their own steady layers, so the colour change
   only repaints the plain background (no flicker while slides swap) */
.hc-slide { will-change: opacity, transform; backface-visibility: hidden; }
.paper, .photo-frame { will-change: transform; }
.hc-slide .hero-card { height: 100%; }
.hero-sticker { background: var(--cc); color: var(--cc-ink); box-shadow: 3px 3px 0 var(--ink); }
.hc-empty-art { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--surface-2) 0 14px, var(--surface) 14px 28px); }
.hc-empty-art span { width: 96px; height: 96px; display: grid; place-items: center; border: var(--border); border-radius: 50%; background: var(--cc); color: var(--cc-ink); font-size: 2.6rem; box-shadow: var(--shadow); }
.hc-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; position: relative; }
.hc-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 1.1rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.hc-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.hc-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.hc-pause { font-size: .8rem; }
.hc-dots { display: flex; gap: 4px; }
.hc-dot { width: 26px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hc-dot::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cc); transition: width .3s ease; }
.hc-dot[aria-current="true"] { width: 40px; }
.hc-dot[aria-current="true"]::before { width: 34px; box-shadow: 2px 2px 0 var(--ink); }

/* ===== Home: every painting, grouped by collection ===== */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 34px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border: var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .12s, transform .12s; }
.jump a:hover { background: var(--cc); color: var(--cc-ink); transform: translateY(-2px); }
.jump a span { min-width: 26px; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cc); color: var(--cc-ink); font: 700 .78rem/1.4 var(--head); text-align: center; }
.all-groups { display: grid; gap: 56px; }
.cat-group { scroll-margin-top: 96px; }
.group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.group-head h3 { margin: 0; font: 800 clamp(1.15rem, 2.4vw, 1.5rem)/1.2 var(--head); letter-spacing: -.02em; padding: 6px 14px; background: var(--cc); color: var(--cc-ink); border: var(--border); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.group-count { font-weight: 600; color: var(--muted); }
.group-link { margin-left: auto; font-weight: 700; text-decoration: none; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.group-link:hover { background: var(--cc); color: var(--cc-ink); }

/* ===== Customized paintings: reference photos ===== */
.ref-field { display: flex; flex-direction: column; gap: 8px; }
.ref-label { font-weight: 600; font-size: .9rem; }
.ref-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 2.5px dashed var(--ink); border-radius: 14px; background: var(--bg); cursor: pointer; transition: background .12s; }
.ref-drop:hover, .ref-drop.over { background: #FFF3C2; }
.fields .ref-drop { flex-direction: row; gap: 14px; font-weight: 400; }
.ref-drop:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.ref-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ref-plus { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: var(--border); border-radius: 12px; background: var(--yellow); font: 800 1.6rem var(--head); box-shadow: 3px 3px 0 var(--ink); }
.ref-text { display: flex; flex-direction: column; gap: 2px; }
.ref-text strong { font-weight: 700; }
.ref-text em { font-style: normal; font-size: .86rem; color: var(--muted); }
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ref-item { position: relative; display: flex; flex-direction: column; gap: 4px; }
.ref-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; background: var(--surface-2); }
.ref-name { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-rm { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); font-weight: 800; font-size: 1.05rem; line-height: 1; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.ref-rm:hover { background: var(--pink); }
.ref-msg { margin: 0; font-size: .86rem; color: var(--muted); }
.ref-msg:empty { display: none; }

@media (max-width: 900px) {
  .hc-stage::before { inset: 18px -8px -10px 16px; }
}
@media (max-width: 600px) {
  .group-link { margin-left: 0; }
  .jump { margin-bottom: 26px; }
}

/* ===== Home: Anika intro on paper =====
   Paper: the greeting and note sit on a torn sheet; the photo, a paper cut-out beside it,
   gently sways (images drawn once by paperSheet() in js/core.js). */
:root { --grain: none; --paper-m: 18px; }
.paper-stage { position: relative; padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px) clamp(26px, 2.8vw, 34px); }
/* the sheet: one image drawn once by js (torn edges, fibres, grain, crease, offset shadow) */
.paper { position: absolute; inset: calc(var(--paper-m) * -1); rotate: -.6deg; background: no-repeat 0 0 / 100% 100%; }

/* two strips of tape, tinted with the current slide colour */
.paper-stage::before, .paper-stage::after { content: ""; position: absolute; z-index: 3; top: -14px; width: 104px; height: 30px; background-color: var(--hc); background-image: var(--grain), linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0)); opacity: .78; border-left: 2px dashed rgba(255,255,255,.7); border-right: 2px dashed rgba(255,255,255,.7); box-shadow: 1px 2px 0 rgba(21,19,28,.18); }
.paper-stage::before { left: 14px; rotate: -8deg; }
.paper-stage::after { right: 18px; rotate: 6deg; }

.paper-content { position: relative; z-index: 1; container-type: inline-size; }
/* greeting always on one line: the size follows the paper's width */
.hero h1.hello { font-size: min(3.5rem, 10cqi); white-space: nowrap; margin: 0 0 20px; }
/* the name: a big tag in the current slide colour */
.name-tag { display: inline-block; padding: .04em .26em .1em; margin-right: .14em; background-color: var(--hc); color: var(--hc-ink); border: 3px solid var(--ink); border-radius: .28em; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-3deg); }

/* the photo: a paper cut-out (fibrous white rim, grain, offset shadow) on a torn coloured block */
.artist-photo { position: relative; margin: 8px 16px 18px 8px; }
.photo-frame { position: relative; display: block; }
/* torn coloured block behind the photo (shape = --block-mask, drawn by js) and its offset shadow */
.photo-block, .photo-block-shadow { position: absolute; inset: 14px -14px -12px 16px; rotate: 5deg; -webkit-mask: var(--block-mask) 0 0 / 100% 100% no-repeat; mask: var(--block-mask) 0 0 / 100% 100% no-repeat; }
.photo-block { background-color: var(--hc); background-image: var(--grain); }
.photo-block-shadow { background: var(--ink); opacity: .85; translate: 3px 4px; }
.cutout { position: relative; display: block; padding: 10px; rotate: -2deg; transform-origin: 50% 60%; }
/* the torn white paper and its shadow are images drawn once by js (6px bigger all round for the torn edge) */
.cut-shadow, .cut-paper { position: absolute; inset: -6px; background: no-repeat 0 0 / 100% 100%; }
.cut-shadow { opacity: .88; translate: 6px 8px; }
.cutout img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1599 / 899; }
/* grain + soft edge shading over the photo, so it looks printed on the paper */
.cut-grain { position: absolute; inset: 10px; pointer-events: none; background-image: var(--grain); opacity: .8; box-shadow: inset 0 0 0 1px rgba(60, 45, 20, .12), inset 0 0 22px rgba(90, 70, 35, .22); }
/* label sits at the upper left, above the photo and outside its paper */
.artist-photo figcaption { position: relative; z-index: 2; display: block; width: fit-content; margin: 0 0 22px -2px; rotate: -4deg; white-space: nowrap; font-size: .8rem; padding: 6px 13px; box-shadow: 3px 3px 0 var(--ink); }
/* motion: set by js when the visitor allows animation. Only transforms move, so it stays smooth. */
.is-moving .cutout { will-change: transform; animation: paper-sway 5.5s ease-in-out infinite alternate both; }
.is-moving .cut-shadow { will-change: translate; animation: shadow-sway 5.5s ease-in-out infinite alternate both; }
@keyframes paper-sway {
  0% { transform: perspective(900px) rotateX(3deg) rotateY(-7deg); }
  50% { transform: perspective(900px) rotateX(-2deg) rotateY(1deg) translate3d(-2px, -5px, 16px); }
  100% { transform: perspective(900px) rotateX(-4deg) rotateY(7deg) translate3d(2px, -2px, 8px); }
}
@keyframes shadow-sway {
  0% { translate: 5px 7px; opacity: .9; }
  50% { translate: 11px 14px; opacity: .72; }
  100% { translate: 8px 10px; opacity: .8; }
}
.motto { font: 700 clamp(1rem, 1.45vw, 1.2rem)/1.5 var(--head); letter-spacing: -.02em; margin: 0; text-wrap: pretty; }
/* the warning: its own paragraph under the motto */
.motto.warn { margin-top: .9em; }
.warn b { font-weight: 800; }
.hehe { font-style: italic; font-weight: 800; white-space: nowrap; }

/* scrolling strip below the hero: text follows the slide colour */
.marquee-track span { color: var(--hc, var(--yellow)); }
.marquee-track i { color: #fff; }

@media (max-width: 600px) {
  /* phones: the paper holds everything stacked */
  .paper-stage { padding: 26px 18px 26px; margin-top: 4px; }
  .hero h1.hello { margin-bottom: 22px; }
  .name-tag { box-shadow: 3px 3px 0 var(--ink); border-width: 2.5px; }
  .artist-photo { margin: 4px 14px 10px 4px; }
  .motto { font-size: 1.05rem; }
  .paper-stage::before, .paper-stage::after { width: 78px; height: 24px; top: -11px; }
}

/* =====================================================================
   Premium layer: same colours and bold lines, with richer finish and motion.
   Everything that moves animates transform/opacity only, so it stays smooth.
   ===================================================================== */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --rainbow: linear-gradient(90deg, var(--blue), var(--pink), var(--turquoise), var(--purple), var(--yellow)); }
html { scroll-padding-top: 96px; }
html.locked { overflow: hidden; }
body { overflow-x: hidden; }
::selection { background: var(--yellow); color: var(--ink); }
/* a soft wash of the collection colours behind the page */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; will-change: transform; /* drawn once, then just moved */
  background: radial-gradient(60% 50% at 0% 0%, rgba(61, 123, 255, .10), transparent 70%), radial-gradient(50% 45% at 100% 30%, rgba(255, 92, 168, .09), transparent 70%), radial-gradient(60% 50% at 50% 100%, rgba(44, 211, 203, .10), transparent 70%); }

/* springy hovers instead of the old instant ones */
.btn, a.card, .tile, .hc-btn, .jump a, .jump .chip, .group-link, .choice span, .x, .back, .thumb { transition: transform .45s var(--spring), box-shadow .45s var(--spring), background-color .25s, color .25s; }

/* glossy buttons with a streak of light that crosses now and then (and on hover) */
.btn { position: relative; overflow: hidden; isolation: isolate; background-image: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%); }
.btn.ghost { background-image: linear-gradient(180deg, #fff, var(--surface-2)); }
.btn.shine::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 34%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: translateX(-120%) skewX(-20deg); animation: streak 6s var(--ease) 3s infinite; }
.btn.shine:hover::after { animation: streak 1s var(--ease); }
@keyframes streak { 0% { transform: translateX(-120%) skewX(-20deg); } 20%, 100% { transform: translateX(520%) skewX(-20deg); } }
.btn.block { width: 100%; }

/* ---------- Intro: the name pops up, colour stripes sweep the page open ---------- */
.curtain { display: none; position: fixed; inset: 0; z-index: 300; place-items: center; text-align: center; padding: 16px; background: var(--bg); overflow: hidden; }
.intro-on .curtain { display: grid; }
.curtain-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }
.intro-mark { width: 104px; height: 104px; border: var(--border); border-radius: 50%; background: #F7F1D7; box-shadow: 5px 5px 0 var(--ink); }
.intro-wm { font: 800 clamp(2.2rem, 8vw, 5.2rem)/1 var(--head); letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.intro-wm .ch { display: inline-block; text-shadow: 4px 4px 0 var(--chc, var(--pink)); }
.intro-wm .ch:nth-child(5n+1) { --chc: var(--blue); } .intro-wm .ch:nth-child(5n+2) { --chc: var(--pink); } .intro-wm .ch:nth-child(5n+3) { --chc: var(--turquoise); }
.intro-wm .ch:nth-child(5n+4) { --chc: var(--purple); } .intro-wm .ch:nth-child(5n) { --chc: var(--yellow); }
.intro-by { background: var(--yellow); transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); text-transform: none; font-size: clamp(.78rem, 2vw, .95rem); }
.curtain-stripe { position: absolute; top: 0; bottom: 0; z-index: 3; width: calc(20% + 2px); background: var(--cc); border-inline: var(--border); transform: translateY(101%); }
.curtain-stripe:nth-child(1) { left: 0; } .curtain-stripe:nth-child(2) { left: 20%; } .curtain-stripe:nth-child(3) { left: 40%; } .curtain-stripe:nth-child(4) { left: 60%; } .curtain-stripe:nth-child(5) { left: 80%; }
.pre [data-hero] { opacity: 0; }

/* ---------- Header: turns to frosted glass once you scroll, hides while scrolling down ---------- */
.site-head { transition: transform .6s var(--ease), background-color .4s, box-shadow .4s; }
/* a near-solid tint rather than a live blur: blurring what scrolls under the header costs a lot on phones */
.site-head.scrolled { background: rgba(244, 241, 255, .95); box-shadow: 0 6px 18px -12px rgba(21, 19, 28, .35); }
.site-head.away { transform: translateY(-110%); }
.progress { position: absolute; left: 0; right: 0; bottom: -2.5px; height: 4px; background: var(--rainbow); transform: scaleX(0); transform-origin: left; }
.logo-mark { transition: transform .8s var(--spring); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.cat-nav a { transition: transform .4s var(--spring), box-shadow .4s var(--spring), background-color .25s, color .25s; }
.cat-nav a:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Hero polish ---------- */
.hero { padding-top: 48px; }
.hero-card { box-shadow: 8px 8px 0 var(--ink); }
.hero-card .card-img img { transition: transform 6s var(--ease); }
.hc-slide.is-active .hero-card .card-img img { transform: scale(1.06); }
.hc-slide { transition: opacity .7s var(--ease), transform .8s var(--ease), visibility 0s linear .7s; }
.hc-slide.is-active { transition: opacity .7s var(--ease), transform .8s var(--ease), visibility 0s; }
.hero .hero-shop { transition: transform .45s var(--spring), box-shadow .45s var(--spring); }
.hero mark.m-pink, .hero mark.m-blue { background-size: 0 100%; background-repeat: no-repeat; animation: ink 1.1s var(--ease) 1s forwards; }
.hero mark.m-blue { animation-delay: 1.35s; }
.pre .hero mark, .intro-on .hero mark { animation-play-state: paused; }
@keyframes ink { to { background-size: 100% 100%; } }

/* tiles: the little pictures fan out on hover */
.tile-pics .mini { transition: transform .6s var(--spring), box-shadow .6s var(--spring); }
.tile:hover .tile-pics .mini:nth-child(1) { transform: rotate(-16deg) translate(-12px, 4px); }
.tile:hover .tile-pics .mini:nth-child(2) { transform: rotate(14deg) translate(8px, -6px); }
.tile:hover .tile-pics .mini:nth-child(3) { transform: rotate(0) translateY(-8px) scale(1.08); box-shadow: 5px 5px 0 var(--ink); }
.tile-go { transition: transform .6s var(--spring); }
.tile:hover .tile-go { transform: rotate(-45deg) scale(1.1); }
.tile, .custom-card, .box, .how-steps li { background-image: linear-gradient(160deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%); }

/* marquee: driven by js (it speeds up with your scrolling); plain css loop without it */
.marquee-track { animation: none; will-change: transform; }
.no-gsap .marquee-track { animation: marquee 32s linear infinite; }

/* ---------- Cards: lift, lean towards the mouse, glare, picture zoom ---------- */
/* only the card under the mouse gets a 3D transform: giving every card one made the browser keep each
   card as its own layer, which cost memory and drawing time while scrolling */
a.card:hover { transform: translate(-4px, -4px); box-shadow: 9px 9px 0 var(--ink); }
a.card.tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate(-4px, -4px); transition: transform .15s linear, box-shadow .45s var(--spring); }
.card-img img { transition: transform 1.1s var(--ease), filter .5s; }
a.card:hover .card-img img { transform: scale(1.07); }
.card[data-stock="out"] .card-img img { filter: grayscale(.55); }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 45%); }
a.card:hover .glare { opacity: 1; }
.badge { z-index: 1; }
.price-tag { background-image: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 60%); }

/* collection buttons above the gallery */
.toolbar { align-items: flex-start; }
.toolbar .jump { margin: 0; flex: 1 1 520px; }
.jump .chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border: var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .92rem; cursor: pointer; }
.jump .chip:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.jump .chip span { min-width: 26px; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cc, var(--yellow)); color: var(--cc-ink, var(--ink)); font: 700 .78rem/1.4 var(--head); text-align: center; }
.jump .chip[data-c="all"] { --cc: var(--yellow); --cc-ink: var(--ink); }
.jump .chip[aria-pressed="true"] { background: var(--cc, var(--yellow)); color: var(--cc-ink, var(--ink)); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.jump .chip[aria-pressed="true"] span { background: var(--surface); color: var(--ink); }
.col-head h2 { transition: background-color .5s, color .5s; }
.group-link { cursor: pointer; font: inherit; font-weight: 700; color: var(--ink); }

/* ---------- Overlays ---------- */
/* A plain tint, no blur: blurring the whole page behind it had to be redone on every frame of the
   opening animation and dropped it to ~20 frames a second (~15 with the checkout's second layer). */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(21, 19, 28, .62); }
.co-scrim { background: rgba(21, 19, 28, .4); }
.co-scrim { z-index: 120; }
.x { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.x:hover { background: var(--yellow); transform: rotate(90deg); }
.back { cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }

/* the artwork window (it used to be its own page) */
.pm { position: fixed; z-index: 110; inset: 3.5vh max(3vw, calc((100vw - 1200px) / 2)); border: var(--border); border-radius: 26px; background: var(--bg); box-shadow: 12px 12px 0 var(--ink); overflow: hidden; }
.pm > .x { position: absolute; top: 16px; right: 16px; z-index: 5; }
.pm-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(22px, 3vw, 40px); }
.pm .art-grid { gap: clamp(28px, 4vw, 48px); }
.pm .art-media { top: 0; }
.pm .art-frame img { max-height: min(62vh, 640px); }
.pm .art-info { padding-right: 52px; }
.pm .reviews { margin-top: 64px; }
.pm-rate { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.pm-rate:hover { color: var(--ink); }
.pm-buy .secure-note { margin-top: 12px; }
.pm .delivery-note { background: var(--surface); }

/* checkout drawer (it replaces the payment and order pages) */
.drawer { position: fixed; z-index: 130; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); display: flex; flex-direction: column; background: var(--bg); border-left: var(--border); box-shadow: -10px 0 0 rgba(21, 19, 28, .9); }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: var(--border); background: var(--surface); }
.drawer-head h2 { font: 800 1.35rem var(--head); letter-spacing: -.03em; margin: 0 auto 0 0; }
.drawer-head .back { margin: 0; }
.co-steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 12px 20px; border-bottom: 2px dashed var(--ink); }
.co-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); font: 700 .74rem var(--head); text-transform: uppercase; letter-spacing: .03em; transition: background-color .3s, transform .45s var(--spring), box-shadow .45s var(--spring); }
.co-steps b { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface-2); font-size: .72rem; }
.co-steps li.on { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.co-steps li.past b { background: var(--mint); }
.co-form { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.co-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 22px; display: grid; gap: 18px; align-content: start; }
.co-view { display: grid; gap: 18px; }
.co-view fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.co-view legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.drawer .order-item { background: var(--surface); }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.mpay { background: var(--surface); }
.mpay input { border: 2px solid var(--ink); border-radius: 10px; padding: 11px 12px; }
.mpay input:focus { outline: none; box-shadow: 3px 3px 0 var(--blue); }
.pay-flow { margin: 0; background: var(--surface); }
.co-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: var(--border); background: var(--surface); }
.co-foot .sum { margin: 0 0 12px; }
.co-foot .form-error { margin: 0 0 12px; }
.drawer .order-card { flex: 1; overflow-y: auto; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 28px 22px; }
.drawer .order-card .order-item { margin-bottom: 4px; }
.drawer .order-actions { flex-direction: column; }
.drawer .order-actions .btn { width: 100%; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; max-width: calc(100vw - 32px); padding: 12px 20px; border: var(--border); border-radius: 999px; background: var(--ink); color: var(--yellow); font-weight: 600; box-shadow: 4px 4px 0 var(--pink);
  transform: translate(-50%, 30px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .5s var(--spring), opacity .3s, visibility 0s .5s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--spring), opacity .3s; }

/* headings that rise out of a mask: room for letters like y and g */
[data-split] > div { padding-bottom: .12em; margin-bottom: -.12em; }

@media (max-width: 900px) {
  .pm { inset: 5vh 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; box-shadow: 0 -8px 0 var(--ink); }
  .pm .art-info { padding-right: 0; }
  .pm .art-media { padding-right: 52px; }
}
@media (max-width: 600px) {
  .choice-grid.three { grid-template-columns: 1fr; }
  .curtain-stripe { border-inline-width: 2px; }
  .pm-scroll { padding: 18px 16px 24px; }
  .pm .art-media { padding-right: 0; padding-top: 44px; }
  .drawer { box-shadow: none; border-left: 0; }
  .co-steps { padding: 10px 14px; gap: 6px; }
  .co-steps li { font-size: .64rem; padding-right: 9px; }
}
@media (prefers-reduced-motion: reduce) { .btn.shine::after { display: none; } }
