/* t217u Agentic OS live swarm (/os/swarm). Dark stage, canvas world, HUD overlay on desktop, stacked on phones. */
.sw { background: #050507; color: #f2f2f4; }
.sw__stage { position: relative; max-width: 1440px; margin: 0 auto; min-height: min(860px, calc(100vh - var(--bar))); display: grid; grid-template-columns: minmax(320px, 440px) 1fr; overflow: hidden; }
.sw__canvas { grid-column: 1 / -1; grid-row: 1; width: 100%; height: 100%; min-height: 560px; display: block; touch-action: pan-y; cursor: grab; }
.sw__canvas.is-drag { cursor: grabbing; }
.sw__hud { grid-column: 1; grid-row: 1; z-index: 2; align-self: center; padding: 48px 24px 48px clamp(24px, 4vw, 56px); pointer-events: none; }
.sw__hud > * { pointer-events: auto; }
.sw__kick { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f0c26b; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sw__live { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: #b9bac2; font-size: 13px; }
.sw__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6b6d75; }
.sw__live.is-on::before { background: #3fd68f; box-shadow: 0 0 0 0 rgba(63, 214, 143, .6); animation: sw-ping 2s infinite; }
.sw__live.is-off::before { background: #e5a33a; }
@keyframes sw-ping { 70% { box-shadow: 0 0 0 9px rgba(63, 214, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 214, 143, 0); } }
.sw__h1 { font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; margin: 0 0 16px; }
.sw__desc { font-size: clamp(17px, 1.6vw, 20px); color: #c4c5cc; margin: 0 0 22px; max-width: 34ch; }
.sw__stats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 400px; }
.sw__stats li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sw__stats b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sw__stats span { font-size: 13px; color: #b3b4bc; }
.sw__chips, .sw-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.sw__chip { font: inherit; font-size: 13px; font-weight: 600; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: #e6e6ea; cursor: pointer; }
.sw__chip[aria-pressed="true"] { background: #f2f2f4; color: #0b0b0d; border-color: #f2f2f4; }
.sw__chip:focus-visible, .sw__x:focus-visible, .sw-card:focus-visible { outline: 3px solid #f0c26b; outline-offset: 2px; }
.sw__cta { justify-content: flex-start; }
html.os .sw .ob-btn--q.sw__ghost { color: #f2f2f4; }
.sw__hint { position: absolute; z-index: 2; left: 62%; transform: translateX(-50%); white-space: nowrap; bottom: 18px; margin: 0; font-size: 12px; color: #8d8f98; pointer-events: none; }
.sw__panel { position: absolute; z-index: 3; top: 24px; right: 24px; width: min(380px, calc(100% - 48px)); max-height: calc(100% - 48px); overflow: auto; background: rgba(18, 18, 22, .92);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 22px 22px 18px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sw__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; cursor: pointer; }
.sw-d__type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fa1aa; margin: 0 40px 6px 0; display: flex; align-items: center; gap: 8px; }
.sw-d__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: currentColor; }
.sw-d__name { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.15; }
.sw-d__role { color: #c4c5cc; margin: 0 0 14px; font-size: 15px; }
.sw-d__facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sw-d__facts li { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 8px 10px; font-size: 12px; color: #a9abb3; }
.sw-d__facts b { display: block; color: #f2f2f4; font-size: 16px; }
.sw-d__h { font-size: 13px; font-weight: 700; margin: 14px 0 6px; color: #e6e6ea; }
.sw-d__list { list-style: none; margin: 0; padding: 0; }
.sw-d__list li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: #d6d7dc; }
.sw-d__list small { display: block; color: #8d8f98; font-size: 12px; margin-top: 2px; }
.sw__panel a { color: #f0c26b; }
.sw-d__go { display: inline-flex; margin-top: 14px; font-weight: 600; text-decoration: none; }
.sw-d__go::after { content: " \203A"; margin-left: 4px; }
.sw-d__empty { color: #a9abb3; font-size: 14px; margin: 0; }
@media (max-width: 860px) {
  /* phones: title, then the world, then the numbers and filters */
  .sw__stage { display: flex; flex-direction: column; min-height: 0; }
  .sw__hud { display: contents; }
  .sw__hud > * { margin-left: 24px; margin-right: 24px; }
  .sw__kick { order: 1; margin-top: 32px; }
  .sw__h1 { order: 2; }
  .sw__desc { order: 3; margin-bottom: 4px; }
  .sw__canvas { order: 4; height: 52vh; min-height: 360px; max-height: 480px; }
  .sw__hint { order: 5; position: static; transform: none; white-space: normal; padding: 0 24px 18px; text-align: center; }
  .sw__stats { order: 6; max-width: none; }
  .sw__chips { order: 7; }
  .sw__cta { order: 8; margin-bottom: 40px; }
  .sw__stats b { font-size: 22px; }
  .sw__panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 70vh; border-radius: 22px 22px 0 0; z-index: 80; }
}
/* cards, timeline and projects below the stage (light sections) */
.sw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sw-group { grid-column: 1 / -1; margin: 18px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sw-group:first-child { margin-top: 0; }
.sw-card { font: inherit; text-align: left; display: block; width: 100%; background: var(--alt); border: 0; border-radius: 20px; padding: 18px 18px 16px; cursor: pointer; color: var(--ink); position: relative; }
.sw-card:hover { box-shadow: inset 0 0 0 1.5px #d4d4d8; }
.sw-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sw-card__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--c, #999); }
.sw-card__dot.is-hot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #999) 25%, transparent); }
.sw-card b { font-size: 17px; letter-spacing: -.01em; }
.sw-card p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.sw-card small { font-size: 13px; color: #44464d; }
.sw-card--empty { background: transparent; border: 2px dashed #d4d4d8; cursor: default; }
.sw-card--empty a { color: var(--pt, #9a6b0f); font-weight: 600; }
.sw-time { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.sw-time li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sw-time time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.sw-time a { color: inherit; }
.sw-time small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sw-proj { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sw-proj li { background: var(--alt); border-radius: 18px; padding: 16px 18px; }
.sw-proj a { font-weight: 600; color: var(--ink); text-decoration: none; }
.sw-proj a:hover { text-decoration: underline; }
.sw-proj p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.sw-proj .is-act { color: #8a5a00; font-weight: 600; }
.sw-tabs .sw__chip { border-color: #d4d4d8; color: var(--ink); background: #fff; }
.sw-tabs .sw__chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sw-wait { color: var(--muted); }
.sw-join .oc__h { font-size: clamp(34px, 4.6vw, 56px); max-width: 20ch; margin: 0 auto; line-height: 1.05; }
.sw-join .oc__desc { max-width: 40ch; }
html.os .sw-join .ob-btn--q { color: #fff; }
@media (max-width: 560px) { .sw-time li { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .sw__live.is-on::before { animation: none; } }
