/* Baserton samples shell: full-screen viewer with a scene switcher. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
:root { color-scheme: dark; --mark: #ff2e7e; --chrome: rgba(13, 15, 19, .94); --line: rgba(255, 255, 255, .14); }
* { box-sizing: border-box; }
html, body, .viewer { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #0a0b12; color: #eef1f4; font-family: "Barlow", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.viewer { position: relative; background: #0a0b12 center / cover no-repeat; }
body[data-scene="factory"] .viewer { background-image: url("/samples/media/factory-card-1600.webp"); }
body[data-scene="linden"] .viewer { background-image: url("/samples/media/linden-card-1600.webp"); }
body[data-scene="medical"] .viewer { background-image: url("/samples/media/medical-card-1600.webp"); }
.scene-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.loading { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 11px; color: rgba(255, 255, 255, .85);
  background: rgba(10, 11, 18, .45); font: 600 12px "Barlow", sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: opacity .5s ease, visibility .5s ease; pointer-events: none; }
.loading.is-hidden { opacity: 0; visibility: hidden; }
.loading-mark { width: 22px; height: 2px; background: var(--mark); animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .3; transform: scaleX(.5); } }
.scene-switcher { position: fixed; z-index: 4; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 1040px); min-height: 70px; padding: 8px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; transform: translateX(-50%);
  border: 1px solid var(--line); border-radius: 4px; background: var(--chrome); box-shadow: 0 18px 55px rgba(0, 0, 0, .35); backdrop-filter: blur(10px); }
.switcher-home { display: inline-flex; align-items: center; gap: 9px; padding: 0 14px 0 10px; color: #fff; text-decoration: none; font: 600 20px/1 "Barlow Condensed", "Arial Narrow", sans-serif; }
.switcher-home svg { width: 17px; height: 17px; }
.scene-tabs { min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.scene-tabs::-webkit-scrollbar { display: none; }
.scene-tab { position: relative; min-width: 180px; height: 52px; padding: 8px 14px; display: grid; align-content: center; gap: 3px; color: #b9bfc6; background: transparent;
  border: 0; border-radius: 3px; text-align: left; font: inherit; cursor: pointer; transition: color .18s ease, background .18s ease; }
.scene-tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.scene-tab.is-active { color: #14171a; background: #eef1f4; box-shadow: inset 0 3px 0 var(--mark); }
.scene-type { font: 600 10px "Barlow", sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.scene-tab strong { font: 600 19px/1.05 "Barlow Condensed", "Arial Narrow", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-count { padding: 0 8px; color: #8e959c; font: 600 11px "Barlow", sans-serif; letter-spacing: .08em; white-space: nowrap; }
.switcher-cta { display: inline-flex; align-items: center; height: 52px; padding: 0 18px; border-radius: 3px; background: var(--mark); color: #fff; text-decoration: none; font: 600 15px "Barlow", sans-serif; white-space: nowrap; }
.switcher-cta:hover { background: #ff4b91; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) {
  .scene-switcher { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 20px); grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; }
  .switcher-home, .switcher-cta { display: none; }
  .scene-tab { min-width: 136px; height: 48px; padding: 7px 10px; }
  .scene-tab strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .loading { transition: none; } .loading-mark { animation: none; } }
