/* Maison Fictive demo. Deep green velvet, ivory and gold; Bodoni Moda with Instrument Sans. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("bodoni-moda.c032219ef6.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans.2ee17598a9.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --velvet: #063a2b;
  --velvet-deep: #042a1f;
  --ink: #0e2019;
  --ivory: #f8f5ec;
  --paper: #fdfcf8;
  --muted: #4c5c54;
  --line: #ddd7c8;
  --line-strong: #b9b2a0;
  --gold: #c9a045;
  --gold-hi: #e3c36a;
  --gold-lo: #94701f;
  --soft: #b8cbc0;
  --error: #a3321f;
  --display: "Bodoni Moda", Didot, "Bodoni MT", "Times New Roman", serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.2vw, 48px);
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--gold-hi); color: var(--velvet-deep); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

:focus-visible { outline: 2px solid var(--gold-lo); outline-offset: 3px; }
.site-header :focus-visible,
.hero :focus-visible,
.house :focus-visible,
.site-footer :focus-visible,
.menu :focus-visible,
.selbar :focus-visible,
.bar :focus-visible,
.lost :focus-visible { outline-color: var(--gold-hi); }

.wrap { width: 100%; max-width: calc(1240px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--ivory); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

.h2 { font: 400 clamp(2.05rem, 4.3vw, 3.3rem)/1.04 var(--display); font-variation-settings: "opsz" 22; letter-spacing: -0.012em; text-wrap: balance; }
.lead { margin-top: 16px; font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.fine { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px;
  font: 600 0.9375rem/1.2 var(--text); letter-spacing: 0.005em; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn-ivory { background: var(--ivory); color: var(--velvet-deep); }
.btn-ivory:hover { background: #fff; }
.btn-ghost-ivory { border-color: rgba(248, 245, 236, 0.6); color: var(--ivory); background: transparent; }
.btn-ghost-ivory:hover { background: rgba(248, 245, 236, 0.12); }
.btn-velvet { background: var(--velvet); color: var(--ivory); }
.btn-velvet:hover { background: var(--velvet-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: rgba(14, 32, 25, 0.07); }
.btn-small { min-height: 42px; padding: 0 20px; }
.textbtn { justify-self: start; padding: 8px 0; border: 0; background: none; color: var(--muted); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; }
.textbtn:hover { color: var(--ink); }

/* ---------- top bar and header ---------- */
.bar { background: var(--velvet-deep); color: var(--soft); font-size: 0.8125rem; line-height: 1.4; }
.bar-in { display: flex; flex-direction: column; gap: 2px; padding-block: 8px; }
.bar-offer { color: var(--ivory); }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--velvet); color: var(--ivory); border-bottom: 1px solid rgba(248, 245, 236, 0.12); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; }
.brand .mark { flex: none; color: var(--gold-hi); font-family: var(--text); }
.brand-name { font: 400 1.4375rem/1 var(--display); font-variation-settings: "opsz" 16; letter-spacing: 0.005em; white-space: nowrap; }
.nav { display: none; gap: 28px; margin-left: auto; font-size: 0.9375rem; }
.nav a { padding: 8px 0; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.5em; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: none; align-items: center; gap: 2px; font-size: 0.8125rem; font-weight: 600; }
.lang a { min-width: 36px; padding: 8px 6px; border-bottom: 2px solid transparent; color: var(--soft); text-align: center; text-decoration: none; }
.lang a:hover { color: var(--ivory); }
.lang a[aria-current] { color: var(--ivory); border-bottom-color: var(--gold-hi); }
.sel-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 16px; border: 1px solid rgba(248, 245, 236, 0.5); border-radius: 999px; background: transparent; color: var(--ivory); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.sel-btn:hover { background: rgba(248, 245, 236, 0.12); }
.sel-n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--gold-hi); color: var(--velvet-deep); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: transparent; color: var(--ivory); cursor: pointer; }
.menu-btn:hover { background: rgba(248, 245, 236, 0.12); }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; flex-direction: column-reverse; overflow: hidden; background: var(--velvet); color: var(--ivory); }
.hero-media { position: relative; height: 88vw; max-height: 560px; margin-top: 8px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%); mask-image: linear-gradient(180deg, transparent 0, #000 13%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-in { position: relative; }
.hero-copy { padding-block: clamp(40px, 9vw, 72px) 8px; max-width: 600px; }
.hero-title { font: 400 clamp(2.85rem, 8.8vw, 5.5rem)/0.98 var(--display); font-variation-settings: "opsz" 44; letter-spacing: -0.02em; text-wrap: balance; }
.hero-lead { margin-top: 24px; max-width: 46ch; font-size: 1.125rem; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.nb { white-space: nowrap; }
.karat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; max-width: 520px; height: 30px; margin-top: 40px; }
.karat-seg { border: 1px solid rgba(248, 245, 236, 0.42); border-radius: 1px; }
.karat-seg.is-gold { border-color: transparent; background: linear-gradient(180deg, #f1d88f 0, #cfa64a 52%, #a57c26 100%); transform-origin: 50% 100%; animation: seg 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.karat-seg:nth-child(1) { animation-delay: 0.08s; }
.karat-seg:nth-child(2) { animation-delay: 0.11s; }
.karat-seg:nth-child(3) { animation-delay: 0.14s; }
.karat-seg:nth-child(4) { animation-delay: 0.17s; }
.karat-seg:nth-child(5) { animation-delay: 0.20s; }
.karat-seg:nth-child(6) { animation-delay: 0.23s; }
.karat-seg:nth-child(7) { animation-delay: 0.26s; }
.karat-seg:nth-child(8) { animation-delay: 0.29s; }
.karat-seg:nth-child(9) { animation-delay: 0.32s; }
.karat-seg:nth-child(10) { animation-delay: 0.35s; }
.karat-seg:nth-child(11) { animation-delay: 0.38s; }
.karat-seg:nth-child(12) { animation-delay: 0.41s; }
.karat-seg:nth-child(13) { animation-delay: 0.44s; }
.karat-seg:nth-child(14) { animation-delay: 0.47s; }
.karat-seg:nth-child(15) { animation-delay: 0.50s; }
.karat-seg:nth-child(16) { animation-delay: 0.53s; }
.karat-seg:nth-child(17) { animation-delay: 0.56s; }
.karat-seg:nth-child(18) { animation-delay: 0.59s; }
@keyframes seg { from { opacity: 0; transform: scaleY(0.3); } to { opacity: 1; transform: none; } }
.karat-cap { margin-top: 14px; max-width: 50ch; font-size: 0.9375rem; line-height: 1.5; color: var(--soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 124px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- pieces ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: 0.9375rem; cursor: pointer; transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease; }
.chip:hover { border-color: var(--ink); }
.chip-n { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { border-color: var(--velvet); background: var(--velvet); color: var(--ivory); }
.chip[aria-pressed="true"] .chip-n { color: var(--soft); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.sort-label { color: var(--muted); }
.sort select { min-height: 42px; padding: 0 40px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230e2019' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.showing { margin: 18px 0 26px; font-size: 0.875rem; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img, .sheet-media img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.card-name { margin-top: 14px; font: 400 1.4375rem/1.15 var(--display); font-variation-settings: "opsz" 14; }
.card-open { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.card-open::after { content: ""; position: absolute; inset: 0; }
.card-open:focus-visible { outline: none; }
.card:has(.card-open:focus-visible) { outline: 2px solid var(--gold-lo); outline-offset: 6px; }
.card:has(.card-open:hover) .card-open { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.card-kind { margin-top: 3px; font-size: 0.9375rem; line-height: 1.35; color: var(--muted); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.spec { display: flex; flex-direction: column-reverse; }
.spec dd { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec dt { font-size: 0.75rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font: 400 1.4375rem/1 var(--display); font-variation-settings: "opsz" 14; font-variant-numeric: lining-nums; }
.btn-add { position: relative; z-index: 1; min-height: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease; }
.btn-add:hover { background: rgba(14, 32, 25, 0.07); }
.btn-add[aria-pressed="true"] { border-color: var(--velvet); background: var(--velvet); color: var(--ivory); }
.pieces-note { margin-top: 40px; max-width: 70ch; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--ivory); opacity: 0; transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), overlay 0.28s allow-discrete, display 0.28s allow-discrete; }
dialog[open] { opacity: 1; transform: none; }
dialog::backdrop { background: rgba(4, 42, 31, 0); transition: background-color 0.28s ease, overlay 0.28s allow-discrete, display 0.28s allow-discrete; }
dialog[open]::backdrop { background: rgba(4, 42, 31, 0.62); }
@starting-style {
  dialog[open] { opacity: 0; }
  dialog[open]::backdrop { background: rgba(4, 42, 31, 0); }
  .sheet[open] { transform: translateY(18px); }
  .drawer[open] { transform: translateX(36px); }
}
.x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.x:hover { background: rgba(14, 32, 25, 0.08); }

.sheet { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; transform: translateY(18px); overflow: hidden; }
.sheet-in { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.sheet > .x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(248, 245, 236, 0.92); }
.sheet > .x:hover { background: #fff; }
.sheet-media { aspect-ratio: 5 / 4; background: var(--ivory); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }
.sheet-media img.is-loading { opacity: 0; transition: none; }
.sheet-body { padding: 24px var(--gutter) 28px; }
.sheet-kind { font-size: 0.9375rem; color: var(--muted); }
.sheet-name { margin-top: 2px; font: 400 clamp(2.1rem, 6vw, 2.75rem)/1.05 var(--display); font-variation-settings: "opsz" 22; letter-spacing: -0.01em; }
.sheet-name:focus { outline: none; }
.sheet-price { margin-top: 12px; font: 400 1.75rem/1 var(--display); font-variation-settings: "opsz" 18; }
.sheet-desc { margin-top: 16px; max-width: 52ch; }
.opts { margin-top: 24px; }
.opts legend, .seg legend, .lens legend { margin-bottom: 10px; font-size: 0.875rem; font-weight: 600; }
.opts-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt, .seg-opt, .len { position: relative; display: inline-flex; cursor: pointer; }
.opt input, .seg-opt input, .len input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span, .seg-opt > span, .len > span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9375rem; transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease; }
.opt:hover span, .seg-opt:hover > span, .len:hover > span { border-color: var(--ink); }
.opt input:checked + span, .seg-opt input:checked + span, .len input:checked + span { border-color: var(--velvet); background: var(--velvet); color: var(--ivory); }
.opt input:focus-visible + span, .seg-opt input:focus-visible + span, .len input:focus-visible + span { outline: 2px solid var(--gold-lo); outline-offset: 3px; }
.rows { display: grid; grid-template-columns: max-content 1fr; margin-top: 26px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.rows dt, .rows dd { padding: 10px 0; border-top: 1px solid var(--line); }
.rows dt { padding-right: 28px; color: var(--muted); }
.rows dd { font-weight: 600; }
.sheet-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 16px; }
.sheet-cta .btn { flex: 1 1 200px; }

.drawer { width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; transform: translateX(36px); }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-h { font: 400 1.75rem/1.1 var(--display); font-variation-settings: "opsz" 18; }
.drawer-h:focus { outline: none; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px; }
.sel-empty { padding: 28px 0; color: var(--muted); }
.sel-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sel-item img { width: 72px; height: 90px; object-fit: cover; }
.sel-name { font: 400 1.25rem/1.15 var(--display); font-variation-settings: "opsz" 14; }
.sel-kind { font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.sel-opt { margin-top: 8px; max-width: 100%; min-height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230e2019' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 7px; font-size: 0.8125rem; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sel-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.sel-price { font: 400 1.25rem/1.15 var(--display); font-variation-settings: "opsz" 14; }
.sel-side .textbtn { padding: 4px 0; font-size: 0.8125rem; }
.drawer-foot { display: grid; gap: 10px; padding: 18px 24px 22px; border-top: 1px solid var(--line); }
.sel-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.sel-total strong { font: 400 1.75rem/1 var(--display); font-variation-settings: "opsz" 18; }

.menu { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; background: var(--velvet); color: var(--ivory); }
.menu-in { display: flex; flex-direction: column; height: 100%; padding: 0 var(--gutter) 32px; }
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); margin-right: -10px; }
.menu .x:hover { background: rgba(248, 245, 236, 0.12); }
.menu-nav { display: flex; flex-direction: column; margin-top: 24px; }
.menu-nav a { padding: 14px 0; border-bottom: 1px solid rgba(248, 245, 236, 0.16); font: 400 2rem/1.1 var(--display); font-variation-settings: "opsz" 18; text-decoration: none; }
.lang-menu { display: flex; margin-top: auto; padding-top: 24px; font-size: 1rem; }
.lang-menu a { min-width: 52px; padding: 10px 8px; }

.selbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 7px 7px 22px; border-radius: 999px; background: var(--velvet-deep); color: var(--ivory); box-shadow: 0 10px 30px rgba(4, 42, 31, 0.35); }
.selbar-text { display: flex; align-items: baseline; gap: 10px; font-size: 0.9375rem; font-weight: 600; }
.selbar-total { font: 400 1.25rem/1 var(--display); font-variation-settings: "opsz" 14; }

/* ---------- sizes ---------- */
.sizes { background: var(--paper); border-block: 1px solid var(--line); }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { min-height: 46px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { border-color: var(--velvet); background: var(--velvet); color: var(--ivory); }
.sizer { display: grid; gap: 32px; }
.seg { margin-bottom: 24px; }
.seg-opt + .seg-opt { margin-left: 4px; }
.seg .seg-opt { margin: 0 6px 8px 0; }
.field label, .field .label { display: block; margin-bottom: 8px; font-size: 0.9375rem; font-weight: 600; }
.input-unit { display: inline-flex; align-items: baseline; gap: 10px; }
.input-unit input { width: 132px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font: 400 1.75rem/1.1 var(--display); font-variation-settings: "opsz" 18; font-variant-numeric: lining-nums; }
.input-unit span { font-size: 1rem; color: var(--muted); }
.range { display: block; width: 100%; max-width: 360px; margin-top: 18px; accent-color: var(--velvet); }
.help { margin-top: 14px; max-width: 46ch; font-size: 0.9375rem; color: var(--muted); }
.err { margin-top: 8px; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.sizer-out { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.ring-fig { flex: none; width: 190px; height: 190px; }
.ring-band { fill: none; stroke: var(--gold); stroke-width: 13; }
.ring-dim, .ring-tick { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.ring-label { font: 600 13px var(--text); fill: var(--ink); }
.out-head { margin-bottom: 8px; font-size: 0.9375rem; font-weight: 600; }
.out-list { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 36px; }
.out-list div { display: flex; flex-direction: column-reverse; }
.out-list dt { font-size: 0.8125rem; color: var(--muted); }
.out-list dd { font: 400 2.1rem/1.05 var(--display); font-variation-settings: "opsz" 18; font-variant-numeric: lining-nums; }
.sizer-tip { margin-top: 18px; max-width: 46ch; }
.chainer { display: grid; gap: 28px; align-items: center; }
.chainer-fig { max-width: 440px; }
.neck { width: 100%; height: auto; }
.neck-body path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.neck-arc { fill: none; stroke: var(--line-strong); stroke-width: 1.5; transition: stroke 0.2s ease, stroke-width 0.2s ease; }
.neck-arc.is-on { stroke: var(--gold-lo); stroke-width: 3.2; }
.neck-tag circle { fill: var(--gold-lo); }
.neck-tag text { font: 600 13px var(--text); fill: var(--ink); }
.lens { display: block; }
.len { margin: 0 6px 8px 0; }
.len-in { font-size: 0.8125rem; opacity: 0.75; }
.len-desc { margin: 16px 0 14px; max-width: 30ch; font: 400 clamp(1.45rem, 3vw, 1.85rem)/1.2 var(--display); font-variation-settings: "opsz" 18; }

/* ---------- ordering ---------- */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { padding-top: 18px; border-top: 1px solid var(--line-strong); counter-increment: step; }
.step::before { content: counter(step); display: block; margin-bottom: 10px; font: 400 3.5rem/1 var(--display); font-variation-settings: "opsz" 30; color: var(--gold-lo); font-variant-numeric: lining-nums; }
.step-h { margin-bottom: 6px; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.step p { font-size: 0.9375rem; color: var(--muted); max-width: 40ch; }

/* ---------- house ---------- */
.house { position: relative; overflow: hidden; background: var(--velvet); color: var(--ivory); }
.house-media { height: 74vw; max-height: 480px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.house-media img { width: 100%; height: 100%; object-fit: cover; }
.house-in { position: relative; }
.house-copy { padding-block: 16px clamp(56px, 9vw, 96px); max-width: 560px; }
.house-copy p { margin-top: 18px; color: var(--soft); max-width: 54ch; }
.house-copy p:last-child { color: var(--ivory); }

/* ---------- questions ---------- */
.questions-in { display: grid; gap: 8px; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-h { margin-bottom: 12px; font: 400 1.625rem/1.15 var(--display); font-variation-settings: "opsz" 18; }
.qa { border-top: 1px solid var(--line-strong); }
.qa:last-child { border-bottom: 1px solid var(--line-strong); }
.qa summary { position: relative; display: block; padding: 18px 48px 18px 0; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; top: 50%; right: 6px; width: 16px; height: 1.6px; background: var(--ink); transition: transform 0.2s ease; }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa p { padding: 0 48px 22px 0; max-width: 64ch; color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-in { display: grid; gap: 36px; }
.contact-copy .btn { margin-top: 28px; }
.contact-copy .fine { margin-top: 12px; max-width: 40ch; }
.form .field { margin-bottom: 20px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea { display: block; width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; line-height: 1.4; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible, .input-unit input:focus-visible { border-color: var(--velvet); outline-offset: 2px; }
.form [aria-invalid="true"], .input-unit [aria-invalid="true"] { border-color: var(--error); }
.form ::placeholder { color: #5f6b65; opacity: 1; }
.seg-row { margin-bottom: 20px; }
.done { padding: 26px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--ivory); }
.done:focus { outline: none; }
.done-h { margin-bottom: 8px; font: 400 1.625rem/1.15 var(--display); font-variation-settings: "opsz" 18; }
.done-msg { margin: 16px 0 20px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font: inherit; font-size: 0.9375rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(48px, 7vw, 80px) 28px; background: var(--velvet-deep); color: var(--soft); font-size: 0.9375rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid rgba(248, 245, 236, 0.16); }
.fact-h { margin-bottom: 4px; font: 400 1.4375rem/1.15 var(--display); font-variation-settings: "opsz" 14; color: var(--ivory); }
.foot-grid { display: grid; gap: 36px; padding-top: clamp(36px, 5vw, 56px); }
.brand-foot { margin-bottom: 14px; }
.foot-brand > p:not(.brand) { max-width: 40ch; }
.lang-foot { display: inline-flex; margin-top: 14px; }
.foot-h { margin-bottom: 10px; font-weight: 600; color: var(--ivory); }
.foot-col li + li { margin-top: 6px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--ivory); text-decoration: underline; }
.foot-demo p + p { margin-top: 10px; }
.foot-copy { margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid rgba(248, 245, 236, 0.16); font-size: 0.8125rem; }

/* ---------- 404 ---------- */
.lost { min-height: 100dvh; display: grid; place-items: center; background: var(--velvet); color: var(--ivory); }
.lost-in { padding: 48px var(--gutter); max-width: 620px; }
.lost-in .h2 { margin: 40px 0 12px; }
.lost-in p { margin-top: 14px; color: var(--soft); }
.lost-in .btn { margin-top: 12px; }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .bar-in { flex-direction: row; justify-content: space-between; gap: 24px; }
  .bar-demo { text-align: right; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang { display: inline-flex; }
}
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 28px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .sheet { width: min(1040px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); margin: auto; border-radius: 22px; }
  .sheet-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); max-height: calc(100dvh - 48px); }
  .sheet-media { position: sticky; top: 0; align-self: start; aspect-ratio: 4 / 5; max-height: calc(100dvh - 48px); }
  .sheet-body { padding: 44px 48px 40px 44px; }
  .sheet > .x { right: 14px; top: 14px; }
  .sizer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .chainer { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; }
}
@media (min-width: 900px) {
  .selbar { display: none; }
  .hero { display: block; min-height: min(780px, calc(100svh - 100px)); }
  .hero-media { position: absolute; inset: 0 0 0 auto; width: 56%; height: auto; max-height: none; margin-top: 0; -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 27%); mask-image: linear-gradient(90deg, transparent 4%, #000 27%); }
  .hero-media img { object-position: 50% 50%; }
  .hero-in { display: grid; align-items: center; min-height: inherit; }
  .hero-copy { padding-block: 72px; max-width: min(600px, 47%); }
  .hero-title { font-size: clamp(3.2rem, 6.1vw, 5.5rem); }
  :lang(es) .hero-title { font-size: clamp(3rem, 5.4vw, 5rem); }
  .house { min-height: 620px; display: grid; align-items: center; }
  .house-media { position: absolute; inset: 0 auto 0 0; width: 54%; height: auto; max-height: none; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%); }
  .house-copy { margin-left: auto; padding-block: 88px; max-width: min(520px, 44%); }
  .questions-in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .questions .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
  .contact-in { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .header-actions { margin-left: 28px; }
  .foot-grid { grid-template-columns: 1.5fr 0.8fr 1fr 1.6fr; gap: 48px; }
}
@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 60px 32px; }
}
@media (min-width: 1280px) {
  .hero-media { width: 60%; }
  .hero-copy { max-width: min(600px, 52%); }
}
@media (max-width: 899px) {
  body.has-selbar { padding-bottom: 76px; }
}
@media (max-width: 479px) {
  .site-header .mark { display: none; }
  .header-in { gap: 12px; }
  .header-actions { gap: 4px; }
}
@media (max-width: 359px) {
  .sel-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sel-btn { padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (scripting: none) {
  .toolbar, .showing, .btn-add, .sel-btn, .menu-btn, .tablist, .selbar { display: none !important; }
  .panel[hidden] { display: block !important; margin-top: 40px; }
  .nav { display: flex; flex-wrap: wrap; }
  .card-open { cursor: default; }
}
@media print {
  .bar, .site-header, .selbar, .toolbar, .btn-add { display: none !important; }
}
