/* Compact controls belong to the specimen; the optional look stays folded. */
.hero-demo{--demo-accent:var(--grade-text);margin-top:24px;max-width:420px;border:1px solid var(--glass-edge);border-radius:18px;background:linear-gradient(150deg,var(--tint-grade),var(--surface));box-shadow:var(--shadow-panel);overflow:clip}
.hero-demo[data-selection=sleep]{--demo-accent:var(--sleep-text);background:linear-gradient(150deg,var(--tint-sleep),var(--surface))}
.hero-demo[data-selection=code]{--demo-accent:var(--data-text);background:linear-gradient(150deg,var(--tint-code),var(--surface))}
/* Reserve the same layout before deferred scripts arrive; no hidden focus targets. */
html.js .hero-demo[hidden]{display:block !important;visibility:hidden}
.hero-demo-heading{display:flex;align-items:center;gap:8px;padding:12px 16px 0;font-size:12px;font-weight:600;color:var(--ink)}
.hero-demo-heading .status-dot{width:5px;height:5px;background:var(--demo-accent);box-shadow:none}
.hero-demo-tag{margin-left:auto;font-size:10px;letter-spacing:.03em;color:var(--muted);font-weight:400}
.hero-demo-body{padding:12px 16px 14px;min-height:108px}
.demo-control-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted)}
.demo-control-label output{font:500 17px/1 var(--font-mono);letter-spacing:-.04em;color:var(--ink)}
.demo-range{display:block;appearance:none;width:100%;min-width:0;height:32px;margin:0;cursor:ew-resize;background:none;border:0;padding:0;--progress:50%;--range-accent:var(--demo-accent)}
.demo-range::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(90deg,var(--range-accent) var(--progress),var(--rule-strong) var(--progress))}
.demo-range::-moz-range-track{height:4px;border-radius:4px;background:var(--rule-strong)}
.demo-range::-moz-range-progress{height:4px;border-radius:4px;background:var(--range-accent)}
.demo-range::-webkit-slider-thumb{appearance:none;width:16px;height:16px;margin-top:-6px;border:3px solid var(--surface);border-radius:50%;background:var(--range-accent);box-shadow:0 0 0 1px var(--range-accent)}
.demo-range::-moz-range-thumb{width:10px;height:10px;border:3px solid var(--surface);border-radius:50%;background:var(--range-accent);box-shadow:0 0 0 1px var(--range-accent)}
.demo-answer{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 8px;font-size:12px;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums}
.demo-answer>span:not(.demo-answer-note){color:var(--ink)}
.demo-answer output{color:var(--demo-accent);font:500 22px/1.1 var(--font-display);letter-spacing:-.03em}
.demo-answer .icon{width:16px;height:16px;align-self:center}
.demo-answer-note{font-size:11px}
.demo-data-intro{display:grid;align-content:center;gap:10px;font-size:13px;line-height:1.5;color:var(--muted)}
.demo-data-intro .text-cta{min-height:32px;gap:8px;font-size:13px;color:var(--data-text)}
.hero-look{border-top:1px solid var(--rule)}
.hero-look>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:0 16px;font-size:11px;color:var(--muted);list-style:none;cursor:pointer}
.hero-look>summary::-webkit-details-marker{display:none}
.hero-look>summary .icon{width:14px;height:14px;transition:rotate var(--t-ui)}
.hero-look[open]>summary .icon{rotate:45deg}
.hero-look-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:6px 16px 16px}
.hero-look-controls label{display:grid;gap:6px;min-width:0;font-size:11px;color:var(--muted)}
.hero-look-controls select{min-height:36px;font-size:12px;padding:6px 30px 6px 10px}
.hero-look-controls .look-light{grid-column:1 / -1;gap:0}
.hero-look-controls .text-button{justify-self:start;grid-column:1 / -1;min-height:32px;font-size:12px}
.scene-dock [data-scene-link]{display:flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:44px;padding-inline:14px;border-radius:var(--r-pill);font-size:12px;font-weight:600;text-decoration:none}
.object-hint{position:absolute;right:3.4%;top:3.4%;margin:0;font:10px/1.4 var(--font-mono);color:var(--muted);pointer-events:none;letter-spacing:.02em}
.hero-visual:not([data-glass-tier=live]) .object-hint,html:not(.js) .object-hint{display:none}
@media (min-width:901px) and (max-height:800px){.hero-copy .eyebrow{margin-bottom:14px}.hero-copy h1{margin-bottom:18px}.hero-description{margin-bottom:22px}.hero-demo{margin-top:18px}.hero-note{margin-top:12px}.hero-visual{align-self:start}}
@media (max-width:680px){
  .hero-demo{margin-top:18px;max-width:none}
  .hero-demo-body{min-height:104px}
  .demo-range{height:44px}
  .hero-look>summary,.hero-look-controls select,.hero-look-controls .text-button,.demo-data-intro .text-cta{min-height:44px}
  .hero-look-controls select{font-size:16px}
  .hero-look-controls{gap:10px}
  .scene-dock [data-scene-link],.object-hint{display:none}
}
@media (hover:none) or (pointer:coarse){.object-hint{display:none}}
@media (prefers-reduced-motion:reduce){.hero-look>summary .icon{transition:none}}
@media (forced-colors:active){.demo-range{appearance:auto}.hero-demo{border-color:CanvasText}.hero-look{display:none}}
