/* Showroom engine: base styles shared by every vertical. Verticals set the tokens on :root. */
:root {
  --bg: #0d0e10;
  --ink: #efe9df;
  --muted: #9a958c;
  --accent: #c49a63;
  --line: rgba(239, 233, 223, 0.14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sr-inner, .sr-char { display: inline-block; will-change: transform; }

/* Image frames: gradient placeholder until media/<name>.webp loads; labelled when the file is missing. */
.sr-frame { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a2620, #14161a 60%, #1f2228); }
.sr-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.sr-frame.loaded img { opacity: 1; }
.sr-frame.missing::after {
  content: attr(data-label); position: absolute; inset: auto 12px 12px auto; font: 11px/1 var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* Concept badge: every demo says it is one. */
.sr-concept {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60;
  font: 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 99px; background: rgba(13, 14, 16, 0.72); color: var(--muted);
  border: 1px solid var(--line); backdrop-filter: blur(10px); white-space: nowrap;
}
.sr-concept a { color: var(--ink); text-decoration: none; }

/* Lightbox */
.sr-lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
  background: rgba(8, 8, 9, 0.94); opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.sr-lightbox.open { opacity: 1; pointer-events: auto; }
.sr-lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.sr-lightbox img { max-height: 82vh; width: auto; max-width: 100%; }
.sr-lightbox figcaption { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.sr-lightbox button { background: none; border: 0; font-size: 40px; cursor: pointer; color: var(--ink); height: 100%; }
.sr-lb-close { position: absolute; top: 12px; right: 18px; height: auto !important; }

/* Reduced motion: everything readable, nothing pinned. */
html.reduced .sr-word .sr-inner { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
