/* /lab/ prototypes: scroll-scrubbed southern Utah pages */
body.lab { background: #0b0d10; }
.lab-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.25rem; background: rgba(11,13,16,0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lab-back { font-size: 0.85rem; color: var(--text); opacity: 0.8; }

.scrub { position: relative; }
.scrub-stage { position: fixed; inset: 0; z-index: 0; background: #1a0f0a; overflow: hidden; }
.scrub-stage img, .scrub-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-stage video { opacity: 0; transition: opacity 0.4s; }
.scrub-stage.ready video { opacity: 1; }
.scrub-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,16,0.72), rgba(11,13,16,0.25) 60%, rgba(11,13,16,0.1)); }

.scene { position: relative; z-index: 1; min-height: 56vh; min-height: 56svh; display: flex; align-items: center; padding: 4.5rem 1.25rem 3rem; }
.scene:first-of-type { min-height: 100vh; min-height: 100svh; }
.scene .card-text { max-width: 34rem; margin-left: max(0px, calc((100vw - 72rem) / 2)); }
.scene h1, .scene h2 { margin: 0.4rem 0 1rem; text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.scene p { text-shadow: 0 1px 16px rgba(0,0,0,0.6); }
.scene .eyebrow { color: var(--accent); text-shadow: 0 1px 12px rgba(0,0,0,0.85); }
.scene .btn { margin-top: 1rem; }
.scene ul.plain { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 0.6rem; }
.scene ul.plain li { padding-left: 1.1rem; position: relative; }
.scene ul.plain li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); }

.lab-notes { position: relative; z-index: 1; background: #0b0d10; padding: 4rem 1.25rem; }
.lab-notes .inner { max-width: 44rem; margin: 0 auto; }
.lab-notes dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.6rem 1rem; margin: 1.5rem 0 0; }
.lab-notes dt { color: var(--accent); font-weight: 600; }
.lab-notes dd { margin: 0; }

/* library index */
.lab-index { padding: 7rem 1.25rem 4rem; max-width: 72rem; margin: 0 auto; }
.lab-grid { display: grid; align-items: start; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
.lab-tile { display: block; border: 1px solid #ffffff1f; border-radius: 14px; overflow: hidden; background: #12151a; color: var(--text); }
.lab-tile img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; display: block; }
.lab-tile .body { padding: 1rem 1.1rem 1.25rem; }
.lab-tile h3 { margin: 0 0 0.3rem; }
.lab-tile p { margin: 0; opacity: 0.8; font-size: 0.95rem; }
.lab-tile.soon { opacity: 0.8; }

@media (max-width: 640px) {
  .scrub-stage::after { background: linear-gradient(rgba(11,13,16,0.5), rgba(11,13,16,0.62) 50%, rgba(11,13,16,0.75)); }
  .lab-notes dl { grid-template-columns: 1fr; }
}

/* Reduced motion: still poster, plain scrolling */
@media (prefers-reduced-motion: reduce) {
  .scrub-stage video { display: none; }
}
.scene .lead { color: #f2ede8; }
.scene ul.plain a { color: #f2ede8; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-shadow: 0 1px 14px rgba(0,0,0,0.85); }
.scene .eyebrow { text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 1px 16px rgba(0,0,0,0.9); }

.lab-bar-end { display: flex; align-items: center; gap: 1rem; }
.lab-play { flex: none; width: 2.75rem; height: 2.75rem; margin: -0.4rem 0; border-radius: 50%; border: 1px solid #ffffff40; background: transparent; color: #f2ede8; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.lab-play[hidden] { display: none; }
.lab-play:hover { border-color: var(--accent); }
.lab-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lab-play .i-play { display: none; }
.lab-play[aria-pressed="true"] .i-play { display: block; }
.lab-play[aria-pressed="true"] .i-pause { display: none; }

/* Flyover pages on the real site layout */
.city-body { position: relative; z-index: 1; background: var(--bg); padding: 4rem 0 2rem; }
.city-sec { padding: 1.5rem 0; }
.city-sec h2 { margin-bottom: 1rem; }
.city-body .flyover-note, .city-body .source, .city-sec.small { font-size: 0.9rem; color: var(--muted); }
.city-sec.small ul { padding-left: 1.1rem; }
.city-body .stats { margin: 1.5rem 0 0.5rem; }
.city-body .btn-row { margin: 1.5rem 0; }
.site-nav .lab-play { margin: 0 0 0 0.75rem; }
.site-footer { position: relative; z-index: 1; background: var(--bg); }
.city-sec ul { margin: 0 0 1.5rem; padding-left: 1.2rem; color: var(--muted); }
.city-sec ul li { margin-bottom: 0.4rem; }
