:root {
  --ivory: #EAF2F2;
  --paper: #FAFDFC;
  --ink: #172D35;
  --muted: #70878C;
  --line: #D3E1E1;

  --wine: #176D78;
  --wine-2: #2DA5A0;

  --gold: #D69A28;
  --gold-2: #F0C75E;

  --shadow: 0 30px 60px -30px rgba(23, 45, 53, .22);

  --serif: 'Fraunces', serif;
  --sans: 'Manrope', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

[data-theme="dark"] {
  --ivory: #0D1A20;
  --paper: #14252D;
  --ink: #EAF6F3;
  --muted: #9AB4B6;
  --line: #29434A;

  --wine: #53D0C1;
  --wine-2: #83E6D2;

  --gold: #F0BC4E;
  --gold-2: #FFDA7D;

  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .78);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 96px }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); transition: background .4s, color .4s; overflow-x: hidden }
h1, h2, h3, h4, .serif { font-family: var(--serif); letter-spacing: -.01em; color: var(--ink) }
.mono { font-family: var(--mono) }
a { color: inherit }
.muted { color: var(--muted) }
::selection { background: var(--wine); color: #fff }
::-webkit-scrollbar { width: 9px }
::-webkit-scrollbar-thumb { background: var(--wine) }
::-webkit-scrollbar-track { background: var(--ivory) }
.hairline { height: 1px; background: var(--line); border: 0 }
.tag { font-family: var(--mono); letter-spacing: .16em; text-transform: uppercase; font-size: .68rem; color: var(--wine) }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1) }
.reveal.in { opacity: 1; transform: none }
a { text-decoration: none; }
/* ---------- NAV ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; height: 84px; display: flex; align-items: center; background: color-mix(in srgb, var(--ivory) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: .3s }
.topbar.shrink { height: 66px }
.topbar .wrap { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4vw }
.hamburger { display: inline-flex; align-items: center; gap: 10px; background: none; border: none; color: var(--ink); font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer }
.hamburger .bars { display: flex; flex-direction: column; gap: 4px }
.hamburger .bars span { width: 22px; height: 2px; background: var(--ink); transition: .3s }
.wordmark { text-align: center; text-decoration: none }
.wordmark b { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--wine) }
.wordmark small { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .3em; color: var(--muted); margin-top: 2px }
.nav-tools { display: flex; justify-content: flex-end; gap: 8px }
.circle-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; position: relative; transition: .25s }
.circle-btn:hover { background: var(--wine); color: #fff; border-color: var(--wine) }
.badge-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 50%; background: var(--gold); color: #2b211c; font: 700 .62rem var(--mono); display: grid; place-items: center; border: 1px solid var(--paper) }
/* full-screen menu overlay */
.menu-overlay { position: fixed; inset: 0; z-index: 1035; background: var(--ink); color: var(--ivory); clip-path: circle(0% at 6% 6%); transition: clip-path .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none }
.menu-overlay.open { clip-path: circle(150% at 6% 6%); pointer-events: auto }
.menu-overlay .grid { max-width: 1100px; margin: 0 auto; padding: 120px 6vw 60px; display: grid; grid-template-columns: 1.3fr; gap: 6vw }
.menu-overlay a.big { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.15; color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(246, 240, 228, .14); padding: 10px 0; transition: .25s }
.menu-overlay a.big:hover { color: var(--gold-2); padding-left: 14px }
.menu-overlay .close-x { position: absolute; top: 30px; right: 5vw; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(246, 240, 228, .3); background: none; color: var(--ivory); display: grid; place-items: center; font-size: 1.3rem }
.menu-overlay .side h6 { font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; color: var(--gold-2); margin-bottom: 16px }
.menu-overlay .side p { color: rgba(246, 240, 228, .65); font-size: .92rem; line-height: 1.7 }
/* ---------- BUTTONS ---------- */
.btn-solid, .btn-line, .btn-gold { border-radius: 999px; padding: .85rem 1.7rem; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; border: 1.5px solid transparent; transition: .25s; cursor: pointer }
.btn-solid { background: var(--wine); color: #fff }
.btn-solid:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px) }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent }
.btn-line:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px) }
.btn-gold { background: var(--gold); color: #2b211c }
.btn-gold:hover { background: var(--ink); color: var(--gold-2); transform: translateY(-2px) }
.btn-sm2 { padding: .5rem 1.1rem; font-size: .75rem; border-radius: 999px }
/* ---------- HERO: catalog flipbook ---------- */
#hero { padding: 150px 0 70px; background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 45%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--wine) 14%, transparent), transparent 50%), var(--ivory); overflow: hidden }
.hero-head { text-align: center; max-width: 820px; margin: 0 auto 3.2rem; padding: 0 20px }
.hero-head .tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; margin-bottom: 18px; background: var(--paper) }
.hero-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.04; margin: 0 0 18px }
.hero-head h1 em { font-style: italic; color: var(--wine) }
.hero-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0 auto }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted) }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px }
.hero-badges i { color: var(--wine) }
.catalog-stage { position: relative; height: min(66vh, 640px); margin-top: 0rem; perspective: 1900px }
.catalog-page { position: absolute; top: 0; left: 50%; width: min(74vw, 880px); height: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform .75s cubic-bezier(.2, .8, .2, 1), opacity .75s ease, filter .75s ease; transform: translate(-50%, 0); will-change: transform, opacity }
.catalog-page img { width: 100%; height: 100%; object-fit: cover }
.catalog-page .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.86) 60%) }
.catalog-page .stamp { position: absolute; top: 22px; left: 22px; background: var(--gold); color: #2b211c; font: 700 .68rem var(--mono); letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; text-transform: uppercase }
.catalog-page .fold { position: absolute; top: 0; right: 0; width: 46px; height: 46px; background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--ink) 30%, transparent) 50%) }
.catalog-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 34px 30px; color: #f6f0e4 }
.catalog-info .cat { font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; color: var(--gold-2) }
.catalog-info h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.6rem); margin: 8px 0 8px; line-height: 1.05 }
.catalog-info p { max-width: 520px; color: rgba(246, 240, 228, .78); font-size: .92rem; line-height: 1.6; margin: 0 0 18px; display: none }
.catalog-page.is-active .catalog-info p { display: block }
.catalog-info .price { font-family: var(--serif); font-style: italic; font-size: 1.9rem; color: var(--gold-2) }
.catalog-info .actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap }
.catalog-page:not(.is-active) .catalog-info .actions, .catalog-page:not(.is-active) .catalog-info .price { display: none }
.catalog-page:not(.is-active) { pointer-events: auto }
.page-num { position: absolute; right: 26px; bottom: 26px; font-family: var(--mono); color: rgba(246, 240, 228, .7); font-size: .72rem }
.stage-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 2rem }
.stage-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: .25s }
.stage-arrow:hover { background: var(--wine); border-color: var(--wine); color: #fff }
.stage-dots { display: flex; gap: 8px }
.stage-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: var(--line); transition: .3s }
.stage-dots button.on { width: 26px; border-radius: 5px; background: var(--wine) }
/* ---------- SECTION CHROME ---------- */
.sec { padding: 6.5rem 0 }
.sec-head { max-width: 680px; margin: 0 auto 3.5rem; text-align: center }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 14px 0 0; line-height: 1.08 }
.sec-head p { color: var(--muted); margin-top: 14px; line-height: 1.65 }
.numeral { font-family: var(--serif); font-style: italic; color: var(--wine); opacity: .5 }
/* ---------- PAGE HERO (subpages) ---------- */
.page-hero { padding: 150px 0 54px; text-align: center; background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 45%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--wine) 14%, transparent), transparent 50%), var(--ivory); border-bottom: 1px solid var(--line) }
.page-hero .tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; margin-bottom: 16px; background: var(--paper) }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; margin: 0 0 12px }
.page-hero h1 em { font-style: italic; color: var(--wine) }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.7; padding: 0 20px }
/* ---------- ABOUT: dossier sheet ---------- */
#about { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.dossier { border: 1px solid var(--line); border-radius: 26px; padding: 3.4rem; background: var(--ivory); position: relative }
.dossier .seal { position: absolute; top: -26px; left: 44px; width: 64px; height: 64px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; box-shadow: 0 12px 24px -8px var(--wine) }
.drop p.lede::first-letter { font-family: var(--serif); font-size: 4.2rem; line-height: .7; float: left; padding: 8px 10px 0 0; color: var(--wine); font-style: italic }
.lede { font-size: 1.15rem; line-height: 1.75; color: var(--ink) }
.dossier-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2.6rem; border-top: 1px solid var(--line) }
.dossier-stats article { padding: 1.6rem 1.2rem 0; border-right: 1px solid var(--line) }
.dossier-stats article:last-child { border-right: 0 }
.dossier-stats i { font-size: 1.4rem; color: var(--wine) }
.dossier-stats h5 { font-size: .98rem; margin: .6rem 0 .3rem }
.dossier-stats p { font-size: .85rem; color: var(--muted); margin: 0 }
/* ---------- CATEGORIES: card-catalog drawers ---------- */
#categories { background: var(--ivory) }
.drawer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px }
.drawer { background: var(--paper); border: 1px solid var(--line); border-radius: 4px 4px 14px 14px; padding: 0; cursor: pointer; overflow: hidden; transition: transform .35s, box-shadow .35s }
.drawer:hover { transform: translateY(-10px); box-shadow: var(--shadow) }
.drawer .plate { background: var(--ink); color: var(--ivory); text-align: center; padding: 8px; font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase }
.drawer .face { padding: 26px 22px 22px; text-align: center }
.drawer .handle { width: 44px; height: 8px; border-radius: 6px; background: var(--gold); margin: 0 auto 16px; transition: .3s }
.drawer:hover .handle { width: 64px }
.drawer .icon { font-size: 2.1rem }
.drawer h3 { font-size: 1.06rem; margin: 12px 0 4px }
.drawer .count { font-family: var(--mono); font-size: .72rem; color: var(--muted) }
.drawer .view { margin-top: 14px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--wine); text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: .3s }
.drawer:hover .view { opacity: 1; transform: none }
/* ---------- FEATURED: master/detail gallery ---------- */
#featured { background: var(--ink); color: var(--ivory) }
.gallery { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3vw; align-items: center }
.master { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 14/11; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6) }
.master img { width: 100%; height: 100%; object-fit: cover; opacity: 0; position: absolute; inset: 0; transition: opacity .6s ease, transform 8s ease }
.master img.on { opacity: 1; transform: scale(1.06) }
.master .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; background: linear-gradient(270deg, transparent, rgba(10, 7, 5, .86)) }
.master .cat { font-family: var(--mono); letter-spacing: .18em; text-transform: uppercase; font-size: .68rem; color: var(--gold-2) }
.master h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.3rem); margin: 8px 0 }
.master .price { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: 1.6rem }
.side-list { display: flex; flex-direction: column; gap: 4px; max-height: 560px; overflow: auto; padding-right: 6px }
.side-list::-webkit-scrollbar { width: 5px }
.side-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: .25s }
.side-item:hover, .side-item.on { background: rgba(246, 240, 228, .06); border-color: rgba(246, 240, 228, .14) }
.side-item img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0 }
.side-item .t { min-width: 0 }
.side-item h6 { margin: 0; font-size: .92rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.side-item small { color: rgba(246, 240, 228, .55); font-family: var(--mono); font-size: .7rem }
.side-item .p { margin-left: auto; font-family: var(--mono); color: var(--gold-2); font-size: .82rem; flex-shrink: 0 }
/* ---------- PRODUCTS: flip specimen cards ---------- */
#products { background: var(--paper); border-top: 1px solid var(--line) }
.control-deck { background: var(--ivory); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; margin-bottom: 22px; display: grid; grid-template-columns: 1.3fr .8fr; gap: 18px; align-items: center }
.field-line { border-bottom: 1.5px solid var(--ink); display: flex; align-items: center; gap: 10px; padding-bottom: 8px }
.field-line input, .field-line select { border: 0; background: transparent; outline: 0; width: 100%; color: var(--ink); font-weight: 600; font-family: var(--sans) }
.chip-rail { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px }
.chip-rail button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 15px; font-size: .78rem; font-weight: 700; transition: .2s }
.chip-rail button.on, .chip-rail button:hover { background: var(--wine); border-color: var(--wine); color: #fff }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px }
.spec-flip { perspective: 1400px; height: 340px }
.spec-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1) }
.spec-flip.flipped .spec-inner { transform: rotateY(180deg) }
.spec-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--paper) }
.spec-face.front { display: flex; flex-direction: column }
.spec-face.front .ph { height: 62%; position: relative; overflow: hidden }
.spec-face.front .ph img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s }
.spec-flip:hover .ph img { transform: scale(1.08) }
.spec-face.front .ribbon { position: absolute; top: 12px; left: -6px; background: var(--wine); color: #fff; font: 700 .62rem var(--mono); padding: 5px 14px 5px 18px; border-radius: 0 4px 4px 0; letter-spacing: .06em }
.spec-face.front .body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between }
.spec-face.front h5 { font-size: .98rem; margin: 0 0 4px; line-height: 1.2 }
.spec-face.front .price { font-family: var(--serif); font-style: italic; color: var(--wine); font-size: 1.25rem }
.spec-face.front .flip-hint { font-family: var(--mono); font-size: .63rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase }
.spec-face.back { transform: rotateY(180deg); background: var(--ink); color: var(--ivory); padding: 22px; display: flex; flex-direction: column; justify-content: space-between }
.spec-face.back .cat { font-family: var(--mono); color: var(--gold-2); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase }
.spec-face.back h5 { color: #fff; margin: 8px 0; font-size: 1.05rem }
.spec-face.back p { color: rgba(246, 240, 228, .7); font-size: .82rem; line-height: 1.55; margin: 0 }
.spec-face.back .backrow { display: flex; gap: 8px }
.sq-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(246, 240, 228, .3); background: transparent; color: #fff; display: grid; place-items: center; transition: .2s }
.sq-btn:hover, .sq-btn.loved { background: var(--gold); color: #2b211c; border-color: var(--gold) }
.buy-btn { flex: 1; border: none; border-radius: 10px; background: var(--gold); color: #2b211c; font-weight: 800; font-size: .78rem; text-transform: uppercase }
.buy-btn:hover { background: #fff }
/* ---------- WHY: seal medallions ---------- */
#why { background: var(--ivory) }
.medal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px }
.medal { text-align: center; padding: 2.2rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; transition: .3s }
.medal:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--gold) }
.medal .ring { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.6rem; color: var(--wine) }
.medal h3 { font-size: 1.12rem; margin-bottom: 8px }
.medal p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.6 }
/* ---------- FAQ ---------- */
#faq { background: var(--paper); border-top: 1px solid var(--line) }
.accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0 !important }
.accordion-button { background: transparent; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; box-shadow: none !important; padding: 1.3rem 0 }
.accordion-button:not(.collapsed) { color: var(--wine) }
.accordion-button::after { filter: var(--ficon, none) }
[data-theme="dark"] .accordion-button::after { filter: invert(1) }
.accordion-body { color: var(--muted); padding: 0 0 1.3rem; line-height: 1.65 }
.faq-num { font-family: var(--mono); color: var(--gold); margin-right: 12px }
/* ---------- NEWSLETTER: ledger card ---------- */
#newsletter { background: var(--ink); color: var(--ivory) }
.ledger-card { border: 1px solid rgba(246, 240, 228, .16); border-radius: 26px; padding: 3rem; position: relative; overflow: hidden }
.ledger-card:before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 26px) }
.ledger-card h2 { color: #fff; text-align: center; font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 640px; margin: 0 auto 8px }
.ledger-card p.lead { text-align: center; color: rgba(246, 240, 228, .65); max-width: 520px; margin: 0 auto 2.2rem }
.ledger-form .form-control, .ledger-form .form-select { background: transparent; border: 0; border-bottom: 1px solid rgba(246, 240, 228, .3); border-radius: 0; color: #fff; padding: .6rem .1rem }
.ledger-form .form-control:focus, .ledger-form .form-select:focus { background: transparent; color: #fff; border-color: var(--gold); box-shadow: none }
.ledger-form .form-control option { color: #102A32 }
.ledger-form label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 240, 228, .6) }
.ledger-form .form-check-label { color: rgba(246, 240, 228, .75); font-size: .88rem }
/* ---------- CHECKOUT: invoice ---------- */
#checkout { background: var(--paper); border-top: 1px solid var(--line) }
.invoice { border: 1px solid var(--line); border-radius: 20px; background: var(--ivory); padding: 28px }
.invoice-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line) }
.invoice-row img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px }
.invoice-row .name { flex: 1; min-width: 0 }
.invoice-row .name b { display: block; font-size: .94rem }
.invoice-row .name small { color: var(--muted); font-family: var(--mono) }
.leader { flex: 1; border-bottom: 1px dotted var(--muted); margin: 0 10px; transform: translateY(-4px); min-width: 20px }
.qtybox { display: inline-flex; border: 1px solid var(--line); border-radius: 8px }
.qtybox button { width: 26px; background: none; border: 0; color: var(--ink) }
.summary-card { border: 1px solid var(--ink); border-radius: 20px; padding: 26px; background: var(--ivory) }
.form-card { border: 1px solid var(--line); border-radius: 20px; background: var(--ivory); padding: 28px; scroll-margin-top: 110px }
/* ---------- LEGAL DOC ---------- */
.legal-doc { max-width: 880px; margin: 0 auto }
.legal-doc .doc-card { border: 1px solid var(--line); border-radius: 26px; background: var(--paper); padding: 3rem; position: relative; overflow: hidden }
.legal-doc .doc-card:before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 26px) }
.legal-doc h6 { font-family: var(--serif); font-size: 1.14rem; color: var(--ink); margin: 2.2rem 0 .55rem; padding-top: 1.4rem; border-top: 1px solid var(--line) }
.legal-doc h6:first-of-type { border-top: 0; margin-top: .5rem; padding-top: 0 }
.legal-doc p { color: var(--muted); line-height: 1.75; font-size: .95rem; margin: 0 }
/* ---------- CONTACT ---------- */
#contact { background: var(--ivory) }
.corr-line { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .92rem }
.corr-line b { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--wine); text-transform: uppercase }
.mapbox { height: 230px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 16px; filter: grayscale(.4) sepia(.15) }
.mapbox iframe { width: 100%; height: 100%; border: 0 }
/* ---------- FOOTER ---------- */
footer { background: #1c1512; color: #e9dfd0; padding: 5rem 0 2rem; border-top: 5px solid var(--gold) }
footer a { color: rgba(233, 223, 208, .7); text-decoration: none }
footer a:hover { color: var(--gold-2) }
footer h6 { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px }
/* ---------- OVERLAYS ---------- */
.offcanvas, .modal-content { background: var(--paper); color: var(--ink); border-radius: 0 }
.offcanvas { border-left: 1px solid var(--line) !important }
.modal-content { border: 1px solid var(--line); border-radius: 20px; overflow: hidden }
.form-control, .form-select { background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-radius: 10px }
.form-control:focus, .form-select:focus { background: var(--paper); color: var(--ink); border-color: var(--wine); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--wine) 18%, transparent) }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px }
.related-grid article { cursor: pointer; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: .25s }
.related-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow) }
.related-grid img { width: 100%; aspect-ratio: 1; object-fit: cover }
.related-grid .rt { padding: 8px 10px; font-size: .78rem }
.related-grid .rt b { display: block; line-height: 1.2 }
.related-grid .rt span { font-family: var(--mono); color: var(--wine) }
/* ---------- TOASTS ---------- */
#stampZone { position: fixed; top: 98px; right: 20px; z-index: 1090; display: flex; flex-direction: column; gap: 10px; width: 320px; max-width: calc(100vw - 40px) }
.stamp-note { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: flex-start; animation: noteIn .5s cubic-bezier(.2, 1.2, .3, 1) both; position: relative; overflow: hidden }
.stamp-note.out { animation: noteOut .35s ease forwards }
@keyframes noteIn { from { opacity: 0; transform: translateX(40px) rotate(3deg) } to { opacity: 1; transform: none } }
@keyframes noteOut { to { opacity: 0; transform: translateX(40px) } }
.stamp-note .ic { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--wine); color: var(--wine); display: grid; place-items: center; transform: rotate(-8deg) }
.stamp-note b { font-family: var(--serif); display: block; font-size: 1rem }
.stamp-note p { margin: 2px 0 0; font-size: .8rem; color: var(--muted) }
.stamp-note .bar { grid-column: 1/-1; height: 2px; background: var(--gold); transform-origin: left; animation: drain 3.8s linear forwards }
@keyframes drain { to { transform: scaleX(0) } }
#toTop { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--wine); color: #fff; border: none; z-index: 1020; opacity: 0; pointer-events: none; transition: .3s }
#toTop.on { opacity: 1; pointer-events: auto }
@media(max-width:1100px) {
.drawer-grid { grid-template-columns: repeat(2, 1fr) }
.gallery { grid-template-columns: 1fr }
.spec-grid { grid-template-columns: repeat(2, 1fr) }
.dossier-stats { grid-template-columns: repeat(2, 1fr) }
.dossier-stats article:nth-child(2) { border-right: 0 }
.menu-overlay .grid { grid-template-columns: 1fr }
}
@media(max-width:768px) {
.sec { padding: 4.5rem 0 }
.catalog-stage { height: 78vh }
.catalog-page { width: 88vw }
.control-deck { grid-template-columns: 1fr }
.spec-grid { grid-template-columns: 1fr 1fr }
.medal-grid { grid-template-columns: 1fr }
.related-grid { grid-template-columns: repeat(2, 1fr) }
.invoice-row .name small { display: block }
.legal-doc .doc-card { padding: 1.8rem }
.dossier { padding: 2.2rem }
}