/* Lyfex case study. Shared pieces: case-study.css, case-contact.css.
   The page is a marble gallery: every image hangs in a gold frame with a museum placard (Lot 01...),
   and the Auction Room runs a demo bid that ticks up against a countdown (case-lyfex.js).
   Second half of the styles: case-lyfex-2.css. */

:root {
  --accent: #96700f;
  --lx-gold: #d4a62a;
  --lx-yellow: #f7c800;
  --lx-lilac: #d7b4f0;
  --lx-ink: #1c1a22;
  --lx-velvet: #17111f;
  --lx-wire: #9a8f7a;
  --lx-mono: 'JetBrains Mono', ui-monospace, monospace;
  --cs-ink: #1c1a22;
  --cs-muted: #57525e;
  --cs-faint: #8a8490;
  --cs-line: rgb(28 26 34 / 12%);
  --cs-bg: #f5f3ef;
  --cs-dark: #17111f;
  --cs-dot: #d4a62a;
  --cs-dot-dark: #f7c800;
  --cs-dot-radius: 1px;
  --cf-dots: rgb(28 26 34 / 9%);
  --cf-glow: rgb(212 166 42 / 18%);
  --cf-btn: #1c1a22;
  --cf-btn-icon: #f7c800;
  --cf-btn-icon-fg: #1c1a22;
  --cf-sent: #1c1a22;
  --cf-sent-fg: #f7c800;
  --lx-marble:
    radial-gradient(55% 40% at 12% 8%, rgb(215 180 240 / 28%), transparent 70%),
    radial-gradient(40% 35% at 92% 30%, rgb(247 200 0 / 10%), transparent 70%),
    linear-gradient(118deg, transparent 46%, rgb(120 110 130 / 4%) 47%, transparent 48.5%),
    linear-gradient(64deg, transparent 63%, rgb(120 110 130 / 3%) 63.6%, transparent 65%),
    linear-gradient(158deg, transparent 22%, rgb(190 160 80 / 5%) 22.8%, transparent 24%),
    #f5f3ef;
}

a:hover { color: var(--accent); }

/* ---------- the frame + mat + placard, used everywhere ---------- */
.lx-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: clamp(7px, .9vw, 13px);
  background: linear-gradient(135deg, #f6dc8c, #c6951f 28%, #f3d77f 52%, #9f7412 78%, #e6c364);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%), 0 36px 60px -34px rgb(40 28 6 / 55%), 0 12px 22px -14px rgb(40 28 6 / 35%);
}
.lx-mat { padding: clamp(8px, 1.5vw, 22px); background: #fbfaf7; box-shadow: inset 0 2px 7px rgb(0 0 0 / 14%); }
.lx-mat img { display: block; width: auto; max-width: 100%; height: auto; }
.lx-card__lot { margin: 0; font-family: var(--lx-mono); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ---------- hero: wall text beside a salon hang ---------- */
.lx-hero { position: relative; padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(72px, 8vw, 120px); background: var(--lx-marble); }
.lx-hero__wall { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(48px, 5vw, 88px); align-items: center; }
.lx-hero__label { display: grid; gap: 24px; }
.lx-room { margin: 0; font-family: var(--lx-mono); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.lx-hero__title { font-weight: 600; font-size: clamp(38px, 4.3vw, 70px); line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; color: var(--cs-ink); }
.lx-hero__title .cs-serif { color: var(--accent); }
.lx-hero__lead { margin: 0; }

.lx-plaque {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 8px 0 0;
  padding: 24px 28px;
  border: 1px solid rgb(212 166 42 / 45%);
  border-radius: 3px;
  background:
    radial-gradient(circle at 10px 10px, #c6951f 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 10px) 10px, #c6951f 2px, transparent 2.6px),
    radial-gradient(circle at 10px calc(100% - 10px), #c6951f 2px, transparent 2.6px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #c6951f 2px, transparent 2.6px),
    linear-gradient(135deg, #fff, #f4efe3);
  box-shadow: 0 18px 40px -30px rgb(40 28 6 / 45%);
}
.lx-plaque dt { margin-bottom: 4px; font-family: var(--lx-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cs-faint); }
.lx-plaque dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--cs-ink); }

.lx-salon { display: grid; padding-top: 30px; }
.lx-salon .lx-frame { width: auto; }
.lx-salon .lx-mat img { width: 100%; }
/* The two smaller works hang one per row under the Curator's Note. */
.lx-note__frames { display: grid; justify-items: center; gap: clamp(40px, 5vw, 64px); max-width: 860px; margin-top: clamp(56px, 6vw, 88px); }
.lx-note__frames .lx-frame { width: 100%; }
.lx-note__frames .lx-mat img { width: 100%; }
.lx-frame--main::before { content: ""; position: absolute; top: -24px; left: 50%; z-index: 2; width: 40%; height: 10px; border-radius: 6px; background: linear-gradient(180deg, #ecd07a, #8f6a10); transform: translateX(-50%); box-shadow: 0 4px 10px rgb(40 28 6 / 30%); }
.lx-frame--main::after { content: ""; position: absolute; top: -14px; left: 8%; right: 8%; z-index: 1; height: 60%; background: radial-gradient(ellipse 60% 70% at 50% 0%, rgb(255 238 170 / 45%), transparent 70%); pointer-events: none; mix-blend-mode: screen; }
.lx-tag { position: absolute; left: 50%; bottom: -20px; z-index: 2; display: flex; gap: 10px; align-items: baseline; padding: 9px 16px; background: #fff; box-shadow: 0 10px 24px -14px rgb(40 28 6 / 45%); font-size: 13px; white-space: nowrap; transform: translateX(-50%); }
.lx-tag b { font-family: var(--lx-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* ---------- curator's note + catalogue entry ---------- */
.lx-note { background: linear-gradient(180deg, #fbfaf7, var(--cs-bg)); }
.lx-note__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px clamp(48px, 6vw, 112px); align-items: center; }
.lx-cat { padding: 32px 34px 22px; background: #fff; border-top: 4px solid var(--lx-gold); box-shadow: 0 24px 50px -36px rgb(40 28 6 / 40%); }
.lx-cat__head { margin: 0 0 12px; font-family: var(--lx-mono); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.lx-cat dl { margin: 0; }
.lx-cat dl > div { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cs-line); }
.lx-cat dl > div:last-child { border-bottom: 0; }
.lx-cat dl > div::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted rgb(28 26 34 / 22%); }
.lx-cat dt { font-size: 15px; color: var(--cs-muted); }
.lx-cat dd { order: 2; margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1; color: var(--cs-ink); }

/* ---------- the lots: frames on wires, placards beside ---------- */
.lx-lots { background: var(--lx-marble); }
.lx-hang { display: grid; gap: clamp(88px, 10vw, 140px); margin-top: clamp(96px, 10vw, 140px); }
.lx-lot { display: grid; grid-template-columns: minmax(0, max-content) minmax(280px, 380px); justify-content: center; gap: clamp(32px, 4vw, 64px); align-items: center; }
.lx-lot .lx-frame { justify-self: end; }
.lx-lot:nth-child(even) { grid-template-columns: minmax(280px, 380px) minmax(0, max-content); }
.lx-lot:nth-child(even) .lx-frame { order: 2; justify-self: start; }
.lx-frame--s .lx-mat img { width: 520px; max-width: 100%; }
.lx-lot .lx-frame::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 46%;
  height: 54px;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--lx-wire) calc(50% - .5px), var(--lx-wire) calc(50% + .5px), transparent calc(50% + 1px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), var(--lx-wire) calc(50% - .5px), var(--lx-wire) calc(50% + .5px), transparent calc(50% + 1px)) right / 50% 100% no-repeat;
  transform: translateX(-50%);
}
.lx-lot .lx-frame::after { content: ""; position: absolute; bottom: calc(100% + 50px); left: 50%; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3d77f, #8f6a10); transform: translateX(-50%); }
.lx-card { display: grid; gap: 10px; padding: 28px 28px 30px; border-left: 3px solid var(--lx-gold); background: #fff; box-shadow: 0 1px 0 rgb(0 0 0 / 4%), 0 22px 44px -30px rgb(40 28 6 / 40%); }
.lx-card__title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(23px, 2vw, 29px); line-height: 1.12; letter-spacing: -.01em; color: var(--cs-ink); }
.lx-card__medium { margin: -4px 0 6px; font-size: 13px; color: var(--cs-faint); }
.lx-card p:not([class]) { margin: 0; font-size: 15px; line-height: 1.62; color: var(--cs-muted); }
.lx-card b { font-weight: 600; color: var(--cs-ink); }
