:root {
  color-scheme: light;
  --ink: #111a3a;
  --ink-soft: #45506e;
  --ink-muted: #7c849c;
  --blue: #3156e8;
  --blue-deep: #2547d1;
  --violet: #7655e8;
  --mint: #47c6a3;
  --orange: #f08a42;
  --gold: #f1be48;
  --porcelain: #fffdf8;
  --line: rgba(17, 26, 58, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.demo-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 30px);
  background: var(--canvas);
}

button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(49, 86, 232, 0.38);
  outline-offset: 4px;
}

.demo {
  position: relative;
  isolation: isolate;
  width: min(100%, 1440px);
  min-height: min(900px, calc(100vh - 24px));
  overflow: hidden;
  padding: clamp(18px, 3vw, 44px);
  border-radius: clamp(28px, 3.2vw, 48px);
  background: transparent;
}

.product {
  width: 100%;
  max-width: 1330px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(17, 26, 58, 0.1);
  border-radius: 30px;
  background: rgba(255, 253, 251, 0.94);
  box-shadow: 0 32px 90px rgba(47, 44, 60, 0.12), 0 2px 4px rgba(87, 65, 46, 0.05);
}

.product-bar {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(17, 26, 58, 0.08);
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.product-brand img { width: 32px; height: 32px; }

.product-location {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.product-location span:last-child { display: grid; }
.product-location small {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-orbit {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(118, 85, 232, 0.24);
  border-radius: 50%;
}

.location-orbit::after,
.location-orbit i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  content: "";
}

.location-orbit::after { position: absolute; top: -2px; right: 2px; background: var(--gold); }

.prototype-label {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  margin: 0;
  color: #6d5c30;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prototype-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(241, 190, 72, 0.15);
}

.workspace { padding: 34px 38px 28px; }

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--violet);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workspace-heading h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  padding: 8px 11px;
  border: 1px solid rgba(17, 26, 58, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 630;
  white-space: nowrap;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(71, 198, 163, 0.12);
}

.decision-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(205px, 0.76fr) minmax(180px, 0.58fr) minmax(288px, 1fr);
  min-height: 438px;
  overflow: hidden;
  border: 1px solid rgba(17, 26, 58, 0.085);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(250, 248, 255, 0.84), rgba(255, 253, 248, 0.93) 58%, rgba(255, 248, 231, 0.84));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.94);
}

.decision-field::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 48% 48%, rgba(118, 85, 232, 0.1), transparent 23%),
    linear-gradient(90deg, transparent 31.5%, rgba(17, 26, 58, 0.052) 31.6%, rgba(17, 26, 58, 0.052) 31.7%, transparent 31.8%, transparent 59.8%, rgba(17, 26, 58, 0.052) 59.9%, rgba(17, 26, 58, 0.052) 60%, transparent 60.1%);
}

.signal-paths { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 9; opacity: 0; }

.signals,
.fit-lens,
.opportunity { position: relative; z-index: 2; }

.signals { padding: 22px 20px; }
.field-label {
  margin: 0;
  color: rgba(17, 26, 58, 0.46);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signal {
  position: absolute;
  left: 20px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: calc(100% - 40px);
  min-height: 70px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(17, 26, 58, 0.085);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 13px 30px rgba(63, 51, 85, 0.07), inset 0 1px white;
  transform-origin: left center;
}

.signal-demand { top: 68px; }
.signal-capacity { top: 183px; }
.signal-return { top: 298px; }

.signal-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
}

.signal-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.signal-demand .signal-icon { color: var(--violet); background: rgba(118, 85, 232, 0.11); }
.signal-capacity .signal-icon { color: #279d7e; background: rgba(71, 198, 163, 0.12); }
.signal-return .signal-icon { color: #d76d2f; background: rgba(240, 138, 66, 0.12); }

.signal-copy { display: grid; min-width: 0; }
.signal-copy strong { overflow: hidden; font-size: 11px; font-weight: 710; letter-spacing: -0.018em; text-overflow: ellipsis; white-space: nowrap; }
.signal-copy small { overflow: hidden; margin-top: 3px; color: var(--ink-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.signal-change {
  display: grid;
  min-width: 27px;
  height: 25px;
  padding: 0 6px;
  place-items: center;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 760;
}

.signal-demand .signal-change { color: var(--violet); background: rgba(118, 85, 232, 0.1); }
.signal-capacity .signal-change { color: #248c70; background: rgba(71, 198, 163, 0.11); }
.signal-return .signal-change { color: #c35f28; background: rgba(240, 138, 66, 0.11); }

.fit-lens {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
}

.fit-lens .field-label { align-self: stretch; text-align: center; }

.lens-assembly {
  position: absolute;
  top: 117px;
  left: 50%;
  width: 146px;
  height: 146px;
  transform: translateX(-50%);
}

.lens-rings,
.lens-rings i,
.lens-core { position: absolute; inset: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.lens-rings { width: 146px; height: 146px; border: 1px solid rgba(118, 85, 232, 0.13); box-shadow: 0 0 45px rgba(118, 85, 232, 0.1); }
.lens-rings i:nth-child(1) { width: 116px; height: 116px; border: 1px solid rgba(118, 85, 232, 0.18); }
.lens-rings i:nth-child(2) { width: 92px; height: 92px; border: 1px dashed rgba(49, 86, 232, 0.22); }
.lens-rings i:nth-child(3) { width: 9px; height: 9px; border: 0; background: var(--gold); transform: translate(50px, -57px); box-shadow: 0 0 0 5px rgba(241, 190, 72, 0.12); }

.lens-core {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(118, 85, 232, 0.2);
  background: linear-gradient(145deg, #fff, #ece7ff);
  box-shadow: 0 17px 35px rgba(83, 64, 132, 0.13), inset 0 1px white;
}

.lens-core strong { position: relative; z-index: 2; color: var(--blue); font-size: 11px; letter-spacing: 0.08em; }

.mini-mark { position: absolute; inset: 0; }
.mini-mark i { position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--violet); }
.mini-mark i:nth-child(1) { background: var(--gold); transform: rotate(0deg) translateY(-25px); }
.mini-mark i:nth-child(2) { transform: rotate(45deg) translateY(-25px); }
.mini-mark i:nth-child(3) { background: var(--mint); transform: rotate(90deg) translateY(-25px); }
.mini-mark i:nth-child(4) { background: var(--blue); transform: rotate(135deg) translateY(-25px); }
.mini-mark i:nth-child(5) { background: var(--orange); transform: rotate(180deg) translateY(-25px); }
.mini-mark i:nth-child(6) { background: var(--mint); transform: rotate(225deg) translateY(-25px); }
.mini-mark i:nth-child(7) { background: var(--blue); transform: rotate(270deg) translateY(-25px); }
.mini-mark i:nth-child(8) { background: var(--orange); transform: rotate(315deg) translateY(-25px); }

.lens-ray { position: absolute; top: 50%; left: 50%; width: 1px; height: 65px; transform-origin: top; background: linear-gradient(rgba(118,85,232,.35), transparent); }
.ray-one { transform: rotate(18deg); }
.ray-two { transform: rotate(138deg); }
.ray-three { transform: rotate(258deg); }

.fit-copy {
  position: absolute;
  top: 292px;
  width: 160px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.fit-copy::before {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  content: "";
}

.opportunity {
  align-self: center;
  width: calc(100% - 38px);
  min-height: 378px;
  margin: 20px 18px 20px 20px;
  padding: 20px;
  border: 1px solid rgba(146, 108, 43, 0.15);
  border-radius: 21px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 20px 45px rgba(83, 60, 76, 0.1), inset 0 1px white;
  transform-origin: right center;
}

.opportunity::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--gold), var(--orange));
  content: "";
}

.opportunity-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opportunity-kicker { display: inline-flex; align-items: center; gap: 7px; color: #a96324; font-size: 9px; font-weight: 780; letter-spacing: 0.11em; text-transform: uppercase; }
.opportunity-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(241, 190, 72, 0.13); }
.confidence { padding: 5px 8px; border-radius: 999px; color: #258064; background: rgba(71, 198, 163, 0.11); font-size: 9px; font-weight: 720; }

.opportunity-title { display: flex; align-items: center; gap: 15px; margin-top: 17px; }
.opportunity-title p { margin: 0 0 3px; color: var(--ink-muted); font-size: 9px; font-weight: 650; }
.opportunity-title h2 { margin: 0; font-size: clamp(20px, 2.3vw, 28px); font-weight: 730; letter-spacing: -0.05em; line-height: 1; }

.guitar-token {
  width: 56px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: #fffdfa;
}
.guitar-token img {
  width: 68px;
  height: 68px;
  max-width: none;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: saturate(1.06) contrast(1.04);
  transform: rotate(-3deg) scale(1.04);
}

.opportunity-time,
.learner-fit { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(17, 26, 58, 0.075); }
.opportunity-time { margin-top: 16px; }
.calendar-day { display: grid; width: 40px; height: 38px; place-items: center; border-radius: 11px; color: var(--blue); background: #edf0ff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.opportunity-time p,
.learner-fit p { display: grid; margin: 0; }
.opportunity-time strong,
.learner-fit strong { font-size: 11px; font-weight: 720; }
.opportunity-time small,
.learner-fit small { margin-top: 2px; color: var(--ink-muted); font-size: 9px; }

.learners { display: flex; width: 78px; padding-left: 4px; }
.learners span { display: grid; width: 28px; height: 28px; margin-left: -5px; place-items: center; border: 2px solid #fffdfa; border-radius: 50%; color: white; background: var(--violet); font-size: 7px; font-weight: 780; }
.learners span:nth-child(2) { background: var(--blue); }
.learners span:nth-child(3) { background: var(--mint); }
.learners span:nth-child(4) { background: var(--orange); }

.rationale { margin: 12px 0; color: var(--ink-soft); font-size: 9px; line-height: 1.55; }

.review-action {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 22px rgba(49, 86, 232, 0.2);
  font-size: 10px;
  font-weight: 680;
}
.review-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.film-footer {
  display: flex;
  width: 100%;
  max-width: 1330px;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 13px 8px 0;
}

.preview-note { display: flex; align-items: center; gap: 9px; margin: 0; color: #626b83; font-size: 11px; font-weight: 670; }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(240,138,66,.1); }

.film-steps { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.film-steps li { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-muted); font-size: 9px; font-weight: 680; transition: color 350ms ease; }
.film-steps span { width: 20px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(17, 26, 58, 0.1); }
.film-steps span::after { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--blue); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }

.control-actions { display: flex; gap: 7px; }
.control-button { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(17, 26, 58, 0.1); border-radius: 999px; color: var(--ink); background: rgba(255,253,251,.85); box-shadow: 0 5px 14px rgba(44,39,64,.06); font-size: 9px; font-weight: 690; cursor: pointer; }
.control-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.control-primary { color: var(--blue); border-color: rgba(49,86,232,.14); background: rgba(238,241,255,.94); }
.play-icon { display: none; fill: currentColor !important; stroke: none !important; }
.is-paused .pause-icon { display: none; }
.is-paused .play-icon { display: block; }

.honesty-note { margin: 5px 0 -8px; color: rgba(17, 26, 58, 0.47); font-size: 9px; font-weight: 620; letter-spacing: 0.03em; text-align: center; }

/* Film states: one composition progressively becomes legible. */
.signal,
.opportunity,
.fit-copy,
.status-pulse,
.traveller { transition: opacity 520ms ease, transform 680ms var(--ease); }
.lens-assembly { transition: opacity 540ms ease, transform 720ms var(--ease), filter 700ms ease; }
.path { transition: opacity 480ms ease, stroke-dashoffset 900ms ease; stroke-dashoffset: 60; }

[data-phase="reset"] .signal { opacity: 0; transform: translateX(-22px) scale(.94); }
[data-phase="reset"] .lens-assembly { opacity: .2; transform: translateX(-50%) scale(.78); filter: grayscale(.35); }
[data-phase="reset"] .fit-copy { opacity: 0; transform: translateY(8px); }
[data-phase="reset"] .opportunity { opacity: 0; transform: translateX(30px) scale(.96); }
[data-phase="reset"] .status-pulse { background: var(--violet); box-shadow: 0 0 0 4px rgba(118,85,232,.12); }

[data-phase="collect"] .signal { opacity: 1; transform: none; }
[data-phase="collect"] .signal-capacity { transition-delay: 120ms; }
[data-phase="collect"] .signal-return { transition-delay: 240ms; }
[data-phase="collect"] .lens-assembly { opacity: .46; transform: translateX(-50%) scale(.9); filter: grayscale(.18); }
[data-phase="collect"] .fit-copy { opacity: 0; }
[data-phase="collect"] .opportunity { opacity: 0; transform: translateX(30px) scale(.96); }
[data-phase="collect"] .path-demand,
[data-phase="collect"] .path-capacity,
[data-phase="collect"] .path-return { opacity: .54; stroke-dashoffset: 0; }

[data-phase="fit"] .signal { opacity: 1; transform: none; }
[data-phase="fit"] .lens-assembly { opacity: 1; transform: translateX(-50%) scale(1); filter: none; }
[data-phase="fit"] .lens-rings { animation: lens-breathe 1.8s ease-in-out infinite; }
[data-phase="fit"] .lens-rings i:nth-child(2) { animation: lens-turn 5s linear infinite; }
[data-phase="fit"] .fit-copy { opacity: 1; transform: none; }
[data-phase="fit"] .opportunity { opacity: .16; transform: translateX(24px) scale(.97); }
[data-phase="fit"] .path { opacity: .82; stroke-dashoffset: 0; animation: path-flow 1.1s linear infinite; }
[data-phase="fit"] .traveller-one { opacity: 1; animation: travel-demand 2s var(--ease) infinite; }
[data-phase="fit"] .traveller-two { opacity: 1; animation: travel-capacity 1.9s .18s var(--ease) infinite; }
[data-phase="fit"] .traveller-three { opacity: 1; animation: travel-return 2.1s .32s var(--ease) infinite; }

[data-phase="resolve"] .signal,
[data-phase="settled"] .signal { opacity: .72; transform: none; }
[data-phase="resolve"] .lens-assembly,
[data-phase="settled"] .lens-assembly { opacity: 1; transform: translateX(-50%) scale(1); filter: none; }
[data-phase="resolve"] .fit-copy,
[data-phase="settled"] .fit-copy { opacity: 1; transform: none; }
[data-phase="resolve"] .path,
[data-phase="settled"] .path { opacity: .44; stroke-dashoffset: 0; }
[data-phase="resolve"] .path-result,
[data-phase="settled"] .path-result { opacity: .9; }
[data-phase="resolve"] .traveller-result { opacity: 1; animation: travel-result 1.2s var(--ease) both; }
[data-phase="resolve"] .opportunity,
[data-phase="settled"] .opportunity { opacity: 1; transform: none; }
[data-phase="resolve"] .opportunity { animation: opportunity-arrive 720ms var(--ease) both; }
[data-phase="settled"] .review-action { animation: action-settle 620ms var(--ease) both; }

[data-phase="collect"] [data-step="collect"],
[data-phase="fit"] [data-step="collect"],
[data-phase="fit"] [data-step="fit"],
[data-phase="resolve"] [data-step="collect"],
[data-phase="resolve"] [data-step="fit"],
[data-phase="resolve"] [data-step="settled"],
[data-phase="settled"] [data-step] { color: var(--ink); }
[data-phase="collect"] [data-step="collect"] span::after,
[data-phase="fit"] [data-step="collect"] span::after,
[data-phase="fit"] [data-step="fit"] span::after,
[data-phase="resolve"] [data-step] span::after,
[data-phase="settled"] [data-step] span::after { transform: scaleX(1); }
[data-phase="fit"] [data-step="fit"] span::after { background: var(--violet); }
[data-phase="resolve"] [data-step="settled"] span::after,
[data-phase="settled"] [data-step="settled"] span::after { background: var(--orange); }

.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

@keyframes lens-breathe { 50% { transform: translate(-50%, -50%) scale(1.045); box-shadow: 0 0 55px rgba(118,85,232,.18); } }
@keyframes lens-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes path-flow { to { stroke-dashoffset: -28; } }
@keyframes travel-demand { 0% { offset-distance: 0%; } 85%,100% { offset-distance: 100%; } }
@keyframes travel-capacity { 0% { offset-distance: 0%; } 85%,100% { offset-distance: 100%; } }
@keyframes travel-return { 0% { offset-distance: 0%; } 85%,100% { offset-distance: 100%; } }
@keyframes travel-result { 0% { offset-distance: 0%; opacity: 0; } 20% { opacity: 1; } 100% { offset-distance: 100%; opacity: 1; } }
@keyframes opportunity-arrive { 0% { opacity: .14; transform: translateX(25px) scale(.97); } 72% { opacity: 1; transform: translateX(-3px) scale(1.008); } 100% { opacity: 1; transform: none; } }
@keyframes action-settle { 0% { box-shadow: 0 10px 22px rgba(49,86,232,.2); } 48% { box-shadow: 0 14px 30px rgba(49,86,232,.32), 0 0 0 5px rgba(49,86,232,.08); } 100% { box-shadow: 0 10px 22px rgba(49,86,232,.2); } }

.traveller-one { offset-path: path("M220 104 C310 104 300 174 405 190"); }
.traveller-two { offset-path: path("M220 218 C316 218 318 218 405 218"); }
.traveller-three { offset-path: path("M220 334 C315 334 302 270 405 245"); }
.traveller-result { offset-path: path("M593 218 C660 218 665 218 726 218"); }

@media (max-width: 860px) {
  .demo { min-height: 700px; }
  .workspace { padding: 24px 20px 18px; }
  .workspace-heading { align-items: flex-start; }
  .decision-field { grid-template-columns: minmax(180px, .78fr) minmax(145px, .56fr) minmax(250px, 1fr); overflow-x: auto; }
  .decision-field > * { min-width: 0; }
  .signal-copy small { max-width: 105px; }
}

@media (max-width: 680px) {
  .demo-page { display: block; padding: 0; }
  .demo { min-height: 100vh; padding: 12px; border-radius: 0; }
  .product { border-radius: 22px; }
  .product-bar { grid-template-columns: 1fr auto; padding: 0 15px; }
  .product-location { display: none; }
  .prototype-label { font-size: 8px; }
  .workspace { padding: 22px 14px 14px; }
  .workspace-heading { display: grid; gap: 14px; }
  .workspace-heading h1 { max-width: 12ch; font-size: 29px; }
  .workspace-status { justify-self: start; }
  .decision-field { display: flex; min-height: 0; flex-direction: column; overflow: visible; background: rgba(255,253,248,.66); }
  .decision-field::before, .signal-paths { display: none; }
  .signals { min-height: 322px; padding: 18px 14px; }
  .signal { left: 14px; width: calc(100% - 28px); }
  .signal-demand { top: 50px; }
  .signal-capacity { top: 137px; }
  .signal-return { top: 224px; }
  .fit-lens { min-height: 220px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .lens-assembly { top: 45px; }
  .fit-copy { top: 160px; }
  .opportunity { width: calc(100% - 28px); min-height: 0; margin: 14px; padding: 18px; }
  .film-footer { min-height: 58px; padding: 10px 5px 0; }
  .preview-note { font-size: 9px; }
  .film-steps { gap: 7px; }
  .film-steps li { font-size: 0; gap: 0; }
  .film-steps span { width: 27px; }
  .control-button { padding: 0 9px; }
  .honesty-note { padding: 0 20px; }
}

@media (max-width: 420px) {
  .prototype-label { font-size: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .control-actions { display: none; }
}
