/* The agents on the home pages (jobs.js, brain.js), after Magnus' whiteboard sketch of 18 Nov
   2026: the kinds of work as tabs in a frame, three jobs with their agents on dashed lines down
   to the brain, and under it, in the same frame, the type case every agent waits in. Compact
   enough to see whole on a laptop. The site's CI: white, Geist, hairlines, square corners;
   orange is only ever yours (Ü, and what goes to the decisions). */
.jobs { padding: 184px 0 240px; }
.jobs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
/* The headline's second line: the job that runs, in plain words, changing as the jobs play
   (jobs.js); on a phone, room for two lines, so nothing under it jumps. */
@media (max-width: 720px) { .jobs-head .h2 .say { min-height: 2.16em; } }
.crew { position: relative; margin-top: 32px; }
.crew-stage { position: relative; padding-bottom: 28px; border: 0.5px solid var(--hair); border-block: 0; }
/* The frame's foot is a hairline of its own: Safari on the iPhone left the border's bottom side
   out where the frame's height falls between device pixels (19 Nov 2026); a filled line it draws. */
.crew-stage::after { content: ""; position: absolute; left: -0.5px; right: -0.5px; bottom: 0; height: 0.5px; background: var(--hair); pointer-events: none; }
.cf { display: block; width: 100%; height: 100%; overflow: visible; color: var(--ink); }
.cf rect, .cta-who rect { fill: currentColor; }
.cf.you { color: var(--accent); }

/* The kinds of work: a row of boxes from line to line, the chosen one hatched as on a plan. */
.crew-cats { display: flex; overflow-x: auto; border-block: 0.5px solid var(--hair); scrollbar-width: none; }
.crew-cats::-webkit-scrollbar { display: none; }
.crew-cat { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color 0.25s; }
.crew-cat + .crew-cat { border-left: 0.5px solid var(--hair); }
.crew-cat span { display: inline-flex; align-items: center; gap: 8px; padding: 3px 9px; background: var(--bg); }
.crew-cat[aria-selected="true"] { color: var(--ink); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M-1 1l2-2M0 7l7-7M6 8l2-2' stroke='%230a0a0a' stroke-width='.7' stroke-opacity='.7'/%3E%3C/svg%3E") 0 0 / 7px 7px; }
@media (hover: hover) { .crew-cat:hover { color: var(--ink); } }
.crew-cat:focus-visible { outline-offset: -3px; }
/* While an agent in the case is pointed at: the kinds of work it is used in. */
.crew-cat.has span::before { content: ""; width: 6px; height: 6px; background: var(--ink); }

/* The field: the team the use case needs, each agent on a dashed line down to the brain; then a place for
   yours. The arrows step through the use cases. */
.crew-field { position: relative; padding: 34px 64px 0; }
.crew-team { display: flex; justify-content: center; align-items: flex-start; gap: 64px; margin: 0; padding: 0; list-style: none; transition: opacity 0.45s; }
.crew-field.reading .crew-team { opacity: 0.3; }
.crew-mate { display: flex; flex-direction: column; align-items: center; }
@media (prefers-reduced-motion: no-preference) { .crew-mate .crew-who, .crew-mate .crew-line { animation: crew-in 0.4s both; } }
@keyframes crew-in { from { opacity: 0; } }
.crew-slot { width: 30px; height: 54px; }
.crew-who { margin-top: 8px; font: 10px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.crew-line { position: relative; width: 1px; height: 46px; margin-top: 6px; background: repeating-linear-gradient(to bottom, var(--hair) 0 4px, transparent 4px 8px); }
.crew-field.play .crew-line { background: var(--ink); }
.crew-file { position: absolute; left: 9px; top: 4px; display: flex; align-items: center; gap: 5px; font: 10px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.crew-file svg { width: 12px; height: 15px; overflow: visible; color: var(--ink); }
.crew-file i { font-style: normal; }
.crew-add { position: relative; display: flex; justify-content: center; padding-top: 10px; }
.crew-add button { width: 34px; height: 34px; border: 0.5px dashed var(--hair); background: var(--bg); font: inherit; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
@media (hover: hover) { .crew-add button:hover { color: var(--ink); border: 0.5px solid var(--ink); } }
.crew-add .crew-tip { top: 54px; bottom: auto; }
.crew-arrow { position: absolute; top: 41px; width: 40px; height: 40px; border: 0.5px solid var(--hair); background: var(--bg); font-size: 16px; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s; }
.crew-arrow[data-step="-1"] { left: 12px; }
.crew-arrow[data-step="1"] { right: 12px; }
@media (hover: hover) { .crew-arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); } }

/* The brain (brain.js): a field of small squares with the memory's parts in it, their names
   (and, while a job runs, how much reached them) over the canvas, and the job's files moving
   through it as small sheets. Lit parts are ink; decisions and the files still open, orange. */
.mem { position: relative; height: 200px; margin: 0 64px; overflow: hidden; background: var(--inset); }
.mem-field { position: absolute; inset: 0; display: block; }
.mem-k { position: absolute; z-index: 1; left: 16px; bottom: 12px; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; pointer-events: none; }
.mem-k svg { width: 22px; height: auto; color: var(--ink); }
.mem-docs { position: absolute; inset: 0; pointer-events: none; }
.mem-doc { position: absolute; left: 0; top: 0; width: 8px; height: 10px; color: var(--ink); transition: opacity 0.25s, color 0.3s; will-change: transform; }
.mem-doc svg { display: block; width: 8px; height: 10px; overflow: visible; }
.mem-doc.open { color: var(--accent); }
.mem-nodes { position: absolute; inset: 0; }
.mem-n { position: absolute; translate: 0 -50%; padding: 3px 7px; border: 0.5px solid transparent; background: none; font: inherit; font-size: 12px; color: #8e8e8e; white-space: nowrap; cursor: pointer; transition: color 0.4s, background 0.4s, border-color 0.4s; }
.mem-n b { margin-left: 7px; font: 400 10px/1 var(--mono); font-variant-numeric: tabular-nums; }
.mem-n b:empty { display: none; }
.mem-n.on { color: var(--ink); background: var(--bg); border-color: var(--ink); }
.mem-n.on[data-m="decisions"] { color: var(--accent); border-color: var(--accent); }
@media (hover: hover) { .mem-n:hover { color: var(--ink); background: var(--bg); } }
.mem-n:focus-visible { outline-offset: 2px; }

/* The bench, in the frame under the brain: the agents sit on a line, free, their feet over the
   edge; an agent out on the field leaves a faint print of itself. The last place is for your
   own. (With data-look="case" they stand in a type case instead, one compartment each.) */
.crew-bench { margin: 22px 64px 0; }
.crew-bk { display: flex; justify-content: space-between; margin: 0; font: 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crew-row { margin-top: 10px; }
.crew-row + .crew-row { margin-top: -0.5px; }
.crew-seats { position: relative; z-index: 1; display: flex; margin: 0; padding: 0; list-style: none; border: 0.5px solid var(--hair); }
.crew-seat { position: relative; flex: var(--w, 1) 1 0; display: flex; justify-content: center; align-items: flex-end; min-width: 0; height: 58px; padding-bottom: 9px; transition: opacity 0.45s, background 0.3s; }
.crew-seat + .crew-seat { border-left: 0.5px solid var(--hair); }
.crew-seat > button { position: relative; display: block; width: 20px; height: 36px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.crew-seat > button:focus-visible { outline-offset: 4px; }
.crew-seat .cf { transition: opacity 0.3s; }
.crew-seat.away .cf { opacity: 0.12; }
@media (hover: hover) {
  .crew-seat:hover { background: var(--inset); }
  .crew-seat:not(.away) > button:hover .body { animation: v3bob 0.34s ease-in-out 2 alternate; }
}
.crew-own { flex: 1 1 0; align-items: center; padding-bottom: 0; }
.crew-own > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 18px; line-height: 1; color: var(--muted); text-decoration: none; transition: color 0.2s; }
@media (hover: hover) { .crew-own > a:hover { color: var(--ink); } }
.crew-plank { display: none; }
.crew-bench[data-look="line"] .crew-row { position: relative; margin-top: 16px; }
.crew-bench[data-look="line"] .crew-seats { justify-content: space-between; padding: 0 4px; border: 0; }
.crew-bench[data-look="line"] .crew-seat { flex: 0 0 auto; width: 36px; height: auto; padding: 0; border: 0; background: none; }
.crew-bench[data-look="line"] .crew-own { align-items: flex-end; }
.crew-bench[data-look="line"] .crew-own > a { width: 22px; height: 22px; margin-bottom: 4px; border: 0.5px dashed var(--hair); }
/* The line runs under their seats; the feet hang over it. */
.crew-bench[data-look="line"] .crew-plank { display: block; position: absolute; left: 0; right: 0; bottom: 4px; border-top: 0.5px solid var(--ink); }
.crew-bench.reading .crew-seat:not(.feeds):not(.crew-own) { opacity: 0.3; }
/* What an agent does, over its compartment while it is pointed at. */
.crew-tip { position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: 230px; padding: 9px 11px; translate: var(--tx, -50%) 4px; background: var(--bg); border: 0.5px solid var(--ink); text-align: left; opacity: 0; pointer-events: none; transition: opacity 0.2s, translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.crew-tip b { display: block; font-weight: 400; font-size: 13px; color: var(--ink); }
.crew-tip span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.crew-tip i { display: block; margin-top: 7px; font: normal 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crew-seat:nth-child(-n+2) .crew-tip { left: 0; --tx: 0; }
.crew-seat:nth-last-child(-n+2) .crew-tip { left: auto; right: 0; --tx: 0; }
@media (hover: hover) { .crew-seat:hover .crew-tip, .crew-add:hover .crew-tip { opacity: 1; translate: var(--tx, -50%) 0; } }
/* Reached with the keyboard too; not after a click: Chrome keeps a clicked button focused, and
   with :focus-within its box stayed over the brain after the pointer had gone. */
.crew-seat > :focus-visible + .crew-tip, .crew-add > :focus-visible + .crew-tip { opacity: 1; translate: var(--tx, -50%) 0; }

/* The agents in the air, between the case and the field. */
.crew-fly { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.crew-flyer { position: absolute; left: 0; top: 0; width: 24px; height: 43px; transform-origin: 50% 100%; }
.crew-flyer .cf { transform-origin: 50% 100%; }

/* Under the frame, the line and the button to the use cases are the hero's (.lede, .btn.ink in
   home.css). */

/* The call to act: one big orange button with Ü standing on it. Contact opens as a dialog. */
.jobs-cta { display: flex; justify-content: center; margin-top: 112px; }
.cta { position: relative; display: inline-flex; align-items: center; gap: 16px; height: 64px; padding: 0 32px; border: 0; background: var(--accent); color: var(--ink); font: inherit; font-size: 18px; letter-spacing: -0.01em; cursor: pointer; transition: background 0.2s; }
.cta b { font-weight: 400; transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.cta .cta-who { position: absolute; left: 24px; bottom: 100%; width: 22px; height: 40px; overflow: visible; color: var(--accent); }
@media (hover: hover) {
  .cta:hover { background: var(--accent-hover); }
  .cta:hover b { translate: 5px 0; }
}
@media (prefers-reduced-motion: no-preference) { .cta:hover .cta-who .body { animation: v3bob 0.3s ease-in-out infinite alternate; } }
.close .acts { margin-top: 56px; }

@media (max-width: 720px) {
  .jobs { padding: 120px 0 184px; }
  .crew { margin-top: 28px; }
  /* On a phone the six kinds sit in two rows of three, all in view and one tap away (a row that
     scrolls hid half of them, 18 Nov 2026). */
  .crew-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .crew-cat { height: 42px; padding: 0 4px; font-size: 14px; }
  .crew-cat span { padding: 3px 6px; }
  .crew-cat + .crew-cat { border-left: 0; }
  .crew-cat:not(:nth-child(3n + 1)) { border-left: 0.5px solid var(--hair); }
  .crew-cat:nth-child(n + 4) { border-top: 0.5px solid var(--hair); }
  .crew-field { padding: 22px 0 0; }
  .crew-team { gap: 34px; margin-top: 0; }
  .crew-add, .crew-arrow { display: none; }
  .crew-slot { width: 24px; height: 43px; }
  .crew-line { height: 40px; }
  .crew-file { left: 7px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .mem { height: 250px; margin: 0 10px; }
  .crew-bench { margin: 18px 10px 0; }
  .crew-bench[data-look="line"] .crew-seat { flex: 1 1 0; width: auto; }
  /* Keep the middle seats' tooltips inside even a 320px screen. */
  .crew-tip { max-width: min(230px, calc(100vw - 140px)); }
  .jobs-cta { margin-top: 64px; }
  .cta { height: 58px; padding: 0 26px; font-size: 16px; }
}
}
