/* Carve & Cruz shared structure. Each look sets the variables below in its own theme.css. */
:root {
  --bg: #fff; --fg: #0b0b0b; --muted: #77756f; --line: rgba(0,0,0,.12);
  --panel: #fff; --panel-fg: #0b0b0b; --accent: #0b0b0b; --accent-fg: #fff; --alert: #c2410c;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --radius: 0px; --shadow: drop-shadow(0 28px 26px rgba(0,0,0,.16));
  --mx: 0; --my: 0; --ease: cubic-bezier(.2,.7,.1,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.wrap { padding-inline: clamp(16px, 4vw, 64px); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
html.is-scrolled .nav { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__links { display: flex; gap: clamp(14px, 3vw, 36px); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.nav__links a { padding: 8px 0; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cart { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; padding: 8px 0; }
.nav__cart sup, .drawer__head sup { font-size: 10px; min-width: 20px; height: 20px; border-radius: 20px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-fg); letter-spacing: 0; top: 0; }
.mono { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -.06em; font-weight: 500; display: inline-flex; align-items: baseline; }
.mono i { font-style: normal; font-size: .52em; margin: 0 -.12em; transform: translateY(-.1em); }

/* drop bar and ticker */
.dropbar { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 16px; text-align: center; }
.dropbar b { font-variant-numeric: tabular-nums; font-weight: 600; }
.ticker { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding: 14px 0; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.ticker__run { display: inline-block; animation: tick 60s linear infinite; }
.ticker span { margin-right: 3em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* floating pieces */
.piece { position: relative; display: block; width: 100%; text-align: center; translate: calc(var(--mx) * var(--depth, .5) * -26px) calc(var(--my) * var(--depth, .5) * -20px); transition: translate .9s var(--ease), opacity .5s, filter .5s; }
.piece__float { position: relative; display: grid; place-items: center; aspect-ratio: 1; animation: bob var(--d, 7s) ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -1.7s); }
.piece__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: var(--shadow); opacity: 0; scale: .92; transition: opacity .8s, scale .9s var(--ease), rotate .6s var(--ease); rotate: var(--r, 0deg); }
.piece__float.is-ready img { opacity: 1; scale: 1; }
.piece__float.is-tile img { inset: 7%; border-radius: 18px; filter: none; box-shadow: 0 24px 40px rgba(0,0,0,.18); width: 86%; height: 86%; }
.piece:hover .piece__float img { rotate: 0deg; scale: 1.06; }
.piece__name { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.piece__flag { position: absolute; top: 6%; left: 50%; translate: -50% 0; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; background: var(--alert); color: #fff; opacity: 0; transition: opacity .4s; pointer-events: none; white-space: nowrap; }
.piece:hover .piece__flag { opacity: 1; }
@keyframes bob { from { transform: translate3d(0, -12px, 0) rotate(-1.2deg); } to { transform: translate3d(0, 12px, 0) rotate(1.2deg); } }
@media (hover:hover) { .field:has(.piece:hover) .piece:not(:hover) { opacity: .32; filter: blur(3px); } }

.field { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3.5vw, 64px) clamp(12px, 3vw, 56px); align-items: start; }
.field .piece { grid-column: span 3; }
.field .piece:nth-child(6n+1) { grid-column: span 4; margin-top: 5vw; }
.field .piece:nth-child(6n+2) { grid-column: span 3; }
.field .piece:nth-child(6n+3) { grid-column: span 5; margin-top: 9vw; }
.field .piece:nth-child(6n+4) { grid-column: span 5; margin-top: 1vw; }
.field .piece:nth-child(6n+5) { grid-column: span 4; margin-top: 8vw; }
.field .piece:nth-child(6n)   { grid-column: span 3; margin-top: 3vw; }
@media (max-width: 760px) {
  .field .piece:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .field .piece:nth-child(even) { margin-top: 44px; }
  .piece__name { font-size: 10px; letter-spacing: .16em; }
}

/* buttons */
.btn { display: block; width: 100%; padding: 17px 20px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-align: center; border-radius: var(--radius); transition: transform .25s var(--ease), background .25s, color .25s, opacity .25s, box-shadow .25s; }
.btn--solid { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.btn--solid:hover { transform: translateY(-2px); }
.btn--quiet { color: var(--muted); border: 1px solid var(--line); margin-top: 10px; font-weight: 400; }
.btn--quiet:hover { color: var(--panel-fg); border-color: currentColor; }
.btn--inline { display: inline-block; width: auto; }
.x { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
.x:hover { color: var(--panel-fg); }

/* overlays */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .45s; }
body:has(.is-open) .scrim { opacity: 1; pointer-events: auto; }
.drawer, .pdp, .cartpage { color: var(--panel-fg); background: var(--panel); }

.drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .6s var(--ease); box-shadow: -30px 0 60px rgba(0,0,0,.25); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: 500 28px/1 var(--display); display: flex; gap: 10px; align-items: center; }
.ship { padding: 14px 24px; font-size: 12px; border-bottom: 1px solid var(--line); }
.ship__bar { height: 3px; background: var(--line); margin-top: 8px; border-radius: 3px; overflow: hidden; }
.ship__bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .7s var(--ease); }
.lines { flex: 1; overflow-y: auto; padding: 4px 24px; overscroll-behavior: contain; }
.lines__empty { padding: 60px 0; text-align: center; color: var(--muted); font: 400 22px/1.3 var(--display); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__photo { position: relative; aspect-ratio: 1; }
.line__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.line__photo.is-tile img { border-radius: 8px; }
.line__main b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.line__main span { font-size: 12px; color: var(--muted); }
.line__price { font-size: 13px; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 2px; margin-top: 10px; font-size: 13px; }
.qty button[data-q="-1"], .qty button[data-q="1"] { width: 30px; height: 30px; border: 1px solid var(--line); }
.qty i { font-style: normal; width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.line__rm { margin-left: 12px; font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.upsell { padding: 0 24px; }
.upsell:not(:empty) { padding: 16px 24px 4px; border-top: 1px solid var(--line); }
.upsell__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.upsell__row button { text-align: center; }
.upsell__row span { position: relative; display: block; aspect-ratio: 1; }
.upsell__row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: scale .4s var(--ease); }
.upsell__row button:hover img { scale: 1.08; }
.upsell__row b { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-top: 4px; }
.drawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.sum { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.sum b { font-size: 18px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.fineprint { font-size: 11px; color: var(--muted); margin: 6px 0 16px; }

.pdp { position: fixed; z-index: 70; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; opacity: 0; visibility: hidden; clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .85s var(--ease), opacity .3s, visibility 0s .85s; }
.pdp.is-open { opacity: 1; visibility: visible; clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .95s var(--ease), opacity .2s; }
.pdp > .back { position: absolute; top: 16px; left: 20px; z-index: 3; }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--panel-fg); border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(10px); transition: border-color .25s, background .25s; }
.back svg { transition: transform .35s var(--ease); }
.back:hover { border-color: var(--panel-fg); }
.back:hover svg { transform: translateX(-3px); }
.pdp__stage { display: grid; place-items: center; padding: 8vh 4vw; min-height: 0; background: var(--stage, transparent); }
.pdp__photo { position: relative; width: min(100%, 78vh); aspect-ratio: 1; display: grid; place-items: center; animation: bob 7s ease-in-out infinite alternate; }
.pdp__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: var(--shadow); opacity: 0; scale: .9; transition: opacity .6s .15s, scale .9s var(--ease) .15s; }
.pdp__photo.is-ready img { opacity: 1; scale: 1; }
.pdp__photo.is-tile img { inset: 6%; width: 88%; height: 88%; border-radius: 24px; filter: none; }
.pdp__info { overflow-y: auto; padding: clamp(64px, 9vh, 110px) clamp(20px, 4vw, 64px) 48px; border-left: 1px solid var(--line); overscroll-behavior: contain; }
.pdp__name { font: 500 clamp(38px, 4.4vw, 68px)/.95 var(--display); letter-spacing: -.01em; margin: 14px 0 12px; }
.pdp__price { font-size: 20px; font-variant-numeric: tabular-nums; margin-bottom: 30px; }
.pdp__blurb { margin: 18px 0 28px; max-width: 44ch; color: color-mix(in srgb, var(--panel-fg) 78%, transparent); }
.opt { margin-bottom: 24px; }
.opt__head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.opt__head b { font-weight: 500; color: var(--muted); }
.swatches { display: flex; gap: 12px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--sw); border: 1px solid var(--line); outline: 1px solid transparent; outline-offset: 4px; transition: outline-color .25s; }
.swatch.is-on { outline-color: var(--panel-fg); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 54px; height: 48px; padding: 0 12px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .08em; position: relative; border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s; }
.size:hover { border-color: var(--panel-fg); }
.size.is-on { background: var(--panel-fg); color: var(--panel); border-color: var(--panel-fg); }
.size.is-low::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--alert); }
.size:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.sizes.nudge { animation: nudge .45s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.link { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--panel-fg); }
.guide { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.guide__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.guide__units { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.guide__units button { padding: 5px 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.guide__units .is-on { background: var(--panel-fg); color: var(--panel); }
.guide__scroll { overflow-x: auto; }
.guide table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.guide th, .guide td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.guide th:first-child { text-align: left; }
.guide thead th { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.guide tbody th { font-weight: 600; }
.guide tr.is-on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.guide__how { margin: 14px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; font-size: 12px; }
.guide__how b { color: var(--panel-fg); font-weight: 600; }
.guide__note { margin-top: 12px; font-size: 12px; color: var(--muted); padding: 0; }
.opt__hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.opt__hint em { font-style: normal; color: var(--alert); font-weight: 600; }
.pdp__add { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -18px 24px var(--panel); }
.pdp__perk { margin: 14px 0 26px; font-size: 12px; color: var(--muted); text-align: center; }
.assure { margin: 20px 0 26px; font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.assure li { padding-left: 16px; position: relative; }
.assure li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: currentColor; }
.assure li:first-child { color: var(--panel-fg); }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 16px; letter-spacing: 0; line-height: 1; }
details[open] summary::after { content: '−'; }
details p, .specs { font-size: 14px; padding-bottom: 18px; color: color-mix(in srgb, var(--panel-fg) 78%, transparent); }
.specs li { padding: 5px 0; display: flex; gap: 10px; }
.specs li::before { content: '•'; }

.cartpage { position: fixed; z-index: 75; inset: 0; overflow-y: auto; transform: translateY(102%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; }
.cartpage.is-open { transform: none; visibility: visible; transition: transform .7s var(--ease); }
.cartpage__head { padding: clamp(18px, 3vw, 36px) clamp(20px, 6vw, 96px) 24px; border-bottom: 1px solid var(--line); }
.cartpage__head .back { margin-bottom: clamp(20px, 3vw, 40px); }
.cartpage__head h2 { font: 500 clamp(48px, 8vw, 120px)/.9 var(--display); letter-spacing: -.02em; }
.cartpage__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 6vw, 96px); padding: 24px clamp(20px, 6vw, 96px) 80px; align-items: start; }
.lines--big { padding: 0; overflow: visible; }
.lines--big .line { grid-template-columns: 140px 1fr auto; }
.cartpage__sum { position: sticky; top: 24px; padding: 28px; border: 1px solid var(--line); }

/* checkout */
.checkout { position: fixed; z-index: 76; inset: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); background: var(--panel); color: var(--panel-fg); transform: translateY(102%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; }
.checkout.is-open { transform: none; visibility: visible; transition: transform .7s var(--ease); }
.checkout__main { width: 100%; max-width: 760px; justify-self: end; padding: clamp(18px, 3vw, 36px) clamp(20px, 5vw, 80px) 80px; }
.checkout__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 52px); }
.checkout__brand { font: 500 clamp(20px, 2vw, 28px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.checkout__brand i { font-size: .7em; margin: 0 .08em; }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; display: grid; gap: 10px; }
.checkout legend { padding: 0; margin-bottom: 14px; font: 500 clamp(24px, 2.2vw, 32px)/1 var(--display); }
.f { position: relative; display: block; min-width: 0; }
.f input { width: 100%; height: 56px; padding: 22px 14px 6px; font: inherit; font-size: 16px; color: inherit; background: color-mix(in srgb, var(--panel-fg) 4%, transparent); border: 1px solid var(--line); border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.f span { position: absolute; left: 15px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; white-space: nowrap; transition: top .2s var(--ease), font-size .2s var(--ease); }
.f input:focus { border-color: var(--panel-fg); background: transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--panel-fg) 12%, transparent); }
.f input:focus + span, .f input:not(:placeholder-shown) + span { top: 8px; font-size: 11px; letter-spacing: .03em; }
.f input:user-invalid { border-color: var(--alert); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f3 { grid-template-columns: 1.4fr .8fr 1fr; }
.ship-opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--panel-fg); border-radius: 10px; font-size: 15px; }
.ship-opt small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.pay-slot { display: flex; align-items: center; gap: 14px; padding: 22px 18px; border: 1px dashed color-mix(in srgb, var(--panel-fg) 35%, transparent); border-radius: 10px; font-size: 14px; color: var(--muted); }
.pay-slot svg { flex: none; }
.checkout__pay { padding: 20px; font-size: 13px; }
.checkout__form .fineprint { text-align: center; margin-top: 14px; }
.checkout__sum { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--panel-fg) 5%, var(--panel)); padding: clamp(24px, 5vw, 76px) clamp(20px, 5vw, 72px); }
.checkout__sum > div { position: sticky; top: clamp(24px, 5vw, 76px); max-width: 460px; }
.lines--sum { padding: 0; overflow: visible; }
.sline { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 10px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.sline > div b { display: block; font-weight: 600; }
.sline > div span { font-size: 12px; color: var(--muted); }
.sline__photo { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, #fff 55%, var(--panel)); }
.sline__photo img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.sline__photo.is-tile img { border-radius: 6px; }
.sline__photo i { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 22px; background: var(--panel-fg); color: var(--panel); font-size: 11px; font-style: normal; }
.totals { display: grid; gap: 10px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals b { font-weight: 500; }
.totals .grand { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; }
.totals .grand b { font-weight: 600; }

.field.is-swapping { opacity: 0; transform: translateY(14px); }
.field { transition: opacity .24s, transform .4s var(--ease); }

.note { position: fixed; z-index: 95; left: 50%; bottom: 28px; translate: -50% 30px; max-width: min(92vw, 460px); padding: 14px 20px; background: var(--panel-fg); color: var(--panel); font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .35s, translate .45s var(--ease); border-radius: 4px; }
.note.is-on { opacity: 1; translate: -50% 0; }
.ghost { position: fixed; z-index: 90; object-fit: contain; pointer-events: none; }
.cursor { position: fixed; z-index: 99; top: 0; left: 0; pointer-events: none; }
.cursor span { position: absolute; translate: -50% -50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-size: 0; letter-spacing: .2em; text-transform: uppercase; transition: width .35s var(--ease), height .35s var(--ease), font-size .2s; }
.cursor.is-on span { width: 76px; height: 76px; font-size: 10px; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s, transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* shared content blocks */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.proof h3 { font: 500 clamp(26px, 2.6vw, 40px)/1 var(--display); margin-bottom: 12px; }
.proof p { color: var(--muted); max-width: 34ch; font-size: 15px; }
.proof b { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.signup form { display: flex; gap: 0; max-width: 520px; margin-inline: auto; border-bottom: 1px solid currentColor; }
.signup input { flex: 1; min-width: 0; background: none; border: 0; padding: 16px 0; font: inherit; color: inherit; outline: none; }
.signup input::placeholder { color: var(--muted); }
.signup button { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; padding-left: 16px; }
.signup__done { padding: 16px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; padding: 28px clamp(16px, 4vw, 64px); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.foot nav { display: flex; gap: 24px; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; grid-template-rows: 42vh 1fr; }
  .pdp__stage { padding: 56px 12vw 0; }
  .pdp__photo { width: min(100%, 38vh); }
  .pdp__info { border-left: 0; padding-top: 20px; }
  .guide { padding: 14px 12px; }
  .guide th, .guide td { padding: 9px 5px; font-size: 12px; }
  .guide thead th { font-size: 9px; letter-spacing: .08em; }
  .cartpage__body { grid-template-columns: 1fr; }
  .checkout { display: block; }
  .checkout__main { max-width: none; padding-bottom: 60px; }
  .checkout__sum { border-left: 0; border-top: 1px solid var(--line); padding-bottom: 60px; }
  .checkout__sum > div { position: static; max-width: none; }
  .f3 { grid-template-columns: 1fr 1fr; }
  .f3 .f:first-child { grid-column: 1 / -1; }
  .pdp > .back { top: 12px; left: 12px; }
  .lines--big .line { grid-template-columns: 96px 1fr auto; }
  .proof { grid-template-columns: 1fr; }
  .nav__links { gap: 18px; font-size: 11px; letter-spacing: .16em; }
  .nav__links a:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .piece { translate: none; }
}

/* product photos: the front, the owners' own photos and the back, picked from a row of small thumbnails */
.pdp__stage { align-content: center; }
.pdp__stage:has(.pdp__thumbs:not(:empty)) .pdp__photo { width: min(100%, calc(78vh - 84px)); }
.pdp__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pdp__thumbs:empty { display: none; }
.pdp__thumbs button { width: 54px; height: 54px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); opacity: .65; outline: 1px solid transparent; outline-offset: 3px; transition: opacity .2s, outline-color .2s; }
.pdp__thumbs button:hover, .pdp__thumbs button.is-on { opacity: 1; }
.pdp__thumbs button.is-on { outline-color: var(--panel-fg); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__photo.is-shot img { inset: 2%; width: 96%; height: 96%; object-fit: contain; filter: none; }

/* a tile in the grid: the photo and name open the piece; the little circles under the name switch its colour in place */
.piece__open { display: block; width: 100%; text-align: center; }
.piece__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 9px; }
.piece__dot { position: relative; width: 13px; height: 13px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0, 0, 0, .2); outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .2s, scale .2s; }
.piece__dot::after { content: ""; position: absolute; inset: -7px; }   /* a bigger target for fingers */
.piece__dot:hover { scale: 1.15; }
.piece__dot[aria-pressed="true"] { outline-color: currentColor; }
.piece__dot:focus-visible { outline: 2px solid currentColor; }

/* every piece at about the same size: shop.js sets --fit for each one (and the owners can adjust it) */
.piece__float img { inset: calc((1 - var(--fit, 1)) * 50%); width: calc(var(--fit, 1) * 100%); height: calc(var(--fit, 1) * 100%); max-width: none; max-height: none; pointer-events: none; }

/* the price under each piece, with a + for a quick add: plain black, nothing around them */
.piece__buy { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; position: relative; z-index: 2; color: #17191b; }
.piece__price { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.piece__plus { display: grid; place-items: center; width: 24px; height: 24px; color: #17191b; transition: transform .2s; }
.piece__plus:hover { transform: scale(1.15); }
.piece__plus svg { width: 15px; height: 15px; transition: transform .25s; }
.piece__plus[aria-expanded="true"] svg { transform: rotate(45deg); }
.piece__plus:focus-visible { outline: 1px dotted #17191b; outline-offset: 2px; }
.piece__label .piece__name { margin-top: 10px; }

/* the quick-add card: small, by the piece, opening with a soft scale */
.quick { position: fixed; z-index: 85; width: min(300px, calc(100vw - 20px)); padding: 14px 14px 12px; border-radius: 16px; background: #fbfaf6; color: #17191b; box-shadow: 0 18px 50px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .08);
  font: 400 13px/1.4 var(--body); opacity: 0; transform: scale(.94) translateY(-4px); transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
.quick.is-on { opacity: 1; transform: none; }
.quick__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.quick__head b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.quick__head span { color: #6c6a64; margin-right: auto; }
.quick__x { font-size: 20px; line-height: 1; color: #6c6a64; padding: 0 2px; }
.quick__label { margin: 6px 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6c6a64; }
.quick__colors { display: flex; flex-wrap: wrap; gap: 9px; padding-left: 2px; }
.quick__colors button { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0, 0, 0, .2); outline: 1.5px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.quick__colors button[aria-pressed="true"] { outline-color: #17191b; }
.quick__sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.quick__sizes.nudge { animation: nudge .45s; }
.quick__sizes button { min-width: 38px; padding: 7px 8px; border-radius: 9px; border: 1px solid rgba(23, 25, 27, .16); font-size: 12px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.quick__sizes button[aria-pressed="true"] { background: #17191b; color: #fff; border-color: #17191b; }
.quick__sizes button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.quick__hint { min-height: 1.3em; margin: 8px 0 4px; font-size: 12px; color: #a0302a; }
.quick__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick__acts button { padding: 11px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.quick__add { border: 1px solid #17191b; }
.quick__buy { background: #17191b; color: #fff; }
.quick__done { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px; }
.quick__done b { font-weight: 600; }
.quick__done b::before { content: "✓ "; color: #1d6a41; }
.piece.is-quick .piece__float img { scale: 1.03; }

/* the checkout pop-up holding Stripe's own checkout */
.pay { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(12, 14, 15, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.pay.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.pay__card { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 18px; background: #fff; color: #17191b; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pay.is-open .pay__card { transform: none; }
.pay__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #fff; border-bottom: 1px solid rgba(23, 25, 27, .1); }
.pay__brand { font: 500 18px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.pay__x { font-size: 24px; line-height: 1; color: #6c6a64; }
.pay__body { padding: 8px 6px 14px; }
.pay__msg { margin: 0; padding: 40px 22px; text-align: center; font-size: 15px; line-height: 1.6; }
.pay__msg .btn { width: auto; display: inline-block; margin-top: 18px; padding: 14px 26px; }
.is-paying { overflow: hidden; }
.pay__terms { margin: 4px 18px 0; font-size: 11.5px; color: #6c6a64; text-align: center; }
.pay__terms .link { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
