/* ==========================================================================
   mybath — remodel scene
   A greyed isometric room where hovering a fixture lights it up.

   Two assets carry the whole thing: the room render, and a pick-map PNG whose
   red channel encodes a part id per pixel (0 = background). Hit-testing is a
   single array lookup, and the highlight is drawn into one canvas — no
   per-part DOM nodes, no N mask files, constant memory regardless of part
   count. Swapping a fixture for a different finish later is the same
   operation with a different source image (see paint() in remodel.js).
   ========================================================================== */

.scene {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center;
}

.scene__art {
  position: relative; cursor: pointer; width: 100%; margin: 0 auto; max-width: 620px;
  aspect-ratio: 1 / 1; touch-action: manipulation;
}
.scene__room,
.scene__glow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: contain;
}
/* The whole room sits under a grey wash; the hovered fixture is the same
   pixels drawn again without it, so its real finish comes through. */
.scene__room { filter: grayscale(1) contrast(1.02) brightness(1.04); }
.scene__glow {
  pointer-events: none; opacity: 0;
  transition: opacity .22s ease;
  filter: saturate(1.16) contrast(1.02);
}
.scene__art.is-hot .scene__glow { opacity: 1; }

/* ---------- Side panel ---------- */
/* Rail + copy. The rail is the auto-tour made visible: one slot per fixture,
   the live one filling over its dwell. */
.scene__panel { min-height: 300px; display: flex; gap: 22px; }
.scene__body { flex: 1; min-width: 0; }
.scene__rail { display: flex; flex-direction: column; gap: 7px; padding-top: 7px; flex: none; }
.scene__tick {
  position: relative; width: 3px; height: 24px; padding: 0; border: 0;
  background: var(--line); border-radius: 2px; overflow: hidden; cursor: pointer;
  transition: background .2s ease;
}
.scene__tick:hover { background: var(--line-strong); }
.scene__tick i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--brand); }
.scene__tick.is-done i { height: 100%; }
.scene__tick.is-live i { height: 100%; transition: height var(--dwell, 5s) linear; }
.scene__panel .label { display: block; margin-bottom: 14px; }
.scene__panel h3 { font-size: clamp(24px, 2.8vw, 33px); margin-bottom: 12px; }
.scene__panel p { color: var(--greige-light); font-size: 16px; line-height: 1.6; max-width: 42ch; }

.scene__idle, .scene__info { animation: sceneIn .28s ease; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.scene__specs { list-style: none; margin-top: 22px; display: grid; gap: 9px; }
.scene__specs li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 14.5px; color: var(--greige); line-height: 1.5;
}
.scene__specs li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 50%; background: var(--brand);
}

@media (max-width: 940px) {
  .scene { grid-template-columns: 1fr; gap: 26px; }
  .scene__panel { min-height: 0; }
  .scene__rail { flex-direction: row; padding-top: 0; margin-bottom: 4px; }
  .scene__tick { width: 24px; height: 3px; }
  .scene__panel { flex-direction: column; gap: 14px; }
}

/* ---------- Finish swatches ----------
   Shown once a fixture is pinned by click; hover alone would pull them out of
   reach on the way to them. */
.scene__finishes { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.scene__flabel {
  display: block; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--greige-lightest);
}
.scene__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.scene__sw {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--font-sans); font-size: 13.5px; color: var(--greige);
  transition: border-color .15s ease, color .15s ease;
}
.scene__sw i {
  width: 18px; height: 18px; border-radius: 2px; flex: none;
  border: 1px solid rgba(0,0,0,.10);
}
.scene__sw:hover { border-color: var(--line-strong); color: var(--charcoal); }
.scene__sw.is-on { border-color: var(--brand); color: var(--charcoal); }

.scene__hint {
  margin-top: 18px; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.11em; color: var(--greige-lightest);
}
.scene.is-pinned .scene__hint { color: var(--brand); }
