/* Otto's studio — a plum-dark room at night, lit by one amber lamp and a mint monitor. */
:root {
  --room: #17111F;      /* the page: the dark of the studio */
  --wall: #2A1F3D;      /* camera background wall */
  --panel: #33264A;     /* acoustic panels, cards */
  --line: #43345E;      /* hairlines */
  --wood: #6B4A3A;
  --lamp: #F2B56B;      /* amber: FX, highlights, attention */
  --mint: #9FE3D8;      /* monitor phosphor: synth notes, live things */
  --rose: #E0527A;      /* bass notes */
  --paper: #EFE6DA;     /* text */
  --dim: #A999BE;       /* secondary text */
  --screen: #0F0B16;    /* his monitor's background */
  --skin: #E7B08A; --skin-dark: #C98E69;
  --hoodie: #4A3A7A; --hoodie-dark: #382B5E;
  --beanie: #E0527A; --beanie-dark: #B93C61;
  --beat: 0.48s;        /* one beat at the session tempo; set from JS */
  --ui: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--room); color: var(--paper); font: 16px/1.5 var(--ui); }
h1, h2, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; gap: 24px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.bar nav { display: flex; gap: 4px; margin-right: auto; }
.bar nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--dim); }
.bar nav a[aria-current="page"] { background: var(--panel); color: var(--paper); }
.hearing { color: var(--dim); font-size: 13px; }
@media (max-width: 900px) { .hearing { display: none; } }
.quiet-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--paper); }
/* the share dialog */
#share-box { background: var(--panel); color: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(480px, calc(100vw - 32px)); }
#share-box::backdrop { background: rgba(15, 11, 22, .7); }
#share-box h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
#share-box p { color: var(--dim); margin-bottom: 12px; }
#share-box label { display: block; font-size: 14px; margin-bottom: 4px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.share-row input { flex: 1; min-width: 0; font: 13px var(--mono); padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--screen); color: var(--paper); }
#share-copy, #share-turn-on { background: var(--lamp); color: #2A1608; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 600; }
#share-box form { margin-top: 6px; text-align: right; }
/* people watching through the public link get the live view only */
body.public #share-open, body.public .banner, body.public .bar nav a[data-tab="talks"] { display: none !important; }
.by { display: none; color: var(--mint); font-size: 14px; }
body.public .by { display: inline; }
#sound { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
#sound[aria-pressed="true"] { background: var(--mint); color: var(--screen); border-color: var(--mint); }
.banner { display: block; padding: 12px 22px; background: var(--lamp); color: #2A1608; font-weight: 600; text-decoration: none; }
.view { padding: 22px; max-width: 1500px; margin: 0 auto; }

/* ---------- live: monitor + side ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.monitor { background: var(--screen); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.monitor-top { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px;
  font: 13px var(--mono); color: var(--dim); border-bottom: 1px solid #241A33; }
#scr-title { color: var(--mint); }
.screen { aspect-ratio: 16 / 9; position: relative; overflow: hidden; font-family: var(--mono); font-size: 13px; }
.monitor-foot { padding: 14px 16px 16px; border-top: 1px solid #241A33; }
.now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.now strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.now span { color: var(--dim); }
.step { height: 3px; background: #241A33; border-radius: 2px; margin-top: 12px; overflow: hidden; }
.step i { display: block; height: 100%; width: 0; background: var(--mint); }

/* ---------- camera ---------- */
.cam { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--wall); }
.cam svg { display: block; width: 100%; height: auto; }
.cam-tag { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; align-items: center; gap: 7px;
  font: 12px var(--mono); background: rgba(15, 11, 22, .72); padding: 4px 9px; border-radius: 6px; }
.cam-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: pulse 1.6s infinite; }
.cam[data-stale="true"] .dot { background: var(--dim); animation: none; }
.cam-tag time { color: var(--dim); }
/* what he's thinking, as a caption under the picture so it never covers his face */
.bubble { position: relative; background: var(--paper); color: #241A33; font-size: 14px; line-height: 1.4; padding: 10px 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.glow { opacity: .13; }
/* His tunes travel as dots of light: keyboard -> mini data centre -> up the cable -> into the cassette, whose reels turn while it plays. */
.flow { stroke-dasharray: 1 15; animation: flow 2.6s linear infinite; opacity: .9; }
.flow.short { animation-duration: 1.3s; }
.reel { transform-box: fill-box; transform-origin: center; animation: reel 7s linear infinite; }
.led { animation: led 1.6s infinite steps(1); }
.led.l1 { animation-duration: 1.1s; } .led.l2 { animation-duration: 2.3s; animation-delay: .4s; } .led.l3 { animation-duration: .8s; animation-delay: .2s; }
/* busier when there is something to hear */
.cam[data-activity="audition"] .flow, .cam[data-activity="listen"] .flow, .cam[data-activity="bounce"] .flow, .cam[data-activity="compose"] .flow { animation-duration: 1.1s; }
.cam[data-activity="audition"] .flow.short, .cam[data-activity="listen"] .flow.short, .cam[data-activity="bounce"] .flow.short, .cam[data-activity="compose"] .flow.short { animation-duration: .55s; }
.cam[data-activity="audition"] .reel, .cam[data-activity="listen"] .reel, .cam[data-activity="bounce"] .reel { animation-duration: 2.4s; }
/* the shelf speaker's woofer moves on the beat when there is something to hear */
.woofer { transform-box: fill-box; transform-origin: center; }
.cam[data-activity="audition"] .woofer, .cam[data-activity="listen"] .woofer, .cam[data-activity="bounce"] .woofer { animation: woofer var(--beat) infinite ease-out; }
@keyframes woofer { 0% { transform: scale(1.09); } 100% { transform: scale(1); } }
/* and everything stops when he is away */
.cam[data-stale="true"] .flow, .cam[data-stale="true"] .reel, .cam[data-stale="true"] .led { animation-play-state: paused; }
.cam[data-stale="true"] .flow { opacity: .2; }
@keyframes flow { to { stroke-dashoffset: -64; } }
@keyframes reel { to { transform: rotate(360deg); } }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.screenlight { fill: var(--mint); opacity: .10; mix-blend-mode: screen; }
#sweat { opacity: 0; }

/* how Otto moves. transform-box lets each part pivot around itself. */
#head, .arm, .hand, .eye { transform-box: fill-box; transform-origin: center; }
#head { transform-origin: 50% 90%; }
.eye { animation: blink 5.2s infinite; }
.arm-right { display: none; }
.cam .pose-keys { display: block; }                       /* default pose: both hands on the keys */

/* writing, bouncing: typing/playing with both hands */
.cam[data-activity="compose"] .arm-left .hand,
.cam[data-activity="bounce"] .arm-left .hand { animation: tap calc(var(--beat) / 2) infinite alternate ease-in-out; }
.cam[data-activity="compose"] .pose-keys .hand,
.cam[data-activity="bounce"] .pose-keys .hand { animation: tap calc(var(--beat) / 2) infinite alternate-reverse ease-in-out; }
/* auditioning and listening: nodding on the beat, eyes closed when listening back */
.cam[data-activity="audition"] #head, .cam[data-activity="listen"] #head { animation: nod var(--beat) infinite ease-in-out; }
.cam[data-activity="audition"] .arm-left .hand { animation: tap var(--beat) infinite alternate ease-in-out; }
.cam[data-activity="listen"] .eye { animation: none; transform: scaleY(.12); }
/* planning, browsing: hand on chin, looking up */
.cam[data-activity="plan"] .pose-keys, .cam[data-activity="browse"] .pose-keys { display: none; }
.cam[data-activity="plan"] .pose-chin, .cam[data-activity="browse"] .pose-chin { display: block; }
.cam[data-activity="plan"] #eyes { transform: translateY(-4px); }
.cam[data-activity="plan"] #head, .cam[data-activity="browse"] #head { animation: ponder 3.4s infinite ease-in-out; }
/* designing a preset: one hand turning a knob */
.cam[data-activity="design"] .pose-keys .hand { animation: twist 1.1s infinite ease-in-out; }
/* digging on Splice: scrolling */
.cam[data-activity="dig"] .pose-keys .hand { animation: scroll 0.9s infinite ease-in-out; }
.cam[data-activity="dig"] #eyes { animation: scan 2.2s infinite ease-in-out; }
/* presenting: a wave */
.cam[data-activity="present"] .pose-keys { display: none; }
.cam[data-activity="present"] .pose-wave { display: block; transform-origin: 0% 100%; animation: wave .7s infinite alternate ease-in-out; }
/* a snag */
.cam[data-activity="error"] #head { transform: rotate(-7deg) translateY(5px); }
.cam[data-activity="error"] #sweat { opacity: 1; }
.cam[data-activity="error"] #mouth { transform: scaleY(-1); transform-box: fill-box; transform-origin: center; }
/* coffee steam: thin wisps that rise, lean, thin out and fade, one after another */
.steam path { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; filter: blur(.5px); animation: wisp 4.2s infinite ease-out; }
.steam path:nth-child(2) { animation-delay: 1.4s; animation-duration: 4.8s; }
.steam path:nth-child(3) { animation-delay: 2.8s; animation-duration: 3.8s; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes tap { to { transform: translateY(-7px); } }
@keyframes nod { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(2.5deg) translateY(5px); } }
@keyframes ponder { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes twist { 0%, 100% { transform: rotate(-25deg); } 50% { transform: rotate(25deg) translateY(-2px); } }
@keyframes scroll { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) translateX(4px); } }
@keyframes scan { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes wave { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes wisp { 0% { opacity: 0; transform: translate(0, 5px) scale(.7, .5); } 18% { opacity: .5; } 55% { opacity: .3; } 100% { opacity: 0; transform: translate(4px, -13px) scale(1.5, 1.25); } }

/* ---------- tally + ticker ---------- */
.tally { display: grid; gap: 14px; margin: 18px 0 22px; }
.tally b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-right: 8px; }
.tally span { color: var(--dim); font-size: 14px; }
.tally i { font-style: normal; color: var(--paper); }
.meter { height: 4px; background: var(--panel); border-radius: 2px; margin-top: 7px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--lamp); width: 0; transition: width .6s; }
.side h2 { font-size: 14px; font-weight: 600; color: var(--dim); margin-bottom: 8px; }
.ticker li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.ticker time { color: var(--dim); font: 12px/1.6 var(--mono); white-space: nowrap; }
.ticker li[data-kind="idea"] span { color: var(--mint); }
.ticker li[data-kind="warn"] span, .ticker li[data-kind="error"] span { color: var(--lamp); }

/* ---------- what's on his monitor ---------- */
.pad { position: absolute; inset: 0; padding: 4% 5%; display: flex; flex-direction: column; gap: 12px; }
.scr-empty { margin: auto; color: var(--dim); text-align: center; max-width: 34ch; font-family: var(--ui); font-size: 16px; }

/* notepad (planning) */
.note { margin: auto; width: min(560px, 92%); font-family: var(--ui); }
.note h3 { margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.note .keyline { font: 600 15px var(--mono); color: var(--mint); margin-bottom: 14px; }
.note p { color: var(--dim); margin-top: 8px; max-width: 60ch; }
.note p b { color: var(--paper); font-weight: 600; }
.typing::after { content: "▍"; color: var(--mint); animation: pulse 1s infinite; }

/* preset browser (browse + audition) */
.rows { display: grid; gap: 6px; margin: auto 0; }
.row { display: grid; grid-template-columns: 20px minmax(0, 1.1fr) minmax(0, 1.3fr) 74px; gap: 12px; align-items: center;
  padding: 8px 12px; border: 1px solid #241A33; border-radius: 8px; color: var(--dim); }
.row.on { border-color: var(--mint); color: var(--paper); background: rgba(159, 227, 216, .06); }
.row.done { color: var(--paper); }
.row.bad { opacity: .4; text-decoration: line-through; }
.row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm small { display: block; color: var(--dim); font-size: 11px; }
.row svg { width: 100%; height: 30px; }
.row .led { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--dim); }
.row.on .led { background: var(--mint); border-color: var(--mint); animation: pulse .5s infinite; }
.row.done .led { background: var(--dim); }
.row .num { text-align: right; font-size: 11px; }

/* piano roll */
.roll { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.writing { position: absolute; inset: 0; display: grid; place-items: center; font: 18px var(--ui); color: var(--dim); }
.roll-head { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); }
.roll-head b { color: var(--paper); font-weight: 600; }
.roll svg.grid { flex: 1; min-height: 0; width: 100%; background: #130E1C; border-radius: 8px; }
.roll svg.wave { height: 44px; width: 100%; }
.roll .note { animation: drop .25s both; }
.roll .ghost { opacity: .5; }
.playhead { stroke: var(--paper); stroke-width: 2px; vector-effect: non-scaling-stroke; animation: play linear infinite; }
@keyframes drop { from { opacity: 0; transform: translateY(-1.5px); } }
@keyframes play { from { transform: translateX(0); } to { transform: translateX(16px); } }

/* knobs (designing a preset) */
.knobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; margin: auto 0; }
.knob { text-align: center; color: var(--dim); font-size: 11px; }
.knob .dial { width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: transform 1.2s cubic-bezier(.3, 1.4, .5, 1); }
.knob .dial::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 14px; margin-left: -1px; background: var(--dim); }
.knob.moved { color: var(--paper); }
.knob.moved .dial { border-color: var(--lamp); }
.knob.moved .dial::after { background: var(--lamp); }
.knob em { display: block; font-style: normal; color: var(--lamp); }

/* splice search */
.search { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--paper); }
.search::before { content: "Splice  ›  "; color: var(--lamp); }
.hit { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 54px; gap: 12px; padding: 6px 12px; border-radius: 6px; color: var(--dim); }
.hit.on { background: rgba(242, 181, 107, .12); color: var(--paper); outline: 1px solid var(--lamp); }
.hit span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.got { margin-top: auto; color: var(--lamp); }

/* ---------- ideas ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.tools h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.filters { display: flex; gap: 4px; }
.filters button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; color: var(--dim); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--room); border-color: var(--paper); }
.hint { color: var(--dim); margin: 6px 0 18px; }
.ideas { display: grid; gap: 0; }
.idea { display: grid; grid-template-columns: 52px 44px minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line); }
.idea .no { font: 600 15px var(--mono); color: var(--dim); }
.idea h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.idea .sub { color: var(--dim); font-size: 14px; }
.idea p { color: var(--dim); font-size: 14px; margin-top: 4px; max-width: 70ch; }
.idea .wave { width: 100%; height: 40px; }
.kind { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }
.kind.bass { background: var(--rose); color: #2A0A16; } .kind.synth { background: var(--mint); color: #06231F; } .kind.fx { background: var(--lamp); color: #2A1608; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 15px; }
.play[aria-pressed="true"] { background: var(--paper); color: var(--room); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.acts button, .acts a { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 14px; text-decoration: none; color: var(--dim); }
.acts button[aria-pressed="true"][data-rate="keep"] { background: var(--mint); color: #06231F; border-color: var(--mint); }
.acts button[aria-pressed="true"][data-rate="maybe"] { background: var(--lamp); color: #2A1608; border-color: var(--lamp); }
.acts button[aria-pressed="true"][data-rate="pass"] { background: var(--line); color: var(--paper); }
.where { font: 12px var(--mono); color: var(--dim); word-break: break-all; margin-top: 4px; }

/* ---------- presentations ---------- */
.talk-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.talk-row h3 { margin: 0; font-size: 22px; font-weight: 600; }
.talk-row button, .slide-nav button { background: var(--paper); color: var(--room); border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 600; }
.slide-nav button.quiet { background: none; color: var(--paper); border: 1px solid var(--line); }
.talk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.slide { min-height: 420px; }
.slide .count { color: var(--dim); font: 13px var(--mono); }
.slide h2 { font-size: clamp(28px, 3.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 16px; max-width: 22ch; }
.slide .say { font-size: 20px; line-height: 1.45; max-width: 58ch; }
.slide ul { padding-left: 20px; font-size: 18px; max-width: 60ch; }
.slide .ideas { margin-top: 18px; }
.slide-nav { display: flex; gap: 10px; margin-top: 26px; }

/* ---------- login ---------- */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
#door { width: min(380px, 100%); display: grid; gap: 12px; }
#door h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
#door p { color: var(--dim); }
#door label { font-size: 14px; margin-top: 8px; }
#door input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--screen); color: var(--paper); }
#door button { padding: 12px; border-radius: 10px; border: 0; background: var(--lamp); color: #2A1608; font-weight: 600; }
#err { color: var(--lamp); min-height: 1.5em; }


/* ============================================================ INTERRUPTIONS
   At random times of day someone, or something, interrupts Otto: his boss, a
   label exec with notes, an auditor, the neighbour, a pile of pop-ups, a wall
   of meeting invites. He keeps working. app.js decides when and writes the
   lines; this only draws them. Animations are scoped to the data- attributes
   on purpose: browsers start animations on hidden SVG at page load, so an
   unscoped one would be over before its scene began. */
.cam-view { position: relative; container-type: inline-size; }
#cz-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; font-size: clamp(10px, 3.5cqw, 22px); }
.chaos-btn { position: absolute; right: 10px; top: 10px; z-index: 3; font-size: 12px; padding: 4px 10px; border-radius: 6px;
  border: 0; background: rgba(15, 11, 22, .72); color: var(--paper); }
.chaos-btn:hover { background: var(--line); }
body.public .chaos-btn, .talk .chaos-btn { display: none; }

/* the visitor */
#visitor { display: none; --v-body: #3B4252; --v-hair: #2A2230; --v-skin: #D9A27E; --v-skin-dark: #B98562; }
.cam[data-visitor] #visitor { display: block; }
#visitor .v-prop, #visitor .v-glasses, #visitor .v-tie { display: none; }
#visitor g, #visitor ellipse, #visitor path { transform-box: fill-box; transform-origin: center; }
.cam[data-visitor="boss"] #visitor { --v-body: #39404F; --v-hair: #6B6470; }
.cam[data-visitor="boss"] #visitor .v-tie { display: block; }
.cam[data-visitor="notes"] #visitor { --v-body: #5B4B3A; --v-hair: #C9A46B; --v-skin: #E7B99A; --v-skin-dark: #C99A7A; }
.cam[data-visitor="notes"] #visitor .v-tablet { display: block; }
.cam[data-visitor="auditor"] #visitor { --v-body: #2F4A45; --v-hair: #1D1A22; --v-skin: #C68B63; --v-skin-dark: #A8734F; }
.cam[data-visitor="auditor"] #visitor .v-clipboard, .cam[data-visitor="auditor"] #visitor .v-glasses { display: block; }
.cam[data-visitor="auditor"] #visitor .v-arm, .cam[data-visitor="notes"] #visitor .v-arm { display: none; }
.cam[data-visitor="vlogger"] #visitor { --v-body: #7A4A6A; --v-hair: #E0527A; --v-skin: #F0C7A8; --v-skin-dark: #D3A888; }
.cam[data-visitor="vlogger"] #visitor .v-phone { display: block; }
.cam[data-visitor="vlogger"] #visitor .v-arm { display: none; }
.cam[data-visitor="vlogger"] .v-brows { transform: scaleY(-1); }   /* delighted, not angry */
.cam[data-visitor] .v-walk { animation: v-enter 1.1s ease-out both; }
.cam[data-visitor][data-leaving] .v-walk { animation: v-exit 1.1s ease-in both; }
.cam[data-talking="v"] .v-mouth { animation: v-talk .2s infinite alternate ease-in-out; }
.cam[data-talking="v"] .v-lean { transform-origin: 50% 100%; animation: v-lean .5s infinite alternate ease-in-out; }
.cam[data-visitor="boss"][data-talking="v"] .v-arm { transform-origin: 100% 100%; animation: v-jab .28s infinite alternate ease-in-out; }
@keyframes v-enter { from { transform: translateX(150px); } to { transform: none; } }
@keyframes v-exit { from { transform: none; } to { transform: translateX(150px); } }
@keyframes v-talk { from { transform: scaleY(1); } to { transform: scaleY(3.2); } }
@keyframes v-lean { from { transform: rotate(0); } to { transform: rotate(-2.5deg); } }
@keyframes v-jab { from { transform: rotate(0); } to { transform: rotate(-9deg); } }
/* the neighbour: you never see them, the room just takes a knock */
.cam[data-knock] .cam-view svg { animation: cz-knock .35s ease-out; }
@keyframes cz-knock { 0% { transform: translate(0, 0); } 25% { transform: translate(-4px, 2px); } 55% { transform: translate(3px, -1px); } 100% { transform: none; } }

/* what gets said */
.cz-say { position: absolute; right: 3%; top: 2.5%; max-width: 62%; background: var(--paper); color: #241A33; font-family: var(--ui);
  font-weight: 600; line-height: 1.25; padding: .5em .75em; border-radius: .9em .9em .9em .15em; animation: cz-in .22s ease-out both; }
.cz-say.wall { right: 0; top: 30%; border-radius: .9em 0 0 .9em; max-width: 56%; }
.cz-say small { display: block; font-weight: 400; font-size: .72em; opacity: .65; margin-bottom: .1em; }
/* pop-ups */
.cz-dialog { position: absolute; width: 56%; background: #241A33; color: var(--paper); border: 1px solid var(--line); border-radius: .6em;
  padding: .6em .7em; font-family: var(--ui); box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .5); animation: cz-in .2s ease-out both; }
.cz-dialog b { display: block; font-size: .82em; line-height: 1.2; }
.cz-dialog p { font-size: .68em; color: var(--dim); margin: .25em 0 0; line-height: 1.25; }
.cz-dialog div { display: flex; gap: .4em; justify-content: flex-end; margin-top: .5em; }
.cz-dialog span { font-size: .62em; padding: .25em .7em; border-radius: 99em; border: 1px solid var(--line); white-space: nowrap; }
.cz-dialog span:last-child { background: var(--mint); color: #06231F; border-color: var(--mint); }
/* meeting invites */
.cz-notif { position: absolute; right: 3%; width: 62%; background: #241A33; box-shadow: 0 .3em .9em rgba(0, 0, 0, .45); color: var(--paper); border: 1px solid var(--line);
  border-left: .3em solid var(--lamp); border-radius: .5em; padding: .4em .6em; font-family: var(--ui); animation: cz-slide .3s ease-out both; }
.cz-notif b { display: block; font-size: .76em; line-height: 1.2; }
.cz-notif span { font-size: .62em; color: var(--dim); }
@keyframes cz-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes cz-slide { from { opacity: 0; transform: translateX(40%); } to { opacity: 1; transform: none; } }

/* ---------- small screens: camera first, then his monitor ---------- */
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .side { display: contents; }
  .cam { order: -1; max-width: 420px; }
  .view { padding: 14px; }
  .bar { gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
  .screen { aspect-ratio: 4 / 3; font-size: 11px; }
  .row { grid-template-columns: 14px minmax(0, 1fr) 70px; } .row .num { display: none; }
  .idea { grid-template-columns: 44px minmax(0, 1fr); } .idea .no, .idea .wave { display: none; } .idea .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .talk { grid-template-columns: 1fr; } .talk .cam { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
