/* Product-process stage, inside the existing MeJn palette and type system. */
.hero-workbench{position:relative;background:var(--paper);overflow:clip;padding-top:26px}
.hero-workbench .hero-layout{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.32fr);gap:54px;align-items:center;min-height:700px;padding-top:20px;padding-bottom:34px}
.hero-workbench .hero-copy{position:relative;z-index:2;padding-bottom:26px}
.hero-workbench .hero-person{margin-bottom:31px}
.hero-workbench .hero-name{font-size:30px}
.hero-workbench .hero-title{font-size:clamp(38px,3.9vw,62px);line-height:1.3;letter-spacing:-.035em}
.hero-workbench .hero-emphasis{white-space:nowrap}
.hero-workbench .hero-experience{margin-top:24px;font-size:16px;line-height:1.8}
.hero-workbench .hero-lead{max-width:29em;font-size:15px;line-height:1.9;margin-top:17px}
.hero-workbench .hero-ownership{font-size:12px;line-height:1.9;margin-top:16px;max-width:27em}
.hero-workbench .hero-actions{gap:10px;margin-top:25px;flex-wrap:wrap}
.hero-workbench .hero-case-shortcut{font-size:12px;margin-top:14px}
.hero-workbench .hero-art{position:relative;max-width:none;min-width:0;perspective:none;transform:none!important;isolation:isolate}
.stage-orbit{position:absolute;inset:-9% -9% auto;width:116%;height:110%;fill:none;stroke:var(--line);stroke-width:1;pointer-events:none;z-index:-1;opacity:.7}
.hero-workbench .proof-deck,.hero-workbench .deck-perspective{position:relative;width:100%;height:auto;transform:none;min-height:0}
.hero-workbench .proof-console{position:relative;inset:auto;transform:none;background:var(--ink);padding:24px 22px 0;border:0;border-radius:28px;box-shadow:0 28px 48px -34px color-mix(in srgb,var(--ink) 60%,transparent);overflow:visible;color:var(--on-dark)}
.workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 3px;margin:0}
.workbench-heading h2{font-family:var(--font-cn);font-size:31px;line-height:1.3;font-weight:700;letter-spacing:-.025em;color:var(--on-dark)}
.workbench-heading h2 span{font-size:16px;font-weight:500;margin-left:12px;letter-spacing:0;white-space:nowrap}
.workbench-heading p{font-size:12px;line-height:1.8;margin-top:6px;color:var(--on-dark-muted)}
.stage-project{display:grid;place-items:center;min-width:44px;min-height:44px;color:var(--on-dark-muted);border:1px solid var(--dark-line);border-radius:50%}
.stage-project:hover{color:var(--on-dark);background:var(--dark-panel)}
.stage-picker{display:flex;gap:7px;padding:20px 0 13px}
.stage-picker button{min-height:44px;padding:10px 18px;border-radius:var(--radius-pill);font-size:13px;line-height:1.5;color:var(--on-dark-muted);transition:background .2s,color .2s}
.stage-picker button[aria-pressed=true]{background:var(--signal-soft);color:var(--signal);font-weight:500}
.stage-picker button:hover{background:var(--dark-panel);color:var(--on-dark)}
.stage-picker button[aria-pressed=true]:hover{background:var(--signal-soft);color:var(--signal)}
.stage-canvas{position:relative;min-height:332px;background:var(--surface);color:var(--ink);border-radius:18px;isolation:isolate;overflow:clip}
.stage-window-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 20px 12px;border-bottom:1px solid var(--line);font-size:11px;line-height:1.6;color:var(--muted)}
.stage-window-bar>span:first-child{display:inline-flex;align-items:center;gap:7px}
.stage-window-bar .ic{width:14px;height:14px;color:var(--signal)}
.stage-disclosure{font-size:10px;color:var(--signal);white-space:nowrap}
.stage-scene{position:relative;min-height:285px;padding:22px 28px 24px;z-index:1}
.stage-scene[hidden],.stage-layer[hidden]{display:none!important}
.stage-layer{min-height:238px;padding-right:180px;animation:stage-paper-arrival .5s cubic-bezier(.16,1,.3,1) both}
.stage-context{font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:9px}
.stage-layer h3{font-size:clamp(24px,2.25vw,34px);line-height:1.4;letter-spacing:-.025em;color:var(--ink);font-weight:700}
.stage-request{display:flex;align-items:center;gap:12px;margin-top:20px;padding:14px 16px;background:var(--signal-soft);border-radius:16px 16px 4px 16px;box-shadow:0 12px 24px -20px var(--signal)}
.stage-request>span{font-size:11px;color:var(--signal)}
.stage-request p{font-size:14px;line-height:1.7;flex:1;min-width:0}
.stage-request>.ic{width:15px;height:15px;flex:none;color:var(--signal)}
.stage-aside{font-size:11px;line-height:1.8;color:var(--muted);margin-top:12px}
.stage-records{margin-top:15px;display:grid}
.stage-records>div{display:grid;grid-template-columns:62px minmax(0,1fr);gap:9px;padding:10px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.8}
.stage-records dt{color:var(--muted);font-size:10px;align-self:center}
.stage-records dd{display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;min-width:0}
.record-state{font-size:10px;color:var(--muted);white-space:nowrap}
.record-state.done{color:var(--signal)}
.record-background{opacity:.8}
.stage-result{margin-top:18px;display:grid;gap:12px}
.stage-result>div{display:grid;grid-template-columns:50px 1fr;gap:16px;font-size:15px;line-height:1.7}
.stage-result dt{font-size:11px;color:var(--signal);padding-top:3px}
.stage-principle{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.8;color:var(--signal);margin-top:20px}
.stage-principle .ic{width:13px;height:13px;flex:none}
.stage-memory{margin-top:17px;padding-top:12px;border-top:1px solid var(--line)}
.stage-memory>span{font-size:10px;color:var(--signal)}
.stage-memory p{font-size:16px;line-height:1.8;margin-top:3px}
.stage-memory small{display:block;font-size:11px;color:var(--muted);line-height:1.8;margin-top:5px}
.stage-execution{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:25px;font-size:12px;line-height:1.8;color:var(--signal)}
.stage-execution span{display:inline-flex;align-items:center;gap:6px;padding:8px 0}
.stage-execution .ic{width:13px;height:13px;flex:none}
.stage-character{position:absolute;right:0;bottom:0;width:280px;height:280px;pointer-events:none;z-index:2}
#stage-character{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform-origin:50% 65%;transition:translate .6s cubic-bezier(.16,1,.3,1)}
#stage-character-video{position:absolute;left:0;top:21.875%;width:100%;height:56.25%;opacity:0;object-fit:fill;pointer-events:none}.workbench[data-character-ready="true"] #stage-character-video{opacity:1}.workbench[data-character-ready="true"] #stage-character{opacity:0}
.stage-character-ground{position:absolute;left:23%;right:23%;bottom:27%;height:12px;background:var(--signal-soft);border:1px solid var(--line);border-radius:50%;transform:rotate(-5deg);z-index:-1}
.stage-character-note{position:absolute;left:14px;right:10px;bottom:17%;text-align:center;font-size:10px;line-height:1.6;color:var(--signal)}
.workbench[data-phase="0"] #stage-character{translate:0 10px;rotate:-3deg}
.workbench[data-phase="1"] #stage-character{translate:-6px 0;rotate:2deg}
.stage-controls{display:flex;align-items:center;gap:5px;padding:13px 0 10px;flex-wrap:wrap}
.stage-steps{display:flex;gap:6px;flex:1}
.stage-steps button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 9px;font-size:11px;line-height:1.6;color:var(--on-dark-muted);white-space:nowrap;border-radius:var(--radius-control)}
.stage-steps button>span{display:grid;place-items:center;width:19px;height:19px;border:1px solid var(--dark-line);border-radius:50%;font-size:10px}
.stage-steps button[aria-pressed=true]{color:var(--on-dark)}
.stage-steps button[aria-pressed=true]>span{background:var(--signal-soft);color:var(--signal);border-color:var(--signal-soft)}
.stage-steps button:hover,.stage-play:hover,.stage-replay:hover{background:var(--dark-panel);color:var(--on-dark)}
.stage-play{min-height:44px;padding:8px 10px;font-size:11px;color:var(--on-dark);border:1px solid var(--dark-line);border-radius:var(--radius-pill);white-space:nowrap}
.stage-play:disabled,.stage-replay:disabled{opacity:.55;cursor:default}
.stage-replay{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:50%;color:var(--on-dark-muted)}
.stage-replay .ic{width:15px;height:15px}
.stage-progress{height:2px;margin:0 -22px;background:var(--dark-line);overflow:clip}
.stage-progress i{display:block;width:100%;height:100%;background:var(--signal-soft);transform:scaleX(1);transform-origin:0 50%}
.stage-caption{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 2px 19px;min-height:80px}
.stage-caption p{font-size:14px;line-height:1.8;font-weight:500;color:var(--on-dark)}
.stage-caption>a{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:11px;line-height:1.7;color:var(--on-dark-muted);text-underline-offset:5px}
.stage-caption>a:hover{color:var(--on-dark);text-decoration:underline}
.stage-caption .ic{width:13px;height:13px;flex:none}
#stage-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hero-workbench .stage-proof-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 13px 0;margin:0;color:var(--muted);font-size:10px;line-height:1.8}
.hero-workbench .stage-real-proof{position:relative;display:flex;align-items:center;gap:13px;background:transparent;overflow:visible;width:auto;height:auto;margin:0;border:0;transform:none;flex-wrap:wrap}
.hero-workbench .stage-real-proof img{width:76px;height:52px;border-radius:7px;object-fit:cover;object-position:top;border:1px solid var(--line)}
.hero-workbench .stage-real-proof .hero-proof-toggle{position:static;min-height:44px;padding:8px 0;border:0;box-shadow:none;background:transparent;font-size:11px;color:var(--signal);white-space:nowrap}
.hero-workbench .stage-real-proof figcaption{font-size:9px;line-height:1.7;color:var(--muted);flex-basis:100%;margin-left:89px;margin-top:-12px}
.hero-workbench .stage-real-proof .media-view{display:none}
.hero-workbench .fish-credit{font-size:9px;margin:8px 13px 0;color:var(--muted)}
.hero-workbench .scene-replay{font-size:10px;min-height:44px;border:0;color:var(--signal);padding:8px;margin:0;white-space:nowrap}
.hero-workbench a:focus-visible,.hero-workbench button:focus-visible{outline:3px solid var(--signal-cobalt);outline-offset:3px}
.hero-workbench .workbench button:focus-visible,.hero-workbench .workbench a:focus-visible{outline-color:var(--on-dark);outline-offset:2px}
.intro-running #stage-character{visibility:hidden!important}
.intro-running #stage-character-video{visibility:hidden!important}
html[data-stage-character-visible="true"] .page-companion:not([data-expanded="true"]):not([data-folded="true"]) .companion-media{display:none}
html[data-stage-character-visible="true"] .page-companion:not([data-expanded="true"]):not([data-folded="true"]) .companion-controls{display:none}
html[data-stage-character-visible="true"] .page-companion:not([data-expanded="true"]):not([data-folded="true"]){width:auto}
html[data-stage-character-visible="true"] .page-companion:not([data-expanded="true"]) .companion-toolbar{box-shadow:none;background:var(--signal-soft)}
@keyframes stage-paper-arrival{from{opacity:.3;transform:translateY(16px);clip-path:inset(10% 0 0 0)}to{opacity:1;transform:translateY(0);clip-path:inset(0)}}
@media(min-width:1700px){.hero-workbench .hero-layout{min-height:760px;gap:80px}.hero-workbench .hero-title{font-size:56px}.stage-canvas{min-height:370px}.stage-scene{min-height:320px;padding:30px 35px}.stage-layer{min-height:260px;padding-right:180px}.stage-layer h3{font-size:38px}.stage-character{width:280px;height:280px}.stage-result>div{font-size:17px}}
@media(max-width:1200px) and (min-width:761px){.hero-workbench .hero-layout{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:28px}.hero-workbench .hero-title{font-size:clamp(33px,3.7vw,43px)}.hero-workbench .proof-console{padding:20px 17px 0}.workbench-heading h2{font-size:26px}.workbench-heading h2 span{font-size:13px;margin-left:8px}.workbench-heading p{font-size:10px}.stage-picker button{font-size:12px;padding:10px 13px}.stage-layer{padding-right:100px}.stage-scene{padding:19px 20px;min-height:298px}.stage-layer h3{font-size:26px}.stage-character{width:180px;height:180px;right:-12px;bottom:12px}.stage-character-note{font-size:9px}.stage-controls{gap:4px}.stage-steps{gap:1px}.stage-steps button{padding:8px 5px;font-size:10px;gap:4px}.stage-steps button>span{width:16px;height:16px}.stage-replay{min-width:40px}.stage-play{font-size:10px;padding:8px}.stage-caption{display:block;padding:14px 2px}.stage-caption p{font-size:13px}.stage-caption>a{min-height:34px}.stage-progress{margin:0 -17px}.stage-window-bar{padding:12px;font-size:10px}.stage-disclosure{font-size:9px}.hero-workbench .hero-lead{font-size:14px}}
@media(min-width:761px) and (max-width:900px){.hero-workbench .hero-layout{display:block;max-width:780px}.hero-workbench .hero-copy{display:grid;grid-template-columns:1fr 1fr;column-gap:30px;align-items:start;padding-bottom:25px}.hero-workbench .hero-person{grid-column:1/-1;margin-bottom:19px}.hero-workbench .hero-title{font-size:38px;grid-row:2/5}.hero-workbench .hero-experience{font-size:13px;margin-top:0}.hero-workbench .hero-lead{font-size:13px;margin-top:10px}.hero-workbench .hero-ownership{margin-top:10px;font-size:11px}.hero-workbench .hero-actions{grid-column:1;margin-top:20px}.hero-workbench .hero-case-shortcut{grid-column:2;margin-top:22px}.hero-workbench .hero-art{max-width:620px;margin:0 auto}.stage-layer{padding-right:150px}.stage-character{width:240px;height:240px}.stage-layer h3{font-size:32px}.stage-scene{min-height:285px}.stage-caption{display:flex}.stage-steps button{font-size:11px;padding:8px 9px}.stage-replay{min-width:44px}.stage-play{font-size:11px}}
@media(max-width:760px){.hero-workbench{padding-top:17px}.hero-workbench .hero-layout{display:block;padding-top:0;padding-bottom:25px;min-height:0}.hero-workbench .hero-copy{padding-bottom:24px}.hero-workbench .hero-person{margin-bottom:20px;gap:18px}.hero-workbench .hero-name{font-size:29px}.hero-workbench .hero-title{font-size:clamp(33px,6.5vw,44px);line-height:1.3}.hero-workbench .hero-experience{font-size:14px;margin-top:18px}.hero-workbench .hero-lead{font-size:13px;line-height:1.8;margin-top:11px;max-width:32em}.hero-workbench .hero-ownership{font-size:11px;max-width:none;margin-top:10px}.hero-workbench .hero-actions{margin-top:18px}.hero-workbench .hero-actions .button{font-size:13px;min-height:46px;padding:12px 17px}.hero-workbench .hero-art{margin:0 -6px;max-width:none}.hero-workbench .proof-console{padding:20px 14px 0;border-radius:24px}.workbench-heading{padding:0 3px;gap:9px}.workbench-heading h2{font-size:27px}.workbench-heading h2 span{font-size:13px;margin-left:8px}.workbench-heading p{font-size:10px;line-height:1.8;max-width:24em}.stage-project{min-width:40px;min-height:44px}.stage-picker{padding:14px 0 11px;gap:3px}.stage-picker button{font-size:12px;min-height:44px;padding:10px 14px}.stage-canvas{min-height:326px;border-radius:14px}.stage-window-bar{padding:11px 13px;font-size:9px;gap:5px}.stage-window-bar .ic{width:12px;height:12px}.stage-disclosure{font-size:9px}.stage-scene{min-height:284px;padding:19px 18px 20px}.stage-layer{padding-right:65px;min-height:245px}.stage-context{font-size:10px;max-width:20em;margin-bottom:9px}.stage-layer h3{font-size:27px;line-height:1.45}.stage-request{padding:12px;margin-top:17px;gap:8px;margin-right:0;position:relative;z-index:3}.stage-request p{font-size:12px}.stage-request>span{font-size:9px}.stage-aside{font-size:10px;max-width:19em}.stage-records>div{grid-template-columns:49px 1fr;gap:6px;font-size:11px;padding:10px 0}.stage-records dt{font-size:9px}.record-state{font-size:9px}.stage-result{margin-top:19px;gap:12px}.stage-result>div{font-size:14px;grid-template-columns:42px 1fr;gap:9px}.stage-result dt{font-size:10px}.stage-principle{font-size:10px;max-width:20em;position:relative;z-index:3;margin-top:19px}.stage-character{width:160px;height:160px;right:-27px;bottom:22px}.stage-character-note{display:none}.stage-memory p{font-size:14px}.stage-memory small{font-size:10px;max-width:15em}.stage-execution{gap:6px;font-size:11px;max-width:16em}.stage-controls{gap:3px;padding:10px 0 8px}.stage-steps{gap:0;flex-basis:100%;justify-content:space-between}.stage-steps button{min-height:44px;font-size:10px;padding:7px 6px;gap:5px}.stage-steps button>span{width:18px;height:18px}.stage-play{font-size:10px;min-height:44px;padding:9px 14px;margin-left:auto}.stage-replay{min-width:44px;min-height:44px}.stage-progress{margin:0 -14px}.stage-caption{gap:8px;align-items:start;min-height:0;padding:15px 3px 18px;flex-direction:column}.stage-caption p{font-size:13px}.stage-caption>a{font-size:11px;min-height:36px}.hero-workbench .stage-proof-strip{padding:13px 7px 0;gap:12px}.hero-workbench .stage-proof-strip>p{display:none}.hero-workbench .stage-real-proof img{width:58px;height:42px}.hero-workbench .stage-real-proof .hero-proof-toggle{font-size:10px}.hero-workbench .stage-real-proof figcaption{margin-left:71px;font-size:9px}.hero-workbench .fish-credit{font-size:9px;margin:8px 7px 0}.hero-workbench .scene-replay{font-size:9px}.stage-orbit{opacity:.5}.hero-workbench .hero-bottom{font-size:10px}}
@media(prefers-reduced-motion:reduce){.stage-layer{animation:none}.hero-workbench *{transition:none!important}}
.noanim .stage-layer{animation:none}.noanim #stage-character{transition:none}
/* Keep the transparent video frame inside the clipped stage for visibility checks. */
.hero-workbench .stage-character{right:0;bottom:0}
@media print{.hero-workbench .proof-console{color:var(--ink);background:var(--surface);box-shadow:none;border:1px solid var(--line)}.stage-controls,.stage-picker,.stage-progress{display:none}}
