@import url("fonts.css");

/* =========================================================================
   [BRAND] — UK gallery demo
   Palette is grounded in Thai lacquerware: deep near-black ground, warm
   off-white paper, one thin gold-leaf accent used only for rules and active
   states. No gradients. Every other colour on screen comes from the paintings.
   ========================================================================= */

:root {
  /* ground */
  --lacquer-0: #0c0c0b;   /* page */
  --lacquer-1: #131311;   /* raised surface */
  --lacquer-2: #1b1a17;   /* hover / inset */

  /* paper */
  --paper:     #f1ece2;
  --paper-2:   #e4ded0;   /* spec-sheet stock */
  --paper-3:   #d5cebd;   /* spec-sheet rules */
  --ink:       #16150f;

  /* gold leaf — the single accent */
  --gold:      #b28a45;
  --gold-lift: #d3ab63;

  /* derived */
  --on-dark:      #f1ece2;
  --on-dark-mid:  #a49f94;
  --on-dark-dim:  #6f6b62;
  --rule-dark:    rgba(241, 236, 226, 0.13);
  --rule-dark-hi: rgba(241, 236, 226, 0.26);

  --display: "Fraunces", "Hoefler Text", Georgia, serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell:   1560px;
  --gutter:  clamp(1.25rem, 4vw, 4rem);

  --t: 180ms cubic-bezier(0.2, 0, 0.2, 1);
}

/* ---------- reset ------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lacquer-0);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 0.25em; }
a:hover { text-decoration-color: var(--gold-lift); }

/* Visible focus everywhere — quality floor, not an afterthought. */
:focus-visible {
  outline: 2px solid var(--gold-lift);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--paper); color: var(--ink);
  padding: 0.7rem 1.1rem; font: 500 0.8rem/1 var(--mono);
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- type ------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.display-l  { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.display-m  { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }

.eyebrow {
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.15rem;
}
.eyebrow--mid { color: var(--on-dark-mid); }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--on-dark);
  max-width: 46ch;
}

.prose { max-width: 62ch; color: var(--on-dark-mid); }
.prose p { margin: 0 0 1.15em; }
.prose strong { color: var(--on-dark); font-weight: 500; }
.prose h3 { color: var(--on-dark); margin: 2.4em 0 0.7em; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- shell ------------------------------------------------------ */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 1080px; }

.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }

.rule { border: 0; border-top: 1px solid var(--rule-dark); margin: 0; }
.rule--gold { border-top: 1px solid var(--gold); opacity: 0.55; }

/* ---------- header ----------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 12, 11, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-dark);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 74px;
}
/* ---- the lockup: Gong mark + Rule signature --------------------------
   The two marks combined. The mark carries the ring; the signature is
   letterspaced mono over Fraunces divided by a single hairline. Both words
   are the same warm off-white — the gold belongs to the rule and the ring
   and nothing else. That restraint is the point.

   The mark is never set below 30px: the ring closes up and turns to mud.
   Anything smaller is the favicon PNGs, which are drawn to different cuts.
   -------------------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__mark {
  width: 34px; height: 34px;
  flex: none;
  display: block;
}
.wordmark__rule {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.wordmark__studio {
  font: 500 0.53rem/1 var(--mono);
  letter-spacing: 0.42em;
  text-align: center;
  text-transform: uppercase;
  color: var(--on-dark);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
}
.wordmark__name {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 30, "WONK" 1;
  font-size: 1.16rem;
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-align: center;
  color: var(--on-dark);
  padding-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav a {
  font-size: 0.855rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  color: var(--on-dark-mid);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
}
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--gold); }

.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--rule-dark-hi);
  padding: 0.5rem 0.85rem; border-radius: 2px;
  font: 500 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav {
    position: absolute; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--lacquer-1);
    border-bottom: 1px solid var(--rule-dark);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--rule-dark); font-size: 1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* ---------- buttons ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.11em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--rule-dark-hi);
  background: transparent; color: var(--on-dark);
  border-radius: 2px;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn:hover { border-color: var(--gold); color: var(--gold-lift); }
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid:hover { background: var(--gold-lift); border-color: var(--gold-lift); color: var(--ink); }
.btn--gold { border-color: var(--gold); color: var(--gold-lift); }
.btn--gold:hover { background: var(--gold); color: var(--lacquer-0); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- home hero -------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 7rem);
}
.hero__copy { max-width: 40ch; }
.hero__title { margin-bottom: 1.4rem; }
.hero__meta {
  margin-top: 2.25rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  display: grid; gap: 0.45rem;
  font: 400 0.8rem/1.5 var(--mono);
  color: var(--on-dark-mid);
}
.hero__meta b { color: var(--on-dark); font-weight: 500; }
.hero__frame { position: relative; }
.hero__frame img {
  width: 100%; height: auto;
  border: 1px solid var(--rule-dark);
}
.hero__caption {
  margin-top: 1rem;
  font: 400 0.76rem/1.5 var(--mono);
  color: var(--on-dark-dim);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero__frame { order: -1; }
}

/* ---------- entry points ---------------------------------------------- */

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border-block: 1px solid var(--rule-dark);
}
.entry {
  background: var(--lacquer-0);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background var(--t);
}
.entry:hover { background: var(--lacquer-1); }
.entry__n { font: 500 0.72rem/1 var(--mono); color: var(--gold); letter-spacing: 0.14em; }
.entry h3 { font-size: 1.5rem; }
.entry p { margin: 0; color: var(--on-dark-mid); font-size: 0.92rem; max-width: 34ch; }
.entry__go {
  margin-top: auto; padding-top: 1.4rem;
  font: 500 0.74rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark);
}
.entry:hover .entry__go { color: var(--gold-lift); }

/* ---------- gallery layout -------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(2rem, 3.5vw, 3.75rem);
  align-items: start;
  padding-bottom: 6rem;
}
@media (max-width: 1080px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- THE SPEC SHEET (signature element) -------------------------
   The filter panel is rendered as a physical specification sheet: paper
   stock, ruled rows, monospaced field labels, hand-ticked boxes. It reads
   as a trade document rather than a shop sidebar.
   ---------------------------------------------------------------------- */

.spec {
  position: sticky; top: 98px;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.5), 0 18px 40px -28px rgba(0,0,0,0.9);
  max-height: calc(100vh - 122px);
  display: flex; flex-direction: column;
}
.spec__head {
  padding: 1.15rem 1.25rem 0.9rem;
  border-bottom: 2px solid var(--ink);
}
.spec__title {
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.spec__ref { color: #6c665a; letter-spacing: 0.08em; }
.spec__count {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 20, "WONK" 1;
  font-size: 1.65rem; line-height: 1;
  display: flex; align-items: baseline; gap: 0.5rem;
}
.spec__count b { font-weight: 400; font-variant-numeric: tabular-nums; }
.spec__count span {
  font: 400 0.72rem/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: #6c665a;
}
.spec__body { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0.5rem; }
.spec__foot {
  border-top: 2px solid var(--ink);
  padding: 0.85rem 1.25rem;
  display: flex; gap: 0.6rem; align-items: center; justify-content: space-between;
}

.spec fieldset { border: 0; margin: 0; padding: 0; }

.field { border-bottom: 1px solid var(--paper-3); }
.field--lead { background: rgba(178, 138, 69, 0.07); }

.field__legend {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 0.71rem/1.2 var(--mono);
  letter-spacing: 0.13em; text-transform: uppercase;
}
.field__legend:hover { color: #5c5648; }
.field__legend .tag {
  font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--gold); border: 1px solid currentColor;
  padding: 0.14rem 0.34rem; border-radius: 1px;
}
.field__chev {
  width: 9px; height: 9px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t);
}
.field__legend[aria-expanded="false"] .field__chev { transform: rotate(-45deg) translate(-1px, 1px); }
.field__legend .field__n { margin-left: auto; color: #7a7367; font-size: 0.66rem; }

.field__opts { padding: 0 1.25rem 0.9rem; display: grid; }

.opt {
  position: relative;
  display: grid;
  grid-template-columns: 15px 1fr auto;
  align-items: center; gap: 0.6rem;
  padding: 0.33rem 0;
  cursor: pointer;
  font-size: 0.855rem;
  line-height: 1.35;
  border-bottom: 1px dotted rgba(22, 21, 15, 0.16);
}
.opt:last-child { border-bottom: 0; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt__box {
  width: 15px; height: 15px;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
  position: relative;
  transition: background var(--t), border-color var(--t);
}
.opt input:checked + .opt__box { background: var(--gold); border-color: var(--gold); }
.opt input:checked + .opt__box::after {
  content: ""; position: absolute;
  left: 4px; top: 0.5px; width: 4px; height: 9px;
  border-right: 2px solid var(--paper-2); border-bottom: 2px solid var(--paper-2);
  transform: rotate(42deg);
}
.opt input:focus-visible + .opt__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt__n {
  font: 400 0.72rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: #7a7367;
}
.opt--empty { opacity: 0.34; cursor: not-allowed; }
.opt--empty .opt__box { border-style: dashed; }

/* swatches on the colour facet — the paintings supply the colour, not the chrome */
.opt__swatch {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid rgba(22,21,15,0.35);
  margin-right: -0.1rem;
}

/* supply-format selector: governs which price is quoted everywhere */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 1.25rem 0.95rem; }
.segments label {
  position: relative;
  text-align: center; cursor: pointer;
  padding: 0.45rem 0.3rem;
  border: 1px solid var(--ink);
  font: 500 0.68rem/1.2 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background var(--t), color var(--t);
}
.segments label + label { border-left: 0; }
.segments input { position: absolute; opacity: 0; width: 0; height: 0; }
.segments input:checked + span { color: inherit; }
.segments label:has(input:checked) { background: var(--ink); color: var(--paper-2); }
.segments label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.spec__reset {
  background: none; border: 0; cursor: pointer;
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 0.3em;
  padding: 0.35rem 0;
}
.spec__reset[disabled] { opacity: 0.32; cursor: default; text-decoration: none; }
.spec__stamp {
  font: 500 0.62rem/1.25 var(--mono);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold); text-align: right;
  border: 1px solid currentColor; padding: 0.22rem 0.4rem; border-radius: 1px;
}

/* mobile: spec sheet becomes a drawer */
.spec__open {
  display: none;
  position: sticky; top: 82px; z-index: 40;
  width: 100%; margin-bottom: 1.25rem;
}
@media (max-width: 1080px) {
  .spec__open { display: flex; justify-content: space-between; }
  .spec {
    position: fixed; inset: 0; z-index: 90;
    max-height: none; border-radius: 0;
  }
  .spec[hidden] { display: none; }
  .spec__body { flex: 1; }
}
.spec__close { display: none; }
@media (max-width: 1080px) { .spec__close { display: inline-block; } }

/* ---------- results ---------------------------------------------------- */

.results__bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1.1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule-dark);
}
.results__n { font: 400 0.8rem/1 var(--mono); color: var(--on-dark-mid); }
.results__n b { color: var(--on-dark); font-weight: 500; }

.sort { display: flex; align-items: center; gap: 0.6rem; font: 400 0.78rem/1 var(--mono); color: var(--on-dark-mid); }
.sort select {
  background: var(--lacquer-1); border: 1px solid var(--rule-dark-hi);
  color: var(--on-dark); padding: 0.45rem 0.6rem; border-radius: 2px;
  font: 400 0.78rem/1 var(--mono); cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--gold); color: var(--gold-lift);
  background: rgba(178, 138, 69, 0.09);
  padding: 0.3rem 0.5rem 0.3rem 0.65rem; border-radius: 2px;
  font: 400 0.72rem/1 var(--mono); cursor: pointer;
}
.chip:hover { background: rgba(178, 138, 69, 0.2); }
.chip b { font-weight: 400; color: var(--on-dark-mid); }
.chip__x { font-size: 0.95rem; line-height: 0.7; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(2rem, 3.2vw, 3.5rem) clamp(1.5rem, 2.4vw, 2.75rem);
}

.card { text-decoration: none; display: block; }
.card__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--lacquer-1);
  border: 1px solid var(--rule-dark);
  display: grid; place-items: center;
  overflow: hidden;
  transition: border-color var(--t);
}
.card:hover .card__frame { border-color: var(--rule-dark-hi); }
/* contain, never crop — the brief is explicit that images are shown whole */
.card__frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 420ms cubic-bezier(0.2, 0, 0.2, 1);
}
.card:hover .card__frame img { transform: scale(1.018); }
@media (prefers-reduced-motion: reduce) {
  .card:hover .card__frame img { transform: none; }
}

.card__flag {
  position: absolute; top: 0.65rem; left: 0.65rem;
  font: 500 0.62rem/1 var(--mono);
  letter-spacing: 0.11em; text-transform: uppercase;
  padding: 0.3rem 0.45rem; border-radius: 1px;
  background: rgba(12,12,11,0.82); border: 1px solid var(--rule-dark-hi);
  color: var(--on-dark-mid);
}
.card__flag--room { border-color: var(--gold); color: var(--gold-lift); }
.card__flag--sold { color: var(--on-dark); }

.card__meta { padding-top: 0.95rem; display: grid; gap: 0.3rem; }
.card__title {
  font-family: var(--display);
  font-variation-settings: "opsz" 42, "SOFT" 20, "WONK" 1;
  font-size: 1.11rem; line-height: 1.2;
}
.card__spec {
  font: 400 0.735rem/1.5 var(--mono);
  color: var(--on-dark-dim);
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.7rem;
}
.card__price { font: 400 0.8rem/1 var(--mono); color: var(--on-dark); padding-top: 0.15rem; }
.card__price s { color: var(--on-dark-dim); text-decoration-color: var(--gold); }

.empty {
  border: 1px dashed var(--rule-dark-hi);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
}
.empty h3 { margin-bottom: 0.8rem; }
.empty p { color: var(--on-dark-mid); max-width: 44ch; margin: 0 auto 1.6rem; }

/* ---------- product detail -------------------------------------------- */

.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 3rem) 6rem;
}
@media (max-width: 1000px) { .pd { grid-template-columns: 1fr; } }

.crumb {
  font: 400 0.75rem/1 var(--mono);
  color: var(--on-dark-dim);
  padding-block: 1.4rem 1.6rem;
  display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap;
}
.crumb a { text-decoration: none; color: var(--on-dark-mid); }
.crumb a:hover { color: var(--gold-lift); }

/* Room mockup leads. For a hotel buyer it does more work than a flat shot. */
.pd__stage { display: grid; gap: 1.1rem; }
.pd__hero {
  background: var(--lacquer-1);
  border: 1px solid var(--rule-dark);
  position: relative;
}
.pd__hero img { width: 100%; height: auto; }
.pd__label {
  position: absolute; left: 0; bottom: 0;
  font: 500 0.65rem/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  background: rgba(12,12,11,0.84);
  border-top: 1px solid var(--gold); border-right: 1px solid var(--gold);
  color: var(--gold-lift);
}
.pd__strip { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.pd__thumb {
  width: 92px; aspect-ratio: 1; flex: none;
  background: var(--lacquer-1);
  border: 1px solid var(--rule-dark); padding: 0; cursor: pointer;
  transition: border-color var(--t);
}
.pd__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd__thumb[aria-current="true"] { border-color: var(--gold); }
.pd__thumb:hover { border-color: var(--rule-dark-hi); }

/* The mockup disclaimer. Deliberately in the image column rather than the spec
   column, and given the gold rule so it reads as part of the picture set - a
   buyer deciding on a room view sees it in the same glance. */
.pd__mockup {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-left: 2px solid var(--gold);
  background: var(--lacquer-1);
  font: 400 0.815rem/1.5 var(--mono);
  color: var(--on-dark-mid);
}
.pd__mockup b { color: var(--on-dark); font-weight: 500; }
.pd__side { display: grid; gap: 1.6rem; }
.pd__title { margin-bottom: 0.55rem; }
.pd__artist { font: 400 0.85rem/1.5 var(--mono); color: var(--on-dark-mid); }
.pd__artist b { color: var(--on-dark); font-weight: 500; }

.price-block {
  border-block: 1px solid var(--rule-dark);
  padding-block: 1.2rem;
  display: grid; gap: 0.85rem;
}
.price-block__now {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 20, "WONK" 1;
  font-size: 2rem; line-height: 1;
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
}
.price-block__now span {
  font: 400 0.72rem/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim);
}
.price-opts { display: grid; gap: 0; border: 1px solid var(--rule-dark); border-radius: 2px; }
.price-opt {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.85rem; cursor: pointer;
  font: 400 0.8rem/1.3 var(--mono);
  border-bottom: 1px solid var(--rule-dark);
  transition: background var(--t);
}
.price-opt:last-child { border-bottom: 0; }
.price-opt:hover { background: var(--lacquer-1); }
.price-opt:has(input:checked) { background: var(--lacquer-2); }
.price-opt:has(input:checked) .price-opt__name { color: var(--gold-lift); }
.price-opt:has(input:focus-visible) { outline: 2px solid var(--gold-lift); outline-offset: -2px; }
.price-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.price-opt__name { color: var(--on-dark-mid); display: flex; align-items: center; gap: 0.55rem; }
.price-opt__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--on-dark-dim);
}
.price-opt:has(input:checked) .price-opt__dot { border-color: var(--gold); background: var(--gold); }
.price-opt__val { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.price-note { font: 400 0.72rem/1.5 var(--mono); color: var(--on-dark-dim); }

/* commercial spec table — nulls render as "On request", never hidden */
.datasheet { width: 100%; border-collapse: collapse; font-size: 0.845rem; }
.datasheet caption {
  text-align: left;
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.8rem;
}
.datasheet th, .datasheet td {
  text-align: left; padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-dark);
  vertical-align: top;
}
.datasheet th {
  font: 400 0.735rem/1.5 var(--mono);
  color: var(--on-dark-dim); font-weight: 400;
  width: 44%; padding-right: 1rem;
}
.datasheet td { color: var(--on-dark); }
.datasheet .req { color: var(--on-dark-dim); font-style: italic; }

.tagset { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tagset a {
  font: 400 0.7rem/1 var(--mono);
  border: 1px solid var(--rule-dark-hi);
  padding: 0.28rem 0.45rem; border-radius: 1px;
  text-decoration: none; color: var(--on-dark-mid);
  transition: border-color var(--t), color var(--t);
}
.tagset a:hover { border-color: var(--gold); color: var(--gold-lift); }

.pd__notes { border-top: 1px solid var(--rule-dark); padding-top: 1.4rem; }
.pd__notes p { font-size: 0.9rem; color: var(--on-dark-mid); margin: 0; }

/* ---------- generic content blocks ------------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.stack { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }

.deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.deck > * {
  background: var(--lacquer-0);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
}
.deck h3 { font-size: 1.24rem; margin-bottom: 0.6rem; }
.deck p { margin: 0; color: var(--on-dark-mid); font-size: 0.9rem; }
.deck__n { font: 500 0.7rem/1 var(--mono); color: var(--gold); letter-spacing: 0.14em; display: block; margin-bottom: 0.9rem; }

.speclist { list-style: none; margin: 0; padding: 0; display: grid; }
.speclist li {
  display: grid; grid-template-columns: minmax(150px, 0.6fr) 1fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.speclist li:first-child { border-top: 1px solid var(--rule-dark); }
.speclist dt, .speclist b {
  font: 500 0.73rem/1.5 var(--mono);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold);
}
.speclist p { margin: 0; color: var(--on-dark-mid); font-size: 0.92rem; }
@media (max-width: 620px) { .speclist li { grid-template-columns: 1fr; gap: 0.4rem; } }

.pull {
  font-family: var(--display);
  font-variation-settings: "opsz" 90, "SOFT" 40, "WONK" 1;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.28;
  border-left: 1px solid var(--gold);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  margin: 0;
  max-width: 30ch;
}

.figure img { width: 100%; border: 1px solid var(--rule-dark); }
.figure figcaption {
  margin-top: 0.8rem;
  font: 400 0.74rem/1.5 var(--mono);
  color: var(--on-dark-dim);
}

/* ---------- form ------------------------------------------------------- */

.form { display: grid; gap: 1.35rem; max-width: 620px; }
.form__row { display: grid; gap: 0.45rem; }
.form__row label {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--on-dark-mid);
}
.form__row label .req { color: var(--gold); }
.form input, .form textarea, .form select {
  background: var(--lacquer-1);
  border: 1px solid var(--rule-dark-hi);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  font-size: 0.94rem;
  color: var(--on-dark);
  width: 100%;
  transition: border-color var(--t);
}
.form input:hover, .form textarea:hover, .form select:hover { border-color: var(--on-dark-dim); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--gold); }
.form textarea { resize: vertical; min-height: 140px; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
@media (max-width: 620px) { .form__pair { grid-template-columns: 1fr; } }
.form__hint { font: 400 0.74rem/1.5 var(--mono); color: var(--on-dark-dim); margin: 0; }

.form__status {
  border: 1px solid var(--gold);
  background: rgba(178, 138, 69, 0.1);
  padding: 1.1rem 1.25rem;
  display: grid; gap: 0.4rem;
}
.form__status[hidden] { display: none; }
.form__status b { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-lift); }
.form__status p { margin: 0; font-size: 0.9rem; color: var(--on-dark-mid); }

/* ---------- demo notice ------------------------------------------------ */

.demobar {
  background: var(--lacquer-1);
  border-bottom: 1px solid var(--rule-dark);
  font: 400 0.73rem/1.5 var(--mono);
  color: var(--on-dark-dim);
  padding-block: 0.55rem;
}
.demobar b { color: var(--gold); font-weight: 500; }

/* ---------- footer ----------------------------------------------------- */

.foot { border-top: 1px solid var(--rule-dark); padding-block: clamp(2.5rem, 5vw, 4rem) 2.5rem; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.foot h4 {
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot a { font-size: 0.875rem; text-decoration: none; color: var(--on-dark-mid); }
.foot a:hover { color: var(--on-dark); }
.foot p { margin: 0 0 0.9rem; color: var(--on-dark-mid); font-size: 0.88rem; max-width: 38ch; }
.foot__base {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
  font: 400 0.72rem/1.5 var(--mono); color: var(--on-dark-dim);
}

/* ---------- 404 --------------------------------------------------------
   Copy left, empty easel right. The easel is decorative and aria-hidden;
   everything a screen reader needs is in the heading and the lede. */

.gone {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.gone__easel {
  margin: 0;
  display: flex;
  justify-content: center;
}
/* The easel is tall and narrow — aspect 0.357. Sizing it by width would make
   it roughly 950px tall and swamp the page, so it is constrained by height.
   "lighten" keeps whichever is brighter per pixel: the image is flattened onto
   this exact ground colour, so the blend clamps any JPEG ringing in the dark
   surround back to the page and the edge stays invisible. */
.gone__easel img {
  /* Explicit height, not max-height: with height:auto the box collapses to
     nothing until the file arrives and the page visibly jumps on load. */
  height: clamp(280px, 42vw, 520px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}
@media (max-width: 820px) {
  .gone { grid-template-columns: 1fr; }
}
