/* Shared research-site primitives and roles. Responsive thresholds live in
   media queries. Change sticky frame and header dimensions together. */
:root {
  color-scheme: light;
  --ds-hairline: 1px;
  --ds-home-axis: calc(40% + var(--ds-gutter) * .2);
  --ds-screen-state-min: 6.5rem;
  --ds-control-face: linear-gradient(155deg, var(--ds-surface) 18%, var(--ds-paper) 66%, var(--ds-surface-muted));
  --ds-control-primary: linear-gradient(155deg, var(--ds-ink-secondary), var(--ds-dark) 74%);
  --ds-control-rim: conic-gradient(from 45deg, var(--ds-line), var(--ds-glass-glint), var(--ds-outline), var(--ds-glass-glint), var(--ds-line));
  --ds-control-raised: inset 0 1px 0 var(--ds-glass-glint), 0 2px 4px var(--ds-glass-edge);
  --ds-control-pressed: inset 0 2px 4px var(--ds-glass-edge);
  --ds-paper: #f4f3eb;
  --ds-surface: #fbfaf5;
  --ds-surface-muted: #e8e8e8;
  --ds-stage: #e1e1e1;
  --ds-ink: #191919;
  --ds-nav-ink: #191919;
  --ds-ink-secondary: #505050;
  --ds-accent: #303030;
  --ds-line: #bfbfbf;
  --ds-outline: #878787;
  --ds-inverse: #f6f6f6;
  --ds-dark: #262626;
  --ds-focus: #565656;
  --ds-olive: #cfcfcf;
  --ds-paper-glass: #f4f3ebf5;
  --ds-font-ui: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --ds-font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ds-font-serif: Georgia, "Times New Roman", serif;
  --ds-font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ds-type-meta: .75rem;
  --ds-type-body: 1rem;
  --ds-leading-body: 1.55;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-6: 24px;
  --ds-space-8: 32px;
  --ds-radius-control: 6px;
  --ds-radius-panel: 10px;
  --ds-radius-stage: 12px;
  --ds-radius-pill: 999px;
  --ds-shadow-menu: 0 8px 24px #15151521;
  --ds-motion-feedback: 160ms;
  --ds-ease-out: ease-out;
  --ds-ink-on-dark-muted: #dadada;
  --ds-line-on-dark: #808080;
  --ds-label-on-dark: #eeeeee;
  --ds-focus-on-dark: #dedede;
  --ds-stage-panel: #252525ec;
  --ds-stage-label-line: #b5b5b575;
  --ds-stage-gloss: #ffffff25;
  --ds-interaction-wash: #4747470a;
  --ds-veil: #20202081;
  --ds-stage-edge: #2222223b;
  --ds-chart-disc: #424242;
  --ds-chart-pleat: #777777;
  --ds-chart-track: #dadada;
  --ds-shadow-panel: 0 22px 85px #1919193d;
  --ds-shadow-label: 0 2px 7px #22222226;
  --ds-type-tiny: .625rem;
  --ds-type-caption: .6875rem;
  --ds-type-control: .8125rem;
  --ds-type-small: .875rem;
  --ds-type-lead: 1.125rem;
  --ds-space-5: 20px;
  --ds-space-10: 40px;
  --ds-radius-float: 6px;
  --ds-focus-ring: 3px solid var(--ds-focus);
  --ds-control-height: 40px;
  --ds-hero-action-height: 48px;
  --ds-action-wash: rgb(0 0 0 / 4%);
  /* WebGL stage backdrops double as visual fallbacks while models load. */
  --ds-glass-ivory: #f5f4ef;
  --ds-glass-mist: #deddd8;
  --ds-glass-glint: #fffff6c2;
  --ds-glass-edge: #aeaeae73;
  --ds-glass-focus: #555555;
  --ds-glass-rim: inset 0 1px 1px var(--ds-glass-glint);
  --ds-product-glass:
    radial-gradient(ellipse at 80% 36%,var(--ds-glass-mist),transparent 70%),
    linear-gradient(135deg,var(--ds-surface),var(--ds-glass-ivory) 60%);
  --ds-studio-overview: var(--ds-product-glass);
  --ds-gutter: clamp(20px, 4.8vw, 96px);
  --ds-nav-hit: 44px;
  --ds-nav-panel: 69rem;
  --ds-nav-preview-height: clamp(13rem, 17vw, 16rem);
  --ds-motion-preview: 220ms;
  --ds-header-desktop: 64px;
  --ds-header-compact: 56px;
  --ds-stage-reading-width: 1340px;
  --ds-reading-measure: 64ch;
}
@media (prefers-reduced-motion: reduce) {
  :root { --ds-motion-feedback: 0ms; --ds-motion-preview: 0ms; }
}
