/* ---------- Announcement + header ---------- */
.announce {
  background: var(--cobalt); color: #fff; text-align: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; padding: 8px var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-stuck { border-color: var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.logo { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; justify-self: start; }
.logo__mark { width: 22px; height: 22px; display: grid; gap: 2.5px; }
.logo__mark i { display: block; height: 3.5px; border-radius: 2px; background: var(--ink); }
.logo__mark i:nth-child(1) { width: 55%; margin: 0 auto; }
.logo__mark i:nth-child(2) { width: 80%; margin: 0 auto; }
.logo__mark i:nth-child(3) { width: 100%; }
.logo__mark i:nth-child(4) { width: 100%; background: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font: 600 10.5px/17px var(--mono); text-align: center;
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

@media (max-width: 760px) {
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .site-header .wrap { height: auto; padding-top: 10px; row-gap: 6px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 80px); line-height: .98; letter-spacing: -.045em; font-weight: 500;
  margin: 18px 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--muted); }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 42ch; margin: 0 0 30px; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats { display: flex; gap: 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__stats b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.hero__stats span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero p { max-width: 56ch; }
}
@media (max-width: 520px) {
  .hero__stats { display: none; }
  .hero p { font-size: 16px; margin-bottom: 22px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); gap: 2px; }
.segmented a, .segmented button {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.segmented a:hover, .segmented button:hover { color: var(--ink); }
.segmented [aria-selected="true"], .segmented [aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented sup { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-left: 4px; top: -.4em; }

/* ---------- Product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px) clamp(12px, 1.6vw, 22px); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { display: block; position: relative; }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card__media img + img { opacity: 0; }
.card:hover .card__media img { transform: scale(1.03); }
.card:hover .card__media img + img { opacity: 1; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .86); color: var(--ink);
  backdrop-filter: blur(6px);
}
.badge--accent { background: var(--accent); color: #fff; }
.badge--dark { background: var(--ink); color: var(--bg); }
.quick-add {
  position: absolute; right: 10px; bottom: 10px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease), background .2s;
}
.quick-add:hover { background: var(--accent); color: #fff; }
.card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .quick-add { opacity: 1; transform: none; width: 36px; padding: 0; justify-content: center; } .quick-add span { display: none; } }
.card__body { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; }
.card__title { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.card__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card__price { font-size: 15px; font-weight: 500; white-space: nowrap; text-align: right; }
.card__price s { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.swatches-mini { display: flex; gap: 3px; margin-top: 7px; }
.swatches-mini i { width: 10px; height: 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.empty { padding: 80px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r); grid-column: 1 / -1; }
.skeleton { aspect-ratio: 4 / 5.8; border-radius: var(--r); background: linear-gradient(100deg, var(--surface-2) 40%, #f1eee8 50%, var(--surface-2) 60%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Shop page ---------- */
.shop-head { padding: clamp(28px, 4vw, 52px) 0 28px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.shop-head h1 { margin: 10px 0 8px; font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.shop-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.toolbar + .chips { padding: 0 0 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.toolbar + .chips:empty { padding: 0; }
.toolbar__left, .toolbar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--muted); }
.search .input { padding-left: 36px; height: 38px; border-radius: 999px; width: 240px; }
@media (max-width: 560px) { .toolbar__right, .search, .search .input { width: 100%; } .toolbar__right label:last-child { flex: none; } .toolbar__right { flex-wrap: nowrap; } .toolbar .segmented { overflow-x: auto; max-width: 100%; } }
.toolbar .select { height: 38px; border-radius: 999px; width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); transition: all .15s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.result-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { padding-top: 24px; padding-bottom: clamp(40px, 6vw, 80px); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.gallery__thumbs { display: grid; gap: 10px; align-content: start; }
.gallery__thumbs button { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); opacity: .6; transition: opacity .2s, box-shadow .2s; position: relative; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-row: 2; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; scrollbar-width: none; }
}

.buybox { position: sticky; top: 88px; }
.buybox h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; margin: 12px 0 10px; }
.buybox__summary { color: var(--ink-2); font-size: 16px; margin: 0 0 20px; }
.price { display: flex; align-items: baseline; gap: 10px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.price s { font-size: 16px; color: var(--muted); font-weight: 400; }
.price .badge { align-self: center; }
.opt { margin-top: 24px; }
.opt__label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.opt__label span:last-child { color: var(--muted); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; transition: transform .15s; }
.swatch:hover { transform: scale(1.06); }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 1.5px solid var(--ink); }
.buy-row { display: flex; gap: 10px; margin-top: 26px; }
.buy-row .btn { flex: 1; height: 52px; font-size: 15.5px; }
.stepper { display: inline-flex; align-items: center; height: 52px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.stepper button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { color: var(--ink); }
.stepper output { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper--sm { height: 32px; }
.stepper--sm button { width: 30px; }
.delivery { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.delivery .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); flex: none; }
.delivery .dot--warn { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
.specs { margin: 28px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.specs dd { margin: 0; }
.prose { margin-top: 28px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.prose p { margin: 0 0 1em; }
@media (max-width: 900px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
}

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(21, 20, 19, .32); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 100;
  background: var(--bg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(104%); transition: transform .45s var(--ease);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 17px; font-weight: 500; }
.drawer__body { overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item img, .line-item .ph { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.line-item__title { font-weight: 500; font-size: 14.5px; }
.line-item__variant { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.line-item__right { display: flex; flex-direction: column; justify-content: space-between; align-items: end; }
.line-item__remove { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line-item__remove:hover { color: var(--danger); }
.totals { display: flex; justify-content: space-between; font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.drawer__note { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.drawer__empty { display: grid; place-items: center; text-align: center; height: 100%; color: var(--muted); padding: 40px; }
.drawer__empty .btn { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font-family: var(--mono); font-weight: 400; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); max-width: 36ch; margin: 12px 0 0; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============================================================
   Motion + detail layer
   ============================================================ */

.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }


/* Cards */
.card__title { text-decoration: underline transparent; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.card:hover .card__title { text-decoration-color: currentColor; }
.quick-add .icon, .btn .icon { width: 17px; height: 17px; }
.is-added, .is-added:hover { background: var(--ok) !important; color: #fff !important; }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }
.link-arrow .icon { width: 17px; height: 17px; }

/* Toast */
.toast { display: flex; align-items: center; gap: 8px; }
.toast .icon { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.2; }

/* How it works */
.section--tight { padding: clamp(8px, 2vw, 20px) 0; }
.paths { background: var(--ink); color: #b9b4ab; border-radius: 28px; padding: clamp(24px, 5vw, 64px); }
.paths .eyebrow { color: #8b867d; }
.paths__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.paths__head h2 { color: #f3f1ec; margin: 10px 0 0; font-size: clamp(30px, 4vw, 54px); font-weight: 500; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.paths__head p { margin: 0; font-size: 15.5px; max-width: 40ch; justify-self: end; }
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.path {
  display: grid; align-content: start; gap: 20px; padding: clamp(20px, 3vw, 32px);
  border-radius: 20px; background: #1f1e1c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: box-shadow .3s, opacity .8s var(--ease) var(--delay, 0ms), transform .8s var(--ease) var(--delay, 0ms);
}
.path:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.path[data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }
.path__top { display: flex; justify-content: space-between; align-items: start; }
.path__top .tile__tag { color: #f3f1ec; }
.path__top img { width: clamp(88px, 10vw, 128px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; transition: transform .6s var(--ease); }
.path:hover .path__top img { transform: rotate(-4deg) scale(1.04); }
.path h3 { margin: 18px 0 0; color: #f3f1ec; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.035em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14.5px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 2px; }
.steps b { display: block; color: #f3f1ec; font-weight: 500; font-size: 15.5px; margin-bottom: 2px; }
.path__link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: #f3f1ec; font-weight: 500; font-size: 14.5px; padding-top: 4px; }
.path__link .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.path__link:hover { color: var(--accent); }
.path__link:hover .icon { transform: translateX(4px); }
@media (max-width: 860px) {
  .paths__head, .paths__grid { grid-template-columns: 1fr; }
  .paths__head p { justify-self: start; }
}

/* Custom print band */
.custom {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 32px;
  background: var(--accent); color: var(--ink); border-radius: 28px; padding: clamp(28px, 5vw, 64px); overflow: hidden;
}
.custom .eyebrow { color: rgba(21, 20, 19, .66); }
.custom h2 { margin: 10px 0 14px; font-size: clamp(32px, 4.6vw, 62px); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.custom p { margin: 0 0 28px; max-width: 42ch; font-size: 16.5px; color: rgba(21, 20, 19, .8); }
.stack { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(240px, 100%); justify-self: center; }
.stack i { display: block; width: var(--w); height: 7px; border-radius: 3px; background: var(--ink); transform-origin: left center; }
.stack::after { content: ""; width: 120%; height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(21, 20, 19, .28); }
.stack[data-reveal]:not(.in) i { transform: scaleX(0); }
.stack.in i { animation: extrude .32s var(--ease) calc(var(--i) * 75ms) both; }
@keyframes extrude { from { transform: scaleX(0); } }
@media (max-width: 700px) { .custom { grid-template-columns: 1fr; } .stack { width: 160px; justify-self: start; } }

/* Shop header meta */
.shop-meta { display: grid; gap: 10px; justify-items: end; text-align: right; font-size: 13.5px; color: var(--muted); }
.swatch-stack { display: flex; padding-left: 8px; }
.swatch-stack i { width: 28px; height: 28px; margin-left: -8px; border-radius: 99px; border: 2px solid var(--bg); box-shadow: inset 0 0 0 1px rgba(21, 20, 19, .12); transition: margin .35s var(--ease); }
.shop-meta:hover .swatch-stack i { margin-left: 3px; }
.format-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.format-row span { font-family: var(--mono); font-size: 11.5px; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--bg); }
@media (max-width: 640px) { .shop-meta { justify-items: start; text-align: left; } .format-row { justify-content: start; } }

/* Product page */
.buy-row .btn { transition: background .25s, transform .15s var(--ease); }
.buybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.buybar.show { transform: none; }
.buybar b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar span { font-size: 13px; color: #a19c93; }
.buybar > div { min-width: 0; }
@media (max-width: 900px) { .buybar { display: flex; } }
@media (max-width: 900px) { body:has(.buybar.show) .toast-stack { bottom: 84px; } }

/* ============================================================
   Colour system: 3D Files = cobalt, Printed Items = orange
   ============================================================ */
[data-type="file"] { --type: var(--cobalt); --type-soft: var(--cobalt-soft); --type-ink: #fff; }
[data-type="print"] { --type: var(--accent); --type-soft: var(--accent-soft); --type-ink: #fff; }

/* Category tiles: solid colour blocks with a framed picture inside */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 18px;
  border-radius: var(--r-lg); background: var(--type); color: var(--type-ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--type) 70%, transparent); }
.tile__media { position: relative; aspect-ratio: 1 / 1.02; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__media .tile__tag { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .9); color: var(--ink); }
.tile__count { position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 11px; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: #fff; }
.tile__tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.tile__bottom { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 0 8px; }
.tile h2 { margin: 0; font-size: clamp(24px, 2.5vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.tile__meta { font-size: 13px; opacity: .8; margin-top: 7px; }
.tile__arrow {
  flex: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: #fff; color: var(--ink); transition: transform .35s var(--ease);
}
.tile:hover .tile__arrow { transform: rotate(-45deg); }
@media (max-width: 520px) {
  .tiles { gap: 10px; }
  .tile { padding: 8px 8px 14px; gap: 10px; }
  .tile__bottom { padding: 0 6px; }
  .tile h2 { font-size: 21px; }
  .tile__meta, .tile__count { display: none; }
  .tile__arrow { width: 34px; height: 34px; }
}

/* Hero accents */
.hero h1 { --hot: var(--cobalt); }
.hero h1 em { font-style: normal; color: var(--accent); --hot: var(--sun); }
.hero__stats b[data-count="file"] { color: var(--cobalt); }
.hero__stats b[data-count="print"] { color: var(--accent); }
.hero__stats b[data-count="colors"] { color: var(--sage); }
.hero__cta .btn { gap: 10px; }
.hero__cta .btn i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: .55; }

/* Product cards as boxes */
.card {
  background: var(--surface); border-radius: 18px; padding: 8px 8px 14px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--type), 0 16px 34px -18px color-mix(in srgb, var(--type) 60%, transparent); }
.card__media { border-radius: 12px; }
.card__body { padding: 12px 6px 0; }
.card__type { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--type); margin-bottom: 4px; }
.card__type::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--type); }
.card:hover .card__media img { transform: none; }
.quick-add { background: var(--type); }
.quick-add:hover { background: var(--ink); }
.badge--dark { background: var(--cobalt); color: #fff; }
.badge--new { background: var(--sage-soft); color: #33502d; }
.badge--low { background: var(--sun-soft); color: #7a5400; }

/* Segmented + chips pick up colour */
.chip[aria-pressed="true"] { background: var(--cobalt); }
.segmented [data-filter="file"][aria-selected="true"], .segmented [data-tab="files"][aria-current="page"] { color: var(--cobalt); }
.segmented [data-filter="print"][aria-selected="true"], .segmented [data-tab="prints"][aria-current="page"] { color: var(--accent); }
.nav a[href="/shop/files"][aria-current="page"] { background: var(--cobalt); color: #fff; }
.nav a[href="/shop/prints"][aria-current="page"] { background: var(--accent); color: #fff; }

/* Shop header tinted per tab */
.shop-band { border-radius: 28px; padding: clamp(24px, 4vw, 44px); margin-top: clamp(16px, 2vw, 24px); background: var(--surface); }
.shop-band[data-type] { background: var(--type-soft); }
.shop-band[data-type] .eyebrow { color: var(--type); }
.shop-band .shop-head { padding: 0; }
.shop-band + .toolbar { border-top: 0; margin-top: 12px; }

/* Paths: colour-coded */
.path__top .tile__tag { color: #fff; background: var(--type); }
.path .steps li::before { color: var(--type); }
.path .path__link:hover { color: var(--type); }
.path { box-shadow: inset 0 3px 0 var(--type), inset 0 0 0 1px rgba(255, 255, 255, .06); }

/* Custom band in sunshine yellow */
.custom { background: var(--sun); }
/* Filament swap mid-print: orange on top, ink in the middle, cobalt at the base */
.custom .stack i:nth-child(-n + 6) { background: var(--accent); }
.custom .stack i:nth-child(n + 13) { background: var(--cobalt); }

/* Product page */
.buybox[data-type] .eyebrow { color: var(--type); }
.buybox[data-type] .btn--accent { background: var(--type); }
.buybox[data-type] .btn--accent:hover { background: var(--ink); }
.buybar[data-type] .btn--accent { background: var(--type); }

/* ============================================================
   Motion: boxes and letters print in, layer by layer
   ============================================================ */

/* Boxes: the whole box builds up from the bed, with a nozzle line on top */
.printable { position: relative; }
/* Hidden with opacity (not clip-path) so scroll detection still sees the box */
.printable[data-reveal]:not(.in) { opacity: 0; }
.printable.in { animation: box-print 1.1s steps(22, jump-none) var(--delay, 0ms) both; }
@keyframes box-print { from { clip-path: inset(100% -40px -40px -40px); } to { clip-path: inset(-40px -40px -40px -40px); } }
.nozzle {
  position: absolute; left: -6px; right: -6px; bottom: 0; height: 3px; margin-bottom: -3px; border-radius: 2px;
  background: var(--type, var(--accent)); z-index: 5; pointer-events: none; opacity: 0;
}
.printable.in > .nozzle { animation: nozzle 1.1s steps(22, jump-none) var(--delay, 0ms) both; }
@keyframes nozzle { 0% { bottom: 0; opacity: 1; } 99% { bottom: 100%; opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
.printable.no-motion, .printable.no-motion.in { clip-path: none; animation: none; }
.printable.no-motion > .nozzle { display: none; }

/* Letters: each character prints in a few layers, "hot" in colour, then cools to its final colour */
.ptext .w { display: inline-block; white-space: nowrap; }
.ptext .ch { display: inline-block; }
.ptext[data-reveal]:not(.in) .ch { clip-path: inset(100% -15% -30% -15%); }
.ptext.in .ch {
  --t: calc(var(--delay, 0ms) + var(--i) * var(--char-step, 18ms));
  animation:
    ch-print .4s steps(6, jump-none) var(--t) both,
    ch-cool 1s var(--ease) calc(var(--t) + .3s) both;
}
@keyframes ch-print { from { clip-path: inset(100% -15% -30% -15%); } to { clip-path: inset(-30% -15% -30% -15%); } }
@keyframes ch-cool { from { color: var(--hot, var(--accent)); } }
.ptext.no-motion .ch { clip-path: none; animation: none; }

/* Supporting copy fades up after the headline */
.rise { opacity: 0; transform: translateY(12px); }
body.ready .rise { opacity: 1; transform: none; transition: opacity .8s var(--ease) var(--rise, 0ms), transform .8s var(--ease) var(--rise, 0ms); }

/* Paths fade replaced by box print */
.path[data-reveal]:not(.in) { opacity: 1; transform: none; }

/* ============================================================
   Friendly hero
   ============================================================ */
.hero { padding-top: clamp(28px, 4.5vw, 60px); }
.hero .wrap { align-items: center; }
.hello {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500;
}
.hello .logo__mark { width: 26px; height: 26px; padding: 5px; border-radius: 99px; background: var(--sun-soft); gap: 2px; }
.hello .logo__mark i { height: 3px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 74px); line-height: 1; letter-spacing: -.04em; margin: 22px 0 20px; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 30px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.hero__chips li { display: inline-flex; align-items: center; gap: 7px; }
.hero__chips .icon { width: 18px; height: 18px; padding: 3px; border-radius: 99px; stroke-width: 2.6; color: #fff; background: var(--sage); }
.hero__chips li:nth-child(2) .icon { background: var(--cobalt); }
.hero__chips li:nth-child(3) .icon { background: var(--accent); }

/* Tiles sit at a playful angle and straighten up on hover */
.tiles { padding: 18px 6px 6px; }
.tile[data-type="file"] { rotate: -2deg; }
.tile[data-type="print"] { rotate: 2deg; margin-top: 28px; }
.tile { transition: transform .4s var(--ease), box-shadow .4s var(--ease), rotate .5s var(--ease); }
.tile:hover { rotate: 0deg; }
.sticker {
  position: absolute; z-index: 6; top: -16px; right: -12px; width: 78px; height: 78px; border-radius: 99px;
  display: grid; place-items: center; text-align: center; rotate: 12deg;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; font-weight: 500;
  background: var(--sun); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(21, 20, 19, .45);
  transition: rotate .5s var(--ease), scale .4s var(--ease);
}
.sticker--print { background: var(--sage-soft); color: #2e4a29; rotate: -10deg; }
.tile:hover .sticker { rotate: 0deg; scale: 1.06; }
@media (max-width: 980px) { .tiles { max-width: 640px; } }
@media (max-width: 520px) {
  .tile[data-type="print"] { margin-top: 18px; }
  .sticker { width: 60px; height: 60px; font-size: 9px; top: -12px; right: -6px; }
  .hero__chips { font-size: 13px; }
}

/* ============================================================
   Popular right now: endless row of product boxes
   ============================================================ */
.popular { padding-bottom: clamp(32px, 5vw, 64px); }
.popular .section-head { margin-bottom: 18px; }
.marquee {
  overflow: hidden; padding: 10px 0 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--duration, 50s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 18px; padding-right: 18px; }
.marquee .card { flex: none; width: clamp(220px, 21vw, 280px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee__track { animation: none; }
  .marquee__group[aria-hidden] { display: none; }
}

/* ============================================================
   Custom work: two kinds of quote
   ============================================================ */
.custom { display: grid; grid-template-columns: 1fr; gap: clamp(22px, 3vw, 36px); }
.custom__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.custom__copy p { margin-bottom: 0; }
.custom .stack { width: clamp(110px, 14vw, 170px); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(20px, 2.6vw, 30px); border-radius: 20px; background: #fffaf0;
  box-shadow: inset 0 4px 0 var(--type);
}
.quote .tile__tag { background: var(--type); color: #fff; }
.quote h3 { margin: 4px 0 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.035em; }
.quote > p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 40ch; }
.quote__list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.quote__list li { display: flex; align-items: center; gap: 9px; }
.quote__list li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--type); flex: none; }
.quote__btn { margin-top: auto; background: var(--type); color: #fff; }
.quote__btn:hover { background: var(--ink); }
.quote__btn .icon { transition: transform .25s var(--ease); }
.quote__btn:hover .icon { transform: translateX(3px); }
@media (max-width: 760px) {
  .quotes { grid-template-columns: 1fr; }
  .custom__head { grid-template-columns: 1fr; }
  .custom .stack { display: none; }
}
.tile__count { top: auto; right: auto; bottom: 10px; left: 10px; }
.custom .stack { width: clamp(96px, 11vw, 140px); }

.toolbar { margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.toolbar .chips { flex: 1; }

/* Mobile fixes */
.nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .toast-stack, body:has(.buybar.show) .toast-stack { top: 14px; bottom: auto; }
  .toolbar__right .search { flex: 1; min-width: 0; }
}

/* Custom request link in the header */
.nav__custom { display: inline-flex; align-items: center; gap: 7px; }
.nav__custom i { width: 7px; height: 7px; border-radius: 2px; background: var(--sun); box-shadow: 0 0 0 2px var(--sun-soft); }
#custom { scroll-margin-top: 90px; }
.nav__short { display: none; }
@media (max-width: 760px) {
  .nav__long { display: none; }
  .nav__short { display: inline; }
}

/* ============================================================
   Live chat
   ============================================================ */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat__launcher {
  position: relative; width: 58px; height: 58px; border-radius: 99px; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 12px 30px -10px rgba(21, 20, 19, .55);
  transition: transform .3s var(--ease), background .2s;
}
.chat__launcher:hover { transform: scale(1.06); background: var(--cobalt); }
.chat__launcher::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 99px;
  background: #34c759; border: 2.5px solid var(--bg);
}
.chat.is-open .chat__launcher::after { display: none; }
.chat__ico { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .2s, transform .3s var(--ease); }
.chat__ico .icon { width: 24px; height: 24px; }
.chat__ico--close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat__ico--open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat__ico--close { opacity: 1; transform: none; }
.chat__badge {
  position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: var(--accent); color: #fff; font: 600 12px/22px var(--mono); text-align: center; animation: bump .5s var(--ease);
}

.chat__panel {
  width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 120px));
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  background: var(--bg); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(21, 20, 19, .45), 0 0 0 1px rgba(21, 20, 19, .06);
  transform-origin: bottom right; animation: chat-in .35s var(--ease);
}
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--ink); color: #fff; }
.chat__avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: var(--sun); }
.chat__avatar .logo__mark { width: 20px; height: 20px; }
.chat__dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 99px; background: #34c759; border: 2.5px solid var(--ink); }
.chat__dot--inline { position: static; display: inline-block; width: 7px; height: 7px; border: 0; margin-right: 6px; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .6); } 50% { box-shadow: 0 0 0 4px rgba(52, 199, 89, 0); } }
.chat__who { flex: 1; min-width: 0; display: grid; }
.chat__who strong { font-weight: 500; font-size: 15px; }
.chat__who span { font-size: 12.5px; color: #b9b4ab; }
.chat__close { color: #fff; }
.chat__close:hover { background: rgba(255, 255, 255, .1); }

.chat__body { overflow-y: auto; padding: 16px 14px; overscroll-behavior: contain; }
.chat__log { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; display: grid; gap: 3px; }
.msg p { margin: 0; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { font-size: 11px; color: var(--muted); padding: 0 6px; }
.msg--in { align-self: flex-start; }
.msg--in p { background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-bottom-left-radius: 5px; }
.msg--out { align-self: flex-end; justify-items: end; }
.msg--out p { background: var(--cobalt); color: #fff; border-bottom-right-radius: 5px; }
.msg.is-pending p { opacity: .6; }
.chat__error { margin: 4px 0 0; font-size: 13px; color: var(--danger); text-align: center; }
.chat__contact { display: grid; gap: 8px; margin-top: 6px; padding: 12px; border-radius: 14px; background: var(--sun-soft); }
.chat__contact p { margin: 0 0 2px; font-size: 13.5px; }
.chat__contact .input { height: 38px; }
.chat__contact > div { display: flex; align-items: center; gap: 12px; }
.chat__skip { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat__form textarea { flex: 1; resize: none; border: 0; outline: 0; background: none; padding: 9px 0; max-height: 120px; font-size: 15px; line-height: 1.4; }
.chat__send { flex: none; width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: #fff; transition: background .2s; }
.chat__send:hover { background: var(--ink); }
.chat__send .icon { width: 18px; height: 18px; stroke-width: 2; }

@media (max-width: 760px) {
  .chat { right: 12px; bottom: 12px; }
  .chat__launcher { width: 52px; height: 52px; }
  body:has(.buybar.show) .chat { bottom: 84px; }
  .chat.is-open { left: 12px; top: 12px; }
  .chat.is-open .chat__panel { width: 100%; height: 100%; flex: 1; }
  .chat__body textarea, .chat__form textarea { font-size: 16px; }
}
@media (max-width: 760px) {
  .chat.is-open .chat__launcher { display: none; }
  .chat.is-open .chat__panel { max-height: none; }
}

/* ============================================================
   Crawlable fallback content (replaced by the app once scripts run)
   ============================================================ */
.ssr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.ssr-product { max-width: 640px; padding: 20px 0; }
.ssr-product img { width: 240px; border-radius: var(--r); margin-bottom: 16px; }
.ssr-product h1 { font-size: 36px; font-weight: 500; letter-spacing: -.03em; margin: 0 0 8px; }

/* ============================================================
   Legal (intentionally quiet)
   ============================================================ */
.legal-links { display: flex; gap: 14px; justify-content: center; margin-top: 18px; font-size: 11px; opacity: .55; }
.legal-links a:hover { text-decoration: underline; opacity: 1; }
.legal { max-width: 720px; padding: 40px var(--gutter) 60px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.legal__nav { display: flex; gap: 16px; font-size: 13px; margin-bottom: 20px; }
.legal__nav a { color: var(--muted); }
.legal__nav a:hover { color: var(--ink); }
.legal section { padding: 18px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
.legal h3 { font-size: 15px; font-weight: 500; color: var(--ink); margin: 18px 0 4px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal__updated { font-size: 12px; color: var(--muted); margin-top: 24px; }
.legal ~ .chat, body:has(.legal) .chat { display: none; }

/* ============================================================
   Checkout
   ============================================================ */
.checkout { padding-top: 28px; padding-bottom: 60px; }
.checkout__head { margin-bottom: 22px; }
.checkout__head h1 { margin: 12px 0 0; font-size: clamp(34px, 4.5vw, 54px); font-weight: 500; letter-spacing: -.045em; }
.checkout__head .link-arrow { color: var(--muted); }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.checkout__form { display: grid; gap: 14px; }
.co-card { background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 14px; }
.co-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; }
.co-card h2 > span:first-child { width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 500 12px var(--mono); }
.co-card h2 .muted { font-size: 13px; font-weight: 400; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout__submit { height: 54px; font-size: 16px; }
.checkout__fine { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.checkout__fine a { text-decoration: underline; text-underline-offset: 2px; }
.co-summary { position: sticky; top: 88px; background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.co-summary h2 { margin: 0 0 10px; font-size: 17px; font-weight: 500; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-line img, .co-line .ph { width: 52px; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; }
.co-line b { display: block; font-weight: 500; font-size: 14.5px; }
.co-line span { font-size: 12.5px; color: var(--muted); }
.co-line .co-line__price { font-size: 14.5px; color: var(--ink); }
.co-totals { margin: 12px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.co-totals div { display: flex; justify-content: space-between; }
.co-totals dt { color: var(--muted); }
.co-totals dd { margin: 0; }
.co-totals__total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.co-totals__total dt { color: var(--ink); }
.co-done { max-width: 560px; margin: 40px auto; text-align: center; display: grid; justify-items: center; gap: 6px; }
.co-done__check { width: 64px; height: 64px; border-radius: 99px; display: grid; place-items: center; background: var(--sage-soft); color: #1f7a52; margin-bottom: 10px; }
.co-done__check .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.co-done h1 { margin: 4px 0 6px; font-size: clamp(32px, 4.5vw, 48px); font-weight: 500; letter-spacing: -.04em; }
.co-done p { margin: 0 0 18px; color: var(--ink-2); }
@media (max-width: 860px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .co-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Custom request form
   ============================================================ */
button.quote__btn { border: 0; }
.qf {
  --type: var(--accent); --type-soft: var(--accent-soft);
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 24px;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.qf[data-type="file"] { --type: var(--cobalt); --type-soft: var(--cobalt-soft); }
.qf[open] { display: flex; animation: qf-in .35s var(--ease); }
.qf::backdrop { background: rgba(21, 20, 19, .45); backdrop-filter: blur(3px); }
@keyframes qf-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.qf__form { display: grid; grid-template-rows: auto 1fr auto; width: 100%; max-height: calc(100dvh - 40px); }
.qf__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 20px 22px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.qf__head .eyebrow { color: var(--type); }
.qf__head h2 { margin: 4px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.qf__body { overflow-y: auto; padding: 18px 22px 8px; display: grid; gap: 14px; align-content: start; overscroll-behavior: contain; }

.qf__kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.qf__kind {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 14px;
  border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: box-shadow .15s, background .15s;
}
.qf__kind input { position: absolute; opacity: 0; }
.qf__kind b { font-weight: 500; font-size: 15px; }
.qf__kind span:last-child { grid-column: 2; font-size: 13px; color: var(--muted); }
.qf__kind-dot { grid-row: span 2; width: 20px; height: 20px; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--line-strong); transition: box-shadow .15s; }
.qf__kind[data-type="print"] { --k: var(--accent); --k-soft: var(--accent-soft); }
.qf__kind[data-type="file"] { --k: var(--cobalt); --k-soft: var(--cobalt-soft); }
.qf__kind:has(input:checked) { background: var(--k-soft); box-shadow: inset 0 0 0 2px var(--k); }
.qf__kind:has(input:checked) .qf__kind-dot { box-shadow: inset 0 0 0 6px var(--k); background: #fff; }
.qf__kind:has(input:focus-visible) { outline: 2px solid var(--k); outline-offset: 2px; }

.qf__group { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.qf__group h3 { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; }
.qf__group h3 span { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--type); color: #fff; font: 500 11.5px var(--mono); }
.qf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qf .muted { font-weight: 400; }
.qf .field.is-invalid .input, .qf .field.is-invalid .textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(200, 55, 45, .12); }
.qf .input:focus, .qf .textarea:focus, .qf .select:focus { border-color: var(--type); box-shadow: 0 0 0 3px color-mix(in srgb, var(--type) 16%, transparent); }

.qf__drop {
  display: grid; justify-items: center; gap: 4px; padding: 18px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 12px; color: var(--ink-2); font-size: 14px; transition: border-color .15s, background .15s;
}
.qf__drop .icon { width: 22px; height: 22px; color: var(--type); }
.qf__drop b { font-weight: 500; color: var(--type); }
.qf__drop:hover, .qf__drop.over { border-color: var(--type); background: var(--type-soft); }
.qf__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qf__files:empty { display: none; }
.qf__files li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 6px 6px 6px 6px; border-radius: 10px; background: var(--bg); }
.qf__files img, .qf__file-ico { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.qf__file-ico { display: grid; place-items: center; background: var(--type-soft); color: var(--type); }
.qf__file-ico .icon { width: 20px; height: 20px; }
.qf__file-name { display: grid; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf__file-name small { color: var(--muted); font-size: 12px; }
.qf__files .icon-btn { width: 32px; height: 32px; }
.qf__files .icon-btn .icon { width: 16px; height: 16px; }

.qf__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qf__chips label { position: relative; }
.qf__chips input { position: absolute; opacity: 0; }
.qf__chips span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; font: 13px var(--mono); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: all .15s; }
.qf__chips input:checked + span { background: var(--type); color: #fff; box-shadow: none; }
.qf__chips input:focus-visible + span { outline: 2px solid var(--type); outline-offset: 2px; }
.qf__check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; justify-self: start; }
.qf__check input { position: absolute; opacity: 0; }
.qf__check span { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; transition: all .15s; }
.qf__check input:checked + span { background: var(--type); box-shadow: none; }
.qf__check input:checked + span::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.qf__check input:focus-visible + span { outline: 2px solid var(--type); outline-offset: 2px; }

.qf__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px 18px; background: var(--surface); border-top: 1px solid var(--line); }
.qf__error { flex-basis: 100%; margin: 0; padding: 9px 12px; border-radius: 10px; background: #f9e1de; color: #9b2a22; font-size: 13.5px; }
.qf__fine { margin: 0; font-size: 13px; color: var(--muted); }
.qf__submit { background: var(--type); color: #fff; height: 48px; padding: 0 22px; }
.qf__submit:hover { background: var(--ink); }
.qf__submit .icon { width: 17px; height: 17px; }

.qf__done { display: grid; justify-items: center; gap: 6px; padding: 40px 10px; text-align: center; }
.qf__done-check { width: 64px; height: 64px; border-radius: 99px; display: grid; place-items: center; background: var(--type-soft); color: var(--type); margin-bottom: 10px; }
.qf__done-check .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.qf__done h2 { margin: 4px 0; font-size: 30px; font-weight: 500; letter-spacing: -.035em; }
.qf__done p { margin: 0; max-width: 42ch; color: var(--ink-2); }
.qf__done + * { display: none; }

@media (max-width: 600px) {
  .qf { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .qf__form { max-height: 100dvh; height: 100%; }
  .qf__kinds, .qf__row { grid-template-columns: 1fr; }
  .qf__body { padding: 14px; }
  .qf__head, .qf__foot { padding-left: 16px; padding-right: 16px; }
  .qf__fine { display: none; }
  .qf__submit { width: 100%; }
  .qf .input, .qf .textarea, .qf .select { font-size: 16px; }
}
.qf__foot [data-done] { margin-left: auto; }

/* ============================================================
   The Melting Society brand
   ============================================================ */
:root { --accent: #ff6a00; --melt: #ffa21a; --drip: #e0141f; --drip-soft: #fbe1e2; }
.btn--accent:hover { background: #e85d00; }
.logo { gap: 0; }
.logo__lockup { height: 44px; width: auto; }
.site-header .wrap { height: 76px; }
.footer-logo img { width: 240px; height: auto; }
.hello .hello__icon { width: 26px; height: 26px; padding: 3px; border-radius: 99px; background: #fff; object-fit: contain; }
.chat__avatar { background: #fff; }
.chat__avatar img { width: 26px; height: 26px; object-fit: contain; }
.live-dot { background: var(--drip); }

/* A nod to the logo's single red drip: the announcement bar and footer bookend every page in black + red. */
.announce { background: var(--ink); color: #f3f1ec; border-bottom: 2px solid var(--drip); }
.site-footer { border-top: 2px solid var(--drip); }

/* The custom-request nav link gets an actual drip instead of a plain dot. */
.nav__custom i {
  width: 6px; height: 8px; border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  background: var(--drip); box-shadow: 0 0 0 2px var(--drip-soft); border: 0;
}

@media (max-width: 760px) {
  .logo__lockup { height: 30px; }
}

/* Small colour pass: the two brightest off-brand spots (yellow / sage) now use the logo's black + red. */
.custom { background: var(--ink); color: #f3f1ec; }
.custom .eyebrow { color: var(--drip); }
.custom p, .custom__copy p { color: rgba(243, 241, 236, .75); }
.stack i { background: var(--drip); }
.sticker { background: var(--ink); color: #fff; }
.sticker--print { background: var(--drip); color: #fff; }
.quote, .quote h3, .quote > p, .quote__list li { color: var(--ink); }
.quote > p { color: var(--ink-2); }

/* ============================================================
   Melting: drip edges + a faint splatter behind the page
   ============================================================ */
body {
  background-image: url(/brand/drops-bg.svg);
  background-size: 560px 560px;
  background-attachment: fixed;
}

/* Black blocks melt into the page below them. */
.paths, .custom { position: relative; }
.paths::after, .custom::after {
  content: "";
  position: absolute; left: 28px; right: 28px; top: 100%;
  height: 52px; margin-top: -6px;
  background: var(--ink);
  -webkit-mask: url(/brand/drip-edge.svg) repeat-x top center / 300px 52px;
  mask: url(/brand/drip-edge.svg) repeat-x top center / 300px 52px;
  pointer-events: none;
}
@media (max-width: 700px) {
  .paths::after, .custom::after { left: 16px; right: 16px; height: 38px; -webkit-mask-size: 210px 38px; mask-size: 210px 38px; }
}
/* Room for the drips to fall into. */
.paths { margin-bottom: 50px; }
.custom { margin-bottom: 44px; }
@media (max-width: 700px) { .paths { margin-bottom: 34px; } .custom { margin-bottom: 30px; } }
/* ...which the drips need to escape from. */
.custom { overflow: visible; }
/* Fixed attachment janks on touch scrolling, and the dashboard stays a clean work surface. */
@media (hover: none) { body { background-attachment: scroll; } }
body.admin { background-image: none; }
