/* ==========================================================================
   Finikera Grips — design system
   Graphite / black / ivory with a restrained brass accent.
   Display: Cormorant Garamond · UI: Manrope
   ========================================================================== */
:root {
  --black: #0b0b0b;
  --graphite: #151515;
  --graphite-2: #1e1e1e;
  --graphite-3: #2a2a2a;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(243, 239, 230, 0.24);
  --ivory: #f3efe6;
  --ivory-2: #e8e2d4;
  --muted: #a39d92;
  --muted-2: #6f6a62;
  --brass: #b8975a;
  --brass-2: #d4b97f;
  --ink: #161412;
  --ok: #7fa37a;
  --err: #d0806d;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--black); color: var(--ivory);
  font: 400 15px/1.65 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--black); }
:focus-visible { outline: 1px solid var(--brass-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ivory); color: var(--black); padding: 10px 14px; z-index: 200; }
.skip:focus { top: 12px; }

/* ── Type ─────────────────────────────────────────────────── */
.eyebrow { font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin: 0 0 18px; }
.display { font: 400 clamp(44px, 7.4vw, 104px)/.95 var(--serif); letter-spacing: -.02em; margin: 0; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--brass-2); }
.h1 { font: 400 clamp(38px, 5.4vw, 72px)/1 var(--serif); letter-spacing: -.015em; margin: 0 0 20px; }
.h2 { font: 400 clamp(30px, 3.8vw, 50px)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 16px; }
.h3 { font: 500 22px/1.2 var(--serif); margin: 0 0 8px; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── Layout ───────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--ivory .muted, .section--ivory .lead { color: #5f5a52; }
.section--ivory .eyebrow { color: #8a6c36; }
.section--graphite { background: var(--graphite); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.page-head { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 1px solid var(--ivory); border-radius: var(--radius);
  background: var(--ivory); color: var(--black); cursor: pointer;
  font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--brass-2); border-color: var(--brass-2); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.btn--dark { background: var(--black); color: var(--ivory); border-color: var(--black); }
.btn--dark:hover { background: var(--graphite-3); border-color: var(--graphite-3); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .25s; }
.link:hover { border-color: var(--brass); }
.link-arrow { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.home .site-header:not(.is-solid) { background: linear-gradient(rgba(11,11,11,.75), rgba(11,11,11,0)); }
.site-header.is-solid, body:not(.home) .site-header { background: rgba(11, 11, 11, .92); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font: 500 20px/1 var(--serif); letter-spacing: .32em; white-space: nowrap; }
.brand span { color: var(--brass); }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 0; transition: color .2s; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ivory); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brass); color: var(--black); font: 700 10px/17px var(--sans); text-align: center; }
.cart-count:empty { display: none; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
}
.drawer-nav { position: fixed; inset: 0; z-index: 150; background: var(--black); padding: calc(var(--header-h) + 24px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden; }
.drawer-nav.open { transform: none; visibility: visible; }
.drawer-nav a { font: 400 34px/1.35 var(--serif); border-bottom: 1px solid var(--line); padding: 10px 0; }
.drawer-nav .tiny { margin-top: 28px; }
.drawer-close { position: absolute; top: 14px; right: var(--gutter); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--graphite); border-top: 1px solid var(--line); padding: 72px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--brass-2); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── Hero (home) ──────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--black); }
.hero__copy { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 48px) var(--gutter) clamp(48px, 8vw, 96px); max-width: 720px; margin-left: auto; width: 100%; }
.hero__copy .lead { margin-top: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroIn 1.6s var(--ease) both; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 0%, transparent 22%); }
.hero__caption { position: absolute; right: var(--gutter); bottom: 28px; z-index: 2; text-align: right; }
@keyframes heroIn { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { order: -1; height: 62svh; }
  .hero__media::after { background: linear-gradient(0deg, var(--black) 0%, transparent 40%); }
  .hero__copy { padding-top: 0; margin-top: -80px; position: relative; z-index: 2; }
}

.marquee { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 48s linear infinite; font: italic 400 22px/1 var(--serif); color: var(--muted); }
.marquee__track span::after { content: '·'; margin-left: 48px; color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--graphite); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: .82; }
.tile:hover img { transform: scale(1.04); opacity: 1; }
.tile__label { position: absolute; inset: auto 0 0; padding: 28px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.tile__label .h3 { font-size: 28px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 3; } .tiles--4 { grid-template-columns: 1fr 1fr; } .tiles--4 .tile { aspect-ratio: 3 / 4; } }

/* Feature (editorial split) */
.feature-img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid currentColor; border-color: rgba(0,0,0,.14); }
.stat b { display: block; font: 400 40px/1 var(--serif); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.step::before { counter-increment: step; content: '0' counter(step); font: italic 400 18px/1 var(--serif); color: var(--brass); display: block; margin-bottom: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps, .stats { grid-template-columns: 1fr; } }

/* ── Product cards / grid ─────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 22px); }
.card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--graphite); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__badge { position: absolute; top: 12px; left: 12px; background: rgba(11,11,11,.72); backdrop-filter: blur(6px); padding: 6px 9px; font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.card__body { display: grid; gap: 4px; }
.card__name { font: 500 20px/1.15 var(--serif); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); vertical-align: middle; margin-right: 6px; }

/* Shop toolbar */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); padding-top: 40px; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 30px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.filters legend { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; color: var(--ivory-2); }
.check input { appearance: none; width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 1px; margin: 0; display: grid; place-items: center; }
.check input:checked { background: var(--brass); border-color: var(--brass); }
.check input:checked::after { content: ''; width: 7px; height: 4px; border: 1.5px solid var(--black); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check .count { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search input { width: 100%; height: 46px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 0 0 0 28px; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--brass); }
.search svg { position: absolute; left: 0; top: 14px; width: 17px; color: var(--muted); }
.select { height: 42px; background: var(--graphite); border: 1px solid var(--line); padding: 0 34px 0 12px; border-radius: var(--radius); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 16px top 18px, right 11px top 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.filter-toggle { display: none; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 160; background: var(--black); padding: 24px var(--gutter) 100px; overflow: auto; transform: translateX(-100%); transition: transform .4s var(--ease); top: 0; visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filter-toggle { display: inline-flex; }
  .filters__close { display: flex !important; }
}
.filters__close { display: none; justify-content: space-between; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { border: 1px solid var(--line-strong); background: none; padding: 7px 12px; font-size: 12px; cursor: pointer; border-radius: 20px; }
.chip:hover { border-color: var(--ivory); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--black); border-color: var(--ivory); }

/* ── Product dialog & lightbox ────────────────────────────── */
dialog { border: 0; padding: 0; background: var(--graphite); color: var(--ivory); max-width: min(1100px, calc(100vw - 24px)); width: 100%; max-height: calc(100svh - 24px); }
dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
dialog[open] { animation: dlg .45s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(14px); } }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100svh - 24px); }
.pd__gallery { position: relative; background: var(--black); display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.pd__main { width: 100%; height: 100%; max-height: 72svh; object-fit: contain; }
.pd__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.pd__thumbs button { flex: 0 0 56px; height: 72px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .55; }
.pd__thumbs button[aria-current="true"] { border-color: var(--brass); opacity: 1; }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { padding: clamp(24px, 4vw, 48px); overflow: auto; display: flex; flex-direction: column; gap: 18px; }
.pd__price { font: 400 26px/1 var(--serif); }
.pd dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.pd dt { color: var(--muted); }
.pd dd { margin: 0; }
.dlg-close { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(11,11,11,.6); }
.qty { display: inline-flex; border: 1px solid var(--line-strong); height: 48px; }
.qty button { width: 40px; background: none; border: 0; cursor: pointer; font-size: 18px; }
.qty input { width: 44px; text-align: center; background: none; border: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
@media (max-width: 820px) { .pd { grid-template-columns: 1fr; overflow: auto; } .pd__main { max-height: 52svh; } .pd__info { overflow: visible; } }

.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(11,11,11,.5); }
.gal-nav--prev { left: 8px; } .gal-nav--next { right: 8px; }

/* ── Cart drawer ──────────────────────────────────────────── */
.cart { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); background: var(--graphite); z-index: 170; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; border-left: 1px solid var(--line); visibility: hidden; }
.cart.open { transform: none; visibility: visible; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 165; opacity: 0; pointer-events: none; transition: opacity .4s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart__items { flex: 1; overflow: auto; padding: 8px 22px; }
.cart__foot { padding: 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 64px; height: 84px; object-fit: cover; }
.line__name { font: 500 17px/1.2 var(--serif); }
.line__ctrl { display: flex; gap: 12px; align-items: center; margin-top: 8px; font-size: 13px; }
.line__ctrl button { background: none; border: 1px solid var(--line-strong); width: 26px; height: 26px; cursor: pointer; }
.line__remove { border: 0 !important; width: auto !important; color: var(--muted); text-decoration: underline; }
.totals { display: flex; justify-content: space-between; font-size: 14px; }
.totals b { font: 400 22px/1 var(--serif); }

/* ── Forms ────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field .label { font: 600 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 14px; font-size: 16px; transition: border-color .2s;
}
.field select { background: var(--graphite); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field .hint { font-size: 12px; color: var(--muted-2); }
.field [aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--brass); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }
.alert { border: 1px solid var(--err); color: #f0c2b6; padding: 14px 16px; font-size: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.notice { border-left: 2px solid var(--brass); padding: 12px 16px; background: rgba(184,151,90,.07); font-size: 13px; color: var(--ivory-2); }
.section--ivory .notice { color: var(--ink); }

/* ── Case studio ──────────────────────────────────────────── */
.studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); min-height: 100svh; padding-top: var(--header-h); }
.studio__stage { align-self: start; position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(ellipse at 50% 45%, #232120 0%, var(--black) 70%); border-right: 1px solid var(--line); }
.stage-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 30px; padding: 3px; }
.seg button { background: none; border: 0; padding: 7px 16px; border-radius: 30px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ivory); color: var(--black); }
.preview { display: grid; place-items: center; padding: 8px 24px; min-height: 0; }
.preview svg { width: 100%; height: 100%; max-height: 62svh; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); transition: opacity .3s; }
.stage-foot { padding: 14px 24px 18px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.refs { display: flex; gap: 8px; overflow-x: auto; }
.refs button { flex: 0 0 auto; width: 64px; height: 80px; padding: 0; border: 1px solid var(--line); background: none; cursor: zoom-in; }
.refs img { width: 100%; height: 100%; object-fit: cover; }
.studio__panel { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 8px; }
.progress { display: flex; gap: 4px; margin-bottom: 20px; }
.progress span { flex: 1; height: 2px; background: var(--line); transition: background .3s; }
.progress span.done { background: var(--brass); }
.step-panel { border-bottom: 1px solid var(--line); }
.step-panel > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.step-panel > button .num { font: italic 400 16px/1 var(--serif); color: var(--brass); margin-right: 14px; }
.step-panel > button .ttl { font: 400 24px/1.1 var(--serif); flex: 1; }
.step-panel > button .val { font-size: 12px; color: var(--muted); text-align: right; max-width: 45%; }
.step-body { display: none; padding: 0 0 28px; gap: 22px; }
.step-panel.open .step-body { display: grid; }
.opt-group { display: grid; gap: 10px; }
.opt-group > .label { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s; min-height: 52px; }
.opt:hover { border-color: var(--line-strong); }
.opt[aria-checked="true"] { border-color: var(--brass); background: rgba(184,151,90,.08); }
.opt b { font-weight: 600; font-size: 14px; }
.opt small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.opt .tag { position: absolute; top: 8px; right: 8px; font: 600 9px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.opt--model { padding: 0; overflow: hidden; }
.opt--model img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.opt--model div { padding: 10px 12px 12px; display: grid; gap: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); cursor: pointer; position: relative; padding: 0; }
.sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--black), 0 0 0 3px var(--brass); }
.sw-label { font-size: 13px; color: var(--ivory-2); }
.drop { border: 1px dashed var(--line-strong); padding: 22px; text-align: center; cursor: pointer; font-size: 14px; color: var(--muted); transition: border-color .2s; }
.drop.over, .drop:hover { border-color: var(--brass); color: var(--ivory); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 84px; height: 84px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.thumb button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ivory); color: var(--black); cursor: pointer; font-size: 14px; line-height: 1; }
.estimate { border: 1px solid var(--line); padding: 18px; display: grid; gap: 8px; }
.estimate__total { display: flex; justify-content: space-between; align-items: baseline; }
.estimate__total b { font: 400 30px/1 var(--serif); }
.summary { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary th, .summary td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary th { font-weight: 500; color: var(--muted); width: 42%; padding-right: 16px; }
.section--ivory .summary th, .section--ivory .summary td { border-color: rgba(0,0,0,.1); }
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .studio__stage { align-self: start; position: sticky; top: var(--header-h); z-index: 5; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .preview { height: 34svh; padding: 0 12px; }
  .stage-foot { display: none; }
  .stage-bar { padding: 10px 16px; }
  .studio__panel { padding-bottom: 110px; }
  .step-panel { scroll-margin-top: calc(var(--header-h) + 34svh + 64px); }
  .mobile-bar { display: flex; position: fixed; inset: auto 0 0; z-index: 60; background: rgba(21,21,21,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px var(--gutter); gap: 12px; align-items: center; justify-content: space-between; }
}

/* ── Gallery ──────────────────────────────────────────────── */
.masonry { columns: 3 300px; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin: 0 0 14px; cursor: zoom-in; position: relative; overflow: hidden; background: var(--graphite); }
.masonry img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { position: absolute; inset: auto 0 0; padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 13px; opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { opacity: 1; }
.lightbox { background: transparent; max-width: 100vw; max-height: 100svh; width: 100vw; height: 100svh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86svh; object-fit: contain; }
.lightbox .count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: var(--muted); }

/* ── FAQ / prose ──────────────────────────────────────────── */
.prose { max-width: 72ch; }
.prose h2 { font: 400 32px/1.1 var(--serif); margin: 56px 0 16px; }
.prose p, .prose li { color: var(--ivory-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 18px; font: 400 21px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 24px/1 var(--sans); color: var(--brass); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 10px; font-size: 13px; align-self: start; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--ivory); }
.doc-layout { display: grid; grid-template-columns: 200px 1fr; gap: 64px; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 14px; } }

/* ── Order confirmation ───────────────────────────────────── */
.receipt { max-width: 760px; margin: 0 auto; }
.ref { font: 400 clamp(30px, 5vw, 54px)/1 var(--serif); letter-spacing: .04em; color: var(--brass-2); }
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .page-head { padding-top: 20px; }
}

/* ── Reveal on scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ivory); color: var(--black); padding: 12px 18px; font-size: 14px; z-index: 300; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
