/* Work atlas: a small, explorable map, built on the site's Blueprint tokens. */
.atlas { scroll-margin-top: 88px; }
.atlas-back { display: inline-block; margin-bottom: 32px; color: var(--ink-3); text-decoration: none; font: .72rem/1.4 var(--font-mono); }
.atlas-back:hover { color: var(--signal); }
.atlas-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.atlas-heading h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.atlas-heading h1 em { color: var(--signal); font-style: normal; }
.atlas-note { padding: 48px 0 0; display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 30px; align-items: center; }
.atlas-note .eyebrow { margin: 0; line-height: 1.7; }
.atlas-note > p:nth-child(2) { color: var(--ink-2); font-size: 1.1rem; line-height: 1.6; }
.atlas-note strong { color: var(--ink); font-weight: 500; }
.atlas-note a { color: var(--signal); font-size: .8rem; text-underline-offset: 5px; }
.atlas-heading .lede { max-width: 38ch; font-size: .98rem; }
.atlas-shell { border: 1px solid var(--rule-strong); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 18px 55px -35px color-mix(in srgb, var(--ink) 35%, transparent); }
.atlas-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.atlas-label, .atlas-counter, .atlas-group, .atlas-node small, .atlas-core small, .atlas-status, .atlas-step, .atlas-footer { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; }
.atlas-label { text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.atlas-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-filter { padding: 8px 12px; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--ink-2); font-size: .78rem; cursor: pointer; transition: background .2s, border-color .2s; }
.atlas-filter:hover { background: var(--signal-soft); }
.atlas-filter[aria-pressed="true"] { border-color: var(--rule-strong); background: var(--paper-2); color: var(--ink); }
.atlas-counter { margin-left: auto; color: var(--ink-3); white-space: nowrap; }
.atlas-body { display: grid; grid-template-columns: minmax(0, 1fr) 322px; }
.atlas-map { position: relative; min-width: 0; height: 528px; isolation: isolate; background: radial-gradient(ellipse at 50% 50%, var(--signal-soft), transparent 65%); }
.atlas-map::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .65; background-image: radial-gradient(var(--grid) .7px, transparent .9px); background-size: 16px 16px; }
.atlas-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.atlas-edge { fill: none; stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .25s, opacity .25s; }
.atlas-edge.is-connected { stroke: var(--signal); stroke-width: 1.5; opacity: .8; }
.atlas-edge.is-selected { stroke: var(--signal); stroke-width: 2; }
.atlas-edge.is-muted { opacity: .15; }
.atlas-orbit { fill: none; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 7; }
.atlas-group { position: absolute; top: 28px; width: 40%; text-align: center; color: var(--ink-3); text-transform: uppercase; line-height: 1.7; }
.atlas-group b { color: var(--ink-2); font-weight: 500; }
.atlas-group:first-of-type { left: 1%; }
.atlas-group:nth-of-type(2) { right: 1%; }
.atlas-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 170px; min-height: 78px; display: grid; grid-template-columns: 27px 1fr; column-gap: 9px; align-content: center; padding: 13px; text-align: left; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: 8px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, opacity .2s, background .2s; }
.atlas-node svg { width: 24px; height: 24px; grid-row: 1 / 3; align-self: center; color: var(--signal); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.atlas-node strong { font-size: .81rem; line-height: 1.3; font-weight: 600; }
.atlas-node small { margin-top: 4px; color: var(--ink-3); font-size: .59rem; letter-spacing: .015em; }
.atlas-node:hover { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.atlas-node[aria-pressed="true"] { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 7%, var(--panel)); box-shadow: 0 0 0 4px var(--signal-soft), 0 8px 20px -12px var(--signal); }
.atlas-node[aria-pressed="true"]::after { content: ""; position: absolute; right: 8px; top: 8px; width: 4px; height: 4px; background: var(--signal); border-radius: 50%; }
.atlas-node.is-muted { opacity: .32; }
.atlas-node.is-muted:hover, .atlas-node.is-muted:focus-visible { opacity: 1; }
.atlas-core { position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 102px; height: 102px; border-radius: 50%; border: 1px solid var(--signal); background: var(--panel); box-shadow: 0 0 0 9px var(--signal-soft), 0 0 45px var(--signal-soft); text-align: center; }
.atlas-core strong { font: 600 1.6rem/1 var(--font-display); color: var(--signal); }
.atlas-core small { margin-top: 8px; font-size: .49rem; line-height: 1.5; text-transform: uppercase; color: var(--ink-2); }
.atlas-capability { position: absolute; left: 50%; top: var(--y); transform: translate(-50%, -50%); color: var(--ink-3); background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; padding: 5px 10px; font: .59rem/1.3 var(--font-mono); white-space: nowrap; transition: color .2s, border-color .2s; }
.atlas-capability.is-connected { color: var(--signal); border-color: var(--signal); }
.atlas-hint { position: absolute; bottom: 19px; left: 0; right: 0; text-align: center; color: var(--ink-3); font: .62rem/1.5 var(--font-mono); }
.atlas-detail { border-left: 1px solid var(--rule); padding: 26px; background: linear-gradient(155deg, var(--signal-soft), transparent 60%); min-width: 0; display: flex; flex-direction: column; }
.atlas-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 24px; }
.atlas-status { color: var(--signal); text-transform: uppercase; font-size: .6rem; }
.atlas-step { color: var(--ink-3); }
.atlas-detail h2 { font-size: 1.9rem; line-height: 1.06; margin-bottom: 10px; }
.atlas-client { font-size: .77rem; line-height: 1.5; color: var(--signal); margin-bottom: 17px; }
.atlas-description { color: var(--ink-2); font-size: .84rem; line-height: 1.7; }
.atlas-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 20px; padding: 16px 0; border-block: 1px solid var(--rule); }
.atlas-metrics div { min-width: 0; }
.atlas-metrics dt { font: 600 1.35rem/1.2 var(--font-display); color: var(--ink); }
.atlas-metrics dd { margin: 5px 0 0; font: .61rem/1.5 var(--font-mono); color: var(--ink-3); }
.atlas-stack { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 22px; }
.atlas-stack span { font: .62rem/1.4 var(--font-mono); padding: 4px 7px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); background: var(--panel); }
.atlas-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: auto; }
.atlas-detail-link { color: var(--signal); font-size: .78rem; font-weight: 600; text-underline-offset: 5px; }
.atlas-pager { display: flex; gap: 5px; }
.atlas-pager button { width: 32px; height: 32px; border: 1px solid var(--rule-strong); background: var(--panel); border-radius: 50%; cursor: pointer; }
.atlas-pager button:hover { background: var(--signal-soft); border-color: var(--signal); }
.atlas-footer { padding: 14px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); color: var(--ink-3); line-height: 1.6; }
.atlas-footer a { color: var(--ink-2); text-underline-offset: 4px; }
.atlas-footer-links { display: flex; gap: 18px; }
.atlas-detail.is-changing { animation: atlas-enter .25s ease-out; }
@keyframes atlas-enter { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) and (min-width: 761px) {
  .atlas-body { grid-template-columns: minmax(0, 1fr) 285px; }
  .atlas-node { width: 143px; padding: 11px; grid-template-columns: 20px 1fr; gap: 6px; }
  .atlas-node svg { width: 19px; }
  .atlas-core { width: 80px; height: 80px; }
  .atlas-detail { padding: 22px; }
}
@media (max-width: 900px) { .atlas-heading { display: block; } .atlas-heading .lede { margin-top: 16px; max-width: 60ch; } }
@media (max-width: 760px) {
  .atlas-note { grid-template-columns: 1fr; gap: 14px; }
  .atlas-body { grid-template-columns: 1fr; }
  .atlas-map { height: 440px; }
  .atlas-detail { border-left: 0; border-top: 1px solid var(--rule); min-height: 380px; }
  .atlas-detail-top { margin-bottom: 16px; }
  .atlas-toolbar { padding: 14px; gap: 8px; }
  .atlas-label { display: none; }
  .atlas-counter { font-size: .58rem; }
  .atlas-filter { padding: 8px; font-size: .72rem; }
}
@media (max-width: 480px) {
  .atlas-map { height: 365px; }
  .atlas-node { width: 126px; min-height: 71px; padding: 10px 8px; grid-template-columns: 19px 1fr; gap: 5px; }
  .atlas-node svg { width: 18px; height: 18px; }
  .atlas-node strong { font-size: .71rem; }
  .atlas-node small { font-size: .51rem; }
  .atlas-node[data-side="left"] { left: 24%; }
  .atlas-node[data-side="right"] { left: 76%; }
  .atlas-core { width: 34px; height: 34px; box-shadow: 0 0 0 5px var(--signal-soft); }
  .atlas-core strong { font-size: .8rem; }
  .atlas-core small, .atlas-capability { display: none; }
  .atlas-group { font-size: .53rem; top: 23px; width: 44%; }
  .atlas-group:first-of-type { left: 2%; }
  .atlas-group:nth-of-type(2) { right: 2%; }
  .atlas-counter { width: 100%; margin: 0; padding-left: 8px; }
  .atlas-footer { padding: 14px 20px; font-size: .6rem; }
}
@media (max-width: 360px) {
  .atlas-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; height: auto; padding: 18px; background: var(--paper); }
  .atlas-map::before, .atlas-edges, .atlas-core, .atlas-hint { display: none; }
  .atlas-group { position: static; width: auto; text-align: left; font-size: .7rem; }
  .atlas-group:first-of-type { order: 0; }
  .atlas-group:nth-of-type(2) { order: 4; margin-top: 12px; }
  .atlas-node, .atlas-node[data-side] { position: static; transform: none; width: 100%; min-height: 68px; padding: 12px; grid-template-columns: 24px 1fr; column-gap: 10px; }
  .atlas-node[data-side="left"] { order: 1; }
  .atlas-node[data-side="right"] { order: 5; }
  .atlas-node strong { font-size: .85rem; }
  .atlas-node small { font-size: .68rem; }
  .atlas-node svg { width: 22px; height: 22px; }
  .atlas-node[aria-pressed="true"]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .atlas * { animation: none !important; transition: none !important; } }
