/* One house kit for Erick's four storefronts. Mark Henry is the functional reference: centered wordmark,
   quiet header, category tiles, product rails, filter drawer, stacked gallery with a sticky buy column.
   Each house only changes the variables below (and adds its own sections on its home page). */

:root {
  --bg: #FAF9F6; --bg-2: #F1F0EB; --surface: #FFFFFF; --well: #F4F3EF; --well-dark: #121614;
  --ink: #1C211F; --muted: #69716D; --line: #E2E0D9; --accent: #1A5A42; --accent-2: #B08D4A; --on-accent: #fff;
  --tint: #E4EFE8;
  --display: Georgia, serif; --body: system-ui, -apple-system, "Segoe UI", sans-serif; --mono: ui-monospace, Menlo, monospace;
  --name-style: italic; --name-weight: 400; --radius: 0px; --btn-radius: 0px; --pad: 24px;
  --h1: clamp(2.6rem, 6.4vw, 5rem); --h2: clamp(1.9rem, 3.6vw, 2.8rem);
}
/* JADEscape: a light gallery. Ivory walls, jade green, a little gold. */
[data-house="js"] {
  --bg: #FAF8F3; --bg-2: #EEF3EF; --surface: #FFFFFF; --well: #F3F2EE; --ink: #16201B; --muted: #5F6B65; --line: #E1E2DC;
  --accent: #1A5A42; --accent-2: #A98544; --tint: #E4EFE8;
  --display: "EB Garamond", Garamond, Georgia, serif; --body: "Source Sans 3", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --name-style: italic; --h1: clamp(2.8rem, 6.8vw, 5.6rem);
}
/* Jade Bangle Co: a linen fitting room. Plain, bright, size first. */
[data-house="jb"] {
  --bg: #F3EEE5; --bg-2: #EAE3D6; --surface: #FBF8F2; --well: #F7F3EC; --ink: #23262A; --muted: #6A6862; --line: #DDD5C6;
  --accent: #2E5C72; --accent-2: #9C7B52; --tint: #E3ECF1;
  --display: "Crimson Pro", Georgia, serif; --body: "IBM Plex Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --name-style: normal; --name-weight: 500; --radius: 10px; --btn-radius: 999px;
}
[data-house="jb"] body { background-image: repeating-linear-gradient(0deg, rgba(110, 90, 60, .022) 0 1px, transparent 1px 2px), repeating-linear-gradient(90deg, rgba(110, 90, 60, .018) 0 1px, transparent 1px 3px); }
/* Carved in Jade: an atelier. Paper, clay, charcoal, worn wood. */
[data-house="cv"] {
  --bg: #F4EBDF; --bg-2: #EADBC8; --surface: #FBF5EC; --well: #F1E6D6; --ink: #2B2420; --muted: #75665B; --line: #DCCBB4;
  --accent: #8A4A2C; --accent-2: #5E6B4E; --tint: #F2E7DD;
  --display: "Alegreya", Georgia, serif; --body: "Jost", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --name-style: italic; --radius: 4px; --btn-radius: 4px;
}
/* In the atelier, dark product photos hang like prints: a paper mat and a thin frame line instead of a black void. */
[data-house="cv"] .well.dark { border: 8px solid #FBF5EC; outline: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(60, 35, 20, .6); }
[data-house="cv"] .well:not(.dark) { outline: 1px solid var(--line); }
/* Jades of America: a natural history exhibit. Gallery wall, olive, specimen labels. */
[data-house="am"] {
  --bg: #F3F1E8; --bg-2: #E7E3D2; --surface: #FCFBF6; --well: #EFECE1; --ink: #1F241A; --muted: #66695B; --line: #D8D3BE;
  --accent: #586A2B; --accent-2: #A2582E; --tint: #ECE9D9;
  --display: "Merriweather", Georgia, serif; --body: "Source Sans 3", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --name-style: normal; --name-weight: 400; --h1: clamp(2.3rem, 5.4vw, 4.2rem); --h2: clamp(1.7rem, 3.2vw, 2.5rem);
}
/* Let's Talk Jade: the shared house color. */
[data-house="all"] {
  --bg: #F6F6F3; --bg-2: #ECEDE8; --surface: #fff; --well: #F2F2EF; --ink: #1E2422; --muted: #626B67; --line: #DFE0DA;
  --accent: #2B3431; --accent-2: #1A5A42; --tint: #F2F2EF;
  --display: "EB Garamond", Georgia, serif; --body: "Source Sans 3", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body.lock { overflow: hidden; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.02; }
h2 { font-size: var(--h2); }
h3 { font-size: 1.35rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }
@media (max-width: 560px) { :root, [data-house] { --pad: 16px; } }
.sec { padding-block: 88px; }
.sec.tight { padding-block: 56px; }
.sec.alt { background: var(--bg-2); }
@media (max-width: 560px) { .sec { padding-block: 60px; } }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 720px; }
.head.center { margin-inline: auto; text-align: center; align-items: center; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.head-row .head { margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: var(--btn-radius); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: var(--bg); }
.btn.soft { background: var(--bg-2); border-color: var(--bg-2); color: var(--ink); }
.btn.soft:hover { border-color: var(--ink); background: var(--bg-2); color: var(--ink); }
.btn.light { background: #fff; border-color: #fff; color: #111; }
.btn.light:hover { background: transparent; color: #fff; }
.btn.wide { width: 100%; }
.link { font-size: .86rem; font-weight: 500; letter-spacing: .04em; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; background: none; border-top: 0; border-left: 0; border-right: 0; }
.link:hover { color: var(--accent); }
.note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); border: 1px dashed var(--line); padding: 2px 8px; display: inline-block; border-radius: 2px; }
.scene-tag { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: #EEE; background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 2px; }

/* ---- concept strip (Easley Labs) + house switcher ---- */
.concept { background: #0B0B0F; color: #C9C6D6; border-left: 4px solid #5B2DAB; font: 11.5px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .02em; }
.concept .wrap { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; padding-block: 7px; }
.concept img { height: 20px; width: auto; }
.concept .houses { display: flex; gap: 2px 14px; flex-wrap: wrap; flex: 1 1 auto; }
.concept .houses a { color: #A9A6B8; text-decoration: none; }
.concept .houses a[aria-current] { color: #fff; border-bottom: 1px solid #8E6BEE; }
.concept .houses a:hover { color: #fff; }
.concept .back { color: #8E6BEE; text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .concept .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; } .concept .wrap::-webkit-scrollbar { display: none; } .concept .houses { flex-wrap: nowrap; } .concept .wrap > span { display: none; } }

/* ---- header ---- */
.hd { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 68px; }
.hd .left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hd .right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.hd nav { display: flex; gap: 22px; font-size: .84rem; letter-spacing: .03em; }
.hd nav a, .hd nav button { text-decoration: none; background: none; border: 0; padding: 6px 0; color: var(--ink); white-space: nowrap; }
.hd nav a:hover, .hd nav button:hover, .hd nav button[aria-expanded="true"] { color: var(--accent); }
.ico { width: 40px; height: 40px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 50%; position: relative; color: var(--ink); text-decoration: none; }
.ico:hover { background: var(--bg-2); }
.ico svg { width: 20px; height: 20px; }
.ico .n { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 600 10px/16px var(--body); text-align: center; }
.ico .n:empty { display: none; }
.hd .ask { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: none; margin-right: 6px; white-space: nowrap; }
.hd .ask:hover { border-color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 1180px) { .hd nav { display: none; } .menu-btn { display: inline-grid; } .hd .ask { display: none; } }
.wordmark { text-decoration: none; font-family: var(--display); font-size: 1.7rem; line-height: 1; white-space: nowrap; letter-spacing: .01em; text-align: center; }
.wordmark i { font-style: italic; color: var(--accent); }
.wordmark b { font-weight: 600; letter-spacing: .12em; }
.wordmark small { display: block; font: 500 9.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
@media (max-width: 560px) { .wordmark { font-size: 1.35rem; } .wordmark small { display: none; } .hd .right .ico.hide-sm { display: none; } }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(0,0,0,.25); }
.mega .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 32px; padding-block: 32px 36px; }
.mega h4 { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.mega a { text-decoration: none; }
.mega a:hover { color: var(--accent); }
.mega .promo { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; text-decoration: none; }
.mega .promo .well { aspect-ratio: 1; }
.mega .promo b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; font-style: var(--name-style); }
.mega .promo span { font-size: .86rem; color: var(--muted); }

/* ---- drawers (menu, bag, filters) and dialogs ---- */
.scrim { position: fixed; inset: 0; background: rgba(15,15,12,.4); z-index: 80; opacity: 0; transition: opacity .25s; pointer-events: none; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--surface); z-index: 90; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2,.7,.2,1); box-shadow: 0 0 40px rgba(0,0,0,.15); }
.drawer.r { right: 0; transform: translateX(105%); }
.drawer.l { left: 0; transform: translateX(-105%); }
.drawer.on { transform: none; }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer .dh h3 { font-size: 1.3rem; }
.drawer .db { flex: 1; overflow: auto; padding: 20px; }
.drawer .df { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer nav.m { display: grid; gap: 4px; }
.drawer nav.m a { text-decoration: none; font-family: var(--display); font-size: 1.5rem; padding: 6px 0; }
.drawer nav.m h4 { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 20px 0 6px; }
.drawer nav.m .sm a { font-family: var(--body); font-size: 1rem; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag-line .well { aspect-ratio: 1; }
.bag-line .t { font-size: .9rem; line-height: 1.35; }
.bag-line .h { font: 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bag-line button { background: none; border: 0; font-size: .78rem; color: var(--muted); text-decoration: underline; padding: 0; }
.bag-sum { display: flex; justify-content: space-between; font-size: 1.05rem; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
dialog.dlg { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: min(520px, 94vw); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog.dlg::backdrop { background: rgba(15,15,12,.45); }
dialog.dlg .dbody { padding: 26px; display: grid; gap: 14px; }
dialog.dlg .x { position: absolute; top: 10px; right: 10px; }
.field { display: grid; gap: 6px; font-size: .86rem; }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--radius); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check b { color: var(--ink); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; font-size: .88rem; border-radius: var(--radius); z-index: 120; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- image wells ---- */
/* Product photos are shot on pure white or black, so wells match them exactly (no blending, colors stay true). */
.well { position: relative; background: #fff; overflow: hidden; border-radius: var(--radius); }
.well.tinted { background: var(--well); }
.well.dark { background: var(--well-dark); }
.well img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s, transform .6s; }
.well img.cover { object-fit: cover; }
.well .alt-img { position: absolute; inset: 0; opacity: 0; }

/* ---- product card ---- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card > a { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.card .well { aspect-ratio: 1; }
.card:hover .well .alt-img { opacity: 1; }
.card:hover .well img.main { opacity: 0; }
.card .heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; }
.card .meta { font: 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card .nm { font-family: var(--display); font-style: var(--name-style); font-weight: var(--name-weight); font-size: 1.08rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .pr { font-size: .92rem; }
.card .badge { position: absolute; top: 10px; left: 10px; z-index: 2; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--surface); padding: 5px 7px; border-radius: 2px; }
.heart { background: color-mix(in srgb, var(--surface) 80%, transparent); border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.heart svg { width: 17px; height: 17px; }
.heart[aria-pressed="true"] svg path { fill: var(--accent); stroke: var(--accent); }

/* ---- rails ---- */
.rail { position: relative; }
.rail .track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail .track::-webkit-scrollbar { display: none; }
.rail .track > * { scroll-snap-align: start; }
@media (max-width: 1000px) { .rail .track { grid-auto-columns: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 700px) { .rail .track { grid-auto-columns: 62%; gap: 14px; } }
.arrows { display: flex; gap: 6px; }
.rail-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; display: grid; place-items: center; }
.rail-btn:hover { border-color: var(--ink); }
.rail-btn svg { width: 16px; height: 16px; }

/* ---- category tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.tile { text-decoration: none; display: grid; gap: 12px; }
.tile .well { aspect-ratio: 4 / 5; }
.tile .well img { object-fit: cover; }
.tile:hover .well img { transform: scale(1.03); }
.tile b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.tile span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---- story block (image left, pieces right) ---- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.story .pic { aspect-ratio: 4 / 5; }
.story .pic img { object-fit: cover; }
.story .side { display: grid; gap: 24px; }
.story .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 28px; } .story .pic { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .story .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } .story .mini > :nth-child(3) { display: none; } }

/* ---- promises band ---- */
.promises { border-top: 1px solid var(--line); }
.promises .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-block: 44px; }
.promises h4 { font-family: var(--body); font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.promises p { font-size: .86rem; color: var(--muted); }
@media (max-width: 860px) { .promises .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- houses band ---- */
.houses-band .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .houses-band .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.house-card { text-decoration: none; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; align-content: start; background: var(--surface); transition: border-color .2s; }
.house-card:hover { border-color: var(--hc, var(--ink)); }
.house-card .sw { width: 28px; height: 6px; border-radius: 3px; background: var(--hc); }
.house-card b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.house-card span { font-size: .86rem; color: var(--muted); }
.house-card[aria-current] { border-color: var(--hc); box-shadow: inset 0 0 0 1px var(--hc); }

/* ---- footer ---- */
.ft { background: var(--ink); color: color-mix(in srgb, var(--bg) 78%, transparent); padding-block: 64px 28px; font-size: .9rem; }
.ft .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 800px) { .ft .cols { grid-template-columns: 1fr 1fr; } }
.ft .wordmark { color: var(--bg); text-align: left; display: inline-block; }
.ft .wordmark i { color: color-mix(in srgb, var(--tint) 90%, #fff); }
.ft h4 { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 55%, transparent); margin-bottom: 14px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--bg); }
.ft .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; }
.ft .sign { display: grid; gap: 10px; margin-top: 16px; max-width: 340px; }
.ft .sign .row { display: flex; }
.ft .sign input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; background: transparent; border: 1px solid rgba(255,255,255,.25); color: var(--bg); border-radius: var(--btn-radius) 0 0 var(--btn-radius); }
.ft .sign button { border: 1px solid var(--bg); background: var(--bg); color: var(--ink); padding: 0 16px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 0 var(--btn-radius) var(--btn-radius) 0; }
.ft .sign small { font-size: .74rem; line-height: 1.45; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.ft .sign small a { text-decoration: underline; }
.credit { background: #0B0B0F; color: #A9A6B8; border-top: 3px solid #5B2DAB; font: 11.5px/1.5 ui-monospace, Menlo, monospace; }
.credit .wrap { display: flex; gap: 10px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 14px; }
.credit img { height: 22px; width: auto; }
.credit a { color: #8E6BEE; text-decoration: none; }

/* ---- collection page ---- */
.coll-hero { padding-block: 48px 28px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .78rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.coll-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.coll-hero .lead { margin-top: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; font-size: .84rem; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { color: var(--muted); margin-left: 4px; }
.chip[aria-pressed="true"] small { color: inherit; opacity: .7; }
.chip:disabled { opacity: .45; cursor: default; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; flex-wrap: wrap; }
.toolbar .l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toolbar .count { font-size: .86rem; color: var(--muted); }
.filter-btn { display: inline-flex; gap: 8px; align-items: center; background: var(--bg-2); border: 1px solid var(--bg-2); padding: 9px 16px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--btn-radius); }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn svg { width: 16px; height: 16px; }
.sort { font: inherit; font-size: .86rem; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); }
.facet { border-bottom: 1px solid var(--line); padding-block: 16px; }
.facet legend { font: 600 .82rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.facet label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.facet label small { color: var(--muted); margin-left: auto; }
.facet input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.facet .range { display: flex; gap: 8px; align-items: center; }
.facet .range input { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--radius); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: .78rem; }
.more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 48px; font-size: .84rem; color: var(--muted); }

/* ---- piece page ---- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; padding-block: 28px 80px; align-items: start; }
@media (max-width: 920px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.gallery { display: grid; gap: 12px; }
.gallery .well { aspect-ratio: 1; }
.gallery .well.scene { aspect-ratio: 4 / 5; }
.gallery .well.scene img { object-fit: cover; }
.gallery .cap { position: absolute; left: 12px; top: 12px; font: 10.5px/1.3 var(--mono); letter-spacing: .06em; background: var(--surface); color: var(--ink); padding: 4px 8px; border-radius: 2px; }
.gallery .well.scene .cap, .gallery .well.dark .cap { background: rgba(0,0,0,.6); color: #eee; }
@media (max-width: 920px) {
  .gallery { grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .well { scroll-snap-align: start; }
}
.buy { position: sticky; top: 92px; display: grid; gap: 18px; }
.buy h1 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-style: var(--name-style); font-weight: var(--name-weight); line-height: 1.15; }
.buy .row1 { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.buy .row1 .heart { width: 42px; height: 42px; border: 1px solid var(--line); flex: none; }
.buy .price { font-size: 1.35rem; }
.buy .inst { font-size: .84rem; color: var(--muted); }
.buy .inst b { color: #5A31F4; font-weight: 700; }
.buy .ref { font: 11px var(--mono); letter-spacing: .06em; color: var(--muted); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .9rem; padding-block: 16px; border-block: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.fitbox { background: var(--bg-2); padding: 16px; border-radius: var(--radius); display: grid; gap: 10px; font-size: .9rem; }
.fitbox .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fitbox input { width: 110px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); }
.fitbox .res { font-weight: 500; }
.ctas { display: grid; gap: 10px; }
.ctas .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ship { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.ship svg { width: 18px; height: 18px; flex: none; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; cursor: pointer; font-size: .92rem; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.2rem; font-weight: 300; }
.acc details[open] summary::after { content: "\2212"; }
.acc .in { padding-bottom: 18px; font-size: .92rem; color: var(--muted); display: grid; gap: 10px; }
.also { display: grid; gap: 8px; font-size: .86rem; }
.also .chips a { display: inline-flex; align-items: center; gap: 6px; }
.also .chips i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.quote { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; font-style: italic; }

/* ---- video ---- */
.vid { position: relative; background: #0d1210; overflow: hidden; border-radius: var(--radius); }
.vid video, .vid img { width: 100%; height: 100%; object-fit: cover; }
.vid .play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; color: #fff; }
.vid .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #111; }
.vid .play svg { width: 22px; height: 22px; margin-left: 3px; }
.vid .vc { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; display: grid; gap: 2px; }
.vid .vc b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.vid .vc span { font-size: .8rem; color: #d6dcd8; }
.vid.slot { display: grid; place-items: center; text-align: center; color: #9fb0a8; padding: 24px; border: 1px dashed #33433b; background: #101614; }
.vid.slot b { color: #e9efeb; font-family: var(--display); font-weight: 400; font-size: 1.1rem; display: block; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------------------------------------
   Elegance layer (Nov 1). The type and layout come from the proposal cover Nate liked: a bold
   geometric sans for headlines, a fine italic serif for the accent words, pill buttons, letterspaced
   labels, more air. The colors come from Erick's answers: a light house, upscale and clean, linen
   and solid colors a shade deeper than pastel, never primary, and no black backgrounds.
   Each house keeps its own --cover color, its own --deep accent and its own serif.
   --------------------------------------------------------------------------------------------- */
:root, [data-house] {
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans); --body: var(--sans); --mono: var(--sans);
  --serif: "Bodoni Moda", Georgia, serif;
  --cover: #DCE6DD; --deep: #1A5A42; --btn-bg: #14201A; --btn-ink: #fff;
  --h1: clamp(2.6rem, 5.8vw, 4.6rem); --h2: clamp(1.9rem, 3.4vw, 2.9rem);
  --btn-radius: 999px;
}
/* JADEscape: soft sage, deep jade. */
[data-house="js"] { --cover: #D9E5DB; --deep: #1A5A42; --btn-bg: #1A5A42; --btn-ink: #fff; --serif: "Bodoni Moda", Georgia, serif; }
/* Jade Bangle Co: linen, with the light green Nate asked for in place of the proposal's purple. */
[data-house="jb"] {
  --bg: #F4EFE6; --bg-2: #EAE3D6; --surface: #FDFBF7; --well: #F7F3EC; --ink: #1D221F; --muted: #67685F; --line: #DDD5C6;
  --accent: #2F7A57; --accent-2: #8A6E3E; --tint: #E3F1E9; --on-accent: #fff;
  --cover: #E6DCCB; --deep: #2F7A57; --btn-bg: #A9D9BD; --btn-ink: #12201A; --radius: 18px;
}
[data-house="cv"] { --cover: #E8D6C2; --deep: #8A4A2C; --btn-bg: #8A4A2C; --btn-ink: #fff; --serif: "Cormorant Garamond", Georgia, serif; }
[data-house="am"] { --cover: #DEDDC6; --deep: #586A2B; --btn-bg: #3F4C1F; --btn-ink: #fff; --serif: "Playfair Display", Georgia, serif; --h1: clamp(2.4rem, 5.2vw, 4.2rem); }
[data-house="all"] { --cover: #E3E6E0; --deep: #2B3431; --btn-bg: #2B3431; --btn-ink: #fff; }

body { font-weight: 400; }
h1, h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.06; }
h1 { line-height: 1.04; }
h3, h4 { font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-weight: 500; letter-spacing: 0; font-size: 1.05em; color: var(--deep); }
.eyebrow { font-weight: 600; letter-spacing: .22em; font-size: 11px; }
.lead { font-size: 1.06rem; line-height: 1.7; }
.head { gap: 14px; }
.sec { padding-block: 104px; }
.sec.tight { padding-block: 64px; }
@media (max-width: 560px) { .sec { padding-block: 64px; } .sec.tight { padding-block: 48px; } }
.btn { font-weight: 600; font-size: .92rem; letter-spacing: .01em; text-transform: none; padding: 14px 26px; }
.link { font-weight: 600; letter-spacing: 0; }
.wordmark { font-weight: 700; letter-spacing: -.02em; font-size: 1.55rem; }
.wordmark i { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.wordmark b { font-weight: 700; letter-spacing: .06em; }
.wordmark small { font-weight: 600; letter-spacing: .26em; }
.card .nm { font-style: normal; font-weight: 500; font-size: .98rem; letter-spacing: -.005em; }
.card .meta, .card .badge, .note, .scene-tag, .gallery .cap, .buy .ref, .bag-line .h { letter-spacing: .1em; }
.tile b, .house-card b, .mega .promo b, .vid .vc b, .vid.slot b { font-weight: 600; font-style: normal; letter-spacing: -.01em; }
.drawer nav.m a { font-weight: 600; letter-spacing: -.01em; }
.buy h1 { font-style: normal; font-weight: 600; letter-spacing: -.02em; }
.quote { font-family: var(--serif); font-weight: 500; }
[data-house="jb"] .btn { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
[data-house="jb"] .btn:hover { background: #8FCCA9; border-color: #8FCCA9; color: var(--btn-ink); }
[data-house="jb"] .btn.alt, [data-house="jb"] .btn.soft { background: transparent; border-color: var(--ink); color: var(--ink); }
[data-house="jb"] .btn.alt:hover { background: var(--ink); color: #fff; }

/* The cover: a solid, soft house color, copy on the left, the styled image framed in an arch on the right.
   The frame keeps today's dark studio photos from turning the page black; light shoots drop straight in. */
.cover { position: relative; isolation: isolate; overflow: hidden; background: var(--cover); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.cover > .wrap { min-height: min(86vh, 800px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 72px; }
.cover .inner { max-width: 620px; display: grid; gap: 22px; justify-items: start; }
.cover .eyebrow { color: var(--deep); }
.cover h1 { color: var(--ink); font-size: clamp(2.5rem, 5.4vw, 4.2rem); max-width: 14ch; }
.cover h1 em { color: var(--deep); }
.cover .sub { font-size: 1.1rem; line-height: 1.7; color: color-mix(in srgb, var(--ink) 74%, var(--cover)); max-width: 50ch; }
.cover .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.cover .btn { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.cover .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cover .btn.alt { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.cover .btn.alt:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.cover .facts { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 26px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); width: 100%; }
.cover .facts .k { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--deep); margin-bottom: 4px; }
.cover .facts .v { font-size: 14px; font-weight: 500; color: var(--ink); }
.cover .art { position: relative; justify-self: end; width: min(100%, 500px); aspect-ratio: 4 / 5; border-radius: 260px 260px 22px 22px; overflow: hidden; box-shadow: 0 40px 80px -48px rgba(30, 30, 20, .55); background: var(--surface); }
.cover .art img, .cover .art video { width: 100%; height: 100%; object-fit: cover; object-position: var(--art-pos, 50% 30%); }
.cover .scene { position: absolute; right: var(--pad); bottom: 16px; display: flex; gap: 12px; align-items: center; font-size: 10.5px; letter-spacing: .06em; color: color-mix(in srgb, var(--ink) 60%, transparent); }
.cover .scene a { color: var(--ink); }
@media (max-width: 900px) {
  .cover > .wrap { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-block: 48px 64px; }
  .cover .art { order: -1; justify-self: center; width: min(78%, 360px); }
  .cover .scene { position: static; justify-content: center; padding: 0 var(--pad) 18px; text-align: center; }
}

/* The footer follows the light house: the cover color, ink type, the house accent for labels. */
.ft { background: var(--cover); color: color-mix(in srgb, var(--ink) 76%, transparent); border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.ft .wordmark { color: var(--ink); }
.ft .wordmark i { color: var(--deep); }
.ft h4 { color: var(--deep); font-weight: 600; letter-spacing: .2em; }
.ft a:hover { color: var(--ink); }
.ft .legal { border-top-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.ft .sign input { border-color: color-mix(in srgb, var(--ink) 28%, transparent); color: var(--ink); background: var(--surface); }
.ft .sign button { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-ink); }
.ft .sign small { color: color-mix(in srgb, var(--ink) 60%, transparent); }

/* Erick's product videos: hover-play on cards, first in the piece gallery */
.well video { width: 100%; height: 100%; object-fit: cover; display: block; }
.well .alt-vid { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: var(--surface); }
.card .vid-tag { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.9); color: var(--ink); padding: 5px 7px; border-radius: 999px; }
.card .vid-tag svg { width: 10px; height: 10px; }
.card:hover .vid-tag { opacity: 0; }
.gallery .well.vid { background: #111; }

/* Phones and tablets: nothing may push the page wider than the screen (it shifts every tap). Long buttons wrap. */
html { overflow-x: clip; }
@media (max-width: 760px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
