/* =====================================================================
   Vessey · shop pieces for Atelier
   Only what a shop adds to Atelier: the bag button, inner page heroes,
   piece cards on material panels, the collection filters, the product
   page (gallery, metal, stone, size, length, engraving, quantity), the
   slide-over bag and the bag page, the demo checkout, forms, the studio
   map and hours. Square corners, hairlines, Bodoni for names and prices,
   tracked Hanken labels. Requires tokens.css + atelier.css.
   ===================================================================== */

[hidden] { display: none !important; }
html.bag-open body { overflow: hidden; padding-right: var(--sbw, 0px); }
.jw { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.plate .label { position: absolute; z-index: 2; }

/* ---------------------------------------------------------------- nav: bag + current page */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.bag-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font: 500 var(--fs-label)/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.bag-n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid var(--rule-2); border-radius: var(--r-round); font: 400 14px/1 var(--display); letter-spacing: 0; font-variant-numeric: lining-nums; transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease), color 0.5s; }
.bag-btn:hover .bag-n { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.menu ul a[aria-current="page"] { color: var(--accent); }

/* ---------------------------------------------------------------- inner page heroes */
.page-hero { padding-bottom: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-top: clamp(28px, 4.4vh, 56px); padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.page-hero .ph-h { grid-column: 1 / 10; grid-row: auto; margin-top: 0; font-size: clamp(56px, 10vw, 150px); }
.page-hero .h1 .ln-2 { padding-left: calc(14% + 0.18em); }
.ph-grid .lead { grid-column: 9 / 13; padding-bottom: 0.6em; }
.ph-grid .lead, .ph-grid .ph-side { animation: rise 1.4s var(--ease) backwards 0.8s; }
.ph-side { grid-column: 9 / 13; display: grid; gap: 18px; justify-items: start; padding-bottom: 0.6em; }
.ph-side .lead { padding: 0; }
.sec-tight { padding: 96px 0; }
.sec-first { padding-top: 64px; }

/* ---------------------------------------------------------------- piece cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 32px; }
.piece { position: relative; display: grid; gap: 10px; align-content: start; }
.piece-plate { aspect-ratio: 4 / 5; margin-bottom: 12px; transition: transform 1.2s var(--ease), box-shadow 1.2s var(--ease); }
.piece:hover .piece-plate { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.piece .work-n { display: flex; gap: 12px; align-items: baseline; }
.tag-new { font: 500 10px/1 var(--ui); font-style: normal; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; padding: 4px 7px 3px; }
.piece-name { font: 400 clamp(26px, 2.4vw, 34px)/1.05 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.piece-name a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.piece-name a:focus-visible { outline: none; box-shadow: none; }
.piece:has(.piece-name a:focus-visible) .piece-plate { outline: 1px solid var(--ink); outline-offset: 6px; box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--accent); }
.piece-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--rule); }
.piece-price { font: 400 23px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums; }
.piece-price small { font: 500 10px/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.metals { display: inline-flex; gap: 6px; }
.metals i { width: 13px; height: 13px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.m-yellow { background: linear-gradient(135deg, #8a6326, #e9c77d 45%, #fff1c8 55%, #b88a3a); }
.m-rose { background: linear-gradient(135deg, #8b5544, #e3a993 45%, #fde1d4 55%, #b97a63); }
.m-white { background: linear-gradient(135deg, #7b8087, #d8dce1 45%, #ffffff 55%, #a9afb6); }
.quick { position: relative; z-index: 3; justify-self: start; margin-top: 8px; }
.quick:focus-visible { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent); }
.work h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--d-hover) var(--ease); }
.work h3 a:hover { background-size: 100% 1px; }
.work .plate .jw { left: 0; width: 100%; }

/* ---------------------------------------------------------------- the collection: filters */
.shop-sec { padding-top: 56px; }
.filters { display: grid; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.f-cats { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 4px 0 22px; border-bottom: 1px solid var(--rule); }
.tab { position: relative; padding: 6px 0; font: 400 clamp(24px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: -0.015em; color: var(--muted); transition: color 0.5s var(--ease); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--d-hover) var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); font-style: italic; }
.tab[aria-pressed="true"]::after { transform: scaleX(1); }
.tab sup { font: 500 10px/1 var(--ui); font-style: normal; letter-spacing: 0.1em; color: var(--muted); margin-left: 4px; vertical-align: 1.4em; }
.f-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding: 16px 0; }
.f-metal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.mchip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; font: 500 var(--fs-label)/1 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.mchip i { width: 15px; height: 15px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); transition: box-shadow 0.4s var(--ease); }
.mchip[aria-pressed="true"] { color: var(--ink); }
.mchip[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.f-search { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; margin-left: auto; border-bottom: 1px solid var(--rule-2); max-width: 300px; }
.f-search svg { width: 15px; height: 15px; color: var(--muted); }
.f-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; font: 400 15px/1.2 var(--ui); color: var(--ink); }
.f-search input::placeholder { color: var(--muted); opacity: 1; }
.f-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.f-search:focus-within { border-bottom-color: var(--ink); }
.f-search input:focus-visible { outline: none; box-shadow: none; }
.f-search:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent); }
.f-sort { display: inline-flex; align-items: center; gap: 12px; }
.select { position: relative; display: inline-block; }
.select select { appearance: none; -webkit-appearance: none; padding: 10px 28px 10px 0; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: none; font: 400 15px/1.2 var(--ui); color: var(--ink); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--ink); border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.select option { color: #15181d; }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.results-n { font: 400 17px/1 var(--display); color: var(--muted); }
.results-n b { font-weight: 400; color: var(--ink); font-size: 26px; font-variant-numeric: lining-nums; }
.results-n span { font-size: 15px; }
.filter-open { display: none; }
.empty { display: grid; gap: 18px; justify-items: start; padding: 72px 0; border-top: 1px solid var(--rule); }
.empty-h { font: 400 clamp(36px, 4.4vw, 64px)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.empty-h em { font-style: italic; color: var(--accent); }

/* ---------------------------------------------------------------- product page */
.sec-pdp { padding: calc(104px + env(safe-area-inset-top, 0px)) 0 40px; }
.pdp-meta a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--d-hover) var(--ease); }
.pdp-meta a:hover { background-size: 100% 1px; color: var(--ink); }
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: start; margin-top: 40px; }
.gal { position: sticky; top: 108px; display: grid; gap: 18px; }
.gal-plate { aspect-ratio: 4 / 4.6; cursor: pointer; box-shadow: var(--shadow-plate); animation: unveil var(--d-settle) var(--ease) backwards 0.1s; }
.gal-plate .mat { animation: zoomOut 2.6s var(--ease) backwards 0.1s; }
.gal-view { left: 20px; top: 18px; padding: 8px 11px; background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink-2); }
.gal-fig figcaption { margin-top: 2px; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { position: relative; aspect-ratio: 1; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 0.5s var(--ease); }
.thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb .label { position: absolute; left: 8px; bottom: 6px; z-index: 1; color: var(--ink); font-size: 10px; }
.thumb:hover { box-shadow: inset 0 0 0 1px var(--rule-2); }
.thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 3px var(--bg); }
.buy { display: grid; gap: 26px; padding-top: 6px; }
.buy-h { font-size: clamp(56px, 6.4vw, 104px); line-height: 0.9; }
.buy-h .ln-2 { padding-left: calc(18% + 0.18em); }
.js .buy-h .ln > span, .buy-h .ln > span { animation: curtain var(--d-curtain) var(--ease) backwards; animation-delay: calc(0.25s + var(--i, 0) * var(--stagger)); }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 18px; border-top: 1px solid var(--ink); }
.buy-price b { display: inline-block; font: 400 clamp(36px, 3.4vw, 50px)/1 var(--display); color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.buy-price .note { margin: 0; }
.buy .lead { max-width: 42ch; }
.opt { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 12px; }
.opt-val { font: 400 15px/1.2 var(--display); font-style: italic; color: var(--ink); letter-spacing: 0; text-transform: none; margin-left: 10px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mtl, .row-opt { position: relative; cursor: pointer; }
.mtl input, .row-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mtl { display: grid; justify-items: center; gap: 8px; padding: 10px 12px 9px; min-width: 96px; box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 0.5s var(--ease); }
.mtl-sw { width: 34px; height: 34px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.mtl-n { font: 500 10px/1.2 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.mtl:hover { box-shadow: inset 0 0 0 1px var(--rule-2); }
.mtl:has(input:checked) { box-shadow: inset 0 0 0 1px var(--ink); }
.mtl:has(input:checked) .mtl-n { color: var(--ink); }
.mtl:has(input:focus-visible), .row-opt:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 4px; box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 4px var(--bg), 0 0 0 5px var(--accent); }
.opt-stone, .opt-length { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.row-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--rule); transition: background-color 0.6s var(--ease); }
.row-opt::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--rule-2); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--bg); transition: background-color 0.4s, border-color 0.4s; }
.row-opt:has(input:checked)::before { background: var(--accent); border-color: var(--accent); }
.row-opt:hover { background: var(--paper); }
.row-opt span { color: var(--ink); }
.row-opt b { font: 400 18px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums; }
.field { display: grid; gap: 8px; }
.field > .label, .field label.label { color: var(--muted); }
.field .opt-val { font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: none; font: 400 16px/1.4 var(--ui); color: var(--ink); transition: border-color 0.4s; }
.field textarea { min-height: 120px; resize: vertical; }
.field .select { display: block; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: var(--accent); border-bottom-width: 2px; }
.err { font-size: 13.5px; color: var(--accent); font-weight: 500; }
.err:empty { display: none; }
.btn-text.small { font-size: 10px; justify-self: start; }
.btn-text .arr { width: 30px; height: 10px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.buy-go { flex: 1 1 260px; }
.qty { display: inline-flex; align-items: stretch; box-shadow: inset 0 0 0 1px var(--rule-2); }
.qty button { width: 46px; font: 400 20px/1 var(--display); color: var(--ink); transition: background-color 0.4s, color 0.4s; }
.qty button:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.qty button:disabled { color: var(--rule-2); cursor: default; }
.qty input { width: 40px; border: 0; background: none; text-align: center; font: 400 19px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-note { font-size: 14.5px; color: var(--ink-2); display: grid; gap: 10px; }
.specs { border-top: 1px solid var(--rule); }
.specs div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font: 500 var(--fs-label)/1.6 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.specs dd { color: var(--ink); }
.buy .faq summary { font-size: 22px; padding: 20px 0; }
.buy .faq details p { padding-bottom: 22px; }

/* ---------------------------------------------------------------- the slide-over bag */
.scrim { position: fixed; inset: 0; z-index: 190; background: color-mix(in srgb, #08090c 44%, transparent); opacity: 0; transition: opacity 0.8s var(--ease); }
.scrim.open { opacity: 1; }
.bag { position: fixed; z-index: 191; top: 0; right: 0; bottom: 0; width: min(500px, 100%); display: flex; flex-direction: column; background: var(--paper); box-shadow: -1px 0 0 var(--rule), -40px 0 80px -40px rgba(0, 0, 0, 0.35); transform: translateX(104%); transition: transform 1s var(--ease); }
.bag.open { transform: none; }
.calm .bag, .calm .scrim { transition-duration: 0.25s; }
.bag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 30px 32px 24px; border-bottom: 1px solid var(--rule); }
.bag-h { margin-top: 10px; font: 400 clamp(40px, 4.4vw, 54px)/0.95 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.bag-h em { font-style: italic; color: var(--accent); }
.circ.x { flex: none; }
.circ.x i { position: relative; width: 16px; height: 16px; }
.circ.x i::before, .circ.x i::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.circ.x i::after { transform: rotate(-45deg); }
.bag-body { flex: 1; overflow-y: auto; padding: 4px 32px 20px; overscroll-behavior: contain; }
.bag-empty { display: grid; gap: 26px; justify-items: start; padding: 32px 0; }
.bag-foot { display: grid; gap: 14px; padding: 22px 32px 28px; border-top: 1px solid var(--rule); background: var(--paper); }
.bag-foot .btn { width: 100%; }
.bag-foot .btn-text { justify-self: center; }
.bag-foot .note { margin: 0; font-size: 13px; }
.sum { display: grid; gap: 0; }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sum dt { font: 500 var(--fs-label)/1.5 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.sum dd { font: 400 20px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums; text-align: right; }
.sum .total dd { font-size: 34px; }
.sum .total { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: -1px; padding-top: 18px; }
.bag-foot .sum div { border-bottom: 0; padding: 0; }
.bag-foot .sum dd { font-size: 30px; }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "pic t price" "pic q rm"; gap: 8px 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.js:not(.calm) .line.new { animation: rise 1s var(--ease) backwards; }
.line-pic { grid-area: pic; position: relative; width: 84px; aspect-ratio: 4 / 5; overflow: hidden; }
.line-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.line-t { grid-area: t; display: grid; gap: 2px; min-width: 0; }
.line-name { font: 400 24px/1.05 var(--display); color: var(--ink); letter-spacing: -0.01em; justify-self: start; }
.line-name:hover { color: var(--accent); }
.line-t .cap { font-size: 14px; }
.line-var { font-size: 13.5px; color: var(--ink-2); }
.line .qty { grid-area: q; justify-self: start; align-self: end; }
.line .qty button { width: 36px; height: 36px; font-size: 17px; }
.line .qty input { width: 30px; font-size: 16px; }
.line-price { grid-area: price; justify-self: end; font: 400 20px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums; }
.line-rm { grid-area: rm; justify-self: end; align-self: end; padding: 6px 0; font: 500 10px/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.line-rm:hover { color: var(--ink); }

/* ---------------------------------------------------------------- bag page + checkout */
.cart-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.cart-page .lines { border-top: 1px solid var(--ink); }
.cart-page .line { grid-template-columns: 120px minmax(0, 1fr) auto auto; grid-template-areas: "pic t q price" "pic t q rm"; gap: 8px 32px; padding: 28px 0; }
.cart-page .line-pic { width: 120px; }
.cart-page .line-name { font-size: clamp(26px, 2.4vw, 34px); }
.cart-page .line .qty { align-self: start; }
.cart-page .line-price { font-size: 24px; }
.summary { position: sticky; top: 110px; display: grid; gap: 22px; padding: 34px 32px 32px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.summary-h { font: 400 clamp(34px, 3vw, 44px)/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.summary-h em { font-style: italic; color: var(--accent); }
.summary .btn { width: 100%; }
.summary .note { margin: 0; }
.methods { display: grid; border-top: 1px solid var(--rule); margin: 0; padding: 0; min-width: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.methods legend { padding: 0 0 12px; }
.methods .row-opt { grid-template-columns: 18px minmax(0, 1fr) auto; }
.methods .row-opt span { display: grid; gap: 2px; }
.methods .row-opt small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.cart-empty { display: grid; gap: 26px; justify-items: start; padding: 48px 0; border-top: 1px solid var(--ink); }
.cart-empty .empty-h { max-width: 14ch; }
.checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.co-main { display: grid; gap: 56px; }
.co-form { display: grid; gap: 56px; }
.demo-note { display: grid; gap: 10px; padding: 24px 26px; box-shadow: inset 0 0 0 1px var(--accent); }
.demo-note .label { color: var(--accent); }
.demo-note p:not(.label) { color: var(--ink); max-width: 60ch; }
.co-box { display: grid; gap: 22px; margin: 0; padding: 0; border: 0; min-width: 0; }
.co-box > legend { width: 100%; display: flex; align-items: baseline; gap: 18px; padding: 0 0 18px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); font: 400 clamp(28px, 2.6vw, 38px)/1 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.co-box > legend span { font: italic 400 20px/1 var(--display); color: var(--accent); }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.pay-slot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; border: 1px dashed var(--rule-2); }
.pay-slot p { color: var(--ink-2); max-width: 56ch; }
.pay-slot b { color: var(--ink); font-weight: 500; }
.pay-card { position: relative; width: 92px; aspect-ratio: 1.58; overflow: hidden; box-shadow: var(--shadow-lift); }
.pay-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pay-card::after { content: ""; position: absolute; left: 12%; top: 34%; width: 20%; height: 22%; background: var(--metal); }
.co-go { justify-self: start; }
.done-panel { display: grid; gap: 22px; justify-items: start; padding: 40px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.done-panel .empty-h { max-width: 16ch; }
.done-panel p { max-width: 52ch; }
.done-panel .cta-row { margin-top: 6px; }
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 640px) { .steps.steps-3 { grid-template-columns: minmax(0, 1fr); } }
.co-lines { display: grid; border-top: 1px solid var(--rule); }
.co-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.co-pic { position: relative; width: 56px; aspect-ratio: 4 / 5; overflow: hidden; }
.co-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.co-t { display: grid; gap: 2px; min-width: 0; }
.co-t b { font: 400 20px/1.1 var(--display); color: var(--ink); }
.co-t .cap { font-size: 13.5px; line-height: 1.35; }
.co-p { font: 400 18px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums; }
.co-empty { color: var(--ink-2); }
.co-empty a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; color: var(--ink); }

/* ---------------------------------------------------------------- studio: hours, map, forms */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.visit-l { display: grid; gap: 40px; align-content: start; }
.hours div.today dt, .hours div.today dd { color: var(--accent); }
.hours div.today .label { color: var(--accent); margin-left: 10px; letter-spacing: 0.2em; }
.addr { font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.addr em { font-style: italic; color: var(--accent); }
.visit-l .cta-row a:not(.btn) { color: var(--ink); }
.map-fig .plate { aspect-ratio: 4 / 3.4; background: var(--paper); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m-sea { fill: color-mix(in srgb, var(--accent) 9%, var(--paper)); }
.m-sea-line { fill: none; stroke: color-mix(in srgb, var(--accent) 30%, var(--paper)); stroke-width: 1; }
.m-block { fill: var(--stone); }
.m-park { fill: color-mix(in srgb, #5d7a5a 18%, var(--stone)); }
.m-road { fill: none; stroke: var(--paper); stroke-width: 14; }
.m-road-edge { fill: none; stroke: var(--rule); stroke-width: 16; }
.m-main { stroke-width: 20; }
.m-main-edge { stroke-width: 22; }
.m-label { font: 500 10px/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; fill: var(--muted); }
.m-label-i { font: italic 400 15px/1 var(--display); fill: var(--accent); letter-spacing: 0; text-transform: none; }
.m-pin circle { fill: var(--accent); }
.m-pin .ring1 { fill: none; stroke: var(--accent); stroke-width: 1; }
.js:not(.calm) .m-pin .ring1 { animation: pinpulse 3.2s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pinpulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
.m-pin text { font: 400 22px/1 var(--display); fill: var(--ink); }
.form-sec .split { align-items: start; }
.appt { display: grid; gap: 28px; }
.sent { display: grid; gap: 16px; justify-items: start; padding: 32px 0; border-top: 1px solid var(--ink); }
.news { display: grid; gap: 10px; margin-top: 8px; max-width: 360px; }
.news-row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--rule-2); }
.news-row input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; font: 400 15px/1.2 var(--ui); color: var(--ink); }
.news-row input::placeholder { color: var(--muted); opacity: 1; }
.news-row input:focus-visible { outline: none; box-shadow: none; }
.news-row:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent); }
.foot-cols .news p { color: var(--ink-2); }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.size-table th, .size-table td { padding: 14px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.size-table th { font: 500 var(--fs-label)/1.5 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.size-table td:first-child { font: 400 22px/1 var(--display); color: var(--ink); }
.size-table td { color: var(--ink-2); }
.size-wrap { overflow-x: auto; }
.material-list .swatch .plate { position: relative; }

/* ---------------------------------------------------------------- calm */
html.calm .buy-h .ln > span, html.calm .gal-plate, html.calm .gal-plate .mat, html.calm .ph-grid .lead, html.calm .ph-grid .ph-side, html.calm .line.new { animation: none; }
html.calm .piece:hover .piece-plate { transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .f-search { margin-left: 0; max-width: none; }
}
@media (max-width: 1000px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .page-hero .ph-h, .ph-grid .lead, .ph-side { grid-column: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; }
  .pdp, .cart-page, .checkout, .visit { grid-template-columns: minmax(0, 1fr); }
  .gal { position: static; }
  .summary { position: static; }
  .checkout .summary { order: -1; }
  .filter-open { display: inline-flex; margin-bottom: 20px; }
  .filters { display: none; }
  .filters.open { display: grid; }
  .f-row { flex-direction: column; align-items: flex-start; }
  .f-search { width: 100%; flex: none; }
}
@media (max-width: 640px) {
  .bag-n { min-width: 24px; height: 24px; }
  .nav .switch .sw-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-hero .ph-h { font-size: clamp(48px, 15vw, 72px); }
  .page-hero .h1 .ln-2 { padding-left: calc(10% + 0.18em); }
  .grid { gap: 44px 16px; }
  .piece-name { font-size: 24px; }
  .piece-price { font-size: 19px; }
  .piece-row { flex-wrap: wrap; gap: 8px; }
  .piece .cap { font-size: 13.5px; }
  .f-cats { gap: 6px 22px; }
  .tab { font-size: 24px; }
  .thumbs { gap: 8px; }
  .buy-h { font-size: clamp(52px, 16vw, 76px); }
  .mtl { min-width: 0; flex: 1 1 30%; padding: 10px 6px 9px; }
  .bag-head, .bag-foot { padding-left: 20px; padding-right: 20px; }
  .bag-body { padding: 4px 20px 16px; }
  .line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 14px; }
  .line-pic { width: 72px; }
  .cart-page .line { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "pic t price" "pic q rm"; gap: 8px 16px; padding: 22px 0; }
  .cart-page .line-pic { width: 84px; }
  .cart-page .line-name { font-size: 24px; }
  .cart-page .line-price { font-size: 20px; }
  .summary { padding: 26px 20px 24px; }
  .form-2 { grid-template-columns: minmax(0, 1fr); }
  .pay-slot { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .co-go { justify-self: stretch; }
  .specs div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}
