/* Hero word scenes (js/hero-scenes.js). The stage is 2.45 font-sizes tall: room above the word for
   machines and a little below for decks and conveyors. --hs-fs matches the hero word size. */
.hs-stage { display: block; --hs-fs: clamp(40px, 11.5vw, 160px); position: relative; width: 100%; height: calc(var(--hs-fs) * 2.45); overflow: visible; }
.hs-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hs-back { z-index: 0; } .hs-front { z-index: 2; }
.hs-word { display: block; position: absolute; left: 0; right: 0; top: calc(var(--hs-fs) * 1.0); z-index: 1; text-align: center; white-space: nowrap;
  font-family: var(--font-serif); font-weight: 400; font-size: var(--hs-fs); line-height: 1; letter-spacing: -0.04em; color: var(--ink-900); }
.hs-l { display: inline-block; will-change: transform; }
.hs-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }

/* /lab/hero preview page */
.lab { padding: 32px 0 80px; }
.lab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lab-head h1 { margin: 0; font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; color: var(--ink-900); }
.lab-head p { margin: 6px 0 0; color: var(--ink-500); max-width: 720px; }
.lab-card { margin-top: 24px; border: 1px solid var(--ink-100); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 40px) clamp(12px, 3vw, 40px) clamp(20px, 3vw, 32px); }
.lab-now { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink-100); }
.lab-now strong { font-weight: 400; font-size: var(--text-xl); color: var(--ink-900); }
.lab-now span { color: var(--ink-500); max-width: 760px; }
.lab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lab-chip { border: 1px solid var(--ink-200); background: #fff; color: var(--ink-700); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 15px; cursor: pointer; }
.lab-chip:hover { border-color: var(--green-600); }
.lab-chip[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.lab-chip small { font-family: var(--font-mono); font-size: 12px; opacity: 0.7; margin-right: 6px; }
.lab-ctrl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lab-ctrl button { border: 1px solid var(--ink-200); background: #fff; border-radius: 999px; min-width: 44px; height: 44px; padding: 0 16px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink-900); }
.lab-ctrl button:hover { border-color: var(--green-600); background: var(--green-050); }
.lab-ctrl label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-700); margin-left: 6px; }

/* In the landing hero (#hero-stage inside the <h1>) */
.hero-word.hero-scenes { font-size: inherit; line-height: 1; min-height: 0; letter-spacing: normal; }
.hero-scenes .hs-stage { --hs-fs: clamp(40px, 11vw, 156px); margin: 14px 0 -12px; }
