/* Agents: turntable, delegation tree, dossiers, job board, composer. */

/* Turntable: the rendered team, turned by the scroll. */
.tt { height: 420vh; }
.tt-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); align-items: center; gap: 2vw; padding: 100px var(--gutter) 40px; max-width: 1560px; margin: 0 auto; overflow: hidden; }
.tt-copy { position: relative; z-index: 1; }
.tt-who { --c: var(--gold); margin-top: 40px; min-height: 210px; padding-left: 18px; border-left: 2px solid var(--c); display: grid; align-content: start; gap: 6px; transition: border-color 400ms; }
.tt-who__n { color: var(--grey-3); }
.tt-who b { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.03em; }
.tt-who__r { color: color-mix(in srgb, var(--c) 70%, #0a0a0a); }
.tt-who p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--grey-1); max-width: 36ch; }
.tt-stage { position: relative; height: min(78vh, 760px); margin-right: calc(var(--gutter) * -1); }
.tt-stage::before { content: ''; position: absolute; left: 10%; right: 10%; bottom: 8%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 166, 97, 0.18), transparent); filter: blur(10px); }
.tt-dots { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tt-dots li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 11px; color: var(--grey-3); background: rgba(255,255,255,0.6); box-shadow: 0 0 0 1px var(--hairline); transition: background-color 300ms, color 300ms; }
.tt-dots li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: 0.5; }
.tt-dots li.is-on { color: var(--ink); background: #fff; }
.tt-dots li.is-on::before { opacity: 1; box-shadow: 0 0 8px var(--c); }

/* The tree: nodes over a drawn SVG, all driven by --k and dash offsets. */
.tr { height: 460vh; }
.tr-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); align-items: center; gap: 3vw; padding: 96px var(--gutter) 30px; max-width: 1560px; margin: 0 auto; }
.tr-head .h { font-size: clamp(32px, 3.6vw, 58px); }
.tr-cap { margin: 30px 0 0; min-height: 4.5em; display: grid; gap: 8px; font-size: 18px; line-height: 1.45; color: var(--ink-soft); max-width: 30ch; }
.tr-cap .mono { color: #7a6231; }
.tr-world { position: relative; width: 100%; aspect-ratio: 1200 / 760; max-height: 80vh; }
.tr-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tr-l { fill: none; stroke: rgba(10,10,10,0.25); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.tr-l--back { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; }
.tr-node, .tr-leaf { --k: 0; position: absolute; translate: -50% -50%; opacity: var(--k); transform: scale(calc(0.85 + var(--k) * 0.15)); }
.tr-goal { display: grid; justify-items: center; gap: 4px; padding: 12px 20px; border-radius: 16px; background: var(--ink); color: #f1f0eb; white-space: nowrap; }
.tr-goal .mono { color: #8fd49a; font-size: 10.5px; }
.tr-goal b { font-size: 17px; }
.tr-chip, .tr-agent { display: grid; justify-items: center; gap: 6px; }
.tr-orb { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--hairline), 0 18px 30px -20px rgba(20,20,30,0.45); }
.tr-chip .tr-orb { width: 96px; height: 96px; box-shadow: 0 0 0 1px var(--hairline), 0 0 50px rgba(201,166,97,0.35); }
.tr-orb .monad-svg { width: 66%; height: 66%; }
.tr-agent .tr-orb { box-shadow: 0 0 0 2px var(--c), 0 0 0 8px color-mix(in srgb, var(--c) 14%, transparent); }
.tr-chip b, .tr-agent b { font-size: 14px; }
.tr-chip small { color: #7a6231; font-size: 10.5px; }
.tr-leaf { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; width: min(240px, 22%); padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--sheet-shadow); }
.tr-leaf img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; }
.tr-leaf__doc { width: 56px; height: 56px; border-radius: 9px; background: #f3f2ed; display: grid; align-content: center; gap: 5px; padding: 10px; }
.tr-leaf__doc i { height: 4px; border-radius: 2px; background: #d9d5cb; }
.tr-leaf b { display: block; font-size: 13.5px; }
.tr-leaf small { display: block; font-size: 11px; line-height: 1.35; color: var(--grey-2); }
.tr-leaf__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: #efede7; overflow: hidden; }
.tr-leaf__bar i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.tr-leaf.is-done { box-shadow: 0 0 0 1.5px var(--gold), var(--sheet-shadow); }
.tr-ok { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 20px; background: var(--night); color: #e9e6dd; width: min(520px, 50%); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.tr-ok__msg { font-size: 13.5px; line-height: 1.4; }
.tr-ok__msg .mono { display: block; color: var(--gold); font-size: 10.5px; margin-bottom: 3px; }
.tr-ok__btn { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; background: #f1f0eb; color: var(--night); font-weight: 600; font-size: 13px; transition: background-color 300ms, color 300ms; }
.tr-ok.is-done .tr-ok__btn { background: #2f6b3a; color: #fff; }
.tr-ok.is-done .tr-ok__btn::after { content: 'd'; }
.tr-note { position: absolute; right: var(--gutter); bottom: 18px; margin: 0; color: var(--grey-3); font-size: 10.5px; }

/* Dossiers: magazine spreads, one screen per agent. The name runs edge to edge behind the
   portrait; the page is washed in the agent's colour; the scroll turns the pages. */
.mh { --c: var(--gold); height: 640vh; }
.mh-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(70% 70% at 50% 62%, color-mix(in srgb, var(--c) 30%, #faf9f6), color-mix(in srgb, var(--c) 10%, #faf9f6) 60%, #faf9f6 100%); transition: background 600ms var(--ease-out); }
.mh-head { position: absolute; left: var(--gutter); top: 92px; z-index: 4; }
.mh-head .ch__k { display: block; margin-bottom: 6px; }
.mh-h { margin: 0; font: 600 clamp(20px, 1.6vw, 26px)/1.1 var(--sans); letter-spacing: -0.02em; }
.mh-pages { position: absolute; inset: 0; }
.mh-page { --k: 0; --d: 0; position: absolute; inset: 0; }
.mh-page::before { content: ''; position: absolute; inset: 0; opacity: var(--k); background: radial-gradient(70% 70% at 50% 62%, color-mix(in srgb, var(--c) 38%, #faf9f6), color-mix(in srgb, var(--c) 12%, #faf9f6) 60%, #faf9f6 100%); }
.mh-name { position: absolute; left: 0; right: 0; top: 50%; margin: 0; text-align: center; white-space: nowrap; font: 700 clamp(80px, 17vw, 330px)/0.8 var(--sans); letter-spacing: -0.07em; color: color-mix(in srgb, var(--c) 30%, #0a0a0a);
  opacity: var(--k); transform: translate(calc(var(--d) * -30vw), -58%); }
.mh-name.is-two { font-size: clamp(64px, 12vw, 230px); line-height: 0.84; }
.mh-portrait { position: absolute; left: 50%; bottom: 17%; height: 44%; aspect-ratio: 9 / 10; margin: 0; z-index: 2; opacity: var(--k); transform: translate(-50%, calc((1 - var(--k)) * 40px)) scale(calc(0.92 + var(--k) * 0.08)); filter: drop-shadow(0 40px 40px rgba(20,20,30,0.18)); }
.mh-portrait { display: grid; place-items: center; }
.mh-portrait .agent-persona { width: 100%; height: auto; aspect-ratio: 1; }
/* A soft floor under the agent, so it stands in the spread instead of floating. */
.mh-portrait::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 2%; height: 7%; border-radius: 50%; z-index: -1; background: color-mix(in srgb, var(--c) 40%, rgba(10,10,10,0.25)); filter: blur(10px); opacity: 0.55; }
/* Its personality, as the persona engine names it. */
.mh-trait { margin: 10px 0 0 !important; display: grid !important; gap: 2px !important; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--c) 30%, transparent); font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.mh-trait b { font-size: 15px !important; color: var(--ink); }
.mh-col { position: absolute; bottom: 13%; z-index: 3; width: min(300px, 22vw); display: grid; gap: 8px; opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 16px)); }
.mh-col--l { left: var(--gutter); }
.mh-col--r { right: var(--gutter); }
.mh-col .mono { color: color-mix(in srgb, var(--c) 55%, #0a0a0a); font-size: 10.5px; }
.mh-col b { font-size: 18px; letter-spacing: -0.02em; }
.mh-col blockquote { margin: 6px 0 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.38; letter-spacing: -0.015em; color: var(--ink); }
.mh-col ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.mh-col li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--ink-soft); }
.mh-col li::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--c); translate: 0 -2px; }
.mh-col p { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.mh-col p span { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,0.7); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.mh-index { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 4; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,0.72); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--hairline), 0 16px 30px -18px rgba(20,20,30,0.4); }
.mh-index button { --f: 0; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font: 500 13px var(--sans); color: var(--grey-2); cursor: pointer; white-space: nowrap; overflow: hidden; transition: color 200ms; }
.mh-index button .mono { font-size: 10px; color: var(--grey-3); }
.mh-index button i { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--c); transform-origin: left; transform: scaleX(var(--f)); }
.mh-index button[aria-current='true'] { color: var(--ink); background: #fff; }

/* The Agent Library: a typeset index. */

/* Your own: the sentence, marked up as it is understood, and a spec ticket. */
.un { padding: 2vh var(--gutter) 14vh; }
.un-inner { max-width: 1400px; margin: 0 auto; }
.un-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); align-items: end; gap: 32px; margin-bottom: 34px; }
.un-head .ch__k { grid-column: 1 / -1; margin: 0; }
.un-head .h { font-size: clamp(38px, 4.8vw, 80px); }
.un-head .lede { justify-self: end; }
.un-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr); gap: 20px; align-items: start; }
.un-write { padding: 26px 30px 22px; border-radius: 32px; background: #fff; box-shadow: var(--sheet-shadow); display: grid; gap: 14px; }
.un-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.un-ex button { height: 32px; padding: 0 12px; border-radius: 999px; font: 500 12.5px var(--sans); color: var(--grey-1); box-shadow: inset 0 0 0 1px var(--hairline-strong); cursor: pointer; }
.un-ex button[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.un-field { position: relative; display: grid; }
.un-mirror, .un-field textarea { grid-area: 1 / 1; margin: 0; padding: 28px 0 6px; border: 0; font: 500 clamp(26px, 2.6vw, 40px)/2.15 var(--sans); letter-spacing: -0.025em; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; }
.un-mirror { color: var(--ink); pointer-events: none; min-height: 4.3em; }
.un-field textarea { resize: none; overflow: hidden; background: transparent; color: transparent; caret-color: var(--ink); outline: 0; height: 100%; }
.un-field textarea::selection { background: rgba(201,166,97,0.3); color: transparent; }
.un-mirror mark { position: relative; color: inherit; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--c) 34%, transparent) 58%, color-mix(in srgb, var(--c) 34%, transparent) 92%, transparent 92%); border-radius: 2px; }
.un-mirror mark::before { content: attr(data-label); position: absolute; left: 0; bottom: calc(100% - 0.38em); font: 500 10px/1 var(--mono); letter-spacing: 0; white-space: nowrap; color: color-mix(in srgb, var(--c) 70%, #0a0a0a); padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.un-mirror mark.is-trigger { background: linear-gradient(transparent 58%, rgba(201,166,97,0.42) 58%, rgba(201,166,97,0.42) 92%, transparent 92%); }
.un-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding-top: 12px; border-top: 1px solid var(--hairline); color: var(--grey-2); font-size: 10.5px; }
.un-legend span { display: inline-flex; align-items: center; gap: 6px; }
.un-legend span::before { content: ''; width: 14px; height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--c) 45%, transparent); }
.un-ticket { position: sticky; top: 110px; padding: 22px 22px 20px; background: #fffdf8; color: var(--ink); display: grid; gap: 14px; box-shadow: 0 30px 60px -36px rgba(20,20,30,0.45), 0 0 0 1px rgba(10,10,10,0.06);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; border-radius: 18px; }
.un-ticket header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--hairline-strong); }
.tk-orb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1.5px var(--gold); }
.tk-orb .monad-svg { width: 32px; height: 32px; }
.un-ticket header small { display: block; color: var(--grey-3); font-size: 10px; }
.un-ticket header b { display: block; font-size: 21px; letter-spacing: -0.025em; }
.un-ticket dl { margin: 0; display: grid; }
.un-ticket dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.un-ticket dt { color: var(--grey-3); font-size: 10.5px; padding-top: 3px; }
.un-ticket dd { margin: 0; font-size: 14.5px; line-height: 1.4; }
.un-ticket dd em { font-style: normal; color: var(--grey-3); }
.un-ticket ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.un-ticket ol li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 8px; align-items: center; }
.un-ticket ol li span { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--c); color: var(--ink); }
.un-ticket ol li span .monad-svg { width: 19px; height: 19px; }
.un-ticket ol li small { color: var(--grey-3); font-size: 11px; }
.un-ticket ol li.is-empty { display: block; color: var(--grey-3); }
.tk-go { justify-self: start; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 13.5px var(--sans); }

/* Closing band: one screen, the rendered team in the middle. */

@media (min-width: 901px) and (max-height: 860px) {
  .tt-pin, .tr-pin { padding-top: 84px; }
  .tt-who { margin-top: 24px; min-height: 180px; }
  .tr-world { max-height: 76vh; }
}
@media (max-width: 900px) {
  .tt { height: 380vh; }
  .tt-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: 0; padding: 84px var(--gutter) 60px; }
  .tt-copy .sh__h { font-size: 40px; }
  .tt-who { margin-top: 14px; min-height: 140px; }
  .tt-who p { font-size: 14px; }
  .tt-stage { height: 100%; margin: 0 calc(var(--gutter) * -1); }
  .tt-dots { display: none; }
  .tr { height: 420vh; }
  .tr-pin { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 84px 10px 20px; }
  .tr-head { padding: 0 10px; }
  .tr-head .h { font-size: 28px; }
  .tr-cap { margin-top: 10px; font-size: 15px; min-height: 3.6em; }
  /* Nodes sit at percentages, so the tree takes every pixel left under the caption. */
  .tr-world { aspect-ratio: auto; height: calc(100svh - 300px); max-height: 150vw; }
  .tr-orb { width: 54px; height: 54px; }
  .tr-chip .tr-orb { width: 68px; height: 68px; }
  .tr-chip b, .tr-agent b { font-size: 10px; }
  .tr-chip small { display: none; }
  .tr-goal { padding: 8px 12px; }
  .tr-goal b { font-size: 13px; }
  .tr-leaf { width: 23%; grid-template-columns: minmax(0, 1fr); padding: 6px; gap: 4px; }
  .tr-leaf img, .tr-leaf__doc { width: 100%; height: 64px; }
  .tr-leaf small { display: none; }
  .tr-leaf b { font-size: 10px; }
  .tr-ok { width: 92%; }
  .tr-ok__msg { font-size: 12px; }
  .mh { height: 600vh; }
  .mh-head { top: 74px; }
  .mh-name { top: 32%; font-size: 24vw; }
  .mh-name.is-two { font-size: 17vw; }
  .mh-portrait { bottom: 30%; height: 38%; }
  .mh-col { width: auto; left: var(--gutter); right: var(--gutter); bottom: 86px; }
  .mh-col--r { display: none; }
  .mh-col blockquote { font-size: 16px; }
  .mh-col b { font-size: 15px; }
  .mh-index { left: 12px; right: 12px; translate: none; bottom: 16px; overflow-x: auto; scrollbar-width: none; }
  .mh-index::-webkit-scrollbar { display: none; }
  .mh-index button { flex: 0 0 auto; height: 32px; padding: 0 10px; font-size: 12px; }
  .un { padding: 2vh var(--gutter) 8vh; }
  .un-head { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
  .un-head .h { font-size: 32px; }
  .un-head .lede { justify-self: start; font-size: 14.5px; }
  .un-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .un-write { padding: 14px 16px 12px; border-radius: 22px; gap: 8px; }
  .un-ex { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .un-ex::-webkit-scrollbar { display: none; }
  .un-ex button { flex: 0 0 auto; }
  .un-mirror, .un-field textarea { font-size: 19px; line-height: 2.2; padding-top: 18px; }
  .un-mirror { min-height: 0; }
  .un-mirror mark::before { font-size: 9px; padding: 2px 5px; }
  .un-legend { display: none; }
  .un-ticket { position: relative; top: 0; padding: 14px 16px; gap: 10px; border-radius: 20px; }
  .un-ticket header { padding-bottom: 10px; }
  .un-ticket header b { font-size: 18px; }
  .tk-orb { width: 36px; height: 36px; }
  .un-ticket dl > div { grid-template-columns: 54px minmax(0, 1fr); padding: 7px 0; }
  .un-ticket dd { font-size: 13.5px; }
  .un-ticket dl > div:nth-child(n+3) { display: none; }
  .un-ticket ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .un-ticket ol li { display: inline-flex; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hairline-strong); font-size: 12.5px; }
  .un-ticket ol li span { width: 22px; height: 22px; }
  .un-ticket ol li small { display: none; }
  .tk-go { justify-self: stretch; text-align: center; }
}

/* The Agent Library: a shelf of six stacks. */
.lib { padding: 0 var(--gutter); }
.lib-inner { min-height: 0; box-sizing: border-box; max-width: 1480px; margin: 0 auto; padding: 84px 0 24px; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 16px; }
.lib-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.lib-head .h { font-size: clamp(32px, 3.8vw, 64px); }
.lib-team { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--night); color: #f1f0eb; white-space: nowrap; }
.lib-team__faces { display: flex; }
.lib-team__faces span { width: 28px; height: 28px; margin-right: -7px; border-radius: 50%; display: grid; place-items: center; background: #f1f0eb; color: var(--ink); box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px var(--c); }
.lib-team__faces .monad-svg { width: 20px; height: 20px; }
.lib-team__sum { font-size: 13px; padding-left: 6px; }
.lib-tabs { display: none; }
.lib-count { display: none; }
.lib-shelf { min-height: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lib-col { min-width: 0; display: grid; gap: 10px; }
.lib-col h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 4px 8px; border-bottom: 2px solid var(--c); font-size: 13px; font-weight: 600; }
.lib-col h3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.lib-col h3 .mono { margin-left: auto; color: var(--grey-3); font-weight: 400; font-size: 11px; }
.lib-stack { display: grid; gap: 3px; }
.lib-card { --tint: color-mix(in srgb, var(--c) 14%, #fff); position: relative; border-radius: 14px; background: var(--tint); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); cursor: pointer; outline: none; transition: background-color 300ms, box-shadow 300ms, transform 300ms var(--ease-out); }
.lib-card header { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 6px; }
.lib-orb { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); }
.lib-orb .monad-svg { width: 19px; height: 19px; }
.lib-card header b { min-width: 0; flex: 1; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-time { font-size: 10px; color: color-mix(in srgb, var(--c) 55%, #0a0a0a); }
.lib-tick { display: none; width: 16px; height: 16px; border-radius: 50%; place-items: center; font-style: normal; font-size: 9px; background: var(--c); color: #fff; }
.lib-card.is-hired .lib-tick { display: grid; }
.lib-card.is-hired .lib-time { display: none; }
.lib-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease-out); }
.lib-more > div { min-height: 0; overflow: hidden; display: grid; gap: 8px; padding: 0 10px; }
.lib-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lib-card.is-open { background: color-mix(in srgb, var(--c) 82%, #0a0a0a); color: #fff; box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--c) 80%, #000), 0 0 0 1px transparent; transform: translateY(-2px); }
.lib-card.is-open .lib-time { color: rgba(255,255,255,0.75); }
.lib-card.is-open .lib-more { grid-template-rows: 1fr; }
.lib-card.is-open .lib-more > div { padding-bottom: 10px; }
.lib-card:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.lib-more p { margin: 0; font-size: 12px; line-height: 1.35; color: rgba(255,255,255,0.9); }
.lib-days { display: flex; gap: 3px; }
.lib-days i { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font: 600 8px var(--mono); font-style: normal; color: rgba(255,255,255,0.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.lib-days i.is-on { background: #fff; color: var(--ink); box-shadow: none; }
.lib-meta { font-size: 10px; color: rgba(255,255,255,0.75); }
.lib-hire { margin-left: auto; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 600 12.5px var(--sans); cursor: pointer; }
.lib-hire[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* The close: your website in, the team's first jobs out. */
.sw { padding: 0 var(--gutter); background: var(--night); color: var(--night-text); }
.sw-in { position: relative; height: 100svh; min-height: 600px; box-sizing: border-box; max-width: 1400px; margin: 0 auto; padding: 88px 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; }
.sw-in::before { content: ''; position: absolute; left: -10%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201,166,97,0.2), transparent 65%); pointer-events: none; }
.sw-copy { position: relative; display: grid; gap: 20px; min-width: 0; }
.sw .ch__k { color: var(--gold); }
.sw .h { margin: 0; font-size: clamp(40px, 4.8vw, 82px); color: #f1f0eb; background: none; -webkit-text-fill-color: currentColor; }
.sw .h-quiet { color: #7a776f; -webkit-text-fill-color: currentColor; }
.sw .lede { margin: 0; color: var(--night-dim); max-width: 44ch; }
.sw-form { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #f1f0eb; color: var(--ink); max-width: 520px; box-shadow: 0 0 0 4px rgba(201,166,97,0.25); }
.sw-pre { color: var(--grey-3); font-size: 13px; }
.sw-form input { flex: 1 1 0; width: 0; min-width: 0; height: 44px; border: 0; background: none; font: 500 17px var(--sans); color: var(--ink); outline: none; }
.sw-form .btn { flex: 0 0 auto; }
.sw-alt { color: var(--gold); font-size: 12px; }
.sw-week { position: relative; display: grid; gap: 10px; padding: 18px; border-radius: 26px; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.sw-week__h { margin: 0; display: flex; justify-content: space-between; gap: 10px; padding: 0 4px 4px; font-size: 11px; color: #8f8b82; }
.sw-week__h b { color: #f1f0eb; font-weight: 500; }
.sw-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sw-team li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: #1a1916; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); opacity: 0.45; transition: opacity 300ms, box-shadow 300ms, background-color 300ms; }
.sw-team li.is-on, .sw-team li.is-done { opacity: 1; }
.sw-team li.is-on:not(.is-done) { box-shadow: inset 0 0 0 1.5px var(--c); }
.sw-team .agent-persona { width: 40px; height: 40px; margin: 2px; }
.sw-team b { display: block; font-size: 14px; }
.sw-team small { display: block; margin-top: 2px; font-size: 13px; color: var(--night-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-st { padding: 4px 9px; border-radius: 999px; font-size: 10px; font-style: normal; color: #8f8b82; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.sw-team li.is-on .sw-st { color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.sw-team li.is-done .sw-st { background: #2f6b3a; color: #fff; box-shadow: none; }
.sw-ready { margin: 4px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--gold); color: var(--ink); font-size: 11px; opacity: 0.15; transition: opacity 400ms; }
.sw-ready b { font: 600 15px var(--sans); }
.sw-ready.is-on { opacity: 1; }

@media (max-width: 900px) {
  .lib-inner { padding: 72px 0 16px; gap: 12px; min-height: 0; }
  .lib-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .lib-head .h { font-size: 32px; }
  .lib-team { align-self: start; }
  .lib-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .lib-tabs::-webkit-scrollbar { display: none; }
  .lib-tabs button { flex: 0 0 auto; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline-strong); font: 500 13px var(--sans); color: var(--grey-1); }
  .lib-tabs button[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: none; }
  .lib-shelf { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .lib-col { display: none; }
  .sw-in { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; padding: 76px 0 16px; min-height: 0; }
  .sw .h { font-size: 32px; }
  .sw .lede { font-size: 14px; }
  .sw-copy { gap: 12px; }
  .sw-form { padding-left: 14px; }
  .sw-form input { height: 38px; font-size: 15px; }
  .sw-form .btn { padding: 0 12px; height: 38px; font-size: 13px; }
  .sw-form .btn i { display: none; }
  .sw-pre { display: none; }
  .sw-alt { display: none; }
  .sw-week { padding: 10px; gap: 6px; border-radius: 20px; }
  .sw-team { gap: 4px; }
  .sw-team li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 5px 8px 5px 5px; border-radius: 12px; }
  .sw-team img { width: 32px; height: 32px; border-radius: 9px; }
  .sw-team b { font-size: 12.5px; }
  .sw-team small { font-size: 11.5px; }
  .sw-ready { padding: 9px 12px; }
  .sw-ready b { font-size: 13px; }
  .lib-shelf { align-content: center; }
  .lib-col.is-shown { display: grid; grid-template-rows: auto auto; min-height: 0; }
  .lib-card, .lib-card.is-open { min-height: 0; }
  .lib-card .lib-more > div { padding-top: 12px; }
  .lib-col h3 { display: none; }
  .lib-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  /* One swipeable row of full cards per category. */
  .lib-stack { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; align-items: stretch; }
  .lib-stack::-webkit-scrollbar { display: none; }
  .lib-card, .lib-card.is-open { flex: 0 0 78%; scroll-snap-align: center; display: flex; flex-direction: column; padding: 16px; border-radius: 22px; background: color-mix(in srgb, var(--c) 84%, #0a0a0a); color: #fff; box-shadow: 0 20px 30px -20px color-mix(in srgb, var(--c) 80%, #000); transform: none; }
  .lib-card header { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 12px; height: auto; padding: 0; }
  .lib-card .lib-orb { grid-row: span 2; width: 52px; height: 52px; }
  .lib-card .lib-orb .monad-svg { width: 38px; height: 38px; }
  .lib-card header b, .lib-card.is-open header b { font-size: 20px; white-space: normal; letter-spacing: -0.02em; align-self: end; }
  .lib-card .lib-time, .lib-card:not(.is-open) .lib-time { display: block; color: rgba(255,255,255,0.75); font-size: 11px; }
  .lib-card .lib-tick { position: absolute; right: 14px; top: 14px; }
  .lib-card .lib-more { grid-template-rows: 1fr; flex: 1; }
  .lib-card .lib-more > div { padding: 14px 0 0; gap: 12px; align-content: space-between; height: 100%; }
  .lib-more p { font-size: 15px; line-height: 1.45; }
  .lib-days i { width: 22px; height: 22px; font-size: 9px; }
  .lib-row { gap: 10px; }
  .lib-hire { margin-left: 0; width: 100%; height: 40px; font-size: 14px; }
  .lib-meta { font-size: 11px; }
  .lib-count { display: block; text-align: center; color: var(--grey-3); font-size: 11px; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .sw .lede { display: none; }
  .sw .h { font-size: 28px; }
  .sw-team li { padding-block: 3px; }
  .sw-team small { font-size: 11px; }
}
.mh-col .mh-trait span { padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: 10.5px; }

/* Hero: the team round an elliptical track. A glow in the front agent's colour sits behind them. */
.tt-stage { --c: var(--gold); }
.tt-stage::before { left: 6%; right: 6%; top: 14%; bottom: 10%; height: auto; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 26%, transparent), transparent); filter: blur(20px); transition: background 600ms; }
.tt-ring { position: relative; width: 100%; height: 100%; container-type: size; }
.tt-track { position: absolute; left: 50%; top: 50%; width: 76cqw; height: 34cqh; translate: -50% -4%; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--c) 45%, rgba(10,10,10,0.15)); background: radial-gradient(closest-side, rgba(255,255,255,0.6), transparent); transition: border-color 600ms; }
.tt-seat { --front: 1; position: absolute; left: 50%; top: 50%; width: min(32cqw, 46cqh); aspect-ratio: 1; will-change: transform; }
.tt-seat .agent-persona { width: 100%; height: 100%; filter: drop-shadow(0 22px 22px color-mix(in srgb, var(--c) 30%, rgba(20,20,30,0.25))); }
.tt-seat::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -6%; height: 9%; border-radius: 50%; z-index: -1; background: rgba(20,20,30,0.22); filter: blur(6px); }
.tt-name { position: absolute; left: 50%; top: 104%; translate: -50% 0; white-space: nowrap; padding: 4px 10px; border-radius: 999px; font-size: 11px; color: var(--ink);
  background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); opacity: clamp(0, calc((var(--front) - 0.55) * 3), 1); }
