/* LEMOURELLE — design system.
   Quiet, editorial, monochrome. Champagne gold appears only where authenticity
   or a special edition is being spoken about. */

:root {
  --obsidian: #111111;
  --ivory: #f8f7f4;
  --white: #ffffff;
  --charcoal: #292929;
  --muted: #8a8a85;
  --gold: #b4a17b;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.28);
  --line-on-dark: rgba(248, 247, 244, 0.18);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "GFS Didot", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --page: min(1320px, 100vw - 2 * var(--gutter));
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 900ms;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--obsidian);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button, [role="button"], label[for], select, summary { cursor: pointer; }
button { font: inherit; color: inherit; }
::selection { background: var(--obsidian); color: var(--ivory); }

:focus-visible { outline: 1px solid var(--obsidian); outline-offset: 4px; }
.on-dark :focus-visible { outline-color: var(--ivory); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--obsidian); color: var(--ivory); padding: 10px 16px; font-size: 13px;
}
.skip-link:focus { top: 12px; }

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

/* ───────────── Wordmark ───────────── */

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  /* Tracking adds space after the last letter; pull it back so the word centres optically. */
  margin-right: -0.25em;
  line-height: 1;
  white-space: nowrap;
}

/* ───────────── Type ───────────── */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-dark .eyebrow { color: rgba(248, 247, 244, 0.6); }

.display {
  font-family: var(--sans);
  font-variation-settings: "opsz" 32;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.25;
  margin: 0;
}

.editorial {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
}
.editorial em { font-style: italic; }

.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 46ch;
}
.on-dark .lede { color: rgba(248, 247, 244, 0.78); }

.small { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }
.gold { color: var(--gold); }
.prose p { margin: 0 0 1.2em; max-width: 62ch; color: var(--charcoal); font-weight: 300; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 2em 0 0.6em; }
.prose h3 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin: 2.4em 0 0.8em; }
.prose ul { padding-left: 1.1em; color: var(--charcoal); font-weight: 300; max-width: 62ch; }
.prose li { margin-bottom: 0.5em; }

/* ───────────── Layout ───────────── */

.wrap { width: var(--page); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 160px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.on-dark { background: var(--obsidian); color: var(--ivory); }
.on-dark .rule { border-top-color: var(--line-on-dark); }
.white { background: var(--white); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: center;
}
.split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: var(--stack, 24px); }

/* ───────────── Header ───────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--obsidian);
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background var(--slow) var(--ease), color var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.site-header[data-tone="dark"] {
  background: transparent;
  color: var(--ivory);
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header__inner {
  height: 100%;
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.site-header .wordmark { font-size: 17px; justify-self: center; }
.nav { display: flex; gap: clamp(14px, 1.7vw, 28px); align-items: center; }
.nav a, .nav button {
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav--right { justify-content: flex-end; }
.nav__count { font-variant-numeric: tabular-nums; }

.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1240px) {
  .nav--main { display: none; }
  .nav--right .nav__text { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 8px 0;
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  }
  .menu-toggle__bars { width: 22px; height: 9px; position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
    transition: transform 400ms var(--ease), top 400ms var(--ease);
  }
  .menu-toggle__bars::before { top: 0; }
  .menu-toggle__bars::after { top: 8px; }
  [aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
  [aria-expanded="true"] .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }
  .site-header .wordmark { font-size: 15px; }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 49;
    background: var(--ivory);
    color: var(--obsidian);
    padding: 40px var(--gutter);
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
  }
  .mobile-nav[data-open="true"] { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease); }
  .mobile-nav a {
    display: block;
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.2;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .small { margin-top: 32px; display: flex; gap: 24px; }
}
@media (max-width: 520px) {
  .nav--right .nav__hide-sm { display: none; }
  .menu-toggle > span:last-child { display: none; }
  .site-header .wordmark { font-size: 14px; }
}

main { min-height: 60vh; }
.page-top { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 112px)); }

/* ───────────── Buttons ───────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 500ms var(--ease), color 500ms var(--ease), border-color 500ms var(--ease);
}
.button--solid { background: var(--obsidian); color: var(--ivory); border-color: var(--obsidian); }
.button--solid:hover { background: var(--charcoal); border-color: var(--charcoal); }
.button:not(.button--solid):hover { background: var(--obsidian); color: var(--ivory); border-color: var(--obsidian); }
.on-dark .button--solid { background: var(--ivory); color: var(--obsidian); border-color: var(--ivory); }
.on-dark .button--solid:hover { background: transparent; color: var(--ivory); }
.on-dark .button:not(.button--solid):hover { background: var(--ivory); color: var(--obsidian); border-color: var(--ivory); }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.button--block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 400ms var(--ease);
}
.link:hover { opacity: 0.6; }

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0d0d0d;
  color: var(--ivory);
}
.hero__stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 64% 46%, rgba(248, 247, 244, 0.07), transparent 70%),
    #0d0d0d;
}
.hero__garment {
  position: absolute;
  right: max(3vw, calc((100vw - 1320px) / 2));
  top: 50%;
  width: min(44vw, 640px);
  transform: translateY(-46%);
  animation: drift 24s var(--ease) infinite alternate;
  /* The hero is a photograph, not a cut-out: its edges fade into the stage so
     no rectangle shows, even when the photo's own backdrop is a shade off. */
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("/art/grain.svg");
}
@keyframes drift {
  from { transform: translateY(-46%) scale(1); }
  to   { transform: translateY(-48%) scale(1.035); }
}
@media (prefers-reduced-motion: reduce) { .hero__garment { animation: none; } }

.hero__content {
  position: relative;
  width: var(--page);
  margin-inline: auto;
  padding-bottom: clamp(56px, 9vh, 112px);
  padding-top: calc(var(--header-h) + 40px);
}
.hero__wordmark { font-size: clamp(28px, 4.4vw, 66px); margin-bottom: clamp(28px, 5vh, 56px); }
.hero__headline { max-width: 18ch; }
.hero__copy { margin-top: 20px; }
.hero .button-row { margin-top: 36px; }

@media (max-width: 1100px) and (min-width: 861px) {
  .hero__garment { width: 46vw; right: -2vw; opacity: 0.75; }
}
@media (max-width: 860px) {
  .hero { align-items: end; }
  .hero__garment { width: 92vw; right: -4vw; top: 34%; opacity: 0.9; }
  .hero__content { background: linear-gradient(to top, #0d0d0d 55%, rgba(13, 13, 13, 0)); }
}

/* ───────────── Artwork frames ───────────── */

.frame {
  position: relative;
  background: #eceae5;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.frame--dark { background: #151515; }
.frame--ivory { background: var(--white); }
.frame img, .frame svg { width: 100%; height: 100%; object-fit: contain; }
.frame--padded img { padding: 9%; }
.frame__caption {
  position: absolute; left: 18px; bottom: 16px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.frame--dark .frame__caption { color: rgba(248, 247, 244, 0.5); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1200ms var(--ease), transform 1200ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────────── Facts (thin-ruled definition lists) ───────────── */

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1.6fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 2px; }
.facts dd { margin: 0; font-size: 15px; }
.on-dark .facts, .on-dark .facts > div { border-color: var(--line-on-dark); }

/* ───────────── Status labels ───────────── */

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.status--available::before { background: currentColor; }
.status--upcoming::before { background: transparent; }
.status--allocated { color: var(--muted); }
.status--allocated::before { background: var(--muted); border-color: var(--muted); }
.status--archive { color: var(--muted); }
.status--live { color: var(--obsidian); }
.status--live::before { background: var(--obsidian); animation: pulse 2.4s var(--ease) infinite; }
.on-dark .status--live, .on-dark .status--live::before { color: var(--ivory); background: currentColor; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .status--live::before { animation: none; } }

.demo-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 3px 7px 2px;
  vertical-align: middle;
}
.on-dark .demo-tag { color: rgba(248, 247, 244, 0.6); border-color: var(--line-on-dark); }

.certified {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
}
.certified svg { width: 14px; height: 14px; }

/* ───────────── Release (homepage) ───────────── */

.release__name { margin: 14px 0 26px; }
.release .facts { margin: 32px 0 36px; }

.quote {
  text-align: center;
  max-width: 22ch;
  margin-inline: auto;
}
.quote-body { margin: 36px auto 0; text-align: center; max-width: 54ch; }

/* ───────────── Lots (auction rows, not cards) ───────────── */

.lots { border-top: 1px solid var(--line); }
.on-dark .lots { border-top-color: var(--line-on-dark); }
.lot {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 500ms var(--ease);
}
.on-dark .lot { border-bottom-color: var(--line-on-dark); }
.lot__thumb { aspect-ratio: 4 / 5; background: #151515; }
.lot__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.lot__title { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin: 6px 0 4px; }
.lot__figure { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .lot { grid-template-columns: 88px 1fr; row-gap: 12px; }
  .lot > :nth-child(n + 3) { grid-column: 2; }
}

/* ───────────── Collectors ───────────── */

.collectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.collectors > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
@media (max-width: 860px) { .collectors { grid-template-columns: 1fr; } }
.collector__mark {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: 0.1em; color: var(--muted);
  overflow: hidden;
}
.collector__mark img { width: 100%; height: 100%; object-fit: cover; }
.collector__name { font-family: var(--serif); font-size: 26px; margin: 22px 0 4px; }
.collector__stats { display: flex; gap: 22px; margin-top: 18px; font-size: 13px; color: var(--charcoal); }
.collector__stats b { font-weight: 500; font-size: 18px; display: block; color: var(--obsidian); }

/* ───────────── Authenticity steps ───────────── */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-on-dark); }
.steps > li { list-style: none; padding: 28px 28px 8px 0; border-right: 1px solid var(--line-on-dark); }
.steps > li + li { padding-left: 28px; }
.steps > li:last-child { border-right: 0; }
.steps .num { font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; }
.steps h3 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin: 22px 0 10px; }
.steps p { margin: 0; color: rgba(248, 247, 244, 0.7); font-weight: 300; font-size: 15px; }
.steps-wrap { padding: 0; margin: 48px 0 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps > li { border-right: 0; padding: 24px 12px 24px 0; border-bottom: 1px solid var(--line-on-dark); }
  .steps > li + li { padding-left: 0; }
}

/* ───────────── Footer ───────────── */

.site-footer { background: var(--obsidian); color: var(--ivory); padding: clamp(72px, 9vw, 120px) 0 40px; }
.site-footer .wordmark { font-size: 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 56px;
}
.footer-grid h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin: 0 0 18px; color: rgba(248, 247, 244, 0.55); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; font-weight: 300; }
.footer-grid a:hover { opacity: 0.6; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line-on-dark);
  font-size: 12px; color: rgba(248, 247, 244, 0.5);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ───────────── Forms ───────────── */

.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field > span, .field legend { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-size: 16px;
  color: inherit;
  border-radius: 0;
  transition: border-color 400ms var(--ease);
}
.textarea { border: 1px solid var(--line-strong); padding: 12px; min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--obsidian); }
.on-dark .input { border-bottom-color: var(--line-on-dark); }
.on-dark .input:focus { border-bottom-color: var(--ivory); }
.inline-form { display: flex; gap: 0; align-items: stretch; }
.inline-form .input { flex: 1; }
.inline-form .button { border-left: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.choice input { margin-top: 5px; accent-color: var(--obsidian); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span {
  display: grid; place-items: center; min-width: 58px; height: 46px; padding: 0 12px;
  border: 1px solid var(--line-strong); font-size: 13px; letter-spacing: 0.08em;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.sizes input:checked + span { background: var(--obsidian); color: var(--ivory); border-color: var(--obsidian); }
.sizes input:focus-visible + span { outline: 1px solid var(--obsidian); outline-offset: 3px; }
.sizes input:disabled + span { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }

.notice {
  border: 1px solid var(--line-strong);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--charcoal);
  margin: 0 0 28px;
}
.notice--error { border-color: #7a2a22; color: #7a2a22; }
.notice--quiet { border-color: var(--line); color: var(--muted); }
.on-dark .notice { border-color: var(--line-on-dark); color: rgba(248, 247, 244, 0.8); }

/* ───────────── Product / piece pages ───────────── */

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery > :first-child { grid-column: 1 / -1; }
.sticky-panel { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 860px) { .sticky-panel { position: static; } }

.code-motif {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--charcoal);
  border-left: 1px solid var(--gold);
  padding: 4px 0 4px 22px;
  white-space: pre;
  overflow-x: auto;
}
.on-dark .code-motif { color: rgba(248, 247, 244, 0.82); }

/* Provenance timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 30px 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--obsidian);
}
.timeline li:last-child::before { background: var(--obsidian); }
.timeline time { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.timeline p { margin: 4px 0 0; font-size: 16px; }

/* Certificate */
.certificate {
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  background: var(--white);
  margin: 6px;
}
.certificate .wordmark { font-size: 15px; }
.certificate__title { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); margin: 26px 0 6px; }
.certificate__serial { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.certificate .facts { text-align: left; margin-top: 28px; }

/* Auction page */
.bid-panel { border: 1px solid var(--line-strong); padding: clamp(24px, 3vw, 36px); background: var(--white); }
.bid-figure { font-size: clamp(30px, 3.4vw, 44px); font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; margin: 8px 0 4px; }
.countdown { font-variant-numeric: tabular-nums; font-size: 22px; letter-spacing: 0.04em; }
.countdown[data-urgent="true"] { color: #7a2a22; }
.bid-history { width: 100%; border-collapse: collapse; font-size: 14px; }
.bid-history th { text-align: left; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--line-strong); }
.bid-history td { padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.bid-history td:last-child, .bid-history th:last-child { text-align: right; }
.live-dot[data-state="connected"]::before { background: var(--obsidian); }

/* Registry search */
.registry-search { display: flex; border-bottom: 1px solid var(--obsidian); max-width: 640px; }
.registry-search input {
  flex: 1; border: 0; background: transparent; padding: 16px 0;
  font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); color: inherit;
}
.registry-search input:focus { outline: none; }
.registry-search button { background: none; border: 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }

.index-table { width: 100%; border-collapse: collapse; }
.index-table th { text-align: left; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-strong); }
.index-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.index-table tr[data-href]:hover td { background: rgba(17, 17, 17, 0.025); }
.table-scroll { overflow-x: auto; }

/* Account */
.account-nav { display: flex; gap: 28px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.account-nav a { padding: 14px 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.account-nav a[aria-current="page"] { color: var(--obsidian); border-bottom-color: var(--obsidian); }

.empty { padding: 56px 0; color: var(--muted); font-weight: 300; }

/* Admin — plain on purpose; it is a tool, not an exhibition. */
.admin { font-size: 14px; }
.admin .index-table td { font-size: 14px; }
.admin h1 { font-size: 20px; font-weight: 500; letter-spacing: 0.02em; margin: 0 0 24px; }
.admin-nav { display: flex; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; font-size: 13px; }
.admin-nav a[aria-current="page"] { font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 40px; }
.stat-row > div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row b { display: block; font-size: 26px; font-weight: 400; }
.pill { font-size: 11px; padding: 2px 8px; border: 1px solid var(--line-strong); white-space: nowrap; }
