/* MODO — playful geometry, refined restraint.
   Palette: deep navy ink on warm paper; coral, powder, sage, lavender, mustard as accents. */

:root {
  color-scheme: light;
  --ink: #1B2A4A;
  --ink-soft: #56607A;        /* 5.6:1 on paper */
  --paper: #F7F4EF;
  --surface: #FFFFFF;
  --line: #E3DDD2;
  --line-strong: #CFC7B9;

  --coral: #EE7B5F;
  --powder: #A9C6E3;
  --sage: #AFC09E;
  --lavender: #C3B5E0;
  --mustard: #E4B34C;

  --tile-powder: #E1EAF3;
  --tile-coral: #F7E1D8;
  --tile-sage: #E4EADC;
  --tile-lavender: #E9E3F3;
  --tile-mustard: #F5EAD0;

  --ok: #3F6B45;
  --error: #B03A22;

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 8px 24px -12px rgba(27, 42, 74, .18);
  --shadow-lg: 0 24px 60px -20px rgba(27, 42, 74, .35);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.page-top { padding-top: clamp(24px, 4vw, 48px); }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

.i { flex: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; border: 1px solid rgba(27,42,74,.15); }
.dot-coral { background: var(--coral); } .dot-sage { background: var(--sage); }
.dot-lavender { background: var(--lavender); } .dot-mustard { background: var(--mustard); }

/* ---------- announcement + header ---------- */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  background: var(--ink); color: #F7F4EF;
  font-size: .8125rem; letter-spacing: .01em; padding: 8px 16px; text-align: center;
}
.announce span { display: inline-flex; align-items: center; gap: 8px; }
.announce-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
@media (max-width: 640px) { .announce-sep, .announce-extra { display: none !important; } }

.dept-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.dept-bar-inner { display: flex; gap: 4px; height: 40px; align-items: stretch; }
.dept-bar a {
  position: relative; display: inline-flex; align-items: center; padding: 0 14px; min-height: 40px;
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
}
.dept-bar a:hover { color: var(--ink); }
.dept-bar a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.dept-bar a[aria-current="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--coral);
}
.size-hint { display: block; font-size: .8125rem; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.sizes.sizes-measured { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.sizes-measured .size span { display: grid; width: 100%; min-width: 0; height: auto; min-height: 60px; padding: 8px 6px;
                             line-height: 1.25; text-align: center; white-space: nowrap; }
@container buy (max-width: 459px) { .sizes.sizes-measured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@supports not (container-type: inline-size) {
  @media (max-width: 520px) { .sizes.sizes-measured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
}
.size-note { margin: 8px 0 0; }
.size input:checked + span .size-hint { color: rgba(255, 255, 255, .85); }
.size-advice { margin: 8px 0 0; }
.elsewhere { margin: 0 0 16px; font-weight: 500; }
.elsewhere a { display: inline-flex; align-items: center; gap: 4px; margin-right: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 239, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { display: block; height: 28px; width: auto; }
.footer-brand .logo { height: 26px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; text-decoration: none; font-weight: 500;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.main-nav a:hover { background: rgba(27,42,74,.06); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--coral);
}
.bag-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 46px; height: 46px; flex: none; border-radius: 50%; text-decoration: none;
  transition: background .15s;
}
.bag-btn:hover { background: rgba(27,42,74,.06); }
.bag-count {
  position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: var(--ink);
  font: 600 .75rem/20px var(--font-body); text-align: center;
}
.bag-count.bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

.flashes { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink); }
.flash-ok { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--error); color: var(--error); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease-out), background .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #24375E; box-shadow: 0 6px 18px -8px rgba(27,42,74,.6); }
.btn-primary .i { transition: transform .2s var(--ease-out); }
.btn-primary:hover .i { transform: translateX(2px); }
.btn-ghost:hover { background: rgba(27,42,74,.06); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; }
.icon-btn:hover { background: rgba(27,42,74,.07); }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(16px, 4vw, 40px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; isolation: isolate; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -1%; right: -3%; bottom: .1em; height: .26em; z-index: -1;
  background: var(--coral); border-radius: 2px 10px 3px 8px; transform: rotate(-1.2deg);
}
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--ink-soft); max-width: 34em; margin-top: 20px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { margin: 0; position: relative; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
/* Kids' front page: a compact top, so the kids collection shows right below it */
.page-kids .hero { padding: clamp(20px, 4vw, 44px) 0 8px; }
.page-kids .hero-inner { grid-template-columns: 1.4fr 1fr; }
.page-kids .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-kids .hero-art { max-width: 300px; justify-self: end; }
.page-kids .hero-cta { margin-top: 24px; }
.h-thread, .h-loop { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .h-thread { animation: draw 2.2s .3s var(--ease-out) both; }
  .h-loop { animation: draw 1s 2.1s var(--ease-out) both; }
  .h-s { animation: settle .9s var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
  .h-s:nth-child(1), .h-s:nth-child(2) { animation-delay: .05s; }
  .h-s:nth-child(3), .h-s:nth-child(4) { animation-delay: .15s; }
  .h-s:nth-child(5), .h-s:nth-child(6) { animation-delay: .25s; }
  .h-s:nth-child(n+7) { animation-delay: .35s; }
}
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes settle { from { opacity: 0; transform: translateY(14px) rotate(-3deg); } }

/* ---------- collection ---------- */
.collection { padding: clamp(32px, 5vw, 64px) 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-head h1, .section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.section-head .muted { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .9375rem; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Product grids: four tall cards across, like a clothing store's (three on tablets, two on phones). */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(12px, 1.6vw, 24px); }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }

.tile-powder { --tile: var(--tile-powder); --accent: var(--powder); }
.tile-coral { --tile: var(--tile-coral); --accent: var(--coral); }
.tile-sage { --tile: var(--tile-sage); --accent: var(--sage); }
.tile-lavender { --tile: var(--tile-lavender); --accent: var(--lavender); }
.tile-mustard { --tile: var(--tile-mustard); --accent: var(--mustard); }

.card { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden;
  background: var(--tile, var(--tile-powder));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.card-shape {
  position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; pointer-events: none;
  background: var(--accent, var(--powder));
  clip-path: polygon(8% 92%, 42% 4%, 96% 78%);
  transition: transform .5s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.035); }
.card:hover .card-shape { transform: rotate(-18deg) translateY(2px); }
.card-body { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; }
.card-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.card-cat { font-size: .875rem; color: var(--ink-soft); margin-top: 2px; }
.card-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.from { font-weight: 400; font-size: .8125rem; color: var(--ink-soft); }
.swatch-row { display: flex; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0 4px; }
.swatch-row li { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(27,42,74,.22); }
.swatch-row .swatch-more { width: auto; background: none; box-shadow: none; font-size: .75rem; color: var(--ink-soft); line-height: 14px; }
@media (max-width: 560px) {
  .card-body { flex-direction: column; gap: 2px; padding-top: 10px; }
  .card-title { font-size: 1rem; }
  .card-media { border-radius: var(--r-sm); }
  .card-shape { width: 16px; height: 16px; right: 12px; top: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .grid .card { animation: rise .6s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 8) * 50ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.empty-state { text-align: center; padding: 64px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }

/* ---------- principles ---------- */
.principles { padding: clamp(40px, 6vw, 88px) 0; }
.principles-grid { list-style: none; margin: 0; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.principles-grid h3 { font-size: 1.25rem; margin: 14px 0 8px; }
.principles-grid p { color: var(--ink-soft); }
@media (max-width: 820px) { .principles-grid { grid-template-columns: 1fr; } }

/* ---------- product page ---------- */
.crumbs { display: flex; gap: 8px; font-size: .875rem; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.pdp > * { min-width: 0; }  /* its content (a long row of photos) never widens a column */
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.pdp-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--tile); }
.pdp-media img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
/* A print close-up is square and shown whole: the frame's spare height shows the same photo, softly blurred. */
.pdp-media::before {
  content: ""; position: absolute; inset: -80px; pointer-events: none;  /* well past the edges: blur fades there */
  background: var(--backdrop, none) center / cover no-repeat; filter: blur(20px); opacity: 0; transition: opacity .2s;
}
.pdp-media.fit-whole::before { opacity: 1; }
.pdp-media.fit-whole img { object-fit: contain; }
/* Preserve the approved Studio crop without synthesizing or clipping its edges. */
.pdp-media.fit-studio img { object-fit: contain; }
.thumb.fit-studio img { width: 100%; height: 100%; object-fit: contain; }
.pdp-media img.swapping { opacity: .35; }
.pdp-media .card-shape { width: 30px; height: 30px; right: 22px; top: 22px; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; padding-bottom: 4px; overflow-x: auto; overscroll-behavior-x: contain;
              scroll-snap-type: x proximity; scrollbar-width: thin; }  /* one row of photos, scrolled sideways */
.thumb { flex: 0 0 64px; width: 64px; scroll-snap-align: start; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden; background: var(--tile); }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb:focus-visible { outline-offset: -2px; }  /* inside the row, so its scrolling never clips it */
.pdp-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
.pdp-info { display: grid; }
.pdp-heading { grid-row: 1; }
/* One description, after the form in reading order; retain the desktop arrangement. */
.pdp-desc { grid-row: 2; }
.pdp-price { font: 600 1.375rem var(--font-display); margin-top: 10px; font-variant-numeric: tabular-nums; }
.pdp-desc { margin-top: 16px; color: var(--ink-soft); font-size: 1.0625rem; max-width: 36em; }
.buy { margin-top: 28px; display: grid; gap: 24px; container: buy / inline-size; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { display: flex; gap: 10px; align-items: baseline; padding: 0; margin-bottom: 12px; font-weight: 600; }
.opt-value { font-weight: 400; color: var(--ink-soft); }
.opt-hint { font-weight: 400; font-size: .875rem; color: var(--ink-soft); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch, .size { position: relative; cursor: pointer; }
.swatch input, .size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch-dot {
  display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(27,42,74,.2), 0 0 0 3px var(--paper), 0 0 0 4px transparent;
  transition: box-shadow .15s;
}
.swatch:hover .swatch-dot { box-shadow: inset 0 0 0 1px rgba(27,42,74,.2), 0 0 0 3px var(--paper), 0 0 0 4px var(--line-strong); }
.swatch input:checked + .swatch-dot { box-shadow: inset 0 0 0 1px rgba(27,42,74,.2), 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--ink); outline-offset: 6px; }
.size span {
  display: inline-grid; place-items: center; min-width: 56px; height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s;
}
.size:hover span { border-color: var(--ink); }
.size input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.size input:disabled + span { color: #A7A9B4; background: transparent; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.opt.invalid .size span { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9375rem; margin-top: 10px; font-weight: 500; }
.buy-row { position: sticky; bottom: 12px; z-index: 5; }
.buy-row .btn { box-shadow: var(--shadow); }
.btn.added { background: var(--ok); border-color: var(--ok); }
.assurances { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.assurances li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: .9375rem; }
.assurances .i { color: var(--ink); margin-top: 2px; }
.more { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 4px; }
.more summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; }
.more summary::after { content: "+"; font-weight: 400; font-size: 1.25rem; line-height: 1; }
.more[open] summary::after { content: "–"; }
.more p { color: var(--ink-soft); padding-bottom: 12px; }
.soldout { margin-top: 24px; padding: 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.related { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
@media (max-width: 860px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pdp-gallery { position: static; }
  /* A shorter frame, with the entire photo visible, including square artwork. */
  .pdp-media { aspect-ratio: 1; max-height: 52svh; }
  .pdp-media img { object-fit: contain; }
  .pdp-thumbs { margin-top: 8px; }
  .pdp-thumbs .thumb { flex-basis: 48px; width: 48px; }
  .pdp-title { font-size: 1.625rem; }
  .pdp-heading .pdp-subtitle { margin-top: 4px; font-size: .875rem; }
  .pdp-price { margin-top: 6px; font-size: 1.25rem; }
  .pdp-desc { grid-row: auto; margin-top: 24px; }
  .pdp-info .buy { margin-top: 16px; gap: 16px; }
  .pdp-info .opt legend { flex-wrap: wrap; column-gap: 8px; row-gap: 0; margin-bottom: 10px; }
  /* Normal flow keeps every size reachable even with browser chrome or a keyboard. */
  .pdp-info .buy-row { position: static; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ---------- cart drawer ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg);
}
.drawer::backdrop { background: rgba(27, 42, 74, .45); }
.drawer[open] { animation: slide-in .32s var(--ease-out); }
.drawer[open]::backdrop { animation: fade .3s ease-out; }
.drawer.closing { animation: slide-out .2s ease-in forwards; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer[open], .drawer.closing, .drawer[open]::backdrop { animation: none; } }
.drawer-inner { height: 100%; }
.cart-panel { display: flex; flex-direction: column; height: 100%; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 24px; }
.cart-head h2 { font-size: 1.375rem; }
.cart-head .muted { font-weight: 400; }
.ship-meter { margin: 0 24px 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: .9375rem; }
.ship-meter p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meter { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--tile-powder); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--ink) 0 3px, #2E4270 3px 6px); transition: width .4s var(--ease-out); }
.cart-lines { list-style: none; margin: 0; padding: 8px 24px; flex: 1; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { display: block; width: 80px; height: 80px; border-radius: var(--r-sm); overflow: hidden; background: var(--tile); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 600; text-decoration: none; }
.cart-name:hover { text-decoration: underline; }
.cart-variant { font-size: .875rem; color: var(--ink-soft); }
.cart-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.qty button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; }
.qty button:hover:not(:disabled) { background: rgba(27,42,74,.07); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-foot { padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.125rem; }
.cart-subtotal strong { font-variant-numeric: tabular-nums; }
.cart-note { font-size: .875rem; color: var(--ink-soft); margin: 4px 0 14px; }
.cart-secure { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink-soft); margin-top: 10px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; }
.cart-empty svg { margin-bottom: 8px; }
.cart-empty-title { font: 600 1.25rem var(--font-display); }
.cart-empty .btn { margin-top: 16px; }
.cart-panel.loading { opacity: .6; pointer-events: none; transition: opacity .15s; }

.cart-page { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart-page [data-close-cart] { display: none; }
.cart-page .cart-head { padding: 24px 24px 12px; }
.cart-page .cart-empty { padding: 56px 24px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: .9375rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out); max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--error); }

/* ---------- order status ---------- */
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 48px); }
.order-card h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.order-art { display: block; margin-bottom: 16px; max-width: 100%; height: auto; }
.order-card > .eyebrow { display: flex; }
.progress { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.progress li { position: relative; padding-top: 22px; font-size: .9375rem; color: var(--ink-soft); }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 6px; left: 12px; right: 0; height: 1.5px; background: var(--line); }
.progress li:last-child::after { display: none; }
.progress li.done { color: var(--ink); font-weight: 600; }
.progress li.done::before { background: var(--coral); border-color: var(--coral); }
.progress li.done::after { background: var(--ink); }
.tracking { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.order-items { list-style: none; padding: 0; margin: 16px 0; }
.order-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-items img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); background: var(--tile-powder); }
.order-items div { display: flex; flex-direction: column; }
.order-items .muted { font-size: .875rem; }
.order-totals { margin: 12px 0 24px; display: grid; gap: 6px; }
.order-totals div { display: flex; justify-content: space-between; }
.order-totals dt { color: var(--ink-soft); }
.order-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.order-totals .grand { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 600; }
.order-totals .grand dt { color: var(--ink); }
.order-card > .muted { margin-bottom: 20px; }

/* ---------- about / error ---------- */
.about { max-width: 980px; padding-bottom: 80px; }
.about h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 16em; letter-spacing: -.03em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin: 48px 0; }
.about-grid h2 { font-size: 1.375rem; margin-bottom: 10px; }
.about-grid p { color: var(--ink-soft); }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.palette { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.palette li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink-soft); }
.palette li::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--c); }
.error-page { text-align: center; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.error-page .btn { margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(32px, 6vw, 72px); padding-bottom: 32px; color: var(--ink); }
.footer-thread { display: block; width: 100%; height: 48px; color: var(--ink); opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 24px; }
.footer-brand p { color: var(--ink-soft); margin-top: 12px; max-width: 30em; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav h2 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.footer-nav a { text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-soft); }
.secure { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- responsive hero ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto -8px; width: 88%; }
  .page-kids .hero-art { display: none; }
  .main-nav { margin-left: auto; }
}
@media (max-width: 420px) {
  .header-inner { gap: 12px; }  /* logo, Shop, About and the bag fit a 320px phone, the bag at full size */
  .main-nav a { padding: 10px; }
  .site-header .logo { height: 24px; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- admin ---------- */
.admin { background: #F3F1EC; }
.coll-dept { margin: 28px 0 12px; font-size: 1.35rem; }
.new-hidden { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.review-banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-left: 4px solid var(--coral); }
.coll-dept small { font-size: .85rem; font-weight: 400; margin-left: 8px; }
.admin-tag { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--tile-lavender); }
.admin .header-inner form { margin-left: 8px; }
.admin-main { padding-top: 24px; padding-bottom: 64px; display: grid; gap: 20px; }
.admin-main h1 { font-size: 1.875rem; display: flex; align-items: center; gap: 12px; }
.admin-main h2 { font-size: 1.125rem; margin-bottom: 10px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-login { max-width: 380px; margin: 48px auto; background: var(--surface); padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.panel ul { margin: 0; padding-left: 18px; }
.attention { border-left: 4px solid var(--mustard); }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.checklist li::before { content: "○"; margin-right: 8px; color: var(--ink-soft); }
.checklist li.ok::before { content: "●"; color: var(--ok); }
.inline { display: inline; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 4px; }
.stat span { font-size: .875rem; color: var(--ink-soft); }
.stat strong { font: 600 1.5rem var(--font-display); font-variant-numeric: tabular-nums; }
.stat small { font-size: .8125rem; font-weight: 400; color: var(--ink-soft); }
.stat-hi { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat-hi span, .stat-hi small { color: #C9D0E0; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8125rem; color: var(--ink-soft); font-weight: 600; background: #FBFAF7; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.dim td { opacity: .5; }
.table.compact td, .table.compact th { padding: 6px 8px; }
.bulk-cover { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; }
.bulk-cover .field { min-width: 240px; }
.cover-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.cover-pick legend { font-weight: 600; padding: 0; margin-bottom: 8px; display: grid; gap: 2px; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.cover-opt { position: relative; display: grid; gap: 4px; font-size: .8125rem; cursor: pointer; }
.cover-opt input { position: absolute; opacity: 0; }
.cover-opt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); border: 2px solid var(--line); background: #fff; }
.cover-opt input:checked + img { border-color: var(--ink); box-shadow: 0 0 0 2px var(--coral); }
.cover-opt input:focus-visible + img { outline: 2px solid var(--ink); outline-offset: 2px; }
.cover-opt .dot { width: 9px; height: 9px; }
.thumb-sm { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--tile); }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #ECEAE4; white-space: nowrap; }
.pill-shipped, .pill-paid { background: #DCEBDD; color: var(--ok); }
.pill-failed, .pill-canceled { background: #F6DCD5; color: var(--error); }
.pill-draft, .pill-on_hold, .pill-queued { background: var(--tile-mustard); }
.pill-in_production { background: var(--tile-powder); }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .admin-cols { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-size: .9375rem; }
.field > span { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.check input { width: 18px; height: 18px; }
.fulfillment { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 10px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin-top: 12px; }
details summary { cursor: pointer; }
.admin h3 { font-size: .9375rem; margin: 16px 0 8px; font-family: var(--font-body); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sample button { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; font-size: .8125rem; }
.sample img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); border: 2px solid var(--line); background: #fff; transition: border-color .15s, transform .15s var(--ease-out); }
.sample button:hover img, .sample button:focus-visible img { border-color: var(--ink); transform: translateY(-2px); }
.gen-meter { height: 8px; margin: 0; }
.gen-notes { margin: 0; padding-left: 18px; color: var(--error); font-size: .875rem; }
.missing-list { margin: 6px 0 0; padding-left: 18px; }
.card-media .card-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease, transform .5s var(--ease-out); }
@media (hover: hover) { .card:hover .card-media .card-alt { opacity: 1; } }
.pdp-thumbs[hidden] { display: none; }
.pdp-subtitle { margin-top: 6px; color: var(--ink-soft); font-size: .9375rem; }
.update-panel { display: grid; gap: 12px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.choose-panel { display: grid; gap: 10px; }
.choose-panel[hidden] { display: none; }
.choose-panel h2 { margin: 0; }
.choose-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; }
.choose-tools .field { margin: 0; min-width: min(100%, 220px); }
.choose-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.choose-list { max-height: 60vh; overflow: auto; }
.choose-list td { vertical-align: middle; }
.choose-go { display: flex; flex-wrap: wrap; gap: 8px; }
.check-step { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 10px; }
.check-step img { border-radius: var(--r-sm); border: 1px solid var(--line); max-width: 100%; height: auto; }
.check-step > div { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.size-files-table { width: 100%; border-collapse: collapse; }
.size-files-table th, .size-files-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.check-compare { display: block; margin: 6px 0 2px; max-width: 100%; height: auto; image-rendering: pixelated; }
.check-file p { overflow-wrap: anywhere; }
.check-diagram { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.check-diagram svg { flex: none; color: var(--ink-soft); }
@media (max-width: 600px) { .choose-list th:nth-child(2), .choose-list td:nth-child(2) { display: none; } }
.update-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.update-steps strong { display: inline-block; min-width: 150px; }
.update-panel[hidden] { display: none; }
.cover-opt small { font-size: .75rem; margin-top: -2px; }
.own-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.own-photo { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.own-photo img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--tile-powder); }
.own-photo p { margin: 0; }
.own-photo-form { display: grid; gap: 8px; }
.own-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.own-photo-actions select { max-width: 100%; }
.sample { position: relative; display: grid; gap: 6px; font-size: .8125rem; cursor: pointer; }
.sample input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--ink); }
.sample input:checked ~ img { border-color: var(--ink); box-shadow: 0 0 0 2px var(--coral); }
.sample-grid + .sample-grid { margin-top: 12px; }
.order-form { display: grid; gap: 8px; }

/* ---------- confidence: size guide, fabric, policy pages, about ---------- */
.pdp-info a { text-underline-offset: 3px; }
.size-table-wrap { overflow-x: auto; margin: 8px 0; }
.size-table { border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; min-width: 100%; }
.size-table th, .size-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table thead th { font-weight: 600; white-space: normal; line-height: 1.25; }
@media (max-width: 400px) {
  .size-table th, .size-table td { padding: 8px 6px; }
  .size-table tbody th { white-space: normal; }  /* a row name ("Shirt length") may take two lines */
}
.size-table tbody th { text-align: left; font-weight: 500; color: var(--ink-soft); }
.fabric-points { margin: 0 0 12px; padding-left: 18px; color: var(--ink-soft); }
.more .small { padding-bottom: 6px; }
.prose { padding-bottom: 72px; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.prose p { color: var(--ink-soft); max-width: 40em; }
.facts { margin: 8px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-soft); }
.about-story { max-width: 42em; margin: 40px 0 0; display: grid; gap: 12px; }
.about-story h2 { font-size: 1.75rem; }
.about-story p { color: var(--ink-soft); font-size: 1.0625rem; }
@media (max-width: 640px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* The About page's scene: two panels that meet in the middle, stacked on a phone. */
.about-scene { margin: 40px 0 8px; }
.about-scene-panels { display: grid; grid-template-columns: 1fr 1fr; }
.about-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.about-scene figcaption { margin-top: 4px; font-size: .9375rem; color: var(--ink-soft); }
.as-ground { stroke: var(--ink); stroke-width: 1.2; }
.as-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.as-loop { stroke-width: 2.2; }
.as-bead { fill: var(--ink); }
.as-trav { display: none; }
@media (min-width: 641px) and (max-width: 1059px) {  /* the panels are drawn smaller here: keep the lines visible */
  .as-ground { stroke-width: 1.5; }
  .as-line { stroke-width: 2; }
  .as-loop { stroke-width: 2.6; }
}
@media (max-width: 640px) {
  .about-scene-panels { grid-template-columns: 1fr; }
  .about-scene-panels svg + svg { margin-top: -10%; }  /* tuck the second panel's empty sky under the first's ground */
  .as-ground { stroke-width: 1.8; }
  .as-line { stroke-width: 2.4; }
  .as-loop { stroke-width: 3.2; }
}
@media (prefers-reduced-motion: no-preference) {
  /* In: shapes settle as the line reaches them and the joins pop. Then the crescent balances, the sun's
     stripes turn, the leaf swings from the line, small pieces float, and a dot runs along the line. */
  .as-in { animation: settle .9s var(--ease-out) var(--d, 0s) both; transform-box: fill-box; transform-origin: center; }
  .as-bead { animation: pop .45s var(--ease-out) var(--d, 0s) both; transform-box: fill-box; transform-origin: center; }
  .as-line { animation: draw var(--t) linear var(--d) both; }
  .as-loop { animation-timing-function: var(--ease-out); }
  .as-rock, .as-sway, .as-spin { transform-box: view-box; transform-origin: var(--o); }
  .as-rock { animation: rock 3.2s ease-in-out 2.6s infinite alternate both; }
  .as-sway { animation: sway 2.6s ease-in-out 4.8s infinite alternate both; }
  .as-spin { animation: spin 40s linear 3.6s infinite; }
  .as-bob { animation: bob 3.4s ease-in-out var(--b, 1.4s) infinite alternate; transform-box: fill-box; transform-origin: center; }
  .as-trav { display: inline; animation: appear .3s 5.2s both; }
  .about-scene.is-waiting * { animation-play-state: paused; }
}
@keyframes pop { from { transform: scale(0); } }
@keyframes rock { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(3deg); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes bob { to { transform: translateY(-9px) rotate(10deg); } }
@keyframes appear { from { opacity: 0; } }
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- product gallery arrows ---------- */
.gallery-nav[hidden] { display: none; }
.gallery-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255, 255, 255, .88); color: var(--ink); box-shadow: var(--shadow);
  transition: background .15s, transform .15s var(--ease-out);
}
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow:active { transform: translateY(-50%) scale(.94); }
.gallery-count {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 3px 10px; border-radius: 999px;
  background: rgba(27, 42, 74, .72); color: #fff; font-size: .8125rem; font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .gallery-arrow { opacity: .85; }
  .pdp-media:hover .gallery-arrow { opacity: 1; }
}

/* ---------- Shop: collections, search, filters ---------- */
.shop-head { margin-bottom: 24px; }
.shop-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.shop-head .muted { margin-top: 8px; max-width: 46ch; }

.coll-nav { display: flex; gap: clamp(14px, 2.4vw, 28px); margin: 0 0 28px; padding: 4px 2px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.coll-nav::-webkit-scrollbar { display: none; }
.coll-link { flex: 0 0 auto; display: grid; justify-items: center; gap: 8px; width: 96px; text-decoration: none; scroll-snap-align: start; }
.coll-disc { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--surface); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .3s var(--ease-out); }
.coll-disc img { width: 100%; height: 100%; object-fit: cover; }
.coll-disc img.mark { width: 42%; height: auto; object-fit: contain; }  /* "All": MODO's mark, not a photo */
.coll-all { background: var(--tile-mustard); }
.coll-name { font-size: .875rem; font-weight: 500; text-align: center; line-height: 1.25; }
.coll-link:hover .coll-disc { transform: translateY(-2px); }
.coll-link[aria-current="page"] .coll-disc { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.coll-link[aria-current="page"] .coll-name { font-weight: 700; }

.shop-tools { display: grid; gap: 14px; margin-bottom: 18px; }
.search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 6px 6px 6px 48px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 6px 22px -14px rgba(27, 42, 74, .5); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); display: flex; }
.search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; font-size: 1.0625rem; }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--ink-soft); }
.search-go { flex: 0 0 auto; min-height: 44px; padding: 0 20px; border-radius: 999px; }
.search-go-icon { display: none; }
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 14px; max-height: min(70vh, 560px); overflow-y: auto; }
.pop-group + .pop-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pop-label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 6px 8px; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pop-chips .chip.is-active { border-color: var(--ink); background: rgba(27, 42, 74, .06); }
.sg-item, .sg-coll, .sg-all { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); text-decoration: none; }
.sg-item:hover, .sg-coll:hover, .sg-all:hover, .sg-item.is-active, .sg-coll.is-active, .sg-all.is-active { background: rgba(27, 42, 74, .06); }
.sg-thumb { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: var(--tile-powder); }
.sg-text { display: grid; min-width: 0; flex: 1; }
.sg-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-line { font-size: .8125rem; color: var(--ink-soft); }
.sg-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.sg-coll { justify-content: space-between; font-weight: 500; }
.sg-coll small { color: var(--ink-soft); font-weight: 400; }
.sg-all { justify-content: center; font-weight: 600; margin-top: 6px; border: 1.5px solid var(--line-strong); border-radius: 999px; }
.sg-empty { padding: 8px; color: var(--ink-soft); }
.sg-empty a { color: var(--ink); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; margin-right: 4px; }
.filter { position: relative; }
.filter-btn { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 500; font-size: .9375rem; cursor: pointer; user-select: none; background: var(--surface); }
.filter-btn::-webkit-details-marker { display: none; }
.filter-btn .i { transition: transform .2s var(--ease-out); }
.filter-btn:hover, .filter[open] > .filter-btn { border-color: var(--ink); }
.filter[open] > .filter-btn .i { transform: rotate(180deg); }
.filter-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; }
.filter-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; max-height: 380px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px; }
.filter-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; }
.filter-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: var(--r-sm); cursor: pointer; }
.filter-opt:hover { background: rgba(27, 42, 74, .05); }
.filter-opt input { width: 18px; height: 18px; accent-color: var(--ink); flex: 0 0 auto; }
.filter-opt.is-empty { color: var(--ink-soft); }
.opt-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(27, 42, 74, .22); flex: 0 0 auto; }
.opt-label { flex: 1; }
.opt-count { color: var(--ink-soft); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.filter-title { display: none; }
.filter-apply { width: 100%; margin-top: 8px; }
.js-shop .filter-apply { display: none; }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 22px; min-height: 40px; }
.results-count { color: var(--ink-soft); }
.results-count strong { color: var(--ink); }
.active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip-x { gap: 6px; min-height: 34px; padding: 0 10px 0 14px; background: var(--surface); }
.chip-x .i { opacity: .7; }
.chip-x:hover .i { opacity: 1; }
.clear-all { font-weight: 600; font-size: .9375rem; padding: 6px 4px; }

.no-results { display: grid; justify-items: center; gap: 10px; }
.no-results a:not(.btn):not(.chip) { font-weight: 600; }
.no-results-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.no-results-chips { justify-content: center; margin-top: 10px; max-width: 640px; }

.card-badge { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: .75rem; font-weight: 600; box-shadow: 0 1px 2px rgba(27, 42, 74, .12); }

.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.coll-card { display: grid; text-decoration: none; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.coll-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.coll-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile-powder); }
.coll-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transition: transform .6s var(--ease-out); }
.coll-card:hover .coll-card-media img { transform: scale(1.04); }
.coll-card-body { display: grid; gap: 2px; padding: 16px 18px 18px; }
.coll-card-name { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.01em; }
.coll-card-sub { color: var(--ink-soft); }
.coll-card-count { font-size: .8125rem; color: var(--ink-soft); margin-top: 6px; }

.pdp-fabrics { margin-top: 4px; font-size: .9375rem; color: var(--ink-soft); }
.pdp-fabrics a { color: var(--ink); font-weight: 600; }

.design-meta { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 0; }
.design-meta legend { font-weight: 600; padding: 0 6px; }
.design-meta legend small { font-weight: 400; margin-left: 4px; }
.design-meta fieldset.field { border: 0; padding: 0; margin: 0; }
.design-meta fieldset.field legend { padding: 0; margin-bottom: 6px; }
.check-row { display: flex; flex-wrap: wrap; gap: 4px 18px; }

@media (max-width: 640px) {
  .coll-nav { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 12px; }
  .coll-link { width: 76px; }
  .coll-disc { width: 66px; height: 66px; }
  .coll-name { font-size: .8125rem; }
  .search { padding-left: 42px; }
  .search-icon { left: 14px; }
  .search-go { width: 44px; padding: 0; justify-content: center; }
  .search-go-text { display: none; }
  .search-go-icon { display: flex; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; }
  .filter[open]::before { content: ""; position: fixed; inset: 0; z-index: 44; background: rgba(27, 42, 74, .32); }
  .filter-panel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 45; min-width: 0; max-height: 72vh; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
  .filter-title { display: block; font: 600 1.125rem var(--font-display); padding: 4px 8px 10px; }
  .js-shop .filter-apply { display: block; position: sticky; bottom: 0; margin-top: 10px; box-shadow: 0 -12px 16px var(--surface); }
}

/* ---------- Shop cards: swatches and quick add ---------- */
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-lg); }
.card-link:focus-visible { outline-offset: 4px; }
@media (hover: hover) { .card:has(.card-swatches:hover) .card-media .card-alt { opacity: 0; } }
.card-overlay { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; pointer-events: none; }
.card-quick {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--shadow); pointer-events: auto;
  opacity: 0; transform: translateY(6px) scale(.92); transition: opacity .2s, transform .25s var(--ease-out), background .15s;
}
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
.card-quick:hover { background: #24375E; }
.card-quick:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: none) { .card-quick { opacity: 1; transform: none; } }
.card-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 8px 0 0; padding: 0; }
.card-swatch { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; }
.card-swatch::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(27, 42, 74, .22); transition: box-shadow .15s;
}
.card-swatch:hover::before { box-shadow: inset 0 0 0 1px rgba(27, 42, 74, .22), 0 0 0 2px var(--paper), 0 0 0 3px var(--line-strong); }
.card-swatch[aria-pressed="true"]::before { box-shadow: inset 0 0 0 1px rgba(27, 42, 74, .22), 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.card-swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.card-swatches .swatch-more { display: inline-block; padding: 0 6px; font-size: .75rem; line-height: 26px; color: var(--ink-soft); text-decoration: none; }
.card-swatches .swatch-more:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) {
  .card-quick { width: 36px; height: 36px; right: 8px; bottom: 8px; }
  .card-quick .i { width: 18px; height: 18px; }
  .card-swatches { gap: 0; flex-wrap: nowrap; }
  .card-swatch { width: 24px; height: 24px; flex: 0 0 auto; }
  .card-swatch::before { width: 14px; height: 14px; }
  .card-swatches .swatch-more { padding: 0 2px; }
}

/* ---------- Quick add ---------- */
html:has(#quick-add[open]) { overflow: hidden; }
.quick-add {
  width: min(880px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}
.quick-add::backdrop { background: rgba(27, 42, 74, .45); }
.quick-add[open] { animation: qa-in .3s var(--ease-out); }
.quick-add[open]::backdrop { animation: fade .3s ease-out; }
@keyframes qa-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.qa-close {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(27, 42, 74, .18);
}
.qa-close:hover { background: #fff; }
.qa-loading { padding: 64px 24px; text-align: center; color: var(--ink-soft); }
.qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qa-media { display: block; aspect-ratio: 1; background: var(--tile, var(--tile-powder)); }
.qa-img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 641px) { .qa-media { aspect-ratio: auto; min-height: 380px; } }  /* the photo fills its side */
.qa-info { padding: 32px 28px 28px; display: grid; align-content: start; gap: 4px; }
.qa-title { font-size: 1.625rem; padding-right: 36px; }
.qa-line { color: var(--ink-soft); font-size: .9375rem; }
.qa-price { font-weight: 600; font-size: 1.125rem; margin-top: 6px; font-variant-numeric: tabular-nums; }
.qa .buy { margin-top: 18px; gap: 18px; }
.qa .opt legend { margin-bottom: 10px; }
.qa .swatches, .qa .sizes { gap: 8px; }
.qa .swatch-dot { width: 34px; height: 34px; }
.qa .size span { min-width: 48px; height: 42px; padding: 0 10px; }
.qa-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: .875rem; color: var(--ink-soft); }
.qa-note .i { flex: 0 0 auto; margin-top: 2px; color: var(--ink); }
.qa-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; text-decoration: none; justify-self: start; }
.qa-more:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .quick-add { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .quick-add[open] { animation: qa-up .32s var(--ease-out); }
  @keyframes qa-up { from { transform: translateY(100%); } }
  .qa { grid-template-columns: 1fr; }
  .qa-media { aspect-ratio: auto; height: min(30vh, 250px); background: #fff; }
  .qa-img { object-fit: contain; }
  .qa [data-qa-add] { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
  .qa-info { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
  .qa-title { font-size: 1.375rem; }
}
@media (prefers-reduced-motion: reduce) { .quick-add[open], .quick-add[open]::backdrop { animation: none; } }

/* ---------- Admin: Agent page ---------- */
.nav-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--coral); vertical-align: 2px; }
.prose { line-height: 1.6; }
.prose > * + * { margin-top: 12px; }
.prose h1 { font-size: 1.75rem; }
.prose h2 { font-size: 1.375rem; margin-top: 28px; }
.prose h3 { font-size: 1.125rem; margin-top: 22px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose li > ul, .prose li > ol { margin-top: 4px; }
.prose code { font: .875em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(27, 42, 74, .06); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--ink); color: #F1EFEA; padding: 14px 16px; border-radius: var(--r-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: rgba(27, 42, 74, .04); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose a { color: var(--ink); font-weight: 500; }
.agent-intro { margin-bottom: 20px; color: var(--ink-soft); max-width: 72ch; }
.agent-update { margin-bottom: 24px; }
.agent-update.is-new { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.agent-update-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.agent-update-head h2 { font-size: 1.5rem; }
.agent-kicker { display: flex; gap: 8px; align-items: center; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.pill-new { background: var(--coral); color: #fff; text-transform: none; letter-spacing: 0; }
.agent-read { font-size: .875rem; color: var(--ok); font-weight: 600; }
.agent-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; align-items: start; }
@media (max-width: 860px) { .agent-cols { grid-template-columns: 1fr; } }
.agent-cols textarea { font: .9375rem/1.5 var(--font-body); resize: vertical; }
.message-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.message-from { display: flex; flex-wrap: wrap; gap: 4px 18px; border: 0; margin: 0; padding: 0; }
.messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 560px; overflow-y: auto; }
.message { padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); border-left: 3px solid var(--powder); }
.message-owner { border-left-color: var(--coral); }
.message-claude { border-left-color: var(--sage); }
.message-route { flex: 1; min-width: 220px; }
.message-meta { font-size: .8125rem; color: var(--ink-soft); margin-bottom: 4px; }
.message-meta strong { color: var(--ink); }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-earlier { border-top: 1px solid var(--line); }
.agent-earlier summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.agent-earlier .prose { padding-bottom: 14px; }
.playbook { max-width: 900px; }

/* ---------- Admin: Collections ---------- */
.coll-admin-intro { max-width: 78ch; margin-bottom: 20px; }
.coll-admin { display: grid; gap: 16px; }
.coll-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.coll-previews { display: flex; gap: 14px; align-items: center; }
.coll-preview-disc { width: 96px; height: 96px; flex: 0 0 auto; }
.coll-preview-card { display: block; width: 200px; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--tile-powder); border: 1px solid var(--line); }
.coll-preview-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.coll-preview-card img.is-custom, .coll-card-media img.is-custom { object-position: 50% 50%; }
.coll-row h2 { font-size: 1.25rem; }
.coll-upload { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.coll-upload .field { flex: 1; min-width: 220px; }
.coll-upload input[type="file"] { min-height: 0; padding: 8px; }
@media (max-width: 720px) { .coll-row { grid-template-columns: 1fr; } }

/* ---------- admin: Studio ---------- */
.studio-pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.studio-pick .field { min-width: min(100%, 260px); }
.studio-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; }
.studio-controls output { font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.studio-controls input[type="range"] { width: 100%; }
.studio-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.studio-shot { margin: 0; display: grid; gap: 8px; align-content: start; }
.studio-preview { width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--tile-powder); transition: opacity .2s; }
.studio-preview.is-loading { opacity: .45; }
.studio-empty { margin: 0; padding: 24px 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: .875rem; }
.studio-note { margin: 0; color: var(--error); }
.studio-made { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.studio-made li { display: flex; gap: 10px; align-items: center; }
.studio-remake { min-width: 0; display: grid; gap: 20px; }
.studio-remake-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.studio-remake figure { margin: 0; min-width: 0; }
.studio-remake figure img { width: 100%; max-height: 480px; object-fit: contain; }
.studio-remake dd { margin: 0 0 12px; overflow-wrap: anywhere; }
.studio-remake dt { font-weight: 600; }
.studio-remake .btn { white-space: normal; }
.studio-remake-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .studio-remake-comparison { grid-template-columns: minmax(0, 1fr); }
}
.studio-made img, .studio-gone { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.studio-gone { display: grid; place-items: center; font-size: .7rem; color: var(--ink-soft); }
.studio-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.studio-base { margin: 0; display: grid; gap: 6px; align-content: start; }
.studio-base img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--tile-powder); }
.studio-base form { margin-top: 4px; }
.studio-replace { display: grid; gap: 4px; }
.studio-replace input { max-width: 100%; font-size: .75rem; }
.studio-ok { color: var(--ok); }
.studio-todo { color: var(--error); font-weight: 600; }
.studio-upload { border-top: 1px solid var(--line); padding-top: 14px; }
.studio-upload h3 { margin: 0; font-size: 1rem; }
.studio-upload-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.studio-box-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 820px) { .studio-box-cols { grid-template-columns: 1fr; } }
.studio-stage { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; border-radius: var(--r-sm); background: var(--tile-powder); }
.studio-stage #photo { display: block; width: 100%; height: auto; }
.studio-stage #art { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; opacity: .92; }
.studio-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-stage polygon { fill: rgba(238, 123, 95, .14); stroke: var(--coral); stroke-width: 2; cursor: move; }
.studio-stage circle { fill: #fff; stroke: var(--coral); stroke-width: 3; cursor: grab; }
.studio-ref { margin: 0; display: grid; gap: 6px; }
.studio-ref-wrap { position: relative; }
.studio-ref-wrap img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
.studio-ref-box { position: absolute; border: 2px solid var(--coral); background: rgba(238, 123, 95, .12); }

/* Studio: product types, areas, placements */
.studio-rows { display: grid; gap: 10px; }
.studio-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 12px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.studio-area-row .check { align-self: center; }
.studio-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-strong); vertical-align: -1px; }
.studio-area-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-area-tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .875rem; }
.studio-area-tabs a[aria-current="page"] { border-color: var(--ink); font-weight: 600; }
.studio-todo-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.studio-todo-list ul { margin: 4px 0 0; padding-left: 18px; font-size: .875rem; color: var(--ink-soft); }
.studio-places { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.studio-places h3 { margin: 0; font-size: 1rem; }
.studio-place-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .9375rem; }
.studio-entered, .studio-mapped { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.studio-help ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Editorial homepage: photography and the original animation have separate space. */
.lifestyle-hero { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); align-items: center; width: 100%; }
.lifestyle-hero > * { min-width: 0; }
.lifestyle-gallery { align-self: start; background: var(--paper); }
.lifestyle-slide { margin: 0; position: relative; }
.lifestyle-slide[hidden], .lifestyle-controls[hidden] { display: none; }
.lifestyle-image, .lifestyle-arrow-overlay { height: clamp(480px, 78svh, 960px); overflow: hidden; background: #e9e6e0; }
.lifestyle-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-desktop, 50% 50%); }
.lifestyle-slide figcaption { position: absolute; bottom: 24px; left: 24px; max-width: calc(100% - 48px); }
.lifestyle-slide.cta-top-left figcaption, .lifestyle-slide.cta-top-right figcaption { top: 24px; bottom: auto; }
.lifestyle-slide.cta-top-right figcaption, .lifestyle-slide.cta-bottom-right figcaption { right: 24px; left: auto; }
.lifestyle-slide figcaption a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; min-height: 48px; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 3px 14px rgba(0, 0, 0, .22); font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.lifestyle-slide figcaption a svg { flex-shrink: 0; }
.lifestyle-slide figcaption a:hover { background: #304563; color: #fff; text-decoration: none; }
.lifestyle-slide figcaption a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 999px; box-shadow: 0 0 0 7px var(--ink); }
@media (forced-colors: active) {
  .lifestyle-slide figcaption a { border: 2px solid ButtonText; }
  .lifestyle-slide figcaption a:focus-visible { outline-color: Highlight; }
}
.lifestyle-arrow-prev svg { transform: rotate(180deg); }
.lifestyle-story { padding: clamp(24px, 4vw, 64px); padding-bottom: 16px; }
.lifestyle-story:only-child { grid-column: 1 / -1; max-width: 780px; margin: auto; }
.lifestyle-story h1 { font-size: clamp(1.8rem, 3.1vw, 3.2rem); line-height: 1.12; }
.lifestyle-story .lede { font-size: .9375rem; margin-top: 20px; max-width: 30em; }
.lifestyle-story .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lifestyle-story .hero-art { position: relative; width: 100%; max-width: 480px; margin: 24px auto 0; }

@media (max-width: 860px) {
  .lifestyle-hero { grid-template-columns: minmax(0, 1fr); }
  .lifestyle-image, .lifestyle-arrow-overlay { height: auto; aspect-ratio: 4 / 5; }
  .lifestyle-image img { object-position: var(--focus-mobile, 50% 50%); }
  .lifestyle-story { padding: 24px 20px 12px; }
  .lifestyle-story h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .lifestyle-story .hero-art { order: 0; width: 100%; max-width: 260px; margin: 16px auto 0; }
  .lifestyle-story .hero-cta .btn { width: auto; flex: 1 1 120px; }
}

.lifestyle-gallery .sr-only, .card [data-card-status] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 375px) {
  .lifestyle-slide figcaption { position: static; max-width: none; padding: 12px 16px 0; }
}

/* Homepage editor uses the normal admin layout, with shrinkable mobile controls. */
.home-edit-slot { margin-block: 20px; min-width: 0; }
.home-edit-slot select, .home-edit-slot input { max-width: 100%; min-width: 0; }
.home-photo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
.home-photo-picker button { min-width: 0; background: var(--paper); color: var(--ink); padding: 8px; cursor: pointer; }
.home-photo-picker img { width: 100%; height: 120px; object-fit: contain; }
.home-photo-picker span { display: block; overflow-wrap: anywhere; }
.home-crop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-crop-frame { aspect-ratio: 4 / 5; max-width: 360px; background: #e9e6e0; }
.home-crop-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .home-crop-grid { grid-template-columns: minmax(0, 1fr); } }

.admin .admin-header-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.admin-menu { position: relative; min-width: 0; margin-left: auto; }
.admin-menu summary { cursor: pointer; min-height: 44px; padding: 12px; overflow-wrap: anywhere; }
.admin-menu-panel { position: absolute; right: 0; z-index: 20; width: min(620px, 88vw); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; background: var(--paper); color: var(--ink); border: 1px solid currentColor; box-shadow: var(--shadow); }
.admin-menu-panel h2 { font-size: .875rem; margin-bottom: 8px; }
.admin-menu-panel a { display: block; padding: 12px 8px; min-height: 44px; overflow-wrap: anywhere; }
.admin-menu-panel a[aria-current] { font-weight: 700; text-decoration: underline; }
@media (max-width: 600px) {
  .admin .admin-header-inner { height: auto; min-height: 64px; padding-block: 10px; }
  .admin-menu { order: 3; width: 100%; margin-left: 0; }
  .admin-menu-panel { position: static; width: 100%; grid-template-columns: minmax(0, 1fr); box-shadow: none; }
  .admin .admin-header-inner > .brand { min-width: 0; }
}

.home-selected-photo { display: block; width: min(100%, 400px); max-height: 360px; object-fit: contain; margin: 16px auto; }
.home-selected-photo[hidden] { display: none; }
.home-advanced { margin-block: 16px; }
.home-advanced > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 600; }
.home-photo-picker { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.home-photo-picker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.homepage-crop-measure { position: fixed; top: 0; left: 0; visibility: hidden; pointer-events: none; z-index: -1; }
.home-crop-frame { width: 100%; overflow: hidden; }
.home-crop-frame[hidden] { display: none; }
.home-crop-frame img { display: block; }
.home-crop-frame img[hidden] { display: none; }

/* Navigation stays centered on the photograph, including when its caption moves below. */
.lifestyle-slides { position: relative; }
.lifestyle-arrow-overlay { position: absolute; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px; pointer-events: none; background: transparent; z-index: 2; }
.lifestyle-arrow-overlay[hidden] { display: none; }
.lifestyle-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid transparent; color: rgba(255, 255, 255, .78); background: transparent; cursor: pointer; pointer-events: auto; }
.lifestyle-arrow svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .75)); }
.lifestyle-arrow:hover, .lifestyle-arrow:focus-visible { color: #fff; background: rgba(20, 35, 55, .22); }
.lifestyle-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 50%; box-shadow: 0 0 0 7px var(--ink); }
@media (forced-colors: active) {
  .lifestyle-arrow { border: 2px solid ButtonText; color: ButtonText; background: ButtonFace; }
  .lifestyle-arrow svg { filter: none; }
  .lifestyle-arrow:focus-visible { outline-color: Highlight; }
}

.lifestyle-hero + .collection { padding-top: clamp(16px, 2vw, 28px); }

/* Card galleries share the existing card image frame; controls are outside its link. */
.card[data-gallery-ready] .card-media { touch-action: pan-y pinch-zoom; }
.card[data-gallery-manual] .card-media .card-alt { display: none; }
.card-gallery-controls { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 2px; pointer-events: none; }
.card-gallery-controls[hidden] { display: none; }
.card-gallery-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; color: rgba(255,255,255,.9); background: rgba(20,35,55,.18); cursor: pointer; pointer-events: auto; }
.card-gallery-arrow svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.card-gallery-arrow:hover, .card-gallery-arrow:focus-visible { color: #fff; background: rgba(20,35,55,.55); }
.card-gallery-arrow:focus-visible { outline: 2px solid #fff; outline-offset: -4px; box-shadow: 0 0 0 2px var(--ink); }
@media (forced-colors: active) {
  .card-gallery-arrow { color: ButtonText; background: ButtonFace; border: 1px solid ButtonText; }
  .card-gallery-arrow svg { filter: none; }
  .card-gallery-arrow:focus-visible { outline-color: Highlight; }
}

/* Mobile hints sit below the photo, clear of its shopping button. */
.card-gallery-dots { display: none; }
@media (max-width: 600px), (hover: none) {
  .card-gallery-controls { display: none; }
  .card-gallery-dots { display: flex; justify-content: center; align-items: center; gap: 6px; height: 16px; pointer-events: none; }
  .card-gallery-dots[hidden], .card-gallery-dots [hidden] { display: none; }
  .card-gallery-dots span { width: 6px; height: 6px; flex: 0 0 6px; border: 1px solid var(--ink-soft); border-radius: 50%; background: transparent; }
  .card-gallery-dots [data-active="true"] { background: var(--ink); border-color: var(--ink); }
  .card-gallery-dots [data-edge="true"] { transform: scale(.65); }
}
@media (forced-colors: active) {
  .card-gallery-dots span { border-color: CanvasText; }
  .card-gallery-dots [data-active="true"] { background: Highlight; border-color: Highlight; }
}
