/* ============================================================
   CASA ALMEIDA — Leilão N.º 12 · Modernistas Ibéricos
   O CATÁLOGO É O TEATRO — lot numbers as protagonists,
   the red dot as the single accent.
   Mobile-first: base = 390px; desktop is the enhancement.
   ============================================================ */

:root {
  /* palette — closed set (brief) + derived alphas of ink only */
  --gesso: #F6F3EC;
  --ink: #141210;
  --estimate: #8A8578;
  --reddot: #C22E22;
  --ink-72: rgba(20, 18, 16, 0.72);
  --ink-56: rgba(20, 18, 16, 0.56);
  --line: rgba(20, 18, 16, 0.22);
  --line-dim: rgba(20, 18, 16, 0.1);
  --wash: rgba(20, 18, 16, 0.035);      /* hover wash — ink at 3.5% */

  /* type */
  --font-display: 'Erode', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* rhythm */
  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
  --section-gap: clamp(6rem, 14vh, 11rem);
  --measure: 62ch;

  /* motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.is-locked { overflow: hidden; }
body {
  background: var(--gesso);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--reddot); color: var(--gesso); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* scrollbar — a hairline, not a decoration */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gesso); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--gesso); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-56); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- shared atoms ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-56);
}

/* underline sweep for inline links */
.masthead-nav a, .footer-col a, .bid-note a, .lot-more, .text-cta, .crumb a {
  position: relative;
}
.masthead-nav a::after, .footer-col a::after, .bid-note a::after,
.lot-more::after, .text-cta::after, .crumb a::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.masthead-nav a:hover::after, .footer-col a:hover::after, .bid-note a:hover::after,
.lot-more:hover::after, .text-cta:hover::after, .crumb a:hover::after {
  transform: scaleX(1); transform-origin: left;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem var(--pad-x);
  transition: padding 0.5s var(--ease-soft), background 0.5s var(--ease-soft),
              box-shadow 0.5s var(--ease-soft);
}
/* the veil (z 50) must not bury the burger: the masthead itself rises
   above the veil while the menu is open — its own z is a stacking
   context, so a z-60 child alone would still render beneath. */
html.menu-open .masthead { z-index: 60; }
html.menu-open .masthead.is-scrolled { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.masthead.is-scrolled {
  padding-block: 0.6rem;
  background: rgba(246, 243, 236, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dim);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.masthead-nav { display: none; }
.masthead-count {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-72);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.masthead-count-date { color: var(--estimate); }

/* THE red dot of the home page — one, quiet, alive */
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--reddot);
  animation: live-breathe 4s var(--ease-soft) infinite;
}
@keyframes live-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; margin-right: -10px; padding: 10px;
  z-index: 60; position: relative;
}
.burger span {
  display: block; width: 100%; height: 1px; background: var(--ink);
  transition: transform 0.45s var(--ease-out);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* mobile veil menu */
.veil {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(246, 243, 236, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-soft), visibility 0s 0.5s;
}
html.menu-open .veil { opacity: 1; visibility: visible; transition-delay: 0s; }
.veil nav { display: grid; gap: 0.4rem; text-align: center; }
.veil a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 450;
  line-height: 1.35;
  display: inline-flex; align-items: baseline; gap: 0.75rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease-soft), transform 0.6s var(--ease-out), color 0.3s;
}
.veil a small {
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.1em; color: var(--estimate);
}
.veil a:hover { color: var(--ink-56); }
html.menu-open .veil a { opacity: 1; transform: none; }
html.menu-open .veil a:nth-child(1) { transition-delay: 0.08s; }
html.menu-open .veil a:nth-child(2) { transition-delay: 0.14s; }
html.menu-open .veil a:nth-child(3) { transition-delay: 0.2s; }
html.menu-open .veil a:nth-child(4) { transition-delay: 0.26s; }
html.menu-open .veil a:nth-child(5) { transition-delay: 0.32s; }
html.menu-open .veil a:nth-child(6) { transition-delay: 0.38s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem var(--pad-x) 4.5rem;
  position: relative;
}
.hero .eyebrow { margin-bottom: clamp(1.6rem, 4vh, 3rem); }
.hero-title { display: block; font-weight: 400; }
.hero-no {
  display: block;
  font-size: clamp(6.5rem, 30vw, 20rem);
  line-height: 0.9;
  font-weight: 380;
  font-variation-settings: "wght" 380;
  letter-spacing: -0.02em;
}
.hero-sub {
  display: block;
  margin-top: clamp(1rem, 2.5vh, 1.8rem);
  font-size: clamp(1.6rem, 5.4vw, 3.2rem);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.hero-en {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--estimate);
}
.hero-date {
  margin-top: clamp(1.8rem, 4vh, 3rem);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-72);
}

/* the letterpress counter — composed, never urgent */
.counter {
  margin-top: clamp(1.6rem, 3.5vh, 2.6rem);
  display: flex;
  border: 1px solid var(--line);
}
.counter-cell {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(0.9rem, 2.4vw, 1.4rem) clamp(1.1rem, 4vw, 2.4rem);
}
.counter-cell + .counter-cell { border-left: 1px solid var(--line); }
.counter-num {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(2.1rem, 7.5vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65); /* letterpress deboss on gesso */
}
.counter-lab {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--estimate);
  white-space: nowrap;
}
@media (min-width: 720px) {
  .counter-lab { letter-spacing: 0.22em; }
}
.counter-note {
  margin-top: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--estimate);
}
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--estimate);
  animation: scroll-sink 3.2s var(--ease-soft) infinite;
}
@keyframes scroll-sink {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.9; }
  50% { transform: translate(-50%, 6px); opacity: 0.5; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  padding: var(--section-gap) var(--pad-x) 0;
  max-width: 86rem;
  margin: 0 auto;
}
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.4rem, 6vh, 4rem);
}
.section-no { font-size: 0.6875rem; letter-spacing: 0.2em; color: var(--estimate); }
.section-title {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.section-en {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--estimate);
  margin-left: auto;
}
.section-intro {
  max-width: var(--measure);
  color: var(--ink-72);
  margin-bottom: clamp(2.4rem, 6vh, 4rem);
}

/* plates — photographic interludes */
.plate {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(2.4rem, 6vh, 4rem);
}
.plate.ratio-21x9 { aspect-ratio: 16 / 10; }
.plate.ratio-16x9 { aspect-ratio: 4 / 3; }
.plate img { height: 114%; will-change: transform; }
.plate figcaption {
  position: absolute; left: 1rem; bottom: 0.9rem;
  font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(246, 243, 236, 0.92);
  text-shadow: 0 1px 8px rgba(20, 18, 16, 0.5);
}

/* ============================================================
   01 · THE LETTER
   ============================================================ */
.letter { max-width: 44rem; margin: 0 auto; }
.letter-lead {
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 450;
  line-height: 1.45;
  margin-bottom: 1.6rem;
}
.letter p + p { margin-top: 1.15rem; }
.letter-en {
  color: var(--estimate);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--line-dim);
  padding-top: 1.15rem;
}
.letter-sig {
  margin-top: 2.2rem;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
}
.letter-sig span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--estimate);
  margin-top: 0.35rem;
}

/* ============================================================
   02 · THE LOT PARADE
   ============================================================ */

/* typographic rows */
.lot-list { border-top: 1px solid var(--line-dim); }
.lot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "no no" "body body" "est est";
  gap: 0.15rem 1rem;
  padding: 1.15rem 0.35rem;
  border-bottom: 1px solid var(--line-dim);
  transition: background 0.35s var(--ease-soft);
}
.lot-row:hover { background: var(--wash); }
.row-no {
  grid-area: no;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-56);
}
.row-body { grid-area: body; }
.row-body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
}
.row-dates {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--estimate);
  margin-left: 0.4rem;
}
.row-body p { color: var(--ink-72); font-size: 0.95rem; line-height: 1.55; }
.row-est {
  grid-area: est;
  font-variant-numeric: tabular-nums;
  color: var(--ink-72);
  margin-top: 0.3rem;
}

/* produced features — the protagonists */
.lot-feature {
  position: relative;
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(3.5rem, 9vh, 7rem);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* marginalia — a specialist's pencil note in the catalogue margin */
.lot-margin {
  display: none;
  position: absolute; top: 0; bottom: 0;
  right: calc(50% + 16.4rem);           /* just outside a 30rem-wide artwork */
  align-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--estimate);
  white-space: nowrap;
}
.lot-feature:has(.ratio-3x4) .lot-margin { right: calc(50% + 14.4rem); }
.lot-no {
  font-size: clamp(3.55rem, 14.5vw, 10.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: -0.185em;         /* the artwork rises into the number's feet */
  position: relative; z-index: 0;
  user-select: none;
}
.lot-no-ghost {
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  margin-bottom: 0.2em;            /* nothing rises into a withdrawn number */
}
.lot-art {
  position: relative; z-index: 1;
  width: min(100%, 30rem);
  overflow: hidden;
  background: var(--wash);
  box-shadow: 0 30px 70px -30px rgba(20, 18, 16, 0.45);
}
.lot-art.ratio-4x5 { aspect-ratio: 4 / 5; }
.lot-art.ratio-3x4 { aspect-ratio: 3 / 4; width: min(100%, 26rem); }
.lot-art img { transition: transform 1.2s var(--ease-out); }
.lot-art-link { display: block; }
.lot-art-link:hover img, .lot-art-link:focus-visible img { transform: scale(1.025); }
.lot-art-cue {
  position: absolute; right: 0.9rem; bottom: 0.8rem;
  font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(246, 243, 236, 0.95);
  text-shadow: 0 1px 8px rgba(20, 18, 16, 0.6);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease-soft), transform 0.5s var(--ease-out);
}
.lot-art-link:hover .lot-art-cue, .lot-art-link:focus-visible .lot-art-cue {
  opacity: 1; transform: none;
}
.lot-caption { margin-top: clamp(1.6rem, 4vh, 2.4rem); max-width: 34rem; }
.lot-artist { font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 500; line-height: 1.3; }
.lot-artist span {
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.08em; color: var(--estimate);
  margin-left: 0.45rem;
}
.lot-title { font-size: 1.05rem; color: var(--ink-72); margin-top: 0.2rem; }
.lot-specs {
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--estimate);
  margin-top: 0.55rem;
}

/* the discretion pattern — estimate reveals on hover / tap / focus */
.estimate {
  margin-top: 1.2rem;
  display: inline-grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--line-dim);
  transition: border-color 0.4s var(--ease-soft);
  min-width: 15.5rem;
}
.estimate:hover, .estimate:focus-visible, .estimate.is-open { border-color: var(--line); }
.est-label {
  font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--estimate);
}
.est-mask, .est-value {
  grid-area: 2 / 1;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.45s var(--ease-soft);
}
.est-mask { color: var(--estimate); opacity: 1; }
.est-value { opacity: 0; }
.estimate:hover .est-mask, .estimate:focus-visible .est-mask, .estimate.is-open .est-mask { opacity: 0; }
.estimate:hover .est-value, .estimate:focus-visible .est-value, .estimate.is-open .est-value { opacity: 1; }

.lot-more {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-72);
}

/* typographic features (withdrawn / documents) */
.lot-feature-typo .lot-no { margin-bottom: 0.18em; } /* nothing rises into a typographic lot */
.lot-feature-typo .lot-typo-body { max-width: 36rem; }
.lot-typo-body h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 500; line-height: 1.4; }
.struck { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-56); }
.lot-typo-flag {
  margin-top: 0.7rem;
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--estimate);
}
.lot-typo-copy { margin-top: 1rem; color: var(--ink-72); font-size: 0.98rem; }
.lot-feature-typo .row-est { margin-top: 1rem; display: block; }

.catalogo-note {
  text-align: center;
  padding: clamp(2rem, 5vh, 3rem) 0 0;
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--estimate);
}

/* ============================================================
   03 · VIEWING
   ============================================================ */
.viewing { display: grid; gap: 2.4rem; }
.viewing-table { width: 100%; border-collapse: collapse; }
.viewing-table td {
  padding: 0.85rem 0.35rem;
  border-bottom: 1px solid var(--line-dim);
  font-size: 0.95rem;
}
.viewing-table td.mono { font-size: 0.8125rem; color: var(--ink-72); white-space: nowrap; }
.viewing-table td:first-child { width: 5.5rem; letter-spacing: 0.14em; text-transform: uppercase; }
.viewing-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.viewing-note p { max-width: 46ch; color: var(--ink-72); }
.viewing-note-en {
  margin-top: 0.8rem; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--estimate);
}
.text-cta {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}
.text-cta::after { bottom: -1px; }

/* ============================================================
   04 · HOW TO BID
   ============================================================ */
.statement {
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 450;
  line-height: 1.25;
  max-width: 24ch;
}
.statement em { font-style: normal; color: var(--ink-56); }
.statement-en {
  margin-top: 0.9rem;
  margin-bottom: clamp(2.4rem, 6vh, 4rem);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--estimate);
}
.bid-ways { display: grid; gap: 2.6rem; }
.bid-way { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.bid-no { font-size: 0.8125rem; letter-spacing: 0.2em; color: var(--ink-56); }
.bid-way h3 { font-size: 1.35rem; font-weight: 500; margin-top: 0.5rem; }
.bid-way p { color: var(--ink-72); font-size: 0.98rem; margin-top: 0.55rem; max-width: 38ch; }
.bid-way .bid-en {
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--estimate); margin-top: 0.8rem;
}
.bid-note {
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dim);
  font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--ink-72);
}

/* ============================================================
   05 · THE HOUSE
   ============================================================ */
.house { display: grid; gap: 2.6rem; }
.house-gen { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.house-year { font-size: 0.8125rem; letter-spacing: 0.24em; color: var(--ink-56); }
.house-gen h3 { font-size: 1.35rem; font-weight: 500; margin-top: 0.5rem; }
.house-gen p { color: var(--ink-72); font-size: 0.98rem; margin-top: 0.55rem; max-width: 40ch; }
.house-facts {
  margin-top: clamp(3rem, 8vh, 5rem);
  display: grid; gap: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.house-facts dt {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.house-facts dd {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--estimate);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 4.5rem) var(--pad-x) 1.6rem;
}
.footer-grid { display: grid; gap: 2.2rem; max-width: 86rem; margin: 0 auto; }
.footer-tag {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--estimate);
}
.footer-col h4 {
  font-size: 0.625rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--estimate);
  margin-bottom: 0.7rem;
}
.footer-col p { font-size: 0.95rem; line-height: 1.8; color: var(--ink-72); }
.footer-bar {
  max-width: 86rem;
  margin: clamp(3rem, 6vh, 4rem) auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dim);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.footer-bar p { font-size: 0.625rem; letter-spacing: 0.12em; color: var(--estimate); }

/* ============================================================
   INNER PAGES — quiet register
   ============================================================ */
.page-head {
  padding: calc(var(--section-gap) + 3.5rem) var(--pad-x) 0;
  max-width: 86rem; margin: 0 auto;
  text-align: center;
}
.crumb {
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--estimate);
  display: inline-flex; gap: 0.6rem;
}
.crumb a { color: var(--ink-72); }
.page-no {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(4.2rem, 17vw, 12rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 1.8rem;
  white-space: nowrap;
}
.page-title {
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  font-weight: 450;
  line-height: 1.2;
  margin-top: 1rem;
}
.page-sub {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--estimate);
}

/* ---------- lot detail ---------- */
.artwork-stage { display: flex; flex-direction: column; align-items: center; }
.artwork {
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--wash);
  box-shadow: 0 30px 70px -30px rgba(20, 18, 16, 0.45);
  cursor: zoom-in;
  padding: 0; border: 0;
}
.artwork img { transition: transform 1.2s var(--ease-out); }
.artwork:hover img, .artwork:focus-visible img { transform: scale(1.02); }
.artwork-hint {
  margin-top: 1rem;
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--estimate);
  text-align: center;
}

.lot-sheet {
  margin-top: clamp(2.6rem, 6vh, 4rem);
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.sheet-row {
  display: grid; gap: 0.2rem 2rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--line-dim);
}
.sheet-row dt {
  font-family: var(--font-mono);
  font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--estimate);
}
.sheet-row dd { font-size: 0.98rem; color: var(--ink-72); }
.sheet-row dd.mono { font-size: 0.8125rem; }

/* provenance — the custody line */
.prov { position: relative; padding-left: 1.9rem; margin-top: 0.4rem; }
.prov::before {
  content: ""; position: absolute; left: 4px; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--line-dim);
}
.prov-line {
  position: absolute; left: 4px; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--ink);
  transform: scaleY(0); transform-origin: top;
}
.prov li { position: relative; padding: 0.7rem 0; }
.prov li::before {
  content: ""; position: absolute; left: -1.9rem; top: 1.35rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gesso);
  border: 1px solid var(--ink);
  transform: translateY(-50%);
}
.prov li:first-child::before { background: var(--ink); }
.prov-place { font-weight: 500; font-size: 1.02rem; line-height: 1.45; display: block; }
.prov-when {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--estimate);
}

/* condition figure */
.condition-grid { display: grid; gap: 2rem; margin-top: 0.5rem; }
.condition-copy p { color: var(--ink-72); font-size: 0.98rem; }
.condition-copy p + p { margin-top: 0.9rem; }
.condition-fig { width: min(100%, 26rem); }
.condition-fig .plate { margin-bottom: 0; aspect-ratio: 1 / 1; }
.condition-fig figcaption {
  position: static;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--estimate);
  text-shadow: none;
}

.register-block { text-align: center; padding-top: clamp(2rem, 5vh, 3rem); }
.register-block .estimate { margin-top: 0; }
.register-cta {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--ink);
  transition: background 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}
.register-cta:hover, .register-cta:focus-visible { background: var(--ink); color: var(--gesso); }
.register-note {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.1em;
  color: var(--estimate);
}

.lot-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  max-width: 86rem;
  margin: var(--section-gap) auto 0;
  padding: 1.4rem var(--pad-x) 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.lot-nav a { color: var(--ink-72); transition: color 0.3s; }
.lot-nav a:hover { color: var(--ink); }

/* ============================================================
   DEEP-ZOOM VIEWER (the lightbox IS the viewer)
   ============================================================ */
.dz {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(246, 243, 236, 0.97);
  opacity: 0;
  transition: opacity 0.45s var(--ease-soft);
}
.dz.is-open { opacity: 1; }
.dz-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.dz-stage.is-panning { cursor: grabbing; }
.dz-canvas {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.dz-canvas img { width: 100%; height: 100%; object-fit: fill; user-select: none; pointer-events: none; }

/* condition annotations — red rings with mono tags */
.dz-notes { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease-soft); }
.dz-notes.is-on { opacity: 1; }
.dz-note { position: absolute; transform: translate(-50%, -50%) scale(var(--inv, 1)); }
.dz-ring {
  display: block;
  width: 64px; height: 64px;
  border: 1.5px solid var(--reddot);
  border-radius: 50%;
}
.dz-tag {
  position: absolute; left: 50%; top: calc(100% + 8px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.08em;
  color: var(--reddot);
  white-space: nowrap;
  background: rgba(246, 243, 236, 0.85);
  padding: 0.15rem 0.45rem;
}

/* the viewer keeps its catalogue manners — a quiet placard, top-left */
.dz-label {
  position: absolute; top: 1.4rem; left: var(--pad-x); z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-72);
  pointer-events: none;
}
.dz-label span { color: var(--estimate); display: block; margin-top: 0.3rem; letter-spacing: 0.12em; }
.dz-ui {
  position: absolute; top: 0.9rem; right: var(--pad-x); z-index: 2;
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end;
  max-width: calc(100% - 2 * var(--pad-x));
}
@media (max-width: 719px) {
  /* wheel/drag vocabulary is desktop's; touch pans and pinches without a manual */
  .dz-hint { display: none; }
  .dz-label { top: auto; bottom: 1.2rem; }
}
.dz-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.85);
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft), border-color 0.3s;
  min-height: 44px;
}
.dz-btn:hover { background: var(--ink); color: var(--gesso); border-color: var(--ink); }
.dz-btn[aria-pressed="true"] { border-color: var(--reddot); color: var(--reddot); }
.dz-btn[aria-pressed="true"]:hover { background: var(--gesso); }
.dz-hint {
  position: absolute; left: 50%; bottom: 1.1rem; z-index: 2;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--estimate);
  text-align: center;
  width: max(60vw, 280px);
  pointer-events: none;
}

/* ============================================================
   RESULTADOS — the red dot theater
   ============================================================ */
.results-stats {
  display: grid; gap: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-bottom: clamp(2.6rem, 7vh, 4.5rem);
}
.results-stats dt {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 5.4vw, 3rem);
  font-weight: 300; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.results-stats dd {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--estimate);
}

.res-list { border-top: 1px solid var(--line-dim); }
.res-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-areas: "dot no" "dot body" "dot result";
  gap: 0.15rem 0.9rem;
  padding: 1.2rem 0.35rem;
  border-bottom: 1px solid var(--line-dim);
  transition: background 0.35s var(--ease-soft);
}
.res-row:hover { background: var(--wash); }
.res-dot {
  grid-area: dot; align-self: start; justify-self: center;
  margin-top: 0.45rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--reddot);
  transform: scale(0);
}
.res-row.is-sold .res-dot { animation: dot-land 0.55s var(--ease-out) forwards; }
@keyframes dot-land {
  0% { transform: scale(0); }
  62% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.res-row .row-no { grid-area: no; }
.res-row .row-body { grid-area: body; }
.res-result {
  grid-area: result;
  margin-top: 0.4rem;
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem;
  font-variant-numeric: tabular-nums;
}
.res-est { color: var(--estimate); }
.res-hammer { color: var(--ink); font-weight: 500; }
.res-hammer .res-hammer-label { color: var(--estimate); font-weight: 400; }
.res-fail { color: var(--estimate); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6875rem; align-self: center; }
.res-row .row-body p.res-flag {
  font-family: var(--font-mono);
  font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--reddot);
  margin-top: 0.35rem;
}
.results-note {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-size: 0.6875rem; letter-spacing: 0.12em;
  color: var(--estimate);
  max-width: 60ch;
}

/* ============================================================
   REVEALS — content is visible by default; JS animates FROM
   ============================================================ */

/* ============================================================
   DESKTOP ENHANCEMENTS
   ============================================================ */
@media (min-width: 720px) {
  .lot-row {
    grid-template-columns: 7.5rem 1fr auto;
    grid-template-areas: "no body est";
    align-items: baseline;
    padding: 1.3rem 0.6rem;
  }
  .row-est { margin-top: 0; text-align: right; }
  .viewing { grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
  .bid-ways { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .house { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .house-facts { grid-template-columns: repeat(3, 1fr); }
  .results-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bar { flex-direction: row; justify-content: space-between; }
  .sheet-row { grid-template-columns: 11rem 1fr; }
  .condition-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .res-row {
    grid-template-columns: 20px 7.5rem 1fr auto;
    grid-template-areas: "dot no body result";
    align-items: baseline;
    padding: 1.3rem 0.6rem;
  }
  .res-dot { margin-top: 0.15rem; }
  .res-result { margin-top: 0; justify-content: flex-end; text-align: right; display: grid; gap: 0.2rem; }
  .plate.ratio-21x9 { aspect-ratio: 21 / 9; }
  .plate.ratio-16x9 { aspect-ratio: 16 / 9; }
}

@media (min-width: 1000px) {
  .lot-margin { display: flex; }
  .masthead-nav {
    display: flex; gap: 2rem;
    margin-left: clamp(2rem, 6vw, 5rem);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .masthead-nav a { color: var(--ink-72); transition: color 0.3s; padding: 0.35rem 0; }
  .masthead-nav a:hover { color: var(--ink); }
  .burger, .veil { display: none; }
  .masthead-count { font-size: 0.75rem; }
}

/* hover-less devices: the estimate reveals on tap (JS toggles .is-open) */
@media (hover: none) {
  .estimate:hover .est-mask { opacity: 1; }
  .estimate:hover .est-value { opacity: 0; }
  .estimate.is-open .est-mask { opacity: 0; }
  .estimate.is-open .est-value { opacity: 1; }
}

/* ============================================================
   REDUCED MOTION — the catalogue simply is
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .live-dot { animation: none; opacity: 1; }
  .hero-scroll { animation: none; }
  .res-row.is-sold .res-dot { animation: none; transform: scale(1); }
  .prov-line { transform: none; }
  .plate img { height: 100%; }
}
