/* ฮอมฝ้าย (fictional brand) — demo2. Editorial shop, palette taken from the dye pots:
   undyed cotton, pradu bark, turmeric, lac and faded indigo. */

/* ---------- tokens ---------- */
:root {
  /* the dye pots */
  --cotton: #EFE7DA;
  --cotton-2: #E6DCCB;
  --cotton-3: #F6F1E8;
  --bark: #3A2E25;
  --bark-2: #2B221C;
  --muted: #6B5A4C;          /* 5.36:1 on cotton */
  --muted-dark: #BDB0A0;     /* 6.19:1 on bark */
  --turmeric: #C2A257;
  --lac: #8E4B3E;
  --indigo: #4A5563;
  --line: rgb(58 46 37 / .16);
  --line-strong: rgb(58 46 37 / .32);
  --field: #8A7968;

  /* silk's nine roles, mapped to the palette */
  --background: var(--cotton);
  --card: var(--cotton-2);
  --foreground: var(--bark);
  --primary-cta: var(--bark);
  --primary-cta-text: var(--cotton);
  --secondary-cta: transparent;
  --secondary-cta-text: var(--bark);
  --accent: var(--lac);
  --background-accent: var(--turmeric);

  /* one radius knob */
  --radius: 1.25rem;
  --radius-md: calc(var(--radius) - .5rem);
  --radius-sm: calc(var(--radius) - .875rem);

  /* one motion config */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 1.1s;

  /* type */
  --f-display: "Fahkwang", "IBM Plex Sans Thai Looped", serif;
  --f-ui: "IBM Plex Sans Thai Looped", "Noto Sans Thai", system-ui, sans-serif;
  --fs-meta: .875rem;
  --fs-ui: .9375rem;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, .98rem + .4vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.08rem + .7vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.9vw, 4rem);
  --fs-display: clamp(2.5rem, 1.1rem + 6.6vw, 8rem);

  /* layout */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --content: min(100% - 2 * var(--gutter), 88rem);
  --section: clamp(5.5rem, 4rem + 8vw, 11rem);
  --header-h: 4.25rem;

  --grade: saturate(.82) contrast(.96) sepia(.05);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgb(58 46 37 / .12);
  scrollbar-width: thin;
  scrollbar-color: rgb(58 46 37 / .35) transparent;
  background: var(--cotton);
  /* keep focused elements clear of the sticky header and the mobile bar */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-padding-bottom: 5.5rem;
}
@media (min-width: 900px) { html { scroll-padding-bottom: 1rem; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.menu-open { overflow: hidden; }
/* no rubber-band on desktop; keep pull-to-refresh on touch */
@media (pointer: fine) { html, body { overscroll-behavior: none; } }
a, button, label, summary, select, input { touch-action: manipulation; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--cotton);
  color: var(--bark);
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* soft paper grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 400;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .18 0 0 0 0 .14 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
a:hover { color: var(--lac); }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 500; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 6rem; }
address { font-style: normal; }
::selection { background: var(--turmeric); color: var(--bark); }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .pvdev :focus-visible { outline-color: var(--turmeric); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 500;
  background: var(--bark); color: var(--cotton); padding: .75rem 1.25rem; border-radius: 999px;
  text-decoration: none; transition: top .4s var(--ease);
}
.skip:focus { top: 1rem; color: var(--cotton); }

.wrap { width: var(--content); margin-inline: auto; }
.ph { display: inline-block; }
.noscript { padding: 1rem 0; color: var(--muted); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 1.28;
  letter-spacing: -.012em;
}
h2, .page-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.32;
  letter-spacing: -.008em;
}
h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.5; }

/* phrase masks: authored Thai phrases, never split into characters.
   Generous room above for tone marks and below for sara u/uu. */
.ln {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .22em .06em .42em;
  margin: -.22em -.06em -.42em;
}
.ln > span { display: inline-block; }

/* ---------- selvedge (woven edge) ---------- */
.selvedge {
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--bark) 0 14px, var(--turmeric) 14px 17px, var(--bark) 17px 26px,
    var(--lac) 26px 28px, var(--bark) 28px 38px, var(--cotton-2) 38px 40px);
}

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--primary-cta);
  --fg: var(--primary-cta-text);
  --fill: var(--lac);
  --fill-fg: var(--cotton);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .75rem 1.75rem;
  border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-ui); font-size: var(--fs-ui); font-weight: 500; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  transition: color .6s var(--ease), border-color .6s var(--ease), transform .7s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--fill); border-radius: inherit;
  transform: translate3d(0, 102%, 0);
  transition: transform .7s var(--ease);
}
.btn .ic { width: 1.25rem; height: 1.25rem; flex: none; }
.btn--line { --bg: transparent; --fg: var(--bark); --fill: var(--bark); border-color: var(--line-strong); }
.btn--light { --bg: var(--cotton); --fg: var(--bark); --fill: var(--turmeric); --fill-fg: var(--bark); }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn:hover { color: var(--fill-fg); border-color: var(--fill); }
  .btn:hover::before { transform: none; }
}
.btn:active { transform: scale(.98); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

.link-ic {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  font-size: var(--fs-ui); text-decoration: none; color: var(--bark);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .55rem) / 100% 1px no-repeat;
  transition: background-size .7s var(--ease), color .4s;
}
.link-ic .ic { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) { .link-ic:hover { background-size: 0 1px; background-position: 100% calc(100% - .55rem); color: var(--lac); } }

.more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-ui); text-decoration: underline; text-underline-offset: .35em;
}

.ic { display: block; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; }
/* the frosted backdrop lives on a pseudo-element so the header never becomes
   the containing block of the fixed mobile menu */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(239 231 218 / .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .6s var(--ease);
}
.hdr.is-scrolled::before, .menu-open .hdr::before { opacity: 1; }
.hdr__in {
  width: var(--content); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: .75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  margin-right: auto; color: var(--bark); text-decoration: none;
}
.brand__mark { width: 1.6rem; height: 1.6rem; }
.brand__name { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.3; }

.nav a { color: var(--bark); text-decoration: none; }
.cart-link {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .35rem;
  font-size: var(--fs-ui); color: var(--bark); text-decoration: none;
}
.cart-count, .mbar__count {
  display: inline-grid; place-items: center;
  min-width: 1.45rem; height: 1.45rem; padding: 0 .4rem;
  border-radius: 999px; background: var(--bark); color: var(--cotton);
  font-size: .75rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums;
}
.mbar__count { background: var(--cotton); color: var(--bark); }
.bump { animation: bump .7s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 100% { transform: scale(1); } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; min-width: 44px; padding: 0 .35rem;
  background: none; border: 0; cursor: pointer; font-size: var(--fs-ui); color: var(--bark);
}
.nav-toggle__icon { position: relative; width: 1.25rem; height: .5rem; }
.nav-toggle__icon::before, .nav-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .6s var(--ease), top .6s var(--ease);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { top: calc(100% - 1.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: calc(50% - .75px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: calc(50% - .75px); transform: rotate(-45deg); }

@media (max-width: 899.98px) {
  .nav {
    position: fixed; inset: 0; z-index: 55;
    display: flex; flex-direction: column; gap: .15rem;
    padding: calc(var(--header-h) + 3rem) var(--gutter) 7rem;
    background: var(--cotton);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translate3d(0, -100%, 0);
    visibility: hidden;
    transition: transform .9s var(--ease), visibility 0s linear .9s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .9s var(--ease), visibility 0s; }
  .nav a {
    font-family: var(--f-display); font-weight: 300;
    font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.45; padding: .3rem 0;
    opacity: 0; transform: translate3d(0, 1rem, 0);
    transition: opacity .5s var(--ease), transform .8s var(--ease);
  }
  .nav.is-open a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * .06s); }
  .nav a[aria-current="page"] { color: var(--lac); }
  .brand, .cart-link, .nav-toggle { position: relative; z-index: 56; }
  .menu-open .mbar { visibility: hidden; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); margin-right: clamp(1rem, 3vw, 3rem); }
  .nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
  }
  .nav a:hover { color: var(--bark); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
}

.concept { width: var(--content); margin: .25rem auto 0; }
.concept span {
  display: inline-block; padding: .1rem .75rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .8125rem; line-height: 1.7; color: var(--muted);
}

/* ---------- intro (home, once per session) ---------- */
.intro { display: none; }
.motion:not(.seen) .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 450;
  background: var(--cotton);
  pointer-events: none;
  animation: introOut .55s var(--ease) .4s forwards;
}
.intro__in { display: grid; justify-items: center; gap: .9rem; }
.intro__word {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.4;
  animation: introWord .5s var(--ease) both;
}
.intro__thread {
  width: 8rem; height: 1px; background: var(--lac);
  transform-origin: left; animation: introThread .45s var(--ease) both;
}
@keyframes introWord { from { opacity: 0; transform: translate3d(0, .4em, 0); } }
@keyframes introThread { from { transform: scaleX(0); } }
@keyframes introOut { to { transform: translate3d(0, -100%, 0); visibility: hidden; } }

/* ---------- hero ---------- */
.hero {
  --d0: .15s;
  position: relative;
  overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.motion:not(.seen) .hero { --d0: .8s; }
@media (min-width: 900px) { .hero { min-height: calc(100svh - var(--header-h) - 2.25rem); } }

.hero__in { position: relative; z-index: 1; }
.hero__title { margin: 0; }
.hero__lead { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; max-width: 34ch; font-size: var(--fs-lead); line-height: 1.8; color: var(--muted); }
@media (min-width: 900px) { .hero__lead { margin-left: auto; margin-right: 0; margin-top: clamp(1rem, 2vw, 2rem); } }

.hero__foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem;
  margin-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.hero__perks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 2rem;
  font-size: var(--fs-meta); color: var(--muted);
}

.hero__hint {
  position: absolute; z-index: 1; right: var(--gutter); top: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0; font-size: var(--fs-meta); color: var(--muted);
  display: none;
  transition: opacity 1s var(--ease);
}
.hero.has-trail .hero__hint { display: block; }
.hero.is-trailing .hero__hint { opacity: 0; }

/* the trail (desktop, fine pointer) */
.trail { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.hero.has-trail .trail { display: block; }
.trail img {
  position: absolute; top: 0; left: 0;
  width: clamp(10rem, 15vw, 15.5rem); aspect-ratio: 4 / 5; height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: var(--grade);
  box-shadow: 0 30px 60px -32px rgb(58 46 37 / .5);
  opacity: 0; visibility: hidden;
  will-change: transform, opacity;
}

/* the marquee (touch / small screens) */
.hero__marquee { position: relative; z-index: 1; margin-top: clamp(2rem, 6vw, 3rem); }
.marquee__view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; }
.marquee__track img {
  width: clamp(8.5rem, 34vw, 12rem); aspect-ratio: 4 / 5; height: auto; margin-right: .75rem;
  object-fit: cover; border-radius: var(--radius-md); filter: var(--grade);
  background: var(--cotton-2);
}
.motion .marquee__track { animation: marquee 70s linear infinite; }
.hero__marquee.is-paused .marquee__track, .hero__marquee.is-off .marquee__track { animation-play-state: paused; }
/* WCAG 2.2.2: motion that runs longer than 5 s gets a pause control */
.marquee__toggle {
  position: absolute; right: .5rem; top: 50%; z-index: 2;
  width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  display: none; place-items: center;
  border: 1px solid var(--line-strong); background: rgb(246 241 232 / .94); color: var(--bark); cursor: pointer;
}
.motion .marquee__toggle { display: grid; }
.marquee__toggle svg { width: 1rem; height: 1rem; }
.marquee__toggle .mq-play, .marquee__toggle[aria-pressed="true"] .mq-pause { display: none; }
.marquee__toggle[aria-pressed="true"] .mq-play { display: inline; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (hover: hover) and (pointer: fine) {
  .motion .hero__marquee { display: none; }
  .motion.no-trail .hero__marquee { display: block; }
}

/* hero entrance: pure CSS, so it always completes even if scripts never run */
.motion .hero .ln > span, .motion .page-title .ln > span {
  transform: translate3d(0, 140%, 0);
  animation: lnUp 1.3s var(--ease) forwards;
  animation-delay: calc(var(--d0, .15s) + var(--i, 0) * .1s);
}
.motion .h-in {
  opacity: 0;
  animation: hIn 1.2s var(--ease) forwards;
  animation-delay: calc(var(--d0, .15s) + var(--i, 0) * .1s);
}
@keyframes lnUp { to { transform: none; } }
@keyframes hIn { from { opacity: 0; transform: translate3d(0, 1.25rem, 0); } to { opacity: 1; transform: none; } }

/* ---------- scroll reveals: one config everywhere ---------- */
.motion [data-reveal] {
  opacity: 0; transform: translate3d(0, 1.75rem, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

.motion [data-reveal="lines"] { opacity: 1; transform: none; }
.motion [data-reveal="lines"] .ln > span {
  transform: translate3d(0, 140%, 0);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * .09s);
}
.motion [data-reveal="lines"].is-in .ln > span { transform: none; }

.motion [data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease);
  transition-delay: var(--d, 0s);
}
.motion [data-reveal="clip"] img { transform: scale(1.14); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.motion [data-reveal="clip"].is-in img { transform: none; }

/* safety net: if script.js never runs, show everything after 2.5 s */
.motion:not(.reveal-ready) [data-reveal],
.motion:not(.reveal-ready) [data-reveal] img,
.motion:not(.reveal-ready) [data-reveal] .ln > span { animation: unhide .01s linear 2.5s forwards; }
@keyframes unhide { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--snug { padding-top: 0; }
.section--flush { padding-top: 0; }
.tone { background: var(--cotton-2); }
.on-dark { background: var(--bark); color: var(--cotton); --line: rgb(239 231 218 / .16); --line-strong: rgb(239 231 218 / .34); }
.on-dark p { color: var(--muted-dark); }
.on-dark a:hover { color: var(--turmeric); }

.sec-head { display: grid; gap: 1.25rem 2rem; margin-bottom: clamp(2.75rem, 6vw, 5rem); }
.sec-head__side p { max-width: 40ch; color: var(--muted); margin-bottom: .5rem; }
.on-dark .sec-head__side p { color: var(--muted-dark); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .sec-head > h2 { grid-column: 1 / span 7; }
  .sec-head__side { grid-column: 9 / span 4; }
}

.split { display: grid; gap: 2.5rem; }
.split__head p { color: var(--muted); max-width: 34ch; margin-top: 1.25rem; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .split__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 2rem); }
  .split > :last-child { grid-column: 6 / span 7; }
}

/* ---------- product cards ---------- */
.pgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem .875rem;
}
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 1.5rem; } }
.pgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) {
  .pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 1.5rem; }
  .pgrid--4 > li:nth-child(even) { margin-top: 4.5rem; }
}

.pcard { position: relative; min-width: 0; }
.pcard__link { display: block; color: var(--bark); text-decoration: none; border-radius: var(--radius); }
.pcard__link:hover { color: var(--bark); }
.pcard__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--cotton-2);
  margin-bottom: 1rem;
  transform: translateZ(0);
}
.pcard__a, .pcard__b { position: absolute; inset: 0; }
.pcard__a > img, .pcard__b > img, .pcard__a > .vis, .pcard__b > .vis {
  width: 100%; height: 100%; object-fit: cover;
}
.pcard__a > img, .pcard__b > img { filter: var(--grade); }
.pcard__a { transition: transform 1.4s var(--ease); }
.pcard__b {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
}
.pcard__b > img, .pcard__b > .vis { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.pcard__cap {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .1rem .65rem; border-radius: 999px;
  background: rgb(239 231 218 / .92); color: var(--bark);
  font-size: .8125rem; line-height: 1.7;
}
.pcard__badge {
  position: absolute; left: .75rem; top: .75rem; z-index: 2;
  padding: .1rem .65rem; border-radius: 999px;
  background: rgb(239 231 218 / .92); color: var(--bark);
  font-size: .8125rem; line-height: 1.7;
}
.pcard.is-peek .pcard__b, .pcard__link:focus-visible .pcard__b { clip-path: inset(0 0 0 0); }
.pcard.is-peek .pcard__b > *, .pcard__link:focus-visible .pcard__b > * { transform: none; }
@media (hover: hover) {
  .pcard:hover .pcard__b { clip-path: inset(0 0 0 0); }
  .pcard:hover .pcard__b > img, .pcard:hover .pcard__b > .vis { transform: none; }
  .pcard:hover .pcard__a { transform: scale(1.04); }
}
.pcard__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.0625rem, .98rem + .35vw, 1.3rem); line-height: 1.55;
  margin-bottom: .2rem;
}
.pcard__by { font-size: var(--fs-meta); color: var(--muted); margin: 0 0 .5rem; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pcard__price { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.pcard__peek {
  position: absolute; right: .5rem; top: .5rem; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; place-items: center;
  border: 0; background: rgb(239 231 218 / .92); color: var(--bark); cursor: pointer;
}
.pcard__peek svg { width: 1.15rem; height: 1.15rem; }
.pcard__peek .pk-close, .pcard__peek[aria-pressed="true"] .pk-look { display: none; }
.pcard__peek[aria-pressed="true"] .pk-close { display: inline; }
@media (hover: none) { .pcard__peek { display: grid; } }

.dots { display: inline-flex; gap: .3rem; }
.dots i { width: .7rem; height: .7rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(58 46 37 / .2); filter: saturate(.78) contrast(.95); }

/* ---------- CSS-woven fabrics (softened) ---------- */
.vis {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 18%, #F4EEE4 0%, #E6DBC9 60%, #D9CBB5 100%);
}
.vis .cloth { filter: saturate(.78) contrast(.95); }
.weave {
  --tex:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .09) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgb(0 0 0 / .07) 0 1px, transparent 1px 3px);
  background-color: var(--c1);
}
.weave--stripe {
  background-image: var(--tex),
    repeating-linear-gradient(90deg,
      var(--c1) 0 22px, var(--c2) 22px 26px, var(--c1) 26px 34px,
      var(--c3) 34px 37px, var(--c1) 37px 44px, var(--c2) 44px 46px);
}
.weave--check {
  background-color: var(--c2);
  background-image: var(--tex),
    repeating-linear-gradient(90deg, transparent 0 17px, color-mix(in srgb, var(--c3) 85%, transparent) 17px 19px, transparent 19px 38px),
    repeating-linear-gradient(0deg, transparent 0 17px, color-mix(in srgb, var(--c3) 85%, transparent) 17px 19px, transparent 19px 38px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--c1) 58%, transparent) 0 19px, transparent 19px 38px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--c1) 58%, transparent) 0 19px, transparent 19px 38px);
}
.weave--twill {
  background-image: var(--tex),
    repeating-linear-gradient(0deg, transparent 0 calc(100% - 14px), var(--c3) calc(100% - 14px) calc(100% - 10px), transparent calc(100% - 10px)),
    repeating-linear-gradient(45deg, var(--c1) 0 4px, color-mix(in srgb, var(--c1) 72%, var(--c2)) 4px 6px);
}
.weave--khit {
  background-image: var(--tex),
    repeating-linear-gradient(45deg, transparent 0 13px, var(--c2) 13px 16px, transparent 16px 26px),
    repeating-linear-gradient(-45deg, transparent 0 13px, var(--c2) 13px 16px, transparent 16px 26px),
    repeating-linear-gradient(0deg, transparent 0 44px, var(--c3) 44px 48px, transparent 48px 56px);
}
.weave--slub {
  background-image: var(--tex),
    repeating-linear-gradient(0deg, transparent 0 5px, color-mix(in srgb, var(--c3) 38%, transparent) 5px 6px,
      transparent 6px 13px, color-mix(in srgb, var(--c2) 70%, transparent) 13px 15px, transparent 15px 23px),
    repeating-linear-gradient(90deg, transparent 0 9px, color-mix(in srgb, var(--c3) 22%, transparent) 9px 10px, transparent 10px 17px);
}
.cloth {
  position: relative; display: block;
  box-shadow: 0 22px 30px -18px rgb(58 46 37 / .5), 0 2px 4px rgb(58 46 37 / .1);
}
.vis--scarf .cloth::before, .vis--scarf .cloth::after,
.vis--khaoma .cloth::before, .vis--khaoma .cloth::after,
.vis--runner .cloth::before, .vis--runner .cloth::after {
  content: ""; position: absolute; left: 5%; right: 5%; height: 7%;
  background: repeating-linear-gradient(90deg, var(--c1) 0 2px, transparent 2px 5px);
}
.vis .cloth::before { bottom: 100%; }
.vis .cloth::after { top: 100%; }
.vis--scarf .cloth { width: 40%; height: 74%; transform: rotate(-5deg); }
.vis--khaoma .cloth { width: 58%; height: 68%; transform: rotate(4deg); }
.vis--runner .cloth { width: 32%; height: 82%; transform: rotate(9deg); }
.vis--cushion .cloth {
  width: 66%; aspect-ratio: 1; border-radius: 17%;
  box-shadow:
    inset 0 -24px 40px rgb(0 0 0 / .2),
    inset 0 18px 30px rgb(255 255 255 / .14),
    0 22px 28px -14px rgb(58 46 37 / .55);
}
.vis--mats .cloth { position: absolute; width: 60%; height: 42%; }
.vis--mats .cloth:first-child { top: 14%; left: 10%; transform: rotate(-6deg); }
.vis--mats .cloth--b { bottom: 14%; right: 8%; transform: rotate(5deg); }
.vis--tote .cloth {
  position: absolute; left: 20%; top: 38%; width: 60%; height: 48%;
  border-radius: 2px 2px 6px 6px; z-index: 1;
}
.tote-handle {
  position: absolute; left: 33%; top: 19%; width: 34%; height: 22%;
  border: 7px solid #B59C78; border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.vis--throw .cloth {
  width: 74%; height: 50%;
  box-shadow:
    0 7px 0 -1px color-mix(in srgb, var(--c1) 82%, #000),
    0 14px 0 -2px color-mix(in srgb, var(--c1) 70%, #000),
    0 30px 30px -18px rgb(58 46 37 / .55);
}
.vis--throw .cloth::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 31%, rgb(0 0 0 / .14) 32%, rgb(255 255 255 / .1) 34%, transparent 40%,
    transparent 64%, rgb(0 0 0 / .14) 65%, rgb(255 255 255 / .1) 67%, transparent 73%);
}
.vis--close .cloth { position: absolute; inset: -40%; transform: scale(1.8) rotate(-3deg); box-shadow: none; }

/* ---------- categories ---------- */
.cats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat {
  display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); grid-template-areas: "m n" "m t";
  column-gap: 1.25rem; align-items: center;
  padding: 1rem 0;
  color: var(--bark); text-decoration: none;
}
.cats li { border-bottom: 1px solid var(--line); }
.cat:hover { color: var(--bark); }
.cat__media { grid-area: m; width: 4.25rem; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--cotton-2); }
.cat__media > img, .cat__media > .vis { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat__media > img { filter: var(--grade); }
.cat__name {
  grid-area: n; align-self: end;
  font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.45;
  transition: transform .9s var(--ease);
}
.cat__meta { grid-area: t; align-self: start; font-size: var(--fs-meta); color: var(--muted); }
@media (min-width: 640px) {
  .cat { grid-template-columns: 5rem minmax(0, 1fr) auto; grid-template-areas: "m n t"; padding: 1.25rem 0; }
  .cat__media { width: 5rem; }
  .cat__name, .cat__meta { align-self: center; }
}
@media (hover: hover) {
  .cat:hover .cat__name { transform: translate3d(.6rem, 0, 0); }
  .cat:hover .cat__media > * { transform: scale(1.1); }
}

/* ---------- full-bleed band + hang tag ---------- */
.band { position: relative; }
.band__fig {
  position: relative; margin: 0;
  height: clamp(26rem, 86svh, 56rem);
  overflow: hidden;
  background: var(--cotton-2);
}
@media (min-width: 900px) { .band__fig { border-radius: 0; } }
.band__px { position: absolute; inset: -8% 0; will-change: transform; }
.band__px img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; filter: var(--grade); }
.band__fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(58 46 37 / 0) 55%, rgb(58 46 37 / .32) 100%);
}

.hangtag {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: clamp(1.25rem, 4vw, 3rem);
  color: var(--bark); text-decoration: none;
}
.hangtag:hover { color: var(--bark); }
.hangtag__card {
  position: relative; display: grid;
  width: min(17rem, calc(100vw - 2 * var(--gutter)));
  padding: 1.5rem 1.4rem 1.25rem 2.6rem;
  background: var(--cotton-3);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -28px rgb(43 34 28 / .65);
  transform: rotate(-1.5deg);
  transition: transform .9s var(--ease);
}
.hangtag__card::before {
  content: ""; position: absolute; left: 1rem; top: 1.45rem;
  width: .7rem; height: .7rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.hangtag__card::after {
  content: ""; position: absolute; left: 1.32rem; top: -.4rem; width: 1px; height: 1.9rem;
  background: var(--lac); transform: rotate(18deg); transform-origin: bottom;
}
@media (hover: hover) { .hangtag:hover .hangtag__card { transform: rotate(0deg) translate3d(0, -.25rem, 0); } }
.hangtag__by { font-size: var(--fs-meta); color: var(--muted); line-height: 1.6; }
.hangtag__name { font-family: var(--f-display); font-size: 1.75rem; line-height: 1.45; }
.hangtag__meta { font-size: var(--fs-meta); color: var(--muted); line-height: 1.7; margin-top: .25rem; }

/* ---------- statement (word fill) ---------- */
.statement__text {
  margin: 0; max-width: 21em;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.7rem, 1.05rem + 2.9vw, 3.9rem); line-height: 1.5;
}

/* ---------- story ---------- */
.story { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .story { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; }
  .story__fig { grid-column: 1 / span 6; }
  .story__text { grid-column: 8 / span 5; }
}
.story__fig, .pair figure { margin: 0; }
figcaption { margin-top: .85rem; font-size: var(--fs-meta); color: var(--muted); line-height: 1.6; }
.on-dark figcaption { color: var(--muted-dark); }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cotton-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.frame--story { aspect-ratio: 4 / 5; }
.frame--story .frame__px { position: absolute; inset: -7% 0; }
.frame--story img { object-position: 62% 50%; }
.frame--wide { aspect-ratio: 3 / 2; }
.frame--tall { aspect-ratio: 2 / 3; }
.on-dark .frame { background: var(--bark-2); }
.story__text h2 { margin-bottom: 1.75rem; }
.story__text p { color: var(--muted); max-width: 42ch; }
.quote { margin: 2.25rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.quote p { font-family: var(--f-display); font-weight: 300; font-size: var(--fs-h3); line-height: 1.6; color: var(--bark); margin-bottom: .6rem; }
.quote footer { font-size: var(--fs-meta); color: var(--muted); }

/* ---------- dyes ---------- */
.dyes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1rem; }
@media (min-width: 900px) { .dyes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.skein {
  position: relative; display: block; aspect-ratio: 3 / 4; margin-bottom: 1.25rem;
  border-radius: var(--radius-md); overflow: hidden;
  background:
    repeating-linear-gradient(90deg,
      var(--dye) 0 3px, color-mix(in srgb, var(--dye) 84%, #fff) 3px 4px,
      var(--dye) 4px 7px, color-mix(in srgb, var(--dye) 86%, #000) 7px 8px);
  box-shadow: inset 0 0 0 1px rgb(239 231 218 / .2), 0 18px 36px -24px rgb(0 0 0 / .6);
}
.skein::before {
  content: ""; position: absolute; left: 0; right: 0; top: 16%; height: 10%;
  background: repeating-linear-gradient(-58deg,
    color-mix(in srgb, var(--dye) 70%, #000) 0 3px, color-mix(in srgb, var(--dye) 90%, #fff) 3px 6px);
}
.skein::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / .18), transparent 30%, transparent 70%, rgb(0 0 0 / .22));
}
.dyes h3 { color: var(--cotton); margin-bottom: .35rem; }
.dyes p { font-size: var(--fs-meta); line-height: 1.7; max-width: 26ch; margin: 0; }

/* ---------- process ---------- */
.pair { display: grid; gap: 2rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
@media (min-width: 900px) {
  .pair { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .pair__a { grid-column: 1 / span 7; }
  .pair__b { grid-column: 9 / span 4; margin-top: 6rem; }
}
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 2.25rem; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.process li::before {
  content: counter(step);
  display: block; margin-bottom: .75rem;
  font-family: var(--f-display); font-weight: 300; font-size: 2.25rem; line-height: 1.2; color: var(--turmeric);
}
.process h3 { color: var(--cotton); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); margin-bottom: .4rem; }
.process p { font-size: var(--fs-meta); line-height: 1.75; margin: 0; }

/* ---------- reviews ---------- */
.rating { margin: 0; color: var(--muted); }
.rating strong { font-family: var(--f-display); font-weight: 400; font-size: 2.25rem; color: var(--bark); margin-right: .35rem; vertical-align: -.1em; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.5rem; } }
.review { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stars { color: var(--lac); letter-spacing: .2em; font-size: .9rem; margin-bottom: 1rem; }
.review blockquote { margin: 0 0 1.25rem; }
.review blockquote p { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.15rem, 1.04rem + .45vw, 1.4rem); line-height: 1.7; margin: 0; }
.review__who { font-size: var(--fs-meta); color: var(--muted); margin: 0; }
.review__who b { color: var(--bark); font-weight: 500; }

/* ---------- shipping ---------- */
.ship { display: grid; gap: 2.75rem 2.5rem; }
@media (min-width: 640px) { .ship { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ship { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 3rem; } }
.ship__item svg { width: 1.9rem; height: 1.9rem; color: var(--lac); }
.ship__item h3 { font-family: var(--f-ui); font-weight: 500; font-size: 1.0625rem; line-height: 1.6; margin: 1.1rem 0 .4rem; }
.ship__item p { color: var(--muted); margin: 0; max-width: 36ch; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.35rem 3rem 1.35rem 0; min-height: 44px;
  font-family: var(--f-display); font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); line-height: 1.55;
  transition: color .4s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 1rem; height: 1.5px; background: currentColor;
  transition: transform .6s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
@media (hover: hover) { .faq summary:hover { color: var(--lac); } }
.faq details p { color: var(--muted); max-width: 60ch; padding: 0 3rem 1.6rem 0; margin: 0; }
.motion .faq details[open] p { animation: hIn .8s var(--ease); }

/* ---------- contact ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .contact__main { grid-column: 1 / span 6; }
  .contact__side { grid-column: 8 / span 5; padding-top: .75rem; }
}
.contact__main h2 { margin-bottom: 1.5rem; }
.contact__main > p { color: var(--muted); max-width: 44ch; }
.addr { margin: 1.5rem 0 2rem; line-height: 1.8; }
.contact__side h3 { font-family: var(--f-ui); font-weight: 500; font-size: 1.0625rem; margin-bottom: .75rem; }
.hours { margin: 0 0 2.25rem; border-top: 1px solid var(--line-strong); }
.hours > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.tel {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 44px;
  font-family: var(--f-display); font-size: var(--fs-h3); text-decoration: none;
}
.tel .ic { width: 1.4rem; height: 1.4rem; }

/* ---------- footer ---------- */
.ftr { background: var(--cotton); padding-bottom: 1.5rem; overflow: hidden; }
.ftr__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; padding-top: clamp(3.5rem, 7vw, 6rem); }
.ftr__about { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .ftr__grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
  .ftr__about { grid-column: auto; }
}
.ftr__brand { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.4; margin-bottom: .5rem; }
.ftr__about p:not(.ftr__brand) { color: var(--muted); max-width: 34ch; font-size: var(--fs-meta); }
.ftr h2 { font-family: var(--f-ui); font-weight: 500; font-size: var(--fs-meta); line-height: 1.6; color: var(--muted); margin-bottom: .5rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); text-decoration: none; }
.ftr li a:hover { text-decoration: underline; }
.ftr__note { font-size: var(--fs-meta); color: var(--muted); margin-top: .5rem; }
.ftr__word {
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;
  padding-top: .15em;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(4.5rem, 21vw, 21rem); line-height: 1.15; letter-spacing: -.02em;
  text-align: center; white-space: nowrap; color: var(--bark);
  opacity: .92;
}
.ftr__legal { font-size: .8125rem; color: var(--muted); margin-top: 1rem; }

/* ---------- mobile bar ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: .5rem;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgb(239 231 218 / .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mbar__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 48px; padding: 0 .5rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--bark);
  font-size: var(--fs-ui); font-weight: 500; text-decoration: none; cursor: pointer;
}
.mbar__btn .ic { width: 1.2rem; height: 1.2rem; }
.mbar__btn--main { background: var(--bark); border-color: var(--bark); color: var(--cotton); }
.mbar__btn--main:hover { color: var(--cotton); }
@media (min-width: 900px) { .mbar { display: none; } }

/* ---------- PV Dev strip ---------- */
.pvdev { background: var(--bark-2); padding: .9rem var(--gutter); text-align: center; }
.pvdev a { color: #D8CCB8; font-size: var(--fs-meta); line-height: 1.7; text-decoration: none; }
.pvdev a:hover { color: var(--cotton); text-decoration: underline; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem;
  width: max-content; max-width: calc(100vw - 2rem);
  padding: .85rem 1.25rem; border-radius: var(--radius-md);
  background: var(--bark); color: var(--cotton); font-size: var(--fs-ui);
  box-shadow: 0 24px 48px -24px rgb(43 34 28 / .6);
  opacity: 0; visibility: hidden;
  transform: translate3d(-50%, 1rem, 0);
  transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s linear .8s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0); transition-delay: 0s; }
.toast a { color: var(--turmeric); min-height: 44px; display: inline-flex; align-items: center; }
.toast a:hover { color: var(--cotton); }
@media (min-width: 900px) { .toast { bottom: 2rem; } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.page-head__lead { color: var(--muted); max-width: 44ch; margin: 1.25rem 0 0; }
.page-title { margin: 0; }
.page-title:focus { outline: none; }

/* catalogue */
.toolbar {
  display: flex; flex-direction: column; gap: .5rem;
  padding: .5rem 0; border-block: 1px solid var(--line);
}
@media (min-width: 900px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.chips { display: flex; gap: .25rem; min-width: 0; overflow-x: auto; scrollbar-width: none; margin: -.4rem -.35rem; padding: .4rem .35rem; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: .4rem .95rem;
  border: 1px solid transparent; border-radius: 999px; background: none;
  font-size: var(--fs-ui); color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color .4s, border-color .6s var(--ease);
}
.chip:hover { color: var(--bark); }
.chip[aria-pressed="true"] { color: var(--cotton); background: var(--bark); border-color: var(--bark); }
.sort { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-ui); color: var(--muted); }
.sort select {
  min-height: 44px; padding: 0 2rem 0 .75rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--cotton) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233A2E25' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .8rem center / .65rem;
  color: var(--bark); cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.result-count { font-size: var(--fs-meta); color: var(--muted); margin: 1.25rem 0 2rem; }

.banner {
  display: grid; gap: 1.5rem; align-items: center;
  margin: var(--section) 0 calc(var(--section) * .6);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
}
.banner h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); color: var(--cotton); margin-bottom: .75rem; }
.banner p { max-width: 52ch; margin: 0; }
@media (min-width: 900px) { .banner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* product detail */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .5rem; margin: 1.5rem 0 2rem; padding: 0; font-size: var(--fs-meta); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); }
.crumbs li[aria-current] { display: inline-flex; align-items: center; color: var(--bark); }

.pdp { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .pdp { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .gallery { grid-column: 1 / span 7; position: sticky; top: calc(var(--header-h) + 1.25rem); }
  .pdp__info { grid-column: 8 / span 5; }
}
.gallery__main {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--cotton-2);
}
.gallery__main > img, .gallery__main > .vis { width: 100%; height: 100%; object-fit: cover; }
.gallery__main > img { filter: var(--grade); }
.motion .gallery__main > * { animation: galleryIn .9s var(--ease) both; }
@keyframes galleryIn { from { opacity: 0; transform: scale(1.03); } }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.thumb {
  width: 4.5rem; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; cursor: pointer;
  border: 0; border-radius: var(--radius-sm); background: var(--cotton-2);
  opacity: .62; transition: opacity .5s var(--ease), box-shadow .5s var(--ease);
}
.thumb > img, .thumb > .vis { width: 100%; height: 100%; object-fit: cover; }
.thumb > img { filter: var(--grade); }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--cotton), 0 0 0 3px var(--bark); }
.gallery__note { font-size: var(--fs-meta); color: var(--muted); margin: 1rem 0 0; max-width: 60ch; }

.pdp__cat { margin: 0 0 .5rem; font-size: var(--fs-meta); }
.pdp__cat a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); }
.pdp__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.9rem, 1.35rem + 1.7vw, 3rem); line-height: 1.38; margin-bottom: .75rem; }
.pdp__price { font-size: 1.375rem; font-weight: 500; margin: 0 0 2rem; font-variant-numeric: tabular-nums; }
.buy { padding: 1.5rem 0; border-block: 1px solid var(--line); margin-bottom: 2rem; }
.opt-group { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.opt-group legend { padding: 0; margin-bottom: .6rem; font-size: var(--fs-meta); color: var(--muted); }
.opt-group legend span { color: var(--bark); margin-left: .5rem; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch span {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 75%, var(--c3) 75%);
  box-shadow: inset 0 0 0 1px rgb(58 46 37 / .2);
  filter: saturate(.78) contrast(.95);
  transition: box-shadow .4s var(--ease);
}
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgb(58 46 37 / .2), 0 0 0 3px var(--cotton), 0 0 0 4px var(--bark); }
.swatch input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 5px; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.size span {
  display: flex; flex-direction: column; justify-content: center; min-height: 3.25rem;
  padding: .45rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: var(--fs-ui); line-height: 1.5;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.size small { font-size: .8125rem; color: var(--muted); }
.size input:checked + span { border-color: var(--bark); box-shadow: inset 0 0 0 1px var(--bark); background: var(--cotton-3); }
.size input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 3px; }
.buy__row { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.btn--buy { flex: 1 1 12rem; }
.buy__note { margin: 1rem 0 0; font-size: var(--fs-meta); color: var(--lac); }
.buy__ship { margin: 1rem 0 0; font-size: var(--fs-meta); color: var(--muted); }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  min-height: 3.25rem;
}
.qty button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--bark); border-radius: 50%;
}
.qty button:hover { color: var(--lac); }
.qty input {
  width: 2.75rem; border: 0; background: none; text-align: center;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.maker { margin: 0 0 2.25rem; }
.maker .hangtag__card { transform: rotate(-1deg); box-shadow: 0 18px 40px -28px rgb(43 34 28 / .55); }
.pdp__h2 { font-size: var(--fs-h3); margin-bottom: .75rem; }
.pdp__info > p { color: var(--muted); }
.facts { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .85rem 1rem; margin: 1.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-ui); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* empty states */
.empty { display: grid; justify-items: start; gap: .25rem; padding: 2rem 0 var(--section); max-width: 34rem; }
.empty h2, .empty .page-title { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); }
.empty p { color: var(--muted); }
.empty__vis { width: 9rem; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1.25rem; }

/* cart */
.cart-grid { display: grid; gap: 2.5rem; padding-bottom: var(--section); }
@media (min-width: 1024px) { .cart-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; align-items: start; } }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.citem { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .citem { grid-template-columns: 7.5rem minmax(0, 1fr); } }
.citem__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-md); background: var(--cotton-2); }
.citem__media > img, .citem__media > .vis { width: 100%; height: 100%; object-fit: cover; }
.citem__media > img { filter: var(--grade); }
.citem__name { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.55; margin-bottom: .25rem; }
.citem__name a { text-decoration: none; }
.citem__opts, .citem__unit { font-size: var(--fs-meta); color: var(--muted); margin: 0 0 .25rem; }
.citem__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: .75rem; }
.citem__row .qty { min-height: 2.9rem; }
.citem__total { font-weight: 500; font-variant-numeric: tabular-nums; }
.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin-top: .25rem;
  border: 0; background: none; cursor: pointer;
  font-size: var(--fs-meta); color: var(--muted); text-decoration: underline; text-underline-offset: .3em;
}
.link-btn:hover { color: var(--lac); }
.cart-undo {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem;
  margin: 0 0 1.5rem; padding: .6rem 1.1rem; border-radius: var(--radius-md);
  background: var(--cotton-2); font-size: var(--fs-ui);
}
.cart-undo button {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 500; color: var(--bark); text-decoration: underline; text-underline-offset: .3em;
}
.cart-undo button:hover { color: var(--lac); }

.summary {
  background: var(--cotton-2); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--header-h) + 1.25rem); } }
.summary__title { font-size: var(--fs-h3); margin-bottom: 1.25rem; }
.sumlist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem 1rem; margin: 0 0 1.25rem; }
.sumlist dt { color: var(--muted); }
.sumlist dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sumlist .total { margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line-strong); color: var(--bark); font-weight: 500; font-size: 1.125rem; }
.freeship { margin: 0 0 1.5rem; font-size: var(--fs-meta); color: var(--muted); }
.freeship p { margin-bottom: .6rem; }
.freeship b { color: var(--bark); font-weight: 500; }
.meter { height: 3px; border-radius: 3px; background: rgb(58 46 37 / .14); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--lac); border-radius: inherit; transition: width 1s var(--ease); }
.summary .link-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: .75rem; font-size: var(--fs-ui); }
.summary__pay { font-size: var(--fs-meta); color: var(--muted); margin: .75rem 0 0; }

/* checkout */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: -1rem 0 2.5rem; padding: 0; counter-reset: s; font-size: var(--fs-meta); color: var(--muted); }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s) ". "; }
.steps li[aria-current] { color: var(--bark); font-weight: 500; }
.co-grid { display: grid; gap: 2.5rem; padding-bottom: var(--section); }
@media (min-width: 1024px) {
  .co-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: start; }
  .co-form { grid-column: 1; grid-row: 1; }
  .co-grid > .summary { grid-column: 2; grid-row: 1; }
}
.co-block { margin-bottom: 3rem; }
.co-block h2 { font-size: var(--fs-h3); font-weight: 400; margin-bottom: 1.25rem; }
.form-grid { display: grid; gap: 1.1rem 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: .35rem; font-size: var(--fs-meta); color: var(--muted); }
.field label small { font-size: inherit; }
.field input, .field textarea {
  width: 100%; min-height: 3rem; padding: .65rem .9rem;
  border: 1px solid var(--field); border-radius: var(--radius-sm);
  background: var(--cotton-3); color: var(--bark); line-height: 1.6;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7A6A5B; opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.field input:user-invalid, .field textarea:user-invalid,
.field [aria-invalid="true"] { border-color: var(--lac); box-shadow: inset 0 0 0 1px var(--lac); }
.field__err { margin: .4rem 0 0; font-size: var(--fs-meta); line-height: 1.6; color: var(--lac); }
.check { display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.25rem; min-height: 44px; cursor: pointer; }
.check input { flex: none; width: 1.2rem; height: 1.2rem; margin: .3rem 0 0; accent-color: var(--bark); }
.payopts { display: grid; gap: .75rem; }
@media (min-width: 640px) { .payopts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.payopt {
  display: flex; gap: .8rem; align-items: flex-start; cursor: pointer;
  padding: 1rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.payopt:has(input:checked) { border-color: var(--bark); background: var(--cotton-2); }
.payopt input { flex: none; width: 1.15rem; height: 1.15rem; margin: .3rem 0 0; accent-color: var(--bark); }
.payopt b { display: block; font-weight: 500; }
.payopt small { display: block; font-size: var(--fs-meta); color: var(--muted); line-height: 1.6; }
.paypanel { margin-top: 1.5rem; }
.paypanel > p { color: var(--muted); max-width: 52ch; }
.qr { margin: 0 0 1.25rem; }
.qr__card {
  position: relative; width: min(100%, 16rem); padding: 1.25rem;
  background: #fff; color: var(--bark-2); text-align: center;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgb(58 46 37 / .08), 0 24px 48px -30px rgb(58 46 37 / .45);
}
.qr__flag { position: absolute; top: .75rem; right: .75rem; padding: 0 .55rem; border-radius: 999px; background: var(--lac); color: #fff; font-size: .75rem; line-height: 1.7; }
.qr__brand { font-weight: 500; margin: 0 0 .6rem; }
.qr__card svg { width: 100%; height: auto; }
.qr__label { font-family: var(--f-ui); font-weight: 500; }
.qr__amt { margin: .75rem 0 0; font-size: var(--fs-ui); }
.qr__amt strong { font-weight: 500; }
.qr figcaption { max-width: 30ch; }
.bank { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1.25rem; margin: 0 0 1rem; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-variant-numeric: tabular-nums; }
.fine { font-size: var(--fs-meta); color: var(--muted); margin: 1rem 0 0; }
.co-items { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.co-items li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .55rem 0; font-size: var(--fs-ui); line-height: 1.55; }
.co-items small { display: block; font-size: .8125rem; color: var(--muted); }
.co-items b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mini { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-sm); background: var(--cotton-3); }
.mini > img, .mini > .vis { width: 100%; height: 100%; object-fit: cover; }

.confirm { max-width: 46rem; padding-bottom: var(--section); }
.confirm__mark { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--bark); color: var(--cotton); margin-bottom: 1.5rem; }
.confirm__mark svg { width: 1.5rem; height: 1.5rem; }
.motion .confirm__mark { animation: hIn 1s var(--ease) both; }
.confirm .page-title { margin-bottom: 1rem; }
.confirm__no strong { font-weight: 500; letter-spacing: .03em; }
.confirm > p { color: var(--muted); }
.confirm__box { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.confirm__box h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.confirm__pay { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 640px) { .confirm__pay { grid-template-columns: 14rem minmax(0, 1fr); } }
.confirm .btn-row { margin-top: 2.5rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .marquee__track { animation: none !important; }
}

@media print {
  .hdr, .mbar, .pvdev, .intro, .hero__marquee, .trail, body::after { display: none !important; }
  [data-reveal], .ln > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
