/* Showroom page (experience.html). Photos are frames from the showroom walkthrough video.
   The control panel copies the showroom itself: a white gloss display panel with a brass edge,
   a white glass scene panel to pick the wall and a glass touch dimmer, both from LumiLife's own range. */

.room { padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(56px, 7vw, 96px); }
.room-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46ch); gap: 16px 48px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.room-head h1 { font-size: clamp(42px, 5.2vw, 80px); }
.room-head p { color: var(--muted); }

.room-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: var(--r-card); overflow: hidden; }

/* the wall: a real frame; the dimmer works on it the way a driver does, by brightness */
.room-photo { --h: min(80vh, 860px); width: calc(var(--h) * 9 / 16); min-height: var(--h); background: #000; position: relative; scroll-margin-top: calc(var(--nav-h) + 12px); }
.room-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .35s var(--ease), opacity .2s; }
.room-photo[data-level="4"] img { filter: brightness(.8); }
.room-photo[data-level="3"] img { filter: brightness(.62); }
.room-photo[data-level="2"] img { filter: brightness(.45); }
.room-photo[data-level="1"] img { filter: brightness(.3); }
.room-photo[data-level="0"] img { filter: brightness(.1) saturate(.4); }
.room-photo.is-loading img { opacity: .55; }

/* the display panel: white gloss with the brass trim of the showroom walls */
.room-panel { background: linear-gradient(180deg, #F4F3F0, #E9E8E4); border-inline-start: 6px solid #B39566; padding: clamp(24px, 3.2vw, 48px); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.room-n { font: 400 14px/1 var(--mono); color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.room-copy h2 { font-size: clamp(28px, 2.6vw, 42px); margin-top: 12px; }
.room-copy p:last-child { margin-top: 12px; max-width: 54ch; color: var(--ink-dark); }
.room-controls { display: grid; gap: 28px; }
.room-label { font-size: 14px; color: var(--muted-dark); margin-bottom: 10px; }

/* white glass scene panel: engraved labels, an LED under each key */
.scene-plates { display: flex; flex-wrap: wrap; gap: 14px; }
.scene-plate { flex: 1 1 250px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 14px 10px; border-radius: 6px;
  background: linear-gradient(160deg, #FDFDFC, #EFEEEA);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(16, 26, 36, .07), 0 8px 16px -8px rgba(16, 26, 36, .45); }
.scene-key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 58px; padding: 6px 2px; border-radius: 4px;
  font-size: 13px; line-height: 1.15; color: #6A6E73; text-align: center; transition: color .15s; }
.scene-key:hover { color: var(--ink-dark); }
.scene-key:active { background: rgba(16, 26, 36, .05); }
.scene-led { width: 5px; height: 5px; border-radius: 50%; background: #CFCFCB; transition: background .15s, box-shadow .15s; }
.scene-key[aria-pressed="true"] { color: var(--ink-dark); }
.scene-key[aria-pressed="true"] .scene-led { background: #4C74FF; box-shadow: 0 0 5px 1px rgba(76, 116, 255, .75); }

/* glass touch dimmer: down / power / up, blue ring when on */
.room-dim { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 22px; align-items: start; }
.room-dim .room-label { grid-column: 1 / -1; }
.touch { --ring: rgba(255, 255, 255, .78); grid-row: 2 / 4; width: 168px; aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 2px; position: relative;
  background: linear-gradient(135deg, #24272C 0%, #101215 55%, #17191D 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 20px -10px rgba(0, 0, 0, .6); transition: background .2s; }
.touch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .09) 0 28%, transparent 28.5%); }
.touch[data-finish="white"] { --ring: #8E9196; background: linear-gradient(135deg, #FFFFFF, #ECEBE7); box-shadow: 0 0 0 1px rgba(16, 26, 36, .1), 0 10px 20px -10px rgba(16, 26, 36, .45); }
.touch[data-finish="gold"] { --ring: rgba(255, 255, 255, .92); background: linear-gradient(135deg, #DCC8A0, #B79C6B); box-shadow: 0 0 0 1px rgba(90, 70, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 20px -10px rgba(60, 45, 20, .55); }
.touch-ring { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ring); position: relative; }
.touch-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid currentColor; transition: border-color .12s, box-shadow .12s; }
.touch-ring svg { width: 15px; height: 15px; fill: currentColor; }
.touch-power svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.touch-power[aria-pressed="true"], .touch-ring:active { color: #DCE4FF; }
.touch-power[aria-pressed="true"]::before, .touch-ring:active::before { border-color: #5A80FF; box-shadow: 0 0 7px rgba(90, 128, 255, .85), inset 0 0 4px rgba(90, 128, 255, .55); }
.touch-ring:focus-visible { outline-offset: -2px; border-radius: 50%; }
.room-state { padding-top: 6px; font-size: 15px; color: var(--ink-dark); font-variant-numeric: tabular-nums; }
.finish { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.finish button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 6px; border-radius: var(--r-pill); border: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-dark); }
.finish button span { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(16, 26, 36, .18); }
.finish button[aria-checked="true"] { border-color: var(--ink-dark); color: var(--ink-dark); }

.room-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* the video walkthrough + index of every wall */
.walk { padding-top: 0; }
.walk-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: start; }
.walk-copy h2 { font-size: var(--h2); }
.walk-copy > p { margin-top: 16px; max-width: 52ch; color: var(--muted); }
.walk-video { position: sticky; top: calc(var(--nav-h) + 24px); height: min(78vh, 760px); width: auto; aspect-ratio: 9 / 16; border-radius: var(--r-card); background: #000; object-fit: cover; }
.walls-index { list-style: none; margin-top: clamp(28px, 4vw, 48px); }
.walls-index a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 0; padding-block: 16px; border-top: 1px solid var(--line); }
.walls-index li:last-child a { border-bottom: 1px solid var(--line); }
.wi-n { font: 400 14px/1.5 var(--mono); color: var(--dim); grid-row: 1 / 3; }
.wi-t { font-weight: 500; color: var(--ink); transition: color .15s; }
.wi-d { font-size: 15px; color: var(--muted); }
.walls-index a:hover .wi-t { color: var(--volt); }

.room-close { padding-top: 0; }
.room-close-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.room-close h2 { font-size: clamp(32px, 3.4vw, 48px); }
.room-close p { margin-top: 10px; max-width: 56ch; color: var(--muted); }
.room-close .room-actions { margin-top: 0; }

@media (max-width: 999px) {
  .room-head { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: 1fr; }
  .room-photo { width: 100%; min-height: 0; aspect-ratio: 4 / 5; max-height: 56svh; }
  .room-photo img { object-position: 50% 40%; }
  .room-panel { border-inline-start: 0; border-top: 5px solid #B39566; }
  .room-controls { order: -1; }
  .walk-grid { grid-template-columns: 1fr; }
  .walk-video { position: static; width: 100%; height: auto; max-height: 80svh; }
}
@media (max-width: 599px) {
  /* one plate of twelve keys so the wall and its keys fit on one screen */
  .scene-plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 10px 6px; border-radius: 6px;
    background: linear-gradient(160deg, #FDFDFC, #EFEEEA); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(16, 26, 36, .07), 0 8px 16px -8px rgba(16, 26, 36, .45); }
  .scene-plate { display: contents; }
  .scene-key { font-size: 12.5px; min-height: 54px; }
  .room-dim { grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; }
  .touch { width: 148px; }
  .room-actions .btn { flex: 1 1 auto; }
}
