/* ==========================================================================
   Hallowmark — Private Sealed Sales
   ========================================================================== */

:root {
  --bg: #F5F1EA;
  --bg-2: #EFE9DF;
  --surface: #FBF9F5;
  --surface-2: #F2EDE4;
  --stone: #E7E0D4;
  --ink: #17140F;
  --ink-2: #463F35;
  --muted: #7E7466;
  --line: rgba(23, 20, 15, .11);
  --line-2: rgba(23, 20, 15, .2);
  --wax: #7B1E22;
  --wax-2: #9B2C31;
  --wax-ink: #FBF4EE;
  --wax-soft: rgba(123, 30, 34, .08);
  --brass: #9C7642;
  --brass-soft: rgba(156, 118, 66, .14);
  --ok: #2F6A4D;
  --ok-soft: rgba(47, 106, 77, .1);
  --warn: #9A5B12;
  --warn-soft: rgba(154, 91, 18, .1);
  --focus: #9C7642;
  --shadow-sm: 0 1px 2px rgba(23, 20, 15, .06), 0 2px 8px rgba(23, 20, 15, .04);
  --shadow: 0 2px 6px rgba(23, 20, 15, .05), 0 18px 48px -12px rgba(23, 20, 15, .16);
  --shadow-lg: 0 30px 80px -20px rgba(23, 20, 15, .35);
  --scrim: rgba(18, 15, 11, .55);

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

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0D0A;
    --bg-2: #15120E;
    --surface: #181510;
    --surface-2: #1F1B15;
    --stone: #2A251E;
    --ink: #F2ECE2;
    --ink-2: #CEC5B5;
    --muted: #918775;
    --line: rgba(242, 236, 226, .1);
    --line-2: rgba(242, 236, 226, .2);
    --wax: #B23A40;
    --wax-2: #C8484E;
    --wax-ink: #FFF5F0;
    --wax-soft: rgba(178, 58, 64, .14);
    --brass: #C9A26A;
    --brass-soft: rgba(201, 162, 106, .14);
    --ok: #6DB38E;
    --ok-soft: rgba(109, 179, 142, .12);
    --warn: #D9A055;
    --warn-soft: rgba(217, 160, 85, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
    --scrim: rgba(5, 4, 3, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0F0D0A;
  --bg-2: #15120E;
  --surface: #181510;
  --surface-2: #1F1B15;
  --stone: #2A251E;
  --ink: #F2ECE2;
  --ink-2: #CEC5B5;
  --muted: #918775;
  --line: rgba(242, 236, 226, .1);
  --line-2: rgba(242, 236, 226, .2);
  --wax: #B23A40;
  --wax-2: #C8484E;
  --wax-ink: #FFF5F0;
  --wax-soft: rgba(178, 58, 64, .14);
  --brass: #C9A26A;
  --brass-soft: rgba(201, 162, 106, .14);
  --ok: #6DB38E;
  --ok-soft: rgba(109, 179, 142, .12);
  --warn: #D9A055;
  --warn-soft: rgba(217, 160, 85, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --scrim: rgba(5, 4, 3, .7);
  color-scheme: dark;
}

/* Always-dark surfaces (hero, gate) */
.on-dark {
  --bg: #0F0D0A;
  --surface: #181510;
  --surface-2: #211C16;
  --ink: #F2ECE2;
  --ink-2: #CEC5B5;
  --muted: #A39887;
  --line: rgba(242, 236, 226, .14);
  --line-2: rgba(242, 236, 226, .26);
  --wax: #B23A40;
  --wax-2: #C8484E;
  --brass: #CFA96F;
  color: var(--ink);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html { font-variant-numeric: lining-nums; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  font-variant-numeric: lining-nums;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wax); color: var(--wax-ink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: .96;
  letter-spacing: -.02em;
}
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 400; }
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.015em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.01em; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.eyebrow {
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.money { font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head .eyebrow { margin-bottom: 12px; }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; align-items: center; gap: var(--g, 12px); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grow { flex: 1; min-width: 0; }

#main { min-height: 70vh; outline: none; }
.view { animation: viewIn .5s var(--ease) backwards; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px;
  font: 500 14px/1 var(--sans);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s, transform .2s var(--ease), box-shadow .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-wax { background: var(--wax); color: var(--wax-ink); box-shadow: 0 8px 24px -10px var(--wax); }
.btn-wax:hover { background: var(--wax-2); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-2); padding: 0 14px; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { --h: 54px; padding: 0 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-grid; place-items: center;
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.text-btn { font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.text-btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-btn:hover svg { transform: translateX(3px); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.input.is-error { border-color: var(--wax); box-shadow: 0 0 0 4px var(--wax-soft); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237E7466' stroke-width='1.6'%3E%3Cpath d='M2 4.5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field-hint { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--wax); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--surface); display: grid; place-items: center; transition: background-color .2s, border-color .2s; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--wax-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--wax); border-color: var(--wax); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.switch { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background-color .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(18px); }

/* ---------- Chips, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 15px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .count { font-size: 12px; opacity: .6; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2);
  white-space: nowrap;
}
.badge-wax { background: var(--wax-soft); color: var(--wax); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-brass { background: var(--brass-soft); color: var(--brass); }
.badge .dot, .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.dot-live { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.count-pill { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--wax); color: var(--wax-ink); font: 600 10.5px/18px var(--sans); text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-over-hero:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .22em; text-transform: uppercase; line-height: 1; padding-top: 2px; }
.brand-sub { display: block; font: 500 9.5px/1 var(--sans); letter-spacing: .26em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.nav a {
  position: relative;
  height: 36px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px; background: var(--wax); border-radius: 2px; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px 0 14px; margin-right: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 13.5px; min-width: 210px;
  transition: border-color .2s, color .2s;
}
.search-trigger:hover { border-color: var(--line-2); color: var(--ink-2); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; font: 500 11px/1 var(--sans); padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); }
.paddle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 6px 0 14px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s;
}
.paddle:hover { border-color: var(--line-2); }
.paddle-no { font: 600 11px/1 var(--sans); letter-spacing: .12em; color: var(--muted); }
.paddle-no b { color: var(--ink); font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 600 11.5px/1 var(--sans); letter-spacing: .04em; }
.nav-badge { position: absolute; top: 3px; right: 3px; }

/* Header over dark hero */
.site-header.is-over-hero:not(.is-scrolled) { color: #F2ECE2; }
.site-header.is-over-hero:not(.is-scrolled) .nav a,
.site-header.is-over-hero:not(.is-scrolled) .icon-btn,
.site-header.is-over-hero:not(.is-scrolled) .paddle-no,
.site-header.is-over-hero:not(.is-scrolled) .search-trigger,
.site-header.is-over-hero:not(.is-scrolled) .brand-sub { color: rgba(242, 236, 226, .78); }
.site-header.is-over-hero:not(.is-scrolled) .paddle-no b { color: #F2ECE2; }
.site-header.is-over-hero:not(.is-scrolled) .nav a:hover,
.site-header.is-over-hero:not(.is-scrolled) .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-header.is-over-hero:not(.is-scrolled) .search-trigger,
.site-header.is-over-hero:not(.is-scrolled) .paddle { border-color: rgba(242, 236, 226, .2); }
.site-header.is-over-hero:not(.is-scrolled) .search-trigger kbd { border-color: rgba(242, 236, 226, .2); color: rgba(242, 236, 226, .6); }
.site-header.is-over-hero:not(.is-scrolled) .avatar { background: #F2ECE2; color: #17140F; }
.site-header.is-over-hero:not(.is-scrolled) .nav a[aria-current="page"] { color: #fff; }

/* Mega menu */
.menu-wrap { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: -20px;
  width: 640px; padding: 20px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
}
.menu-wrap.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r); color: var(--ink) !important; height: auto !important; }
.mega a:hover { background: var(--surface-2) !important; }
.mega a::after { display: none; }
.mega img { width: 46px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--stone); }
.mega .t { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.1; }
.mega .s { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Account dropdown */
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 280px; padding: 8px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
  z-index: 60;
}
.menu-wrap.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-head { padding: 12px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown a, .dropdown button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--ink); }
.dropdown svg { width: 17px; height: 17px; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .nav, .search-trigger, .paddle-no, .header-tools .hide-m { display: none !important; }
  .paddle { padding: 0; border: 0; margin: 0; }
  .brand-word { font-size: 18px; letter-spacing: .2em; }
  .brand-sub { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .tabbar:not([hidden]) {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(18px);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 4px; padding: 6px 0 4px; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -6px; width: 22px; height: 2px; border-radius: 2px; background: var(--wax); }
  .tabbar .count-pill { position: absolute; top: 2px; left: calc(50% + 6px); }
  body.has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  min-height: min(92vh, 900px);
  display: flex; align-items: flex-end;
  background: #0E0C09;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,12,9,.92) 0%, rgba(14,12,9,.7) 34%, rgba(14,12,9,.1) 66%, rgba(14,12,9,0) 100%),
    linear-gradient(0deg, rgba(14,12,9,.95) 0%, rgba(14,12,9,0) 38%);
}
.hero-inner { width: 100%; padding-top: calc(var(--header-h) + 80px); padding-bottom: 40px; }
.hero h1 { max-width: 11ch; }
.hero h1 .reveal-line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero h1 .reveal-line > span { display: block; animation: lineUp 1.1s var(--ease) both; }
.hero h1 .reveal-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero .lede { color: rgba(242, 236, 226, .78); margin-top: 26px; max-width: 46ch; animation: fadeUp 1s .35s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: fadeUp 1s .5s var(--ease) both; }
.hero .btn-line { border-color: rgba(242,236,226,.3); color: #F2ECE2; }
.hero .btn-line:hover { border-color: #F2ECE2; }
.hero .btn-light { background: #F2ECE2; color: #17140F; }
.hero .btn-light:hover { background: #fff; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-strip {
  margin-top: clamp(48px, 8vh, 96px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(242,236,226,.16);
  animation: fadeUp 1s .7s var(--ease) both;
}
.hero-strip a { padding: 20px 24px 6px 0; display: grid; gap: 6px; border-right: 1px solid rgba(242,236,226,.1); margin-right: 24px; transition: opacity .2s; }
.hero-strip a:last-child { border-right: 0; margin-right: 0; }
.hero-strip a:hover .hs-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hs-title { font-family: var(--serif); font-size: 22px; font-weight: 500; color: #F2ECE2; }
.hs-meta { font-size: 13px; color: rgba(242,236,226,.62); display: flex; align-items: center; gap: 8px; }
.hs-meta .cd { color: #F2ECE2; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Member desk ---------- */
.desk { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.desk > * { padding: 24px 26px; border-left: 1px solid var(--line); }
.desk > *:first-child { border-left: 0; }
.desk-greet .h3 { margin-top: 8px; }
.desk-item { display: grid; gap: 8px; align-content: start; transition: background-color .2s; }
a.desk-item:hover { background: var(--surface-2); }
.desk-item .big { font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 500; font-variant-numeric: lining-nums; }
.desk-item .lbl { font-size: 13.5px; color: var(--ink-2); }
.desk-item .act { margin-top: 6px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.desk-item .act svg { width: 14px; height: 14px; }
.desk-item.is-wax .big, .desk-item.is-wax .act { color: var(--wax); }
.desk-seal { width: 40px; height: 40px; }

/* ---------- Sale cards ---------- */
.sale-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.sale-grid > :first-child { grid-row: span 2; }
.sale-card {
  position: relative; display: grid; grid-template-rows: 1fr auto;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--stone);
  min-height: 300px;
  isolation: isolate;
}
.sale-card .media { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); }
.sale-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sale-card:hover .media img { transform: scale(1.04); }
.sale-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,12,9,0) 30%, rgba(14,12,9,.55) 62%, rgba(14,12,9,.9) 100%); }
.sale-card .media { gap: 2px; background: #D8CFC0; }
.sale-card .body { grid-row: 2; padding: 26px 28px; color: #F5EFE6; display: grid; gap: 10px; }
.sale-card .eyebrow { color: rgba(245,239,230,.75); }
.sale-card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.02; }
.sale-card .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: rgba(245,239,230,.78); }
.sale-card .meta b { color: #fff; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.sale-card .tag { position: absolute; top: 18px; left: 18px; }
.sale-card .tag .badge { background: rgba(14,12,9,.55); color: #F5EFE6; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sale-progress { height: 2px; background: rgba(245,239,230,.2); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.sale-progress i { display: block; height: 100%; background: #F5EFE6; border-radius: 2px; }
.sale-grid > :first-child { min-height: 620px; }

/* ---------- Lot cards ---------- */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
.lot-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.lot-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.lot-card .media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  background: var(--stone);
}
.lot-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s var(--ease); }
.lot-card .media img.alt { opacity: 0; }
.lot-card:hover .media img { transform: scale(1.035); }
.lot-card:hover .media img.alt { opacity: 1; }
.lot-card .lot-no { position: absolute; top: 12px; left: 12px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #3E372D; background: rgba(251,249,245,.82); padding: 7px 9px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lot-card .save { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #3E372D; background: rgba(251,249,245,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .2s var(--ease), color .2s; z-index: 2; }
.lot-card .save svg { width: 17px; height: 17px; }
.lot-card .save:hover { transform: scale(1.08); }
.lot-card .save[aria-pressed="true"] { color: var(--wax); }
.lot-card .save[aria-pressed="true"] svg { fill: currentColor; }
.lot-card .sealed-flag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(23,20,15,.78); color: #F5EFE6; font-size: 12px; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lot-card .sealed-flag svg { width: 22px; height: 22px; }
.lot-card h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.15; letter-spacing: -.005em; }
.lot-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lot-card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lot-card .foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.lot-card .est { color: var(--ink-2); }
.lot-card .est b { font-weight: 500; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.lot-card .closes { color: var(--muted); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.lot-card .closes.is-soon { color: var(--wax); }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroller-wrap { position: relative; }
.scroller-nav { display: flex; gap: 8px; }
.scroller-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .2s, background-color .2s; }
.scroller-nav button:hover { border-color: var(--ink); }
.scroller-nav svg { width: 18px; height: 18px; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-tile { position: relative; display: grid; gap: 12px; }
.cat-tile .media { aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--stone); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .t { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.1; }
.cat-tile .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Sealed room explainer ---------- */
.ritual { background: var(--bg-2); border-top: 1px solid var(--line); }
.ritual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line-2); }
.ritual-step { padding: 32px 32px 8px 0; display: grid; gap: 14px; align-content: start; }
.ritual-step + .ritual-step { padding-left: 32px; border-left: 1px solid var(--line); }
.ritual-step .n { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--brass); }
.ritual-step .ill { height: 120px; display: flex; align-items: center; }
.ritual-step .ill svg { height: 110px; width: auto; }
.ritual-step p { color: var(--ink-2); max-width: 36ch; }
.ritual-rules { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ritual-rules > div { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--line); }
.ritual-rules b { font-weight: 600; color: var(--ink); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 0; font-size: 13.5px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font: 600 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a:hover { color: var(--ink); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.pay-marks { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-mark { height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; display: inline-flex; align-items: center; font: 600 10.5px/1 var(--sans); letter-spacing: .04em; color: var(--ink-2); background: var(--surface); }

/* ---------- Page head ---------- */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.page-head .eyebrow { margin-bottom: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { position: relative; padding: 14px 0 16px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs [aria-selected="true"] { color: var(--ink); }
.tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.tabs .count-pill { background: var(--surface-2); color: var(--ink-2); }
.tabs [aria-selected="true"] .count-pill { background: var(--ink); color: var(--bg); }

/* ---------- Sale page ---------- */
.sale-hero { position: relative; overflow: hidden; background: #14110D; color: #F2ECE2; isolation: isolate; }
.sale-hero .covers { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); opacity: .9; }
.sale-hero .covers img { width: 100%; height: 100%; object-fit: cover; }
.sale-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,12,9,.94) 0%, rgba(14,12,9,.76) 45%, rgba(14,12,9,.35) 100%); }
.sale-hero .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 56px); }
.sale-hero .crumbs { color: rgba(242,236,226,.6); }
.sale-hero .lede { color: rgba(242,236,226,.75); margin-top: 18px; }
.sale-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 36px; border-top: 1px solid rgba(242,236,226,.16); }
.sale-facts > div { padding: 18px 32px 0 0; margin-right: 32px; border-right: 1px solid rgba(242,236,226,.1); }
.sale-facts > div:last-child { border-right: 0; }
.sale-facts .k { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(242,236,226,.55); }
.sale-facts .v { font-family: var(--serif); font-size: 24px; margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; }
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.toolbar .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.toolbar .chips::-webkit-scrollbar { display: none; }
.toolbar .select { height: 38px; width: auto; border-radius: 999px; font-size: 13.5px; padding-left: 16px; background-color: transparent; }
.results-meta { font-size: 13px; color: var(--muted); padding: 24px 0 18px; }
.empty { text-align: center; padding: 72px 20px; display: grid; justify-items: center; gap: 12px; color: var(--ink-2); }
.empty svg { width: 64px; height: 64px; opacity: .9; }

/* ---------- Lot page ---------- */
.lot-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 8px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-thumbs { display: grid; gap: 10px; align-content: start; }
.gallery-thumbs button { aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; background: var(--stone); outline: 1px solid transparent; outline-offset: 2px; opacity: .6; transition: opacity .2s, outline-color .2s; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--ink); }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--stone); cursor: zoom-in; }
.gallery-main .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-main .slides::-webkit-scrollbar { display: none; }
.gallery-main .slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; position: relative; overflow: hidden; }
.gallery-main .slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .45s var(--ease); }
.gallery-main.is-zoom .slide img { transform: scale(2.2); transition: transform .3s var(--ease); }
.gallery-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(251,249,245,.84); color: #3E372D; font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; transition: opacity .3s; }
.gallery-main.is-zoom .gallery-hint { opacity: 0; }
.gallery-hint svg { width: 14px; height: 14px; }
.gallery-dots { display: none; }

.lot-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
.gallery { min-width: 0; }
.lot-title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -.012em; margin-top: 12px; }
.lot-sub { margin-top: 12px; color: var(--ink-2); }
.lot-estimate { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lot-estimate .v { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; }
.cd-boxes { display: flex; gap: 6px; }
.cd-boxes > span { min-width: 46px; padding: 8px 4px 6px; border-radius: 8px; background: var(--surface-2); text-align: center; display: grid; gap: 2px; }
.cd-boxes b { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.cd-boxes i { font-style: normal; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cd-boxes.is-soon > span { background: var(--wax-soft); }
.cd-boxes.is-soon b { color: var(--wax); }
.lot-signal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.lot-signal span { display: inline-flex; align-items: center; gap: 7px; }
.lot-signal svg { width: 15px; height: 15px; }

.bid-box { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 24px; display: grid; gap: 20px; box-shadow: var(--shadow-sm); }
.bid-box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bid-box-head .t { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.amount { position: relative; display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.amount:focus-within { border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.amount.is-error { border-color: var(--wax); box-shadow: 0 0 0 4px var(--wax-soft); }
.amount .cur { display: grid; place-items: center; padding-left: 18px; font-family: var(--serif); font-size: 30px; color: var(--muted); }
.amount input { flex: 1; width: 0; min-width: 0; height: 68px; padding: 0 8px; border: 0; outline: none; background: transparent; font-family: var(--serif); font-size: 36px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.amount .step { width: 52px; display: grid; place-items: center; color: var(--ink-2); border-left: 1px solid var(--line); transition: background-color .2s, color .2s; }
.amount .step:last-child { border-radius: 0 11px 11px 0; }
.amount .step:hover { background: var(--surface-2); color: var(--ink); }
.amount .step svg { width: 18px; height: 18px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick .chip { height: 32px; font-size: 12.5px; padding: 0 12px; }
.bid-note { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bid-note.is-error { color: var(--wax); }

/* Estimate compass */
.compass { display: grid; gap: 10px; }
.compass-track { position: relative; height: 34px; }
.compass-bar { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.compass-band { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--brass-soft), color-mix(in srgb, var(--brass) 38%, transparent), var(--brass-soft)); border-left: 1px solid var(--brass); border-right: 1px solid var(--brass); }
.compass-median { position: absolute; top: 9px; width: 2px; height: 16px; background: var(--ink-2); border-radius: 2px; transform: translateX(-1px); opacity: .5; }
.compass-marker { position: absolute; top: 2px; width: 30px; height: 30px; margin-left: -15px; transition: left .45s var(--ease); }
.compass-marker svg { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.compass-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.compass-read { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.compass-read b { color: var(--ink); font-weight: 600; }

.breakdown { display: grid; gap: 9px; font-size: 13.5px; padding: 16px 18px; border-radius: 12px; background: var(--bg-2); }
.breakdown .r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink-2); }
.breakdown .r span:last-child { font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.breakdown .total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.breakdown .total span:last-child { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.breakdown .t-head { font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 10px; font-weight: 600; color: var(--muted); margin-left: 6px; cursor: help; vertical-align: 1px; }

/* Sealed envelope state on lot page */
.envelope-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, #F6EFE2 0%, #EFE5D3 100%);
  color: #2A241B;
  border: 1px solid rgba(90, 70, 40, .2);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow);
  padding: 28px 24px 22px;
}
.envelope-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70px;
  background: linear-gradient(170deg, transparent 49.5%, rgba(90,70,40,.16) 50%, transparent 51%) left top / 50% 100% no-repeat,
              linear-gradient(190deg, transparent 49.5%, rgba(90,70,40,.16) 50%, transparent 51%) right top / 50% 100% no-repeat;
  pointer-events: none;
}
.envelope-card .seal-wrap { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); width: 72px; height: 72px; }
.envelope-card .inner { margin-top: 82px; text-align: center; display: grid; gap: 6px; }
.envelope-card .k { font: 600 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8A7A62; }
.envelope-card .amt { font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1; color: #1F1A13; font-variant-numeric: lining-nums tabular-nums; }
.envelope-card .meta { font-size: 12.5px; color: #75674F; }
.envelope-card .acts { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.envelope-card .btn-line { border-color: rgba(42,36,27,.25); color: #2A241B; }
.envelope-card .btn-line:hover { border-color: #2A241B; }
.envelope-card .btn-primary { background: #1F1A13; color: #F6EFE2; }
[data-theme="dark"] .envelope-card, .on-dark .envelope-card { box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); }

.trust { display: grid; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.trust > div { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--brass); margin-top: 1px; }

.specialist { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.specialist .ph { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); font-family: var(--serif); font-size: 20px; font-weight: 600; flex: none; }
.specialist .n { font-weight: 500; }
.specialist .r { font-size: 13px; color: var(--muted); }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 18px; height: 18px; transition: transform .3s var(--ease); color: var(--muted); }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc .acc-body { padding: 0 0 24px; color: var(--ink-2); display: grid; gap: 14px; }
.acc .acc-body p { max-width: 64ch; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; font-size: 14px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--ink); }
.cond { display: grid; gap: 14px; }
.cond-row { display: grid; grid-template-columns: 110px 120px 1fr; gap: 16px; align-items: center; font-size: 14px; }
.cond-row .p { color: var(--ink); font-weight: 500; }
.cond-row .g { display: flex; gap: 4px; }
.cond-row .g i { width: 18px; height: 5px; border-radius: 3px; background: var(--line-2); }
.cond-row .g i.on { background: var(--ok); }
.cond-row .note { color: var(--ink-2); font-size: 13.5px; }
.prov li { position: relative; padding-left: 22px; padding-bottom: 14px; }
.prov li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.prov li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.prov li:last-child::after { display: none; }

.mobile-bidbar { display: none; }

/* ---------- Overlay / modal / sheet ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.overlay .scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .3s var(--ease) both; }
.overlay.is-closing .scrim { animation: fadeOut .25s var(--ease) both; }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); animation: modalIn .45s var(--ease) both; overscroll-behavior: contain; }
.overlay.is-closing .modal { animation: modalOut .25s var(--ease) both; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 3; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@media (max-width: 640px) {
  .overlay { padding: 0; place-items: end stretch; }
  .modal { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; animation-name: sheetIn; padding-bottom: env(safe-area-inset-bottom); }
  .overlay.is-closing .modal { animation-name: sheetOut; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
}

/* ---------- Seal ceremony ---------- */
.seal-modal { width: min(520px, 100%); background: transparent; box-shadow: none; overflow: visible; }
.letter {
  position: relative;
  background: linear-gradient(180deg, #FAF5EC 0%, #F3EBDD 100%);
  color: #251F17;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 32px;
  overflow: hidden;
}
.letter::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .8; mix-blend-mode: multiply; }
.letter .eyebrow { color: #8A7A62; }
.letter .amt { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 9vw, 72px); line-height: 1; margin: 12px 0 10px; color: #1D1810; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.letter .for { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: #3A3127; }
.letter .for em { color: #251F17; }
.letter .lines { margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(60,45,25,.25); display: grid; gap: 8px; font-size: 13.5px; color: #5C5040; }
.letter .lines .r { display: flex; justify-content: space-between; }
.letter .lines .r span:last-child { color: #251F17; font-variant-numeric: lining-nums tabular-nums; }
.letter .lines .total { font-weight: 600; color: #251F17; padding-top: 8px; border-top: 1px solid rgba(60,45,25,.14); margin-top: 4px; }
.letter .check { color: #4A3F31; margin-top: 22px; font-size: 13.5px; }
.letter .check input { background: #FBF7F0; border-color: rgba(60,45,25,.35); }
.letter .check input:checked { background: #7B1E22; border-color: #7B1E22; }
.letter .modal-x { color: #5C5040; }
.letter .modal-x:hover { background: rgba(60,45,25,.08); }

.press { margin-top: 26px; display: grid; justify-items: center; gap: 14px; }
.press-btn {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .25s var(--ease), opacity .3s;
}
.press-btn[disabled] { opacity: .35; cursor: not-allowed; }
.press-btn .ring { position: absolute; inset: 0; }
.press-btn .ring circle { fill: none; stroke-width: 2; }
.press-btn .ring .bg { stroke: rgba(60,45,25,.16); }
.press-btn .ring .fg { stroke: #7B1E22; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 389.6; stroke-dashoffset: 389.6; }
.press-btn .wax { width: 98px; height: 98px; transition: transform .2s var(--ease), filter .2s; filter: drop-shadow(0 6px 10px rgba(80, 15, 18, .35)); }
.press-btn.is-holding .wax { transform: scale(.93); filter: drop-shadow(0 2px 3px rgba(80, 15, 18, .4)); }
.press-btn:not([disabled]):hover .wax { transform: scale(1.03); }
.press-btn.is-holding:hover .wax { transform: scale(.93); }
.press-label { font-size: 13px; font-weight: 500; color: #5C5040; letter-spacing: .02em; text-align: center; }
.press-alt { font-size: 12.5px; color: #8A7A62; text-decoration: underline; text-underline-offset: 3px; }

/* Envelope fold animation */
.env-stage { position: relative; height: 330px; perspective: 1200px; display: grid; place-items: center; }
.env { position: relative; width: 360px; max-width: 86vw; height: 230px; transform-style: preserve-3d; }
.env-back, .env-front, .env-flap, .env-paper { position: absolute; left: 0; right: 0; border-radius: 8px; }
.env-back { inset: 0; background: #D9C7A6; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.env-paper { left: 16px; right: 16px; top: 16px; height: 196px; transform: translateY(-120px); background: #FBF7EF; border-radius: 6px; padding: 26px 22px; text-align: center; color: #251F17; transition: transform 1s var(--ease-io); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.env-paper .k { font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8A7A62; }
.env-paper .a { font-family: var(--serif); font-size: 44px; font-weight: 500; margin-top: 10px; font-variant-numeric: lining-nums tabular-nums; }
.env-paper .l { font-family: var(--serif); font-size: 16px; color: #5C5040; margin-top: 6px; }
.env-front { inset: 0; z-index: 3; background: #F0E6D2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100 L46 52 M100 100 L54 52' stroke='%235A4628' stroke-opacity='.22' stroke-width='1' vector-effect='non-scaling-stroke' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat; clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.env-flap { top: 0; height: 128px; z-index: 1; transform-origin: 50% 0; transform: rotateX(180deg); transition: transform 1s var(--ease-io); backface-visibility: visible; }
.env-flap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #E8DCC4, #E1D2B6); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 8px 8px 0 0; }
.env.is-paper-in .env-paper { transform: translateY(0); }
.env.is-closed .env-flap { transform: rotateX(0deg); z-index: 5; }
.env-seal { position: absolute; z-index: 6; left: 50%; top: 124px; width: 86px; height: 86px; margin: -43px 0 0 -43px; opacity: 0; transform: scale(1.8); filter: drop-shadow(0 8px 14px rgba(60,10,12,.45)); }
.env.is-stamped .env-seal { animation: stamp .55s var(--ease) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-8deg); } 60% { opacity: 1; transform: scale(.94) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.env-stage.is-shake .env { animation: thud .35s var(--ease); }
@keyframes thud { 30% { transform: translateY(3px); } }
.sealed-msg { text-align: center; color: #F2ECE2; display: grid; gap: 10px; justify-items: center; margin-top: 8px; }
.sealed-msg h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; }
.sealed-msg p { color: rgba(242,236,226,.75); max-width: 40ch; }
.sealed-msg .acts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.sealed-msg .btn-line { border-color: rgba(242,236,226,.3); color: #F2ECE2; }
.sealed-msg .btn-line:hover { border-color: #F2ECE2; }
.sealed-msg .btn-light { background: #F2ECE2; color: #17140F; }
.fade-in { animation: fadeUp .7s var(--ease) both; }

/* ---------- My bids / envelopes ---------- */
.bids-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding: 28px 0 8px; }
.bid-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.bid-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.bid-row .media { width: 96px; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; background: var(--stone); }
.bid-row .media img { width: 100%; height: 100%; object-fit: cover; }
.bid-row h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.15; }
.bid-row .meta { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bid-row .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.bid-row .yb { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bid-row .ya { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.bid-list { display: grid; gap: 14px; padding: 28px 0 8px; }
.bid-seal-ico { width: 26px; height: 26px; }

/* Result envelopes */
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 28px 0 8px; }
.r-env { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.r-env .stage { position: relative; height: 270px; background: radial-gradient(120% 90% at 50% 0%, #2A231B 0%, #14110D 70%); display: grid; place-items: center; perspective: 1000px; overflow: hidden; }
.r-env .mini-env { position: relative; width: 230px; height: 150px; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.r-env .mini-env .b { position: absolute; inset: 0; background: #D9C7A6; border-radius: 6px; box-shadow: 0 24px 40px -12px rgba(0,0,0,.7); }
.r-env .mini-env .f { position: absolute; inset: 0; z-index: 3; border-radius: 6px; background: #F0E6D2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100 L46 54 M100 100 L54 54' stroke='%235A4628' stroke-opacity='.22' stroke-width='1' vector-effect='non-scaling-stroke' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.r-env .mini-env .fl { position: absolute; left: 0; right: 0; top: 0; height: 82px; z-index: 4; transform-origin: 50% 0; transition: transform .8s .25s var(--ease-io); }
.r-env .mini-env .fl::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #E8DCC4, #E1D2B6); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 6px 6px 0 0; }
.r-env .mini-env .p { position: absolute; left: 12px; right: 12px; top: 10px; height: 128px; z-index: 2; background: #FBF7EF; border-radius: 4px; transition: transform .9s .75s var(--ease); display: grid; place-items: center; text-align: center; padding: 12px; color: #251F17; }
.r-env .mini-env .p .k { font: 600 9px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8A7A62; }
.r-env .mini-env .p .v { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.05; margin-top: 6px; }
.r-env .mini-env .s { position: absolute; z-index: 6; left: 50%; top: 82px; width: 58px; height: 58px; margin: -29px 0 0 -29px; filter: drop-shadow(0 6px 10px rgba(60,10,12,.5)); }
.r-env .mini-env .s .half { position: absolute; inset: 0; transition: transform .7s var(--ease), opacity .7s; }
.r-env .mini-env .s .half.l { clip-path: polygon(0 0, 54% 0, 46% 40%, 56% 62%, 44% 100%, 0 100%); }
.r-env .mini-env .s .half.r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 44% 100%, 56% 62%, 46% 40%); }
.r-env.is-open .mini-env .s .half.l { transform: translate(-22px, 30px) rotate(-28deg); opacity: 0; }
.r-env.is-open .mini-env .s .half.r { transform: translate(22px, 34px) rotate(24deg); opacity: 0; }
.r-env.is-open .mini-env .fl { transform: rotateX(180deg); z-index: 1; }
.r-env.is-open .mini-env .p { transform: translateY(-78px); z-index: 2; }
.r-env.is-open .mini-env { transform: translateY(40px); }
.r-env .glow { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s .9s; background: radial-gradient(50% 50% at 50% 40%, rgba(207,169,111,.35), transparent 70%); pointer-events: none; }
.r-env.is-open.is-won .glow { opacity: 1; }
.r-env .info { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; }
.r-env .info h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.15; }
.r-env .info .meta { font-size: 13px; color: var(--muted); }
.r-env .outcome { display: none; gap: 10px; }
.r-env.is-revealed .outcome { display: grid; animation: fadeUp .6s var(--ease) both; }
.r-env.is-revealed .pre { display: none; }
.r-env .stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-env .stats div { display: grid; gap: 4px; }
.r-env .stats .k { font: 600 9.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.r-env .stats .v { font-family: var(--serif); font-size: 19px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Purchases & checkout ---------- */
.inv { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.inv + .inv { margin-top: 20px; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inv-head .t { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.inv-items { display: grid; }
.inv-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 24px; }
.inv-item + .inv-item { border-top: 1px solid var(--line); }
.inv-item .media { width: 64px; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; background: var(--stone); }
.inv-item .media img { width: 100%; height: 100%; object-fit: cover; }
.inv-item .n { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.2; }
.inv-item .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.inv-item .p { font-variant-numeric: lining-nums tabular-nums; font-weight: 500; }
.inv-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; background: var(--bg-2); flex-wrap: wrap; }
.inv-foot .tot { font-family: var(--serif); font-size: 26px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 22px 24px 24px; }
.timeline .st { position: relative; padding-top: 22px; font-size: 13px; color: var(--muted); }
.timeline .st::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.timeline .st::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.timeline .st.done { color: var(--ink-2); }
.timeline .st.done::before { background: var(--ok); }
.timeline .st.done::after { background: var(--ok); border-color: var(--ok); }
.timeline .st.now::after { background: var(--surface); border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.timeline .st b { display: block; color: var(--ink); font-weight: 500; font-size: 13.5px; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: 80px; }
.co-step { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.co-step + .co-step { margin-top: 14px; }
.co-step-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.co-step-head .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--muted); flex: none; }
.co-step-head .t { font-family: var(--serif); font-size: 24px; font-weight: 500; flex: 1; }
.co-step-head .sum { font-size: 13.5px; color: var(--muted); text-align: right; }
.co-step.is-done .co-step-head .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.co-step.is-active .co-step-head .n { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.co-step.is-locked { opacity: .55; }
.co-step-body { padding: 0 24px 26px; display: grid; gap: 22px; }
.opt-grid { display: grid; gap: 10px; }
.opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.opt:hover { border-color: var(--ink-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 2px; display: grid; place-items: center; transition: border-color .2s; }
.opt .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .2s var(--ease); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--bg); }
.opt:has(input:checked) .radio { border-color: var(--ink); }
.opt:has(input:checked) .radio::after { transform: scale(1); }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt .t { font-weight: 500; }
.opt .d { font-size: 13px; color: var(--muted); margin-top: 3px; }
.opt .p { font-weight: 500; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.addr { white-space: pre-line; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.addr b { color: var(--ink); font-weight: 500; }

/* Stripe-style payment element */
.pay-el { display: grid; gap: 14px; }
.pay-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-tab { display: grid; gap: 8px; justify-items: start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: left; transition: border-color .2s, box-shadow .2s, color .2s; }
.pay-tab svg { width: 22px; height: 22px; }
.pay-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); color: var(--ink); }
.card-field { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.card-field .rowf { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.card-field .rowf > * + * { border-left: 1px solid var(--line-2); }
.card-field input { height: 48px; border: 0; outline: none; background: transparent; padding: 0 14px; width: 100%; font-variant-numeric: lining-nums tabular-nums; }
.card-field .num-wrap { position: relative; display: flex; align-items: center; }
.card-field .brand { position: absolute; right: 12px; display: flex; gap: 4px; }
.card-field .brand span { height: 20px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line); font: 700 9px/18px var(--sans); letter-spacing: .03em; color: var(--ink-2); opacity: .4; transition: opacity .2s; }
.card-field .brand span.on { opacity: 1; border-color: var(--ink-2); }
.card-field:focus-within { border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.stripe-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.stripe-note svg { width: 14px; height: 14px; }
.wallet-btn { height: 52px; border-radius: 10px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 16px; }
[data-theme="dark"] .wallet-btn { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wallet-btn { background: #fff; color: #000; } }
.wallet-btn svg { width: 20px; height: 20px; }
.bank-box { padding: 16px 18px; border-radius: 10px; background: var(--bg-2); font-size: 14px; display: grid; gap: 8px; }
.bank-box .r { display: flex; justify-content: space-between; gap: 12px; }
.bank-box .r span:first-child { color: var(--muted); }
.bank-box .r span:last-child { font-variant-numeric: lining-nums tabular-nums; font-weight: 500; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.summary-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.summary-head .t { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.summary .inv-item { padding: 14px 22px; grid-template-columns: 52px 1fr auto; }
.summary .inv-item .media { width: 52px; }
.summary .breakdown { margin: 0; border-radius: 0; padding: 18px 22px 22px; }
.summary .secure { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.summary .secure svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

.processing { display: grid; place-items: center; gap: 18px; padding: 40px 28px; text-align: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bank-3ds { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: left; display: grid; gap: 12px; background: var(--bg); }
.bank-3ds .bk { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.bank-3ds .bk i { width: 28px; height: 28px; border-radius: 7px; background: #1D3A5F; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; }
.otp { display: flex; gap: 8px; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-family: var(--serif); border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); outline: none; }
.otp input:focus { border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }

.confirm-hero { text-align: center; padding: clamp(40px, 6vw, 72px) 0 32px; display: grid; justify-items: center; gap: 16px; }
.confirm-hero .tick { width: 72px; height: 72px; }
.confirm-hero .tick circle { fill: none; stroke: var(--ok); stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1s var(--ease) forwards; }
.confirm-hero .tick path { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: 80px; }
.acct-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.acct-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.acct-nav a svg { width: 18px; height: 18px; color: var(--muted); }
.acct-nav a:hover { background: var(--surface-2); color: var(--ink); }
.acct-nav a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.acct-nav a[aria-current="true"] svg { color: var(--wax); }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head .t { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.panel-body { padding: 22px 24px; display: grid; gap: 18px; }
.member-card {
  position: relative; border-radius: 18px; padding: 26px 28px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #3A2A1E 0%, #17120D 55%), #17120D;
  color: #F2ECE2; display: grid; gap: 26px; min-height: 210px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.member-card::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px); pointer-events: none; }
.member-card .top { display: flex; justify-content: space-between; align-items: start; }
.member-card .pad { font-family: var(--serif); font-size: 64px; line-height: .9; font-weight: 500; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.member-card .lbl { font: 600 10px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(242,236,226,.55); }
.member-card .nm { font-family: var(--serif); font-size: 24px; }
.member-card .bot { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.member-card .seal-sm { width: 54px; height: 54px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 14px 24px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; }
.setting + .setting { border-top: 1px solid var(--line); }
.setting .t { font-weight: 500; font-size: 14.5px; }
.setting .d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.saved-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.card-art { width: 52px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #1D2A44, #34507D); display: grid; place-items: end start; padding: 4px 6px; color: #fff; font: 700 8px/1 var(--sans); letter-spacing: .06em; }
.invite-code { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; font-family: var(--serif); font-size: 22px; letter-spacing: .18em; }

/* ---------- Gate (invitation) ---------- */
.gate { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }
.gate-art { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #0E0C09; color: #F2ECE2; display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(28px, 4vw, 56px); isolation: isolate; }
.gate-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 16s var(--ease) forwards; transform: scale(1.06); }
.gate-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,12,9,.65) 0%, rgba(14,12,9,.15) 30%, rgba(14,12,9,.55) 55%, rgba(14,12,9,.95) 82%); }
.gate-art .brand-sub { color: rgba(242,236,226,.6); }
.gate-quote { max-width: 30ch; }
.gate-quote p { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; font-weight: 500; }
.gate-quote p em { font-weight: 400; }
.gate-quote .by { margin-top: 18px; font-size: 13px; color: rgba(242,236,226,.6); }
.gate-main { display: flex; flex-direction: column; padding: 32px clamp(24px, 5vw, 80px); }
.gate-top { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.gate-card { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; display: grid; gap: 28px; }
.gate-card .h1 { font-size: clamp(38px, 3.6vw, 52px); }
.seg { display: flex; gap: 8px; }
.seg input { width: 100%; min-width: 0; aspect-ratio: 5/6; max-width: 62px; text-align: center; font-family: var(--serif); font-size: 30px; font-weight: 500; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.seg input:focus { border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.seg.is-ok input { border-color: var(--ok); }
.seg.is-error input { border-color: var(--wax); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.seg .dash { align-self: center; color: var(--muted); }
.inviter { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: fadeUp .5s var(--ease) both; }
.inviter .ph { width: 46px; height: 46px; border-radius: 50%; background: var(--brass-soft); color: var(--brass); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 19px; flex: none; }
.gate-steps { display: flex; gap: 8px; }
.gate-steps i { height: 3px; flex: 1; border-radius: 3px; background: var(--line-2); transition: background-color .4s; }
.gate-steps i.on { background: var(--ink); }
.gate-foot { font-size: 12.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.paddle-reveal { text-align: center; display: grid; gap: 14px; justify-items: center; }
.paddle-reveal .pn { font-family: var(--serif); font-size: 112px; line-height: .9; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; }
.paddle-reveal .seal-lg { width: 96px; height: 96px; animation: stamp .6s .1s var(--ease) both; }

/* ---------- Search palette ---------- */
.palette { width: min(680px, 100%); align-self: start; margin-top: 10vh; padding: 0; }
.palette-input { display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.palette-input input { flex: 1; height: 64px; border: 0; outline: none; background: transparent; font-size: 18px; }
.palette-list { max-height: 56vh; overflow-y: auto; padding: 8px; }
.palette-list .grp { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 8px; }
.palette-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 10px; }
.palette-item[aria-selected="true"], .palette-item:hover { background: var(--surface-2); }
.palette-item img { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--stone); }
.palette-item .n { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.15; }
.palette-item .s { font-size: 12.5px; color: var(--muted); }
.palette-item .e { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .palette { margin-top: 0; align-self: end; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #1C1813; color: #F2ECE2; box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .4s var(--ease) both; }
.toast.is-out { animation: toastOut .3s var(--ease) both; }
.toast svg { width: 18px; height: 18px; flex: none; color: #CFA96F; }
.toast a, .toast button { margin-left: auto; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: #0E0C09; display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn .3s var(--ease) both; color: #F2ECE2; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lightbox .lb-top .icon-btn { color: #F2ECE2; }
.lightbox .lb-top .icon-btn:hover { background: rgba(255,255,255,.1); }
.lightbox .lb-stage { position: relative; overflow: hidden; display: grid; place-items: center; cursor: grab; touch-action: none; }
.lightbox .lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s var(--ease); user-select: none; -webkit-user-drag: none; }
.lightbox .lb-thumbs { display: flex; justify-content: center; gap: 10px; padding: 16px; }
.lightbox .lb-thumbs button { width: 52px; height: 64px; border-radius: 6px; overflow: hidden; opacity: .5; outline: 1px solid transparent; outline-offset: 2px; }
.lightbox .lb-thumbs button[aria-current="true"] { opacity: 1; outline-color: #F2ECE2; }
.lightbox .lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Seal SVG ---------- */
.seal svg, svg.seal { display: block; overflow: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .lot-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .desk { grid-template-columns: 1fr 1fr; }
  .desk > *:nth-child(3) { border-left: 0; }
  .desk > *:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1080px) {
  .lot-layout { grid-template-columns: 1fr; }
  .gallery { position: relative; top: 0; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: relative; top: 0; order: -1; }
  .ritual-rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sale-grid { grid-template-columns: 1fr; }
  .sale-grid > :first-child { grid-row: auto; min-height: 460px; }
  .sale-card { min-height: 280px; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip a { border-right: 0; margin-right: 0; border-bottom: 1px solid rgba(242,236,226,.1); padding: 14px 0; }
  .hero-strip a:last-child { border-bottom: 0; }
  .ritual-grid { grid-template-columns: 1fr; }
  .ritual-step, .ritual-step + .ritual-step { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .ritual-step:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .account { grid-template-columns: minmax(0, 1fr); }
  .acct-nav { position: relative; top: 0; display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav a { white-space: nowrap; flex: none; border: 1px solid var(--line); }
  .gate { grid-template-columns: 1fr; }
  .gate-art { position: relative; height: auto; }
  .gate-art { min-height: 38vh; padding: 24px var(--gutter); }
  .gate-quote p { font-size: 26px; }
  .gate-main { padding: 8px var(--gutter) 32px; }
  .gate-top { display: none; }
  .gate-card { padding: 28px 0; }
}
@media (max-width: 760px) {
  .lot-grid, .lot-grid.cols-4 { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .lot-card h3 { font-size: 18px; }
  .lot-card .foot { flex-direction: column; gap: 4px; align-items: flex-start; }
  .lot-card .sealed-flag { font-size: 11px; }
  .lot-card .sealed-flag span { display: none; }
  .lot-card .sealed-flag { padding: 4px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .desk { grid-template-columns: 1fr; }
  .desk > * { border-left: 0 !important; border-top: 1px solid var(--line); padding: 20px; }
  .desk > *:first-child { border-top: 0; }
  .desk-item { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
  .desk-item .big { font-size: 34px; grid-row: span 2; }
  .desk-item .act { grid-column: 2; margin-top: 0; }
  .gallery { grid-template-columns: 1fr; margin: 0 calc(var(--gutter) * -1); }
  .gallery-thumbs { display: none; }
  .gallery-main { border-radius: 0; cursor: default; }
  .gallery-hint { display: none; }
  .gallery-dots { display: flex; gap: 6px; position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); }
  .gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(23,20,15,.25); transition: background-color .2s, width .25s; }
  .gallery-dots i.on { background: #17140F; width: 18px; border-radius: 3px; }
  .bid-row { grid-template-columns: 72px 1fr; gap: 14px; }
  .bid-row .media { width: 72px; }
  .bid-row .right { grid-column: 1 / -1; grid-template-columns: 1fr auto; text-align: left; align-items: center; justify-items: stretch; padding-top: 12px; border-top: 1px solid var(--line); }
  .bid-row .right .yb { grid-column: 1; }
  .bid-row .right .ya { grid-column: 1; font-size: 24px; }
  .bid-row .right .btn { grid-column: 2; grid-row: 1 / span 2; }
  .cond-row { grid-template-columns: 1fr auto; }
  .cond-row .note { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .mobile-bidbar:not([hidden]) {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 54;
    padding: 12px var(--gutter);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(120%); transition: transform .35s var(--ease);
  }
  .mobile-bidbar.is-shown { transform: none; }
  .mobile-bidbar .k { font-size: 11.5px; color: var(--muted); }
  .mobile-bidbar .v { font-family: var(--serif); font-size: 19px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 12px; }
  .addr-grid { grid-template-columns: 1fr; }
  .pay-tabs { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .sale-facts > div { padding-right: 20px; margin-right: 20px; }
  .sale-facts .v { font-size: 20px; }
}
@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
  .bid-box { padding: 18px; }
  .amount input { font-size: 30px; height: 62px; }
  .letter { padding: 34px 22px 26px; }
  .co-step-head, .co-step-body { padding-left: 18px; padding-right: 18px; }
  .co-step-head .sum { display: none; }
  .inv-head, .inv-item, .inv-foot { padding-left: 18px; padding-right: 18px; }
  .ritual-rules { grid-template-columns: 1fr; }
  .seg { gap: 6px; }
  .seg input { font-size: 24px; border-radius: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .paddle-reveal .pn { font-size: 88px; }
  .cd-boxes > span { min-width: 40px; }
  .lot-estimate { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Late additions ---------- */
.sale-hero { margin-top: calc(var(--header-h) * -1); }
.sale-hero .wrap { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); }
@media (max-width: 760px) { .hide-sm { display: none !important; } }

.overlay.is-ceremony .scrim { background: rgba(12,10,8,.9); transition: background-color .6s; }
.r-env.is-won .mini-env .p .v { color: #7B1E22; }

/* Mobile hero: image above, copy on solid ground */
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: stretch; }
  .hero-media { bottom: auto; height: 470px; }
  .hero-media img { object-position: 80% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(14,12,9,.5) 0, rgba(14,12,9,0) 120px); }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,9,0) 35%, rgba(14,12,9,.55) 62%, #0E0C09 100%); }
  .hero-inner { padding-top: calc(var(--header-h) + 230px); }
  .hero .lede { margin-top: 18px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-strip { margin-top: 36px; }
}

/* ==========================================================================
   Round 1 refinements — subtraction & scale
   ========================================================================== */
:root { --r-sm: 2px; --r: 3px; --r-lg: 4px; --header-h: 76px; }
@media (max-width: 900px) { :root { --header-h: 60px; } }
.btn, .chip, .toolbar .select, .search-trigger { border-radius: 3px; }
.btn-wax { background: #7B1E22; color: #FBF4EE; }
.btn-wax:hover { background: #8E262B; }
[data-theme="dark"] .btn-wax { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px -12px rgba(0,0,0,.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-wax { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px -12px rgba(0,0,0,.8); } }
.modal { border-radius: 6px; }
.letter { border-radius: 4px; }
@media (max-width: 640px) { .modal { border-radius: 14px 14px 0 0; } .letter { border-radius: 14px 14px 0 0; } }

/* Header */
.brand-word { letter-spacing: .18em; }
.header-tools .avatar { width: 34px; height: 34px; }
.paddle { padding: 0; border: 0; margin-left: 4px; height: auto; }
.site-header.is-over-hero:not(.is-scrolled) .paddle { border: 0; }
.dropdown-head .pad { font-family: var(--serif); font-size: 30px; line-height: 1; margin-top: 10px; }
.kbd-hint { font: 500 10.5px/1 var(--sans); padding: 3px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); margin-left: 2px; }

/* Hero */
.hero .display { font-size: clamp(64px, 7.2vw, 112px); line-height: .96; }
.hero .lede { font-size: 17px; max-width: 40ch; }
.hero-media img { animation: heroDrift 24s linear forwards; transform: none; object-position: 70% 50%; }
@keyframes heroDrift { from { object-position: 72% 50%; } to { object-position: 62% 50%; } }
.hero-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 24px; color: #F2ECE2; padding-bottom: 4px; border-bottom: 1px solid rgba(242,236,226,.45); transition: border-color .3s, gap .3s var(--ease); }
.hero-link:hover { border-color: #F2ECE2; gap: 18px; }
.hero-link svg { width: 20px; height: 20px; }
.hero-cta { align-items: center; gap: 28px; }
.hero-cta .quiet { font-size: 14px; color: rgba(242,236,226,.7); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(242,236,226,.3); }
.hero-cta .quiet:hover { color: #F2ECE2; }
.hero-next { margin-top: clamp(40px, 7vh, 80px); padding-top: 18px; border-top: 1px solid rgba(242,236,226,.16); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13.5px; color: rgba(242,236,226,.62); animation: fadeUp 1s .7s var(--ease) both; }
.hero-next a { display: inline-flex; gap: 8px; align-items: center; }
.hero-next a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hero-next b { color: #F2ECE2; font-weight: 500; }
.hero-next .cd { color: #F2ECE2; }
@media (max-width: 760px) {
  .hero .display { font-size: 56px; }
  .hero-media { height: 520px; }
  .hero-media picture, .hero-media picture img { width: 100%; height: 100%; display: block; }
  .hero-media img { object-position: 50% 0%; animation: none; }
  .hero-inner { padding-top: calc(var(--header-h) + 290px); }
  .hero-next { flex-direction: column; gap: 8px; }
}

/* Desk → one typographic line */
.desk-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; padding: 30px 0 28px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.3; }
.desk-line .greet { color: var(--ink); }
.desk-line a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color .2s, color .2s; }
.desk-line a:hover { color: var(--ink); text-decoration-color: currentColor; }
.desk-line a.is-wax { color: var(--wax); text-decoration-color: color-mix(in srgb, var(--wax) 45%, transparent); }
.desk-line .sep { color: var(--line-2); }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tight { padding: clamp(56px, 6vw, 88px) 0 0; }

/* Lot cards — imagery without containers */
.lot-card .media { border-radius: 2px; }
.lot-card .lot-no { display: none; }
.lot-card .save { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: .6; color: #2B251D; width: 40px; height: 40px; top: 6px; right: 6px; transition: opacity .2s, transform .2s var(--ease), color .2s; }
.lot-card .save[aria-pressed="true"] { opacity: 1; color: #7B1E22; }
@media (hover: hover) { .lot-card .save:not([aria-pressed="true"]) { opacity: 0; } .lot-card:hover .save, .lot-card .save:focus-visible { opacity: .75; } }
.lot-card .cap { font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.lot-card .sealed-flag { padding: 4px 10px 4px 4px; border-radius: 999px; }
.lot-card .sealed-flag svg { width: 20px; height: 20px; }
.cat-tile .media { border-radius: 2px; }
.cat-grid { gap: 24px; }
.sale-card { border-radius: 2px; }
.bid-row, .inv, .panel, .co-step, .summary, .r-env, .bid-box, .saved-card, .opt, .pay-tab, .card-field, .input, .select, .textarea, .amount, .breakdown, .bank-box, .inviter, .invite-code, .acct-nav a { border-radius: 4px; }
.member-card { border-radius: 6px; }
.gallery-main, .gallery-thumbs button { border-radius: 2px; }
.envelope-card { border-radius: 4px; }

/* Sale hero — split, product unobstructed */
.sale-hero { display: grid; grid-template-columns: 1fr 1fr; background: #14110D; }
.sale-hero::before { display: none; }
.sale-hero .covers { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; display: block; opacity: 1; background: #E7E0D4; }
.sale-hero .covers img { width: 100%; height: 100%; object-fit: cover; }
.sale-hero .covers img + img { display: none; }
.sale-hero .wrap { grid-column: 1; grid-row: 1; max-width: none; margin: 0; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: clamp(32px, 4vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.sale-hero .display { font-size: clamp(56px, 6vw, 96px) !important; }
.sale-hero .lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sale-facts .v { font-size: 26px; }
.sale-facts > div { padding-right: 24px; margin-right: 24px; }
@media (max-width: 900px) {
  .sale-hero { grid-template-columns: 1fr; }
  .sale-hero .covers { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; }
  .sale-hero .wrap { grid-row: 2; padding: 32px var(--gutter) 36px; }
  .sale-hero { margin-top: 0; }
}

/* Lot page bid panel — hairlines, not a box */
.bid-box { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; padding: 24px 0 0; }
.bid-box .btn-wax { border-radius: 3px; }
.compass-scale button { font: inherit; color: inherit; padding: 4px 0; border-bottom: 1px dotted var(--line-2); }
.compass-scale button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.bd-sum { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.bd-sum::-webkit-details-marker { display: none; }
.bd-sum b { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); }
.bd-sum .lnk { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); margin-left: 10px; }
details[open] > .bd-sum .lnk::after { content: " \2191"; }
.bd-details .breakdown { margin-top: 12px; }
.rules { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.rules summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 13.5px; font-weight: 500; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary svg { width: 16px; height: 16px; color: var(--brass); }
.rules summary .chev { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease); }
.rules[open] summary .chev { transform: rotate(180deg); }
.rules ul { padding: 0 16px 16px 42px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); list-style: disc; }
.limit-note { font-size: 12.5px; color: var(--muted); }
.verify-cta { display: grid; gap: 12px; padding: 18px; border-radius: 4px; background: var(--brass-soft); }
.verify-cta .t { font-weight: 600; display: flex; gap: 10px; align-items: center; }
.verify-cta svg { width: 18px; height: 18px; color: var(--brass); }

/* Seal ceremony polish */
.press-btn { width: 148px; height: 148px; }
.press-btn .wax { width: 110px; height: 110px; }
.press-btn.is-stamped .wax { animation: squash .22s var(--ease); }
@keyframes squash { 50% { transform: scale(.9); } }
.letter .binding { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: #4A3F31; margin-top: 20px; }
.letter .warn { margin-top: 16px; padding: 12px 14px; border-radius: 4px; background: rgba(123,30,34,.08); color: #6A1A1E; font-size: 13.5px; display: grid; gap: 10px; }
.letter .warn .row { flex-wrap: wrap; }
.env.is-stamped .env-seal { animation: stamp .7s var(--ease) forwards; }
.env-seal::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(60,10,12,.25); }
.commit { font: 500 11.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; color: #8A7A62; word-break: break-all; }

/* Results on a single dark field */
.results-field { margin-top: 28px; padding: clamp(20px, 3vw, 36px); background: #14110D; border-radius: 4px; color: #F2ECE2; }
.results-field .result-grid { padding: 0; }
.results-field .policy { font-size: 13px; color: rgba(242,236,226,.6); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.results-field .policy svg { width: 16px; height: 16px; color: #CFA96F; flex: none; }
.r-env { background: #1B1712; border-color: rgba(242,236,226,.1); color: #F2ECE2; --ink: #F2ECE2; --ink-2: #CEC5B5; --muted: #A39887; --line: rgba(242,236,226,.12); --line-2: rgba(242,236,226,.24); --surface-2: #26201A; }
.r-env .stage { background: radial-gradient(120% 90% at 50% 0%, #2A231B 0%, #14110D 75%); cursor: default; }
.r-env:not(.is-open) .stage { cursor: pointer; }
.r-env:not(.is-open) .stage:hover .mini-env { transform: translateY(-6px) rotate(-2deg); }
.r-env:not(.is-open) .stage:hover .s { filter: drop-shadow(0 0 0 #CFA96F) drop-shadow(0 6px 10px rgba(60,10,12,.5)); }
.r-env .hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(242,236,226,.7); pointer-events: none; transition: opacity .3s; }
.r-env.is-open .hint { opacity: 0; }
.r-env .btn-line { border-color: rgba(242,236,226,.3); color: #F2ECE2; }
.r-env .btn-primary { background: #F2ECE2; color: #17140F; }
.r-env .badge-warn { background: rgba(217,160,85,.14); color: #E2B06A; }
.r-env.is-reserve .mini-env .p .v, .r-env.is-withdrawn .mini-env .p .v { color: #6A5A44; font-size: 22px; }
.offer { padding: 12px 14px; border-radius: 4px; background: rgba(207,169,111,.1); border: 1px solid rgba(207,169,111,.25); font-size: 13.5px; display: grid; gap: 10px; }

/* Checkout */
.opt:has(input:checked) { box-shadow: none; border-color: var(--ink); }
.summary .inv-item { grid-template-columns: 72px 1fr auto; }
.summary .inv-item .media { width: 72px; aspect-ratio: 4 / 5; }
.pay-error { padding: 12px 14px; border-radius: 4px; background: var(--wax-soft); color: var(--wax); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.pay-error svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Footer */
.footer-base .pay-marks .pay-mark { display: none; }

/* Gate */
@media (max-width: 900px) { .gate-art { min-height: 48vh; } .gate-art img { object-position: 50% 30%; } }

/* Specialist portraits */
.ph.has-img { padding: 0; overflow: hidden; background: var(--stone); }
.ph.has-img img { width: 100%; height: 100%; object-fit: cover; }
.specialist .ph { width: 56px; height: 56px; }

/* VAT invoice */
.invoice-doc { max-width: 860px; margin: 0 auto 80px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-sm); }
.invoice-doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 28px; }
.invoice-doc th { text-align: left; font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.invoice-doc td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice-doc td.n, .invoice-doc th.n { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.invoice-doc tfoot td { border-bottom: 0; padding-top: 10px; padding-bottom: 6px; }
.invoice-doc tfoot tr.grand td { font-family: var(--serif); font-size: 24px; font-weight: 600; border-top: 1px solid var(--line-2); padding-top: 16px; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.invoice-meta { display: grid; grid-template-columns: auto auto; gap: 6px 20px; font-size: 13.5px; }
.invoice-meta dt { color: var(--muted); }
.invoice-meta dd { margin: 0; text-align: right; }
@media print { .site-header, .site-footer, .tabbar, .no-print { display: none !important; } .invoice-doc { border: 0; box-shadow: none; } body { background: #fff; } }
@media (max-width: 600px) { .invoice-doc table .hide-xs { display: none; } }
.ritual-step .ill { height: 88px; }
.ritual-step .ill svg { height: 80px; }
.ritual-grid { margin-top: 36px; }
.ritual-step { padding-top: 26px; }
.ritual-rules { margin-top: 36px; }
.dropdown { max-width: calc(100vw - 24px); overflow-wrap: anywhere; }
.dropdown-head .row-between { align-items: flex-start; }
.dropdown-head .badge { flex: none; }
.kv dd { overflow-wrap: anywhere; }
.specialist .r, .specialist .n { overflow-wrap: anywhere; }
.specialist > div:not(.ph) { min-width: 0; flex: 1; }
.sale-hero .sale-facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 18px 48px; padding-top: 22px; }
.sale-hero .sale-facts > div { padding: 0; margin: 0; border: 0; }
