/* openrig.ai home story: the section demos. Live HTML, like the hero
   chat. The look is Studio's own (openrig-studio-ui web/shell/studio.css: the side nav, tables, dots, chips, ask cards, terminal), restated
   here on the site's kit tokens and prefixed sd- so nothing collides with the site's classes. demos.js builds and plays each one. */

/* The story sections: words on one side, the demo on the other; stacked on narrow screens. */
.story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,620px);gap:56px;align-items:center}
.story.flip{grid-template-columns:minmax(0,620px) minmax(0,1fr)}
.story.flip .story-copy{order:2}
.story-copy h2{max-width:16ch}
.story-copy .section-lead{margin-top:24px}
.story-copy .or-arrow{margin-top:24px;display:inline-flex}
.story-points{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:20px}
.story-points strong{display:block;color:var(--or-text);font-weight:500}
.story-points span{color:var(--or-muted)}
.offer-line{margin-top:20px;font-size:var(--or-label-size);line-height:var(--or-label-lh);color:var(--or-muted)}
.story-demo{position:relative;overflow:hidden;min-height:470px;padding:0}
.story-demo:empty{display:none}
.story-label{font:400 12px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:var(--or-dim)}
.share-line{margin-top:32px}
.close-cta{text-align:center;display:flex;flex-direction:column;align-items:center;gap:24px}
.close-cta .note{color:var(--or-muted);font-size:var(--or-label-size);line-height:var(--or-label-lh)}
@media (max-width:1023px){.story,.story.flip{grid-template-columns:minmax(0,1fr);gap:40px}.story.flip .story-copy{order:0}}

/* ---- Studio, restated (sd-) ---- */
.sd{container-type:inline-size;position:relative;height:100%;min-height:470px;font:400 14px/20px var(--or-sans);color:var(--or-text);
  transition:opacity 500ms ease}
.sd.sd-out{opacity:0}
.sd-still,.sd-still *{transition:none!important;animation:none!important}
.sd-app{display:grid;grid-template-columns:128px minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:100%;min-height:470px}
.sd-side{background:var(--or-base);box-shadow:inset -1px 0 0 var(--or-line);padding:12px 8px;display:flex;flex-direction:column;gap:2px}
.sd-brand{display:flex;align-items:center;gap:8px;padding:4px 8px 12px;font:600 13px/20px var(--or-sans)}
.sd-brand i{width:18px;height:18px;border-radius:4px;background:var(--or-signal);display:inline-block}
.sd-tn{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 8px;border-radius:4px;color:var(--or-muted)}
.sd-tn[aria-current="true"]{background:var(--or-raised);color:var(--or-text);box-shadow:inset 0 0 0 1px var(--or-line)}
.sd-tn .c{margin-left:auto;font:400 12px/16px var(--or-mono);color:var(--or-dim);min-width:18px;text-align:center;border-radius:4px;transition:background 300ms,color 300ms}
.sd-tn .c.hot{background:var(--or-signal);color:var(--or-on-signal);font-weight:600}
.sd-main{position:relative;display:flex;flex-direction:column;min-width:0;background:var(--or-panel)}
.sd-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;box-shadow:inset 0 -1px 0 var(--or-line)}
.sd-head b{font-weight:500;font-size:15px}
.sd-head .r{font:400 12px/16px var(--or-mono);color:var(--or-dim);white-space:nowrap}
.sd-body{position:relative;flex:1;min-height:0;overflow:hidden}
.sd-tbl{width:100%;border-collapse:collapse;font-size:13px;line-height:20px;table-layout:fixed}
.sd-tbl th:nth-child(1){width:auto}.sd-tbl th:nth-child(2){width:40%}.sd-tbl th:nth-child(3){width:106px}
.sd-tbl th{font:400 11px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:var(--or-dim);text-align:left;padding:10px 16px;box-shadow:inset 0 -1px 0 var(--or-line);white-space:nowrap}
.sd-tbl td{padding:9px 16px;box-shadow:inset 0 -1px 0 var(--or-line);vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:0}
.sd-tbl td:last-child{overflow:visible;max-width:none}
.sd-tbl tr{transition:background 400ms}
.sd-tbl tr.flash td{animation:sd-flash 1.1s ease-out}
.sd-tbl tr.flash td:first-child{box-shadow:inset 2px 0 0 var(--or-signal),inset 0 -1px 0 var(--or-line)}
@keyframes sd-flash{0%{background:var(--or-signal-tint)}15%{background:rgba(255,148,61,.16)}100%{background:transparent}}
.sd-tbl tr.flash .sd-chip{animation:sd-chip-pop 520ms cubic-bezier(.2,.8,.2,1)}
@keyframes sd-chip-pop{0%{transform:scale(.86)}55%{transform:scale(1.08)}100%{transform:scale(1)}}
.sd-tbl td.ag.hand .sd-who{animation:sd-hand 700ms cubic-bezier(.2,.8,.2,1)}
@keyframes sd-hand{0%{opacity:0;transform:translateX(-8px)}100%{opacity:1;transform:none}}
.sd-tbl tr.sd-enter{opacity:0;transform:translateY(8px)}
.sd-tbl tr.sd-in{transition:opacity 360ms ease,transform 420ms cubic-bezier(.2,.8,.2,1)}
.sd-muted{color:var(--or-muted)}
.sd-dot{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block;background:var(--or-dim);margin-right:8px;vertical-align:middle;transition:background 300ms}
.sd-dot.ok{background:var(--or-ok)} .sd-dot.wait{background:var(--or-wait)} .sd-dot.off{background:none;box-shadow:inset 0 0 0 1px var(--or-off)}
.sd-chip{display:inline-flex;align-items:center;font:400 11px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;padding:2px 8px;border-radius:4px;
  box-shadow:inset 0 0 0 1px var(--or-line);color:var(--or-muted);transition:color 300ms,box-shadow 300ms}
.sd-chip.building{color:var(--or-wait);box-shadow:inset 0 0 0 1px #5d5236}
.sd-chip.review{color:var(--or-text);box-shadow:inset 0 0 0 1px var(--or-muted)}
.sd-chip.shipped{color:var(--or-ok);box-shadow:inset 0 0 0 1px #4a5d40}
.sd-logo{width:20px;height:20px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-right:8px;
  background:var(--or-raised);box-shadow:inset 0 0 0 1px var(--or-line);font:600 11px/1 var(--or-sans);color:var(--or-text);flex:none}
.sd-logo svg{width:14px;height:14px}
.sd-who{display:flex;align-items:center;min-width:0}
.sd-who span{overflow:hidden;text-overflow:ellipsis}

/* Needs you's card (Studio's ask card), sliding in over the work. */
.sd-ask{position:absolute;left:16px;right:16px;bottom:16px;border-radius:8px;background:#1d1c16;box-shadow:inset 0 0 0 1px var(--or-accent-edge),0 12px 28px #0008;
  padding:14px 16px;display:flex;flex-direction:column;gap:12px;transform:translateY(140%);transition:transform 520ms cubic-bezier(.2,.8,.2,1),opacity 400ms}
.sd-ask.on{transform:none}
.sd-ask b{font-weight:500;font-size:15px;line-height:22px}
.sd-ask p{margin:0;color:var(--or-muted);font-size:13px;line-height:20px;max-width:none}
.sd-ask .qa{display:flex;gap:8px}
.sd-ask.done{box-shadow:inset 0 0 0 1px var(--or-line),0 12px 28px #0008}
.sd-btn{min-height:32px;padding:0 12px;border-radius:4px;font-weight:600;font-size:13px;line-height:20px;display:inline-flex;align-items:center;white-space:nowrap}
.sd-btn.pri{background:var(--or-signal);color:var(--or-on-signal)}
.sd-btn.ghost{box-shadow:inset 0 0 0 1px var(--or-line);color:var(--or-text);font-weight:500}
.sd-btn.pressed{transform:scale(.96);filter:brightness(1.1)}
.sd-resolved{font:400 12px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:var(--or-ok)}

/* The pointer: moves to and clicks the one thing the section is about. */
.sd-cursor{position:absolute;left:0;top:0;width:18px;height:22px;z-index:5;pointer-events:none;opacity:0;
  transition:transform 900ms cubic-bezier(.45,.05,.25,1),opacity 300ms}
.sd-cursor.on{opacity:1}
.sd-cursor svg{display:block;filter:drop-shadow(0 2px 3px #000a)}
.sd-cursor.click svg{transform:scale(.88);transition:transform 120ms}

/* The terminal window (section 2). */
.sd-chat{padding:20px 20px 0;display:flex;flex-direction:column;gap:14px}
.sd-term{position:absolute;left:24px;right:20px;bottom:20px;border-radius:8px;background:#0c0d0b;box-shadow:inset 0 0 0 1px var(--or-line),0 12px 28px #0009;
  font:400 12px/20px var(--or-mono);color:#cfd3c6;transform:translateX(110%);transition:transform 560ms cubic-bezier(.2,.8,.2,1)}
.sd-term.on{transform:none}
.sd-term .tt{display:flex;align-items:center;gap:8px;padding:8px 12px;box-shadow:inset 0 -1px 0 var(--or-line);font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--or-dim)}
.sd-term .tt i{width:8px;height:8px;border-radius:50%;background:var(--or-line);display:inline-block}
.sd-term .lines{padding:10px 12px;min-height:104px;white-space:pre-wrap}
.sd-term .ok{color:var(--or-ok)}
.sd-term .p{color:var(--or-signal)}

/* Section 3: the laptop and the clock. */
.sd-laptop{display:inline-flex;align-items:center;gap:8px;padding:4px 10px 4px 8px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--or-line);font-size:13px}
.sd-laptop svg .lid{transform-origin:12px 15px;transition:transform 700ms cubic-bezier(.4,0,.2,1)}
.sd-laptop.closed svg .lid{transform:scaleY(.12)}
.sd-clock{font:400 13px/16px var(--or-mono);color:var(--or-muted);font-variant-numeric:tabular-nums}
.sd-feed{padding:10px 16px;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:18px;color:var(--or-muted);box-shadow:inset 0 1px 0 var(--or-line)}
.sd-feed div{opacity:0;transform:translateY(4px);transition:opacity 300ms,transform 300ms}
.sd-feed div.on{opacity:1;transform:none}

/* Phone and narrow cards: the side nav becomes a row of tabs above the main area. */
@container (max-width:460px){
  .sd-app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .sd-side{flex-direction:row;gap:4px;padding:8px;box-shadow:inset 0 -1px 0 var(--or-line);overflow:hidden}
  .sd-brand{display:none}
  .sd-tn{padding:0 8px;min-height:28px;font-size:13px;white-space:nowrap}
  .sd-tn .c{margin-left:6px}
  .sd-tbl td,.sd-tbl th{padding-left:12px;padding-right:12px}
  .sd-hide-n{display:none}
  .sd-tbl th:nth-child(3){width:108px}
}

/* Section 2: messages and the terminal arrive in the chat's own flow. */
.sd-pop{opacity:0;transform:translateY(10px);transition:opacity 380ms ease,transform 480ms cubic-bezier(.2,.8,.2,1)}
.sd-pop.on{opacity:1;transform:none}
.sd-chat .hc-who .sd-muted{color:var(--or-dim)}
.sd-term.sd-inline{position:relative;left:auto;right:auto;bottom:auto;list-style:none;align-self:stretch;margin-left:24px;opacity:0;transform:translateX(28px);
  transition:opacity 420ms ease,transform 560ms cubic-bezier(.2,.8,.2,1)}
.sd-term.sd-inline.on{opacity:1;transform:none}
.sd-scroll{overflow:hidden}

.sd-where{color:var(--or-dim);font-weight:400}
.sd-ring{width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--or-signal);display:block}
/* Section 5: the work can slide up to make room for Needs you's card (scroll extent below the table). */
.sd-work{overflow:hidden}
.sd-work .sd-tbl{margin-bottom:180px}
@container (max-width:460px){.sd-tbl th:nth-child(2){width:34%}}

/* Per-demo sizes: section 5 keeps a fixed frame (its work can slide up inside it); section 2 sizes to its conversation. */
.story-demo[data-demo="studio"]{height:500px;min-height:0}
.story-demo[data-demo="studio"] .sd,.story-demo[data-demo="studio"] .sd-app{height:500px;min-height:0}
.story-demo[data-demo="coding"]{min-height:0}
.story-demo[data-demo="coding"] .sd{min-height:0}
/* Section 3: the overnight feed gives way to the morning's one decision. */
.sd-feed.gone{opacity:0;transition:opacity 400ms}
@media (max-width:767px){.story-demo[data-demo="studio"],.story-demo[data-demo="studio"] .sd,.story-demo[data-demo="studio"] .sd-app{height:520px}}
.story-demo[data-demo="fleet"],.story-demo[data-demo="fleet"] .sd,.story-demo[data-demo="fleet"] .sd-app{height:470px;min-height:0}
.story-demo[data-demo="alwayson"],.story-demo[data-demo="alwayson"] .sd,.story-demo[data-demo="alwayson"] .sd-app{height:480px;min-height:0}
/* The column headings stay in place while the rows slide or scroll under them. */
.sd-work thead th,.sd-scroll thead th{position:sticky;top:0;z-index:1;background:var(--or-panel)}

/* Section 5: while Needs you's card is up, the other rows calm down so the eye lands on the decision. */
.sd-work tbody tr{transition:opacity 420ms ease}
.sd-work.focus tbody tr:not(.picked){opacity:.32}
/* Section 3: the clock reads at phone size, and the frame turns to night while it runs, then to morning. */
.sd-clock{font-size:16px;line-height:20px;color:var(--or-text);font-weight:500}
.sd .sd-main,.sd .sd-side{transition:background-color 1600ms ease}
.sd.night .sd-main{background:#10141c}
.sd.night .sd-side{background:#0b0e14}
.sd.night .sd-tbl th,.sd.night .sd-feed{color:#8b93a3}
.sd.night .sd-clock{color:#c9d4ff}
.sd.night .sd-head::after{content:"Night";font:400 11px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:#8b93a3;margin-left:auto;margin-right:12px}
.sd.morning .sd-clock{color:var(--or-wait)}
.sd.morning .sd-head::after{content:"Morning";font:400 11px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:var(--or-wait);margin-left:auto;margin-right:12px}
@container (max-width:460px){.sd-laptop .macw{font-size:12px}.sd-head{gap:8px}}

/* Section 4: where an agent runs, as a second line under its name on phones (the column itself is hidden there). */
.sd-sub{display:none;font-size:11px;line-height:14px;color:var(--or-dim)}
@container (max-width:460px){.sd-sub{display:block}.story-demo[data-demo="fleet"] .sd-tbl td{padding-top:7px;padding-bottom:7px}}

/* ---- Home section 2: two desks (Kai's terminal, Wren's Claude with Figma and Canva); stacked on narrow cards. ---- */
.story-demo[data-demo="desks"],.story-demo[data-demo="desks"] .sd{height:470px;min-height:0}
.dk{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:100%;position:relative}
.dk-desk{min-width:0;display:flex;flex-direction:column;padding:16px}
.dk-kai{background:var(--or-base);box-shadow:inset -1px 0 0 var(--or-line)}
.dk-wren{background:var(--or-panel)}
.sd-term.dk-term{position:relative;left:auto;right:auto;bottom:auto;transform:none;flex:1;display:flex;flex-direction:column;box-shadow:inset 0 0 0 1px var(--or-line)}
.dk-term .tt span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dk-term .lines{flex:1}
.dk-term .dim{color:var(--or-dim)}
.dk-head{display:flex;align-items:center;font:600 13px/20px var(--or-sans);min-width:0}
.dk-head>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dk-tools{display:flex;gap:6px;margin-top:10px}
.dk-tool{display:inline-flex;align-items:center;gap:6px;font:400 11px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;padding:3px 8px;border-radius:4px;
  box-shadow:inset 0 0 0 1px var(--or-line);color:var(--or-dim);transition:color 300ms,box-shadow 300ms,background 300ms}
.dk-tool svg{width:9px;height:13px;flex:none}
.dk-tool.on{color:var(--or-text);box-shadow:inset 0 0 0 1px var(--or-signal);background:var(--or-signal-tint)}
.dk-canva{width:13px;height:13px;border-radius:50%;background:#00c4cc;color:#fff;font:700 9px/13px var(--or-sans);text-align:center;font-style:normal;letter-spacing:0;flex:none}
.dk-body{flex:1;display:flex;flex-direction:column;gap:12px;margin-top:14px;min-height:0}
.dk-who{display:flex;align-items:center;font:600 12px/18px var(--or-sans);color:var(--or-text)}
.dk-who .sd-logo{width:18px;height:18px;margin-right:6px}
.dk-who .sd-logo svg{width:12px;height:12px}
.dk-bubble{margin:4px 0 0;padding:8px 10px;border-radius:var(--or-radius-control);font-size:13px;line-height:19px;max-width:none;background:var(--or-base);box-shadow:inset 0 0 0 1px var(--or-line)}
.dk-frame{border-radius:6px;box-shadow:inset 0 0 0 1px var(--or-line);background:var(--or-base);padding:8px}
.dk-frame .fl{display:flex;align-items:center;gap:6px;font:400 10px/14px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:var(--or-dim)}
.dk-frame .fl svg{width:7px;height:10px}
.dk-frame .fx{margin-top:6px;border-radius:4px;background:#efe9df;padding:10px;display:flex;flex-direction:column;gap:7px}
.dk-frame .fx .h{height:8px;width:46%;border-radius:2px;background:#3b2f27}
.dk-frame .fx .p{height:5px;width:70%;border-radius:2px;background:#cbbfae}
.dk-frame .fx .slots{display:flex;gap:5px}
.dk-frame .fx .slots i{flex:1;height:16px;border-radius:3px;box-shadow:inset 0 0 0 1px #cbbfae}
.dk-frame .fx .book{align-self:flex-start;font:600 10px/14px var(--or-sans);color:#fff;padding:4px 12px;border-radius:3px;background:#9a9086;transition:background 500ms ease}
.dk-frame.terra .fx .book{background:#c4663f}
/* The frame draws in piece by piece. */
.dk-frame .fx>*{opacity:0;transform:translateY(4px);transition:opacity 300ms ease,transform 300ms ease}
.dk-frame.on .fx>*{opacity:1;transform:none}
.dk-frame.on .fx>:nth-child(2){transition-delay:200ms}
.dk-frame.on .fx>:nth-child(3){transition-delay:450ms}
.dk-frame.on .fx>:nth-child(4){transition-delay:700ms}
.dk-ask{margin-top:auto;border-radius:8px;background:#1d1c16;box-shadow:inset 0 0 0 1px var(--or-accent-edge);padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.dk-ask b{font-weight:500;font-size:13px;line-height:19px}
.dk-ask .qa{display:flex;gap:6px;flex-wrap:wrap}
.dk-ask .sd-btn{min-height:28px;font-size:12px;padding:0 10px;gap:6px}
.dk-ask.done{box-shadow:inset 0 0 0 1px var(--or-line)}
.sw{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}
.sw.t{background:#c4663f}.sw.s{background:#8a9a7b}
/* The request, then the design, crossing between the desks. */
.dk-pkt{position:absolute;left:50%;top:50%;z-index:3;transform:translate(-50%,-50%);opacity:0;pointer-events:none;white-space:nowrap;
  font:400 11px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:var(--or-on-signal);background:var(--or-signal);padding:3px 10px;border-radius:999px}
.dk-pkt.go-r{animation:dk-r 1100ms cubic-bezier(.45,.05,.25,1) forwards}
.dk-pkt.go-l{animation:dk-l 1100ms cubic-bezier(.45,.05,.25,1) forwards}
@keyframes dk-r{0%{opacity:0;transform:translate(-50%,-50%) translateX(-110px)}20%,80%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateX(110px)}}
@keyframes dk-l{0%{opacity:0;transform:translate(-50%,-50%) translateX(110px)}20%,80%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateX(-110px)}}
@keyframes dk-d{0%{opacity:0;transform:translate(-50%,-50%) translateY(-80px)}20%,80%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateY(80px)}}
@keyframes dk-u{0%{opacity:0;transform:translate(-50%,-50%) translateY(80px)}20%,80%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateY(-80px)}}
@container (max-width:520px){
  .dk{grid-template-columns:minmax(0,1fr);grid-template-rows:176px minmax(0,1fr)}
  .dk-kai{box-shadow:inset 0 -1px 0 var(--or-line);padding:12px}
  .dk-wren{padding:12px}
  .dk-pkt{top:176px}
  .dk-pkt.go-r{animation-name:dk-d}
  .dk-pkt.go-l{animation-name:dk-u}
}
@media (max-width:767px){.story-demo[data-demo="desks"],.story-demo[data-demo="desks"] .sd{height:600px}}

/* ---- Home section 7: the Glazeyard crew. People on top, their agents below, one shared team at the bottom; messages run through it. ---- */
.story-demo[data-demo="crew"],.story-demo[data-demo="crew"] .sd{height:470px;min-height:0}
.cw{position:relative;height:100%;background:var(--or-panel)}
.cw-lines{position:absolute;inset:0;width:100%;height:100%}
.cw-lines line{stroke:var(--or-line);stroke-width:1.5;vector-effect:non-scaling-stroke}
.cw-lines line.pri{stroke-dasharray:4 4;transition:opacity 600ms}
.cw-person,.cw-agent{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;white-space:nowrap}
.cw-face{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font:600 14px/1 var(--or-sans);color:var(--or-text);
  background:var(--or-raised);box-shadow:inset 0 0 0 1px var(--or-line)}
.cw-name{font:400 12px/16px var(--or-sans);color:var(--or-muted)}
.cw-mark{width:30px;height:30px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:var(--or-base);box-shadow:inset 0 0 0 1px var(--or-line);
  color:var(--or-text);transition:box-shadow 300ms}
.cw-mark svg{width:18px;height:18px}
.cw-letter{font:600 14px/1 var(--or-sans)}
.cw-label{font:500 12px/16px var(--or-sans);color:var(--or-text)}
.cw-tools{display:flex;align-items:center;gap:5px}
.cw-tools svg{width:8px;height:12px}
.cw-agent .hc-tag{margin:0}
.cw-agent.got .cw-mark{animation:cw-got 900ms ease-out}
@keyframes cw-got{0%{box-shadow:inset 0 0 0 1px var(--or-signal),0 0 0 4px var(--or-signal-tint)}100%{box-shadow:inset 0 0 0 1px var(--or-line),0 0 0 0 transparent}}
/* Priya's agent joins partway through the loop. */
.cw .pri{opacity:.3;transition:opacity 600ms ease}
.cw .pri.in{opacity:1}
.cw-hub{position:absolute;left:4%;right:4%;top:68%;bottom:5%;border-radius:8px;background:var(--or-base);box-shadow:inset 0 0 0 1px var(--or-line);padding:12px 14px;
  display:flex;flex-direction:column;gap:10px;transition:box-shadow 400ms}
.cw-hub.busy{animation:cw-busy 700ms ease-out}
@keyframes cw-busy{0%{box-shadow:inset 0 0 0 1px var(--or-accent-edge)}100%{box-shadow:inset 0 0 0 1px var(--or-line)}}
.cw-hubh{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.cw-hubh b{font-weight:500;font-size:14px}
.cw-hubh span{font:400 11px/16px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:var(--or-dim);white-space:nowrap}
.cw-team{display:flex;flex-wrap:wrap;gap:6px 14px}
.cw-role{display:inline-flex;align-items:center;font-size:12px;line-height:18px;color:var(--or-muted)}
.cw-role .sd-dot{width:6px;height:6px;margin-right:6px}
.cw-msg{position:absolute;z-index:2;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--or-signal);box-shadow:0 0 0 4px var(--or-signal-tint);
  opacity:0;transition:left 520ms cubic-bezier(.45,.05,.55,.95),top 520ms cubic-bezier(.45,.05,.55,.95),opacity 200ms}
.cw-msg.on{opacity:1}
@container (max-width:480px){
  .cw-label,.cw-name,.cw-hubh span{display:none}
  .cw-face{width:30px;height:30px;font-size:13px}
  .cw-mark{width:28px;height:28px}
  .cw-agent .hc-tag{font-size:9px;padding:0 4px;letter-spacing:.5px}
}

/* ---- /altitude section 2: a grid of terminals, all waiting on you. ---- */
.story.solo{grid-template-columns:minmax(0,760px)}
.story-demo[data-demo="grid"],.story-demo[data-demo="grid"] .sd{height:470px;min-height:0}
.gd{display:flex;flex-direction:column;height:100%;background:#080907}
.gd-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr 1fr 0fr;gap:6px;padding:8px 8px 0;
  transition:grid-template-rows 700ms cubic-bezier(.2,.8,.2,1)}
.gd.nine .gd-grid{grid-template-rows:1fr 1fr 1fr}
.gd-pane{min-height:0;overflow:hidden;border-radius:6px;background:#0c0d0b;box-shadow:inset 0 0 0 1px var(--or-line);display:flex;flex-direction:column;
  font:400 11px/16px var(--or-mono);color:#cfd3c6;transition:box-shadow 300ms}
.gd-pane.later{opacity:0;transition:opacity 500ms ease 300ms,box-shadow 300ms}
.gd.nine .gd-pane.later{opacity:1}
.gd-pane.focus{box-shadow:inset 0 0 0 1px var(--or-signal)}
.gd-pane.ping{animation:gd-ping 700ms ease-out}
@keyframes gd-ping{0%{background:#1d1a12}100%{background:#0c0d0b}}
.gd-t{display:flex;align-items:center;gap:6px;padding:5px 8px;box-shadow:inset 0 -1px 0 var(--or-line);font-size:10px;line-height:14px;letter-spacing:.5px;color:var(--or-dim);white-space:nowrap}
.gd-t span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.gd-badge{margin-left:auto;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--or-signal);color:var(--or-on-signal);font:600 10px/16px var(--or-sans);
  text-align:center;flex:none;opacity:0;transform:scale(.6);transition:opacity 200ms,transform 260ms cubic-bezier(.2,.8,.2,1)}
.gd-badge.on{opacity:1;transform:none}
.gd-q{padding:6px 8px 2px;color:#e6e2d8}
.gd-p{padding:0 8px 6px;color:var(--or-signal)}
.gd-a{color:#cfd3c6}
.gd-cur{display:none;width:7px;height:13px;margin-left:1px;vertical-align:-2px;background:#cfd3c6}
.gd-pane.waiting .gd-cur{display:inline-block;animation:gd-blink 1s steps(1) infinite}
@keyframes gd-blink{50%{opacity:0}}
.gd-bar{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;font:400 12px/16px var(--or-mono);color:var(--or-dim)}
.gd-w{color:var(--or-wait);font-weight:600}
@container (max-width:460px){
  .gd-pane{font-size:10px;line-height:14px}
  .gd-t{padding:4px 6px;font-size:9px}
  .gd-q{padding:4px 6px 2px}.gd-p{padding:0 6px 4px}
}
@media (max-width:767px){.story-demo[data-demo="grid"],.story-demo[data-demo="grid"] .sd{height:540px}}
.cw-feed{margin-top:auto;font:400 11px/16px var(--or-mono);color:var(--or-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Storydesk's demos (assets/demos/<name>.css/js) bring their own frame and size: host them without the card. */
.story-demo.story-frag{min-height:0;overflow:visible;padding:0}

/* ---- /studio section 3: one app, two agents editing it at once (cursor chips with their marks). ---- */
.story-demo[data-demo="artifact"],.story-demo[data-demo="artifact"] .sd{height:420px;min-height:0}
.af{height:100%;display:flex;flex-direction:column;background:var(--or-panel)}
.af-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;box-shadow:inset 0 -1px 0 var(--or-line)}
.af-title{display:flex;flex-direction:column;min-width:0}
.af-title b{font-weight:500;font-size:15px;line-height:22px}
.af-title .sd-where{font:400 11px/16px var(--or-mono)}
.af-who{display:flex;align-items:center;gap:4px;white-space:nowrap}
.af-who .sd-logo{margin-right:0}
.af-n{margin-left:6px;font:400 11px/16px var(--or-mono);letter-spacing:.5px;color:var(--or-dim)}
.af-list{list-style:none;margin:0;padding:10px 16px;display:flex;flex-direction:column;gap:2px;flex:1}
.af-list li{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:4px;font-size:14px;line-height:20px;color:var(--or-text)}
.af-list li.flash{animation:sd-flash 1.1s ease-out}
.af-box{width:16px;height:16px;flex:none;border-radius:4px;box-shadow:inset 0 0 0 1.5px var(--or-muted);position:relative;transition:background 300ms,box-shadow 300ms}
.af-list li.done .af-box{background:var(--or-ok);box-shadow:none}
.af-list li.done .af-box::after{content:"";position:absolute;left:5px;top:2px;width:4px;height:8px;border:solid var(--or-on-signal);border-width:0 2px 2px 0;transform:rotate(45deg)}
.af-list li.done .af-t{color:var(--or-muted)}
.af-add{color:var(--or-signal)}
.af-new{opacity:0;transform:translateY(6px);transition:opacity 300ms,transform 300ms}
.af-new.on{opacity:1;transform:none}
.af-foot{padding:10px 16px;box-shadow:inset 0 1px 0 var(--or-line);font:400 11px/16px var(--or-mono);color:var(--or-dim)}
.af-chip{position:absolute;left:0;top:0;z-index:4;display:inline-flex;align-items:center;gap:4px;padding:2px 8px 2px 3px;border-radius:999px;
  font:600 11px/16px var(--or-sans);color:var(--or-on-signal);opacity:0;transition:transform 700ms cubic-bezier(.45,.05,.25,1),opacity 250ms;pointer-events:none;white-space:nowrap}
.af-chip.on{opacity:1}
.af-chip .sd-logo{width:16px;height:16px;margin:0;border-radius:50%;background:#fff1}
.af-chip .sd-logo svg{width:11px;height:11px}
.af-chip.claude{background:#d97757}
.af-chip.codex{background:#e6e2d8}
.af-chip.codex .sd-logo{color:#111}
@container (max-width:460px){.af-n{display:none}.af-list li{font-size:13px}}
.af-chip .sd-logo{background:#1d1c16}
.af-chip.codex .sd-logo{color:#eeeae2}
.af-list li{box-shadow:inset 0 0 0 1px transparent;transition:box-shadow 300ms}
.af-list li.ed-claude{box-shadow:inset 0 0 0 1px #d97757}
.af-list li.ed-codex{box-shadow:inset 0 0 0 1px #b8b4aa}
.af-list li{padding-right:92px}
.af-list li .af-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.af-list li .af-add{white-space:nowrap}
/* A second demo in a story section (/altitude "Raise the limit" and "Floors of trust"): its words and demo in a row of their own,
   on the section's own columns (subgrid), the words on the side the section's copy is on. */
.story-more{order:3;grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:center;margin-top:var(--or-space-9)}
.story-more>.section-lead{margin:0}
.story.flip .story-more>.section-lead{order:2}
@media (max-width:1023px){.story-more{margin-top:0;row-gap:24px}.story.flip .story-more>.section-lead{order:0}}
/* Demos placed outside a story row: /network's map above the logo groups, the rig designer in /rigs' "Build your own" card, /open-source. */
.connect-demo{margin-top:40px;max-width:880px}
/* /rigs: the rig designer plays in the "Build your own" card, under its words; that card takes the whole row (wide enough for the demo's
   landscape layout, which it draws from 600 up), and "Publish yours" follows. */
.rig-make:has(.rig-make-demo){grid-template-columns:minmax(0,1fr)}
.rig-make .rig-make-demo{margin-top:12px;max-width:880px}
.os-demo{margin-top:40px;max-width:880px}
