/* ---------- Work as a product roadmap on a FigJam board: the canvas runs to the window edges, the board's chrome
   floats on it (file pill, share, tools), and the roadmap sits in a section: one column per company, a sticky for
   each result. A sticky opens the role in a panel from the right ---------- */
.art[data-id="work"] { --ground: #f1f1ef; }
.rd { position: absolute; inset: calc(-1 * var(--bt, 0px)) calc(-1 * var(--br, 0px)) calc(-1 * var(--bb, 0px)) calc(-1 * var(--bl, 0px)); overflow: hidden; background: #f1f1ef radial-gradient(circle, rgba(23,20,15,.16) 1px, transparent 1.3px) 0 0 / 24px 24px; color: #1e1e1e; font: 13px/1.45 var(--f-sans); }
.rd :where(button) { all: unset; box-sizing: border-box; cursor: pointer; }
.fj-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.fj-pill { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 2px 8px -2px rgba(0,0,0,.15); }
.fj-pill b { font-weight: 600; }
.fj-pill em { font-style: normal; color: #8a8a8a; font-size: 12px; }
.fj-logo { display: grid; grid-template-columns: repeat(3, 6px); gap: 2px; padding: 5px; border-radius: 7px; background: #1e1e1e; }
.fj-logo i { width: 6px; height: 6px; border-radius: 50%; background: #ffc943; }
.fj-logo i + i { background: #9747ff; }
.fj-logo i + i + i { background: #14ae5c; }
.fj-face { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e8551f; color: #fff; font: 600 10px var(--f-sans); }
.fj-zoom { font-size: 12px; color: #5c5c5c; }
.fj-share { padding: 6px 12px; border-radius: 8px; background: #9747ff; color: #fff; font-weight: 600; font-size: 12px; }
.fj-tools { position: absolute; left: 14px; top: 50%; translate: 0 -50%; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 2px 10px -2px rgba(0,0,0,.18); }
.fj-tool { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: #2c2c2c; }
.fj-tool.on { background: #9747ff; color: #fff; }
.fj-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* the section, inside the sheet's own box */
.rd-board { position: absolute; top: calc(var(--bt, 0px) + 78px); bottom: calc(var(--bb, 0px) + 56px); left: calc(var(--bl, 0px) + 84px); right: calc(var(--br, 0px) + 34px); padding: 26px 26px 0; border-radius: 4px; background: rgba(255,255,255,.72); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.rd-sec { position: absolute; left: 0; top: -26px; padding: 3px 9px; border-radius: 5px 5px 0 0; background: #e7e0ff; color: #5a2fd6; font: 600 12px var(--f-sans); }
.rd-time { display: flex; align-items: center; gap: 12px; font: 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8a8f98; }
.rd-time i { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(23,20,15,.15), #e8551f); border-radius: 2px; position: relative; }
.rd-time i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid #e8551f; border-right: 0; }
.rd-now { padding: 3px 9px; border-radius: 99px; background: #e8551f; color: #fff; }
.rd-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 18px; }
.rd-col { display: grid; align-content: start; gap: 12px; }
.rd-h { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.rd-h b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.rd-h small { display: block; font-size: 11px; color: #8a8f98; }
.rd-logo { width: 28px; height: 28px; border-radius: 7px; flex: none; object-fit: contain; }
.rd-role { margin: -2px 4px 0; font-size: 11.5px; color: #5f646d; }
/* the stickies: square-cut paper with a slight tilt, lifted a little more on hover */
.rd .rd-note { display: grid; align-content: start; gap: 4px; min-height: 118px; padding: 14px 14px 10px; background: var(--paper); rotate: var(--r); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 16px -12px rgba(23,20,15,.5); transition: rotate .25s cubic-bezier(.2,.8,.2,1), translate .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.rd-note b { font: 400 30px/1 var(--f-display); letter-spacing: -.01em; color: #1e1e1e; }
.rd-note span { font-size: 12.5px; line-height: 1.35; color: rgba(30,30,30,.78); }
.rd-note small { margin-top: 4px; font: 10px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(30,30,30,.45); }
.rd .rd-note:hover, .rd .rd-note.on { rotate: 0deg; translate: 0 -3px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 26px -14px rgba(23,20,15,.55); }
.rd .rd-note.on { outline: 2px solid #9747ff; outline-offset: 2px; }
.rd .rd-note:focus-visible { outline: 2px solid #e8551f; outline-offset: 3px; }
.rd-note.c0 { --paper: #ffe97a; }
.rd-note.c1 { --paper: #ffc9dc; }
.rd-note.c2 { --paper: #c4e4ff; }
.rd-note.c3 { --paper: #c9f0c4; }
/* a comment and a teammate's cursor, so the board reads as live */
.fj-comment { position: absolute; right: 22px; bottom: 18px; display: flex; align-items: flex-start; gap: 8px; max-width: 280px; padding: 9px 12px 9px 9px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 6px 16px -6px rgba(0,0,0,.2); }
.fj-comment p { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: #3a3a3a; }
.fj-cursor { position: absolute; left: 61%; top: 64%; display: flex; align-items: flex-start; pointer-events: none; animation: fj-drift 9s ease-in-out infinite; }
.fj-cursor svg { width: 18px; height: 20px; fill: #9747ff; stroke: #fff; stroke-width: 1.5; }
.fj-cursor b { margin: 14px 0 0 -4px; padding: 2px 7px; border-radius: 4px 10px 10px 10px; background: #9747ff; color: #fff; font: 600 11px var(--f-sans); }
@keyframes fj-drift { 0%, 100% { translate: 0 0; } 30% { translate: -140px -60px; } 60% { translate: 60px -110px; } }
/* the role, sliding in from the right over the board: the same detail page the old Work sheet had */
.rd-drawer { position: absolute; z-index: 10; top: 0; right: 0; bottom: 0; width: calc(var(--br, 0px) + 900px); translate: 102% 0; transition: translate .45s cubic-bezier(.2,.8,.2,1); box-shadow: -24px 0 60px -30px rgba(23,20,15,.5); }
.rd-drawer.open { translate: 0 0; }
.rd-drawer .wk { inset: 0; grid-template-columns: 1fr; background: #fbfbfc; }
.rd-x { position: absolute; z-index: 2; left: 14px; top: 13px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font: 18px/1 var(--f-sans); color: #5f646d; transition: background .15s; }
.rd-x:hover { background: #eceef1; }
/* the site's sound toggle sits in the top right corner, so the board's share pill and the panel's arrows make room */
.fj-top .fj-pill:last-child { margin-right: 52px; }
.rd-drawer .wk-bar { padding-right: 68px; }
/* the role panel skips the stats: they're already on the stickies */
.rd-drawer .wk-stats { display: none; }

/* the roadmap's entrance and exit. The stickies wait off the board until it's the sheet in view and the front page
   has gone by, then drop onto it one after another, column by column, settling with a little bounce. As the board
   scrolls away they peel off and fall away in a scatter; coming back drops them in again */
body:not(.past-front) .rd .rd-note,
.sheet:not(.live) .rd .rd-note { opacity: 0; }
body.past-front .sheet.live .rd .rd-note { animation: rd-drop .75s cubic-bezier(.3, 1.35, .5, 1) calc(120ms + var(--d) * 65ms) backwards; }
body.past-front .sheet.live .rd.rd-leave .rd-note { animation: rd-fall .6s cubic-bezier(.5, 0, .8, .2) calc(var(--e) * 20ms) forwards; }
.rd.rd-leave .rd-note { pointer-events: none; }
@keyframes rd-drop {
  from { opacity: 0; translate: 0 -760px; rotate: calc(var(--r) + 18deg); }
  60% { opacity: 1; }
}
@keyframes rd-fall {
  20% { translate: 0 -14px; rotate: calc(var(--r) - 6deg); }
  to { opacity: 0; translate: 0 900px; rotate: calc(var(--r) + 34deg); }
}
@media (prefers-reduced-motion: reduce) {
  body.past-front .sheet.live .rd .rd-note { animation: none; }
  body.past-front .sheet.live .rd.rd-leave .rd-note { animation: none; opacity: 0; }
}

/* the board, hands on: stickies drag (and keep where they're dropped), your own sticky, and stamps */
.rd .rd-note { transform: translate(var(--dx, 0px), var(--dy, 0px)); touch-action: none; }
.rd .rd-note.dragging { z-index: 6; rotate: 0deg; cursor: grabbing; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 40px -18px rgba(23,20,15,.55); transition: none; }
.rd[data-tool="sticky"] .rd-board { cursor: copy; }
.rd[data-tool="stamp"] .rd-board { cursor: crosshair; }
.rd .fj-tool { cursor: pointer; }
.rd .fj-tool:hover:not(.on) { background: #f2f2f2; }
.rd .fj-tool:focus-visible { outline: 2px solid #9747ff; outline-offset: 1px; }
.rd-note.rd-mine { position: absolute; z-index: 5; width: 168px; min-height: 120px; padding: 14px; background: #ffe97a; rotate: var(--r); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 22px -12px rgba(23,20,15,.5); animation: fj-pop .3s cubic-bezier(.3, 1.5, .5, 1); }
.rd-mine span { display: block; min-height: 64px; outline: none; font: 500 15px/1.35 var(--f-sans); color: #1e1e1e; cursor: text; }
.rd-mine span:empty::before { content: "Leave James a note"; color: rgba(30,30,30,.4); }
.fj-stamp { position: absolute; z-index: 7; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(0,0,0,.35); animation: fj-pop .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.fj-stamp svg { width: 18px; height: 18px; fill: #fff; }
@keyframes fj-pop { from { scale: .2; opacity: 0; } }
/* the role panel's bar carries only the role stepper, on the right; the close button holds the left */
.rd-drawer .wk-bar { justify-content: flex-end; }
/* with the stats gone, the highlights get the room the stats row used to give them */
.rd-drawer .wk-title { margin-bottom: 30px; }
