:root {
  --ink: #1f1e1c;
  --ink-soft: #5d5850;
  --paper: #fbf9f4;
  --paper-2: #f2eee6;
  --line: #e2dccf;
  --brand: #364e68;        /* primary colour, from the logo */
  --brand-deep: #263a4f;
  --brand-soft: #e6ebf1;
  --brand-mid: #6c7f94;
  --room: #ece6db;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 16, 10, .18), 0 2px 6px rgba(20, 16, 10, .08);
  --top-h: 68px;
  --panel-w: 430px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #1c1b1a;
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
/* Swipes walk through the gallery: stop the phone browser from also bouncing or pulling to refresh. */
html, body { overscroll-behavior: none; }
/* Soft darkening at the screen edges, like gallery lighting falling off. */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 50% 48%, transparent 58%, rgba(20, 14, 6, .28) 100%);
}
body.mode-list .vignette { display: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; height: var(--top-h); z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 20px;
  background: rgba(251, 249, 244, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { flex: none; height: 46px; width: auto; display: block; } /* full logo, no circle crop */
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand strong { font: 600 21px/1.1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand small { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }

.room-nav { position: relative; justify-self: center; }
.room-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04);
  min-width: 250px; text-align: left;
  transition: border-color .2s;
}
.room-pill:hover { border-color: #c9c0b0; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--room); border: 1px solid rgba(0,0,0,.12);
  transition: background-color .5s ease;
}
.room-pill__text { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.room-pill__text small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.room-pill__text span { font: 600 18px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { width: 16px; height: 16px; color: var(--ink-soft); transition: transform .2s; }
.room-pill[aria-expanded="true"] .chev { transform: rotate(180deg); }

.room-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max(100%, 290px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.room-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 0; background: none; border-radius: 10px; text-align: left;
}
.room-menu button:hover, .room-menu button[aria-current="true"] { background: var(--paper-2); }
.room-menu .swatch { width: 20px; height: 20px; }
.room-menu small { margin-left: auto; color: var(--ink-soft); font-size: 12px; }

.actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.view-toggle { display: flex; padding: 3px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.view-toggle button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.btn-contact {
  border: 0; border-radius: 999px; padding: 9px 18px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 14px;
}
.btn-contact:hover { background: var(--brand-deep); }

/* ---------- Instructions ---------- */
.hint {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 15;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  padding: 14px 14px 14px 20px;
  background: rgba(28, 27, 26, .9); color: #fff;
  border-radius: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: opacity .4s, transform .4s;
  max-width: calc(100vw - 32px);
}
.hint.is-hidden { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
/* Swipes and drags that start on the instructions box go through to the gallery (on phones the
   box covers the lower screen, exactly where a thumb starts an upward swipe). Only "Got it" is tappable. */
.hint { pointer-events: none; }
.hint .hint__ok { pointer-events: auto; }
.hint__row { display: flex; align-items: center; gap: 10px; }
.hint__row p { margin: 0; font-size: 14.5px; line-height: 1.35; color: #e9e5dd; }
.hint__row strong { color: #fff; }
.hint__icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.hint__icon svg { width: 18px; height: 18px; }
.hint__ok {
  flex: none; border: 0; border-radius: 999px; padding: 9px 16px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px;
}
.only-touch { display: none; }
@media (pointer: coarse) { .only-touch { display: inline; } .only-desktop { display: none; } }

.tooltip {
  position: fixed; z-index: 25; pointer-events: none;
  padding: 7px 12px; border-radius: 10px;
  background: rgba(28,27,26,.92); color: #fff; font-size: 13px; font-weight: 600;
  transform: translate(14px, 14px);
  white-space: nowrap;
}
.tooltip::after { content: " · view details"; font-weight: 500; color: #cfc8bc; }
.tooltip.is-action::after { content: ""; }

/* Always-visible walking reminder: bottom-right corner on wide screens, above the
   arrows on phones and narrow windows. Hidden while the big instructions box, a
   painting panel or the list view is showing. */
.walk-tip {
  position: fixed; right: 26px; bottom: calc(26px + var(--safe-b)); z-index: 14;
  margin: 0; padding: 9px 14px; border-radius: 12px;
  background: rgba(251, 249, 244, .8); backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  font: 600 11.5px/1.75 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #4f4a42; text-align: right; pointer-events: none;
  transition: opacity .35s;
}
.walk-tip > span { display: block; }
.walk-tip > .only-touch { display: none; }
@media (pointer: coarse) { .walk-tip > .only-touch { display: block; } .walk-tip > .only-desktop { display: none; } }
body.hint-open .walk-tip, body.panel-open .walk-tip { opacity: 0; }
body.mode-list .walk-tip, body.no-webgl .walk-tip { display: none; }
@media (max-width: 1150px) {
  .walk-tip { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-b)); text-align: center; white-space: nowrap; padding: 7px 14px; }
}
@media (max-width: 640px) {
  .walk-tip { bottom: calc(78px + var(--safe-b)); font-size: 10.5px; letter-spacing: .12em; }
}
@media (max-height: 520px) and (orientation: landscape) and (pointer: coarse) {
  .walk-tip { bottom: calc(60px + var(--safe-b)); line-height: 1.5; }
  .walk-tip > span.only-touch { display: inline; }
  .walk-tip > .only-touch ~ .only-touch::before { content: " · "; }
}

/* ---------- Bottom dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); z-index: 15;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 999px;
  background: rgba(251, 249, 244, .92); border: 1px solid var(--line);
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
  width: min(560px, calc(100vw - 32px));
  transition: opacity .3s;
}
.round {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff;
}
.round:hover { background: var(--paper-2); }
.round--help { font: 700 16px var(--sans); color: var(--ink-soft); }
.track { position: relative; flex: 1; height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; cursor: pointer; }
.track__seg { position: absolute; top: 0; bottom: 0; border-left: 2px solid rgba(255,255,255,.9); }
.track__marker {
  position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px;
  background: var(--ink); border-radius: 3px; z-index: 2;
}
.track { overflow: visible; }

/* ---------- Detail panel ---------- */
.panel {
  position: fixed; z-index: 30;
  top: calc(var(--top-h) + 12px); right: 12px; bottom: 12px;
  width: var(--panel-w);
  background: var(--paper); border-radius: 18px; box-shadow: var(--shadow);
  transform: translateX(calc(100% + 24px));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.panel.is-open { transform: none; }
.panel__grip { display: none; }
.panel__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff;
}
.panel__body { overflow-y: auto; padding: 28px 30px 30px; flex: 1; overscroll-behavior: contain; }
.panel__img { display: none; width: 100%; max-height: 46vh; object-fit: contain; background: var(--paper-2); border-radius: 10px; margin-bottom: 18px; cursor: zoom-in; }
body.mode-list .panel__img, body.no-webgl .panel__img { display: block; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow .swatch { width: 14px; height: 14px; }
.panel h2 { font: 600 34px/1.08 var(--serif); margin: 10px 44px 14px 0; }
.status-sold { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--brand-deep); margin-bottom: 14px; }
.status-sold::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 600; }
.about p { margin: 0 0 12px; color: #3b3832; }
.quote { margin: 18px 0 4px; padding: 4px 0 4px 16px; border-left: 3px solid var(--brand); font: italic 500 21px/1.35 var(--serif); }
.quote cite { display: block; margin-top: 6px; font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--ink-soft); }
.cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  padding: 13px 18px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; text-decoration: none;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--wa { background: #1f8f4e; color: #fff; }
.panel-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel-nav button { border: 0; background: none; padding: 6px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 4px; }
.panel-nav button:hover { color: var(--ink); }
.panel-nav button:disabled { visibility: hidden; }
.panel-nav svg { width: 16px; height: 16px; }

/* Enquiry form */
.back-link { border: 0; background: none; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.back-link svg { width: 16px; height: 16px; }
.form-intro { color: var(--ink-soft); margin: -4px 0 18px; }
.about-work { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 18px; }
.about-work img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.about-work strong { font: 600 18px/1.15 var(--serif); display: block; }
.about-work small { color: var(--ink-soft); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field label span { font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; padding: 11px 12px; border-radius: 10px;
  border: 1px solid #d6cfc1; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; }
.sent { text-align: center; padding: 30px 6px; }
.sent .tick { width: 54px; height: 54px; border-radius: 50%; background: #e6efe6; color: #2f7a43; display: grid; place-items: center; margin: 0 auto 14px; }
.sent .tick svg { width: 26px; height: 26px; }

/* ---------- List view ---------- */
.listview {
  position: fixed; inset: var(--top-h) 0 0; z-index: 12;
  overflow-y: auto; background: var(--paper);
}
.listview__inner { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }
.list-room { margin-bottom: 48px; }
.list-room__head {
  display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  padding: 26px 28px; border-radius: 16px; margin-bottom: 22px;
}
.list-room__head h2 { font: 600 38px/1.05 var(--serif); margin: 6px 0 0; }
.list-room__head p { margin: 0; max-width: 520px; opacity: .9; }
.list-room__head small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.list-part { margin: 30px 0 16px; padding-left: 14px; border-left: 3px solid var(--brand); }
.list-part:first-of-type { margin-top: 8px; }
.list-part small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-mid); }
.list-part h3 { font: 600 26px/1.1 var(--serif); margin: 2px 0 4px; }
.list-part p { margin: 0; max-width: 560px; color: #5d5850; font-size: 14px; }
.card { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; align-self: start; }
.card .status-sold { display: flex; }
.card__frame { aspect-ratio: 1; display: grid; place-items: center; background: var(--paper-2); border-radius: 12px; padding: 18px; transition: background .2s; }
.card:hover .card__frame { background: #e9e3d8; }
.card img { max-width: 100%; max-height: 100%; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.card strong { display: block; font: 600 19px/1.2 var(--serif); margin-top: 10px; }
.card small { color: var(--ink-soft); }
.card .status-sold { margin: 4px 0 0; font-size: 12px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15,14,13,.94); display: grid; place-items: center; padding: 24px; animation: lb-in .22s ease-out; }
.lightbox img { animation: lb-img .28s cubic-bezier(.2,.8,.2,1); }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox img { animation: none; } }
/* Fit the whole painting on screen: sized to the viewport, not to the (auto-height) grid cell. */
.lightbox img {
  width: auto; height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 80px); }
}
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--paper); transition: opacity .6s;
}
.loader p { margin: 0; font: italic 500 22px var(--serif); color: var(--ink-soft); }
.loader__bar { width: 180px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.loader.is-done { opacity: 0; pointer-events: none; }

/* List mode hides the 3D controls */
body.mode-list .dock, body.mode-list .hint { display: none; }
body.mode-list .room-nav { visibility: hidden; }
/* Keep the walking controls clear of the open panel on wide screens */
@media (min-width: 641px) {
  body.panel-open .dock { left: calc((100vw - var(--panel-w) - 24px) / 2); width: min(520px, calc(100vw - var(--panel-w) - 64px)); }
  body.panel-open .hint { display: none; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 900px) {
  :root { --top-h: 60px; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 14px; }
  .brand small { display: none; }
  .brand strong { font-size: 19px; }
  .room-nav { position: fixed; top: calc(var(--top-h) + 10px); left: 50%; transform: translateX(-50%); }
  .room-pill { min-width: 0; width: min(330px, calc(100vw - 32px)); background: rgba(255,255,255,.95); box-shadow: var(--shadow); }
  .actions { gap: 8px; }
}

@media (max-width: 640px) {
  .brand span { display: none; }
  .view-toggle button { padding: 6px 11px; }
  .btn-contact { padding: 8px 14px; font-size: 13px; }
  .hint { flex-direction: column; align-items: stretch; gap: 10px; bottom: calc(86px + var(--safe-b)); padding: 16px; width: calc(100vw - 32px); }
  .hint__ok { align-self: stretch; padding: 11px; }
  .dock { bottom: calc(14px + var(--safe-b)); gap: 8px; padding: 6px; }
  .round { width: 40px; height: 40px; }

  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    max-height: 62vh; border-radius: 20px 20px 0 0;
    transform: translateY(105%);
    padding-bottom: var(--safe-b);
  }
  .panel__grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: #d3ccbf; margin: 10px auto 0; flex: none; }
  .panel__body { padding: 14px 20px 26px; }
  .panel h2 { font-size: 29px; }
  .panel__close { top: 12px; right: 12px; }
  body.mode-list .panel, body.no-webgl .panel { max-height: 88vh; }

  .listview__inner { padding: 20px 16px 60px; }
  .list-room__head { padding: 20px; }
  .list-room__head h2 { font-size: 30px; }
  .list-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__frame { padding: 12px; }
  .card strong { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .hint, .loader { transition: none; }
}

/* ---------- Phone turned sideways ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --top-h: 52px; }
  .brand span { display: none; }
  .room-nav { position: static; transform: none; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .room-pill { min-width: 0; width: auto; max-width: 300px; padding: 4px 12px 4px 6px; box-shadow: none; }
  .room-pill .swatch { width: 24px; height: 24px; }
  .hint { bottom: calc(68px + var(--safe-b)); padding: 10px 10px 10px 14px; gap: 12px; }
  .hint__row p { font-size: 13px; }
  .dock { bottom: calc(10px + var(--safe-b)); padding: 5px; }
  .round { width: 36px; height: 36px; }
  .panel { top: calc(var(--top-h) + 8px); bottom: 8px; width: min(380px, 48vw); }
  .panel h2 { font-size: 26px; }
}

/* ---------- About the artist ---------- */
.panel__img--portrait { max-height: 52vh; object-fit: cover; object-position: top; }
.tagline { font: italic 500 22px/1.3 var(--serif); color: var(--brand); margin: -6px 0 4px; }
.strap { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 16px; }
.panel-sub { font: 600 22px/1.2 var(--serif); margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.exhibitions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.exhibitions li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; font-size: 14px; }
.exhibitions li > span { font-weight: 700; color: var(--brand); padding-top: 1px; }
.exhibitions strong { display: block; font-weight: 600; }
.exhibitions small { display: block; color: var(--ink-soft); }
.exhibitions em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand-deep); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }

.list-about {
  display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 32px; align-items: center;
  padding: 28px; border-radius: 16px; background: var(--brand-soft); margin-bottom: 40px;
}
.list-about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 26px rgba(20, 30, 45, .18); }
.list-about small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.list-about h2 { font: 600 40px/1.05 var(--serif); margin: 6px 0 4px; }
.list-about p { margin: 0 0 14px; max-width: 560px; }
@media (max-width: 640px) {
  .list-about { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .list-about img { max-width: 240px; }
  .brand img { height: 40px; }
}
@media (min-width: 641px) { .hint__row p { white-space: nowrap; } }
.quote-note { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 0 19px; }
@media (max-width: 640px) {
  body.panel-open .room-nav { display: none; }  /* give the open painting the space above the sheet */
  .panel { max-height: 56vh; }
}

/* ---------- Phone details sheet: peek / expanded ---------- */
@media (max-width: 640px) {
  .panel {
    max-height: none;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), height .35s ease;
  }
  body.mode-list .panel, body.no-webgl .panel { max-height: none; }
  .panel__grip {
    position: relative; flex: none; display: block;
    width: 100%; height: 28px; margin: 0; padding: 0;
    border: 0; background: none; cursor: pointer; touch-action: none;
  }
  .panel__grip::before {
    content: ""; position: absolute; left: 50%; top: 10px;
    width: 52px; height: 5px; margin-left: -26px; border-radius: 3px;
    background: var(--brand-mid); transition: background .2s, width .2s;
  }
  .panel__grip[aria-expanded="true"]::before { background: #cdc6b9; }
  .panel__body { padding: 2px 18px 22px; }
  .panel__close { top: 8px; right: 10px; width: 34px; height: 34px; }
  .panel h2 { font-size: 24px; margin: 6px 40px 8px 0; }
  .eyebrow { font-size: 10px; }
  .status-sold { font-size: 12px; margin-bottom: 8px; }
  .specs { font-size: 13px; padding: 9px 0; margin-bottom: 14px; gap: 3px 14px; }
  .about p { font-size: 14.5px; }
  .tagline { font-size: 19px; }
  .strap { font-size: 12.5px; margin-bottom: 10px; }
}

/* ---------- Enquiry form ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* hidden spam trap */
.form-error {
  margin: 4px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #fbeceb; color: #8a2b22; font-size: 13.5px; line-height: 1.45;
}
.form-error a { color: inherit; font-weight: 600; }
.btn[disabled] { opacity: .7; cursor: progress; }
