:root {
  color-scheme: dark;
  --page: #100b17;
  --page-2: #171020;
  --paper: #eeeaf0;
  --paper-2: #ddd6e1;
  --ink: #17121b;
  --ink-muted: #625a68;
  --line: rgba(255, 255, 255, 0.11);
  --line-dark: rgba(23, 18, 27, 0.17);
  --violet: #b968e5;
  --violet-deep: #713c89;
  --mint: #7ff2ba;
  --amber: #e9bd5e;
  --blue: #7ba7ff;
  --rail: #120d1b;
  --rail-row: #1b1425;
  --rail-row-2: #20172b;
  --rail-text: #bbb3c3;
  --rail-muted: #7f7689;
  --rail-border: #33263d;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 5%, rgba(185, 104, 229, 0.13), transparent 27rem),
    var(--page);
  color: #f6f0f8;
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible + span {
  outline: 2px solid #d98cff;
  outline-offset: 3px;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: -0.04em;
}

.brand-mark {
  color: var(--violet);
  font-weight: 700;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a99daf;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.header-status i {
  width: 7px;
  height: 7px;
  background: var(--mint);
  box-shadow: 0 0 15px rgba(127, 242, 186, 0.72);
}

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 70px;
  padding-block: 70px 78px;
}

.eyebrow {
  margin: 0 0 20px;
  color: #aa8db7;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.13em;
}

.eyebrow.ink {
  color: #766d7c;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(46px, 6.2vw, 84px);
  font-weight: 430;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy > p:last-child {
  max-width: 660px;
  margin: 30px 0 0;
  color: #aea3b2;
  font-size: 16px;
  line-height: 1.65;
}

.hero-orbit {
  position: relative;
  width: 300px;
  height: 300px;
  justify-self: end;
}

.orbit-ring,
.orbit-core,
.orbit-node {
  position: absolute;
  border-radius: 50%;
}

.orbit-ring {
  inset: 20px;
  border: 1px solid rgba(185, 104, 229, 0.28);
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.orbit-ring::before {
  inset: 30px;
}

.orbit-ring::after {
  inset: 66px;
}

.ring-one {
  animation: orbit-spin 18s linear infinite;
}

.ring-one::before {
  border-top-color: rgba(127, 242, 186, 0.65);
}

.ring-two {
  inset: 57px;
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(185, 104, 229, 0.8);
  animation: orbit-spin 12s linear infinite reverse;
}

.orbit-core {
  inset: 105px;
  display: grid;
  place-content: center;
  text-align: center;
  background: #21152b;
  box-shadow: 0 0 70px rgba(185, 104, 229, 0.2);
  color: #f9f3fb;
  font-family: var(--mono);
  font-size: 28px;
}

.orbit-core span {
  display: block;
  margin-top: 2px;
  color: #8f8294;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbit-node {
  width: 8px;
  height: 8px;
  background: var(--violet);
  box-shadow: 0 0 14px currentColor;
}

.node-one { left: 20px; top: 142px; animation: node-breathe 2.6s ease-in-out infinite; }
.node-two { right: 52px; top: 49px; background: var(--mint); animation: node-breathe 2.6s 0.8s ease-in-out infinite; }
.node-three { right: 19px; bottom: 84px; background: var(--amber); animation: node-breathe 2.6s 1.5s ease-in-out infinite; }

.lab {
  width: min(1240px, calc(100% - 32px));
  padding: 52px clamp(18px, 4vw, 52px) 64px;
  background: var(--paper);
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 510;
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-head > p {
  max-width: 410px;
  margin: 0 0 3px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.motion-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line-dark);
}

.motion-option {
  position: relative;
  min-width: 0;
  min-height: 98px;
  padding: 17px 16px 15px;
  border: 0;
  border-right: 1px solid var(--line-dark);
  background: transparent;
  color: #716978;
  text-align: left;
  cursor: pointer;
}

.motion-option:last-child {
  border-right: 0;
}

.motion-option::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 3px;
  background: var(--violet-deep);
  transition: right 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-option:hover {
  background: rgba(107, 60, 128, 0.055);
}

.motion-option.active {
  background: rgba(107, 60, 128, 0.08);
  color: var(--ink);
}

.motion-option.active::after {
  right: 0;
}

.motion-option span,
.motion-option small,
.motion-option b {
  display: block;
}

.motion-option span {
  margin-bottom: 11px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.motion-option b {
  overflow: hidden;
  font-size: 15px;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-option small {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lab-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 13px 10px 17px;
  background: #1a1322;
  color: #f5eef7;
}

.now-playing span,
.now-playing b {
  display: block;
}

.now-playing span {
  margin-bottom: 3px;
  color: #877b8d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.now-playing b {
  font-size: 13px;
  font-weight: 560;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #3b2e45;
  background: #21182a;
  color: #c6bccb;
  font-size: 11px;
  cursor: pointer;
}

.tool-button:hover {
  border-color: #6d4b7c;
  color: #fff;
}

.button-icon {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 14px;
}

.motion-switch {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 8px;
  color: #a99ead;
  font-size: 10px;
  cursor: pointer;
}

.motion-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 30px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #54455e;
  border-radius: 12px;
  background: #17101f;
}

.switch-track i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #887b8e;
  transition: transform 180ms ease, background 180ms ease;
}

.motion-switch input:checked + .switch-track i {
  transform: translateX(14px);
  background: var(--mint);
}

.prototype-frame {
  --pointer-y: 50%;
  position: relative;
  overflow: hidden;
  border-inline: 1px solid #32263c;
  border-bottom: 1px solid #32263c;
  background: #0e0a14;
  color: #c8c0ce;
  isolation: isolate;
}

.window-titlebar {
  height: 32px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-inline: 12px;
  border-bottom: 1px solid #31253b;
  background: #160f1d;
  color: #756b7b;
  font-family: var(--mono);
  font-size: 9px;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #392d42;
}

.window-titlebar b {
  color: #9d8fa4;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.app-stage {
  min-height: 714px;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
}

.fleet-rail {
  position: relative;
  z-index: 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #33263e;
  background: var(--rail);
  font-size: 14px;
}

.fleet-head {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 14px 12px;
  border-bottom: 1px solid #28202f;
}

.fleet-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.fleet-head span {
  color: #d4cbd9;
  font-size: 14px;
}

.fleet-head b {
  color: #9a8fa0;
  font-size: 12px;
  font-weight: 450;
}

.fleet-head button {
  border: 0;
  background: transparent;
  color: #837889;
  cursor: pointer;
}

.lens-tabs {
  height: 49px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  padding-inline: 6px;
  border-bottom: 1px solid #3b2845;
  background: #17101f;
}

.lens-tabs button {
  position: relative;
  min-width: 0;
  height: 34px;
  border: 0;
  background: transparent;
  color: #978c9e;
  font-size: 13px;
  cursor: pointer;
}

.lens-tabs button.active {
  background: #4c235e;
  color: #f2eaf6;
}

.lens-tabs button i {
  position: absolute;
  width: 5px;
  height: 5px;
  margin: 6px 0 0 -8px;
  background: #ff77ba;
}

.fleet-scroll {
  position: relative;
  height: 548px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 8px 16px;
  background:
    linear-gradient(90deg, transparent 0 15px, rgba(255,255,255,.045) 15px 16px, transparent 16px),
    var(--rail);
  scrollbar-color: #45334f transparent;
  scrollbar-width: thin;
}

.fleet-scroll::-webkit-scrollbar { width: 5px; }
.fleet-scroll::-webkit-scrollbar-thumb { background: #45334f; }

.fleet-scroll::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--rail));
}

.server-block {
  position: relative;
  padding: 6px 0 7px;
  border-bottom: 1px solid var(--rail-border);
}

.server-header {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 7px 5px 7px 7px;
  background: #15101c;
  cursor: pointer;
}

.server-header:hover {
  background: #1c1525;
}

.server-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.fold {
  width: 13px;
  flex: 0 0 auto;
  color: #b5aab9;
  font-family: var(--mono);
  font-size: 12px;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.server-block.collapsed .server-header .fold,
.workspace.collapsed .workspace-head .fold {
  transform: rotate(-90deg);
}

.state-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--mint);
}

.server-name,
.workspace-name,
.pane-label,
.pane-work {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-name {
  color: #c6bdca;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.01em;
}

.unwatch {
  align-self: center;
  border: 0;
  background: transparent;
  color: #756a7c;
  font-family: var(--mono);
  font-size: 9px;
}

.server-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 34px;
  color: #817687;
  font-family: var(--mono);
  font-size: 10px;
}

.server-meta .live {
  color: var(--mint);
}

.server-content,
.workspace-content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 260ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}

.server-content > div,
.workspace-content > div {
  min-height: 0;
  overflow: hidden;
}

.server-block.collapsed > .server-content,
.workspace.collapsed > .workspace-content {
  grid-template-rows: 0fr;
  opacity: 0;
}

.workspace {
  position: relative;
  margin-top: 2px;
  padding-left: 16px;
}

.workspace::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #2a2032;
}

.workspace-head {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  padding: 5px 6px 4px 7px;
  color: #a49aa9;
  cursor: pointer;
}

.workspace-head:hover {
  background: #1b1424;
}

.workspace-title-line,
.workspace-meta-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.workspace-icon {
  width: 11px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid #7a6e80;
}

.workspace-name {
  color: #aaa0af;
  font-size: 13px;
}

.workspace-meta-line {
  gap: 8px;
  padding: 4px 0 0 31px;
  color: #766c7c;
  font-family: var(--mono);
  font-size: 9px;
}

.workspace-meta-line .status {
  color: #bda358;
}

.pane-row {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon label state"
    "icon work state";
  column-gap: 7px;
  margin: 2px 4px 2px 18px;
  padding: 6px 7px;
  background: var(--rail-row);
  color: var(--rail-text);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.pane-row:hover {
  background: #251a30;
  color: #e4dae8;
}

.pane-row.is-selected {
  background: #402151;
  color: #faf4fc;
}

.pane-row.event-hit {
  animation: event-hit 620ms cubic-bezier(.22, 1, .36, 1);
}

.agent-icon {
  grid-area: icon;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #5d4769;
  color: #b96ce1;
  font-family: var(--mono);
  font-size: 10px;
}

.agent-icon.claude { color: #f09d61; }
.agent-icon.kimi { color: #879cff; }
.agent-icon.shell { color: #988ca0; }

.pane-label {
  grid-area: label;
  font-size: 13px;
  line-height: 18px;
}

.pane-work {
  grid-area: work;
  padding-top: 2px;
  color: #817788;
  font-size: 10px;
  line-height: 13px;
}

.pane-row.is-selected .pane-work {
  color: #bfaec7;
}

.pane-state {
  grid-area: state;
  align-self: center;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.pane-state.done { color: #cf8bfd; }
.pane-state.idle { color: #c9a958; }
.pane-state.owned { color: #82d9b2; }

.new-pane {
  height: 63px;
  flex: 0 0 auto;
  padding: 8px 8px 7px;
  border-top: 1px solid #34273f;
  background: #130e1a;
}

.new-pane > span {
  display: block;
  margin-bottom: 7px;
  color: #7f7484;
  font-size: 10px;
}

.new-pane div {
  display: flex;
  gap: 4px;
}

.new-pane button {
  height: 28px;
  padding-inline: 9px;
  border: 1px solid #3c2e45;
  background: #1d1625;
  color: #c0b6c5;
  font-size: 11px;
  cursor: pointer;
}

.terminal-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    #0b0910;
  background-size: 31px 31px;
}

.terminal-stage > header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 17px;
  border-bottom: 1px solid #29212f;
  background: rgba(20, 15, 27, 0.92);
  color: #8d8292;
  font-family: var(--mono);
  font-size: 10px;
}

.terminal-stage > header b {
  color: var(--mint);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.terminal-copy {
  padding: 30px;
  color: #d4cad8;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
}

.terminal-copy p {
  margin: 0 0 2px;
}

.terminal-copy .muted { color: #625969; }
.terminal-copy .success { color: #749d89; }
.prompt { color: var(--violet); font-style: normal; }

.terminal-caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #aa83ba;
  vertical-align: -3px;
  animation: caret-blink 1.15s steps(1) infinite;
}

.focus-readout {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  padding: 18px 20px;
  border-left: 2px solid var(--violet);
  background: rgba(27, 18, 35, 0.94);
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
}

.focus-readout small,
.focus-readout strong,
.focus-readout span {
  display: block;
}

.focus-readout small {
  margin-bottom: 8px;
  color: #8a7e90;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.focus-readout strong {
  overflow: hidden;
  color: #eee6f1;
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-readout span {
  margin-top: 6px;
  color: #7f7485;
  font-family: var(--mono);
  font-size: 10px;
}

.event-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 0 var(--pointer-y), rgba(185,104,229,.26), transparent 34%);
}

.prototype-frame.event-fired .event-wave {
  animation: event-wave 850ms cubic-bezier(.22, 1, .36, 1);
}

.variant-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto;
  min-height: 134px;
  border-inline: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.summary-lead,
.summary-fact,
.summary-action {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line-dark);
}

.summary-lead h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.summary-lead p,
.summary-fact p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.summary-fact span {
  display: block;
  margin-bottom: 8px;
  color: #807587;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.summary-action {
  display: grid;
  place-items: center;
  border-right: 0;
}

.summary-action button,
.recommendation button {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  background: var(--ink);
  color: #f8f0fa;
  font-size: 12px;
  cursor: pointer;
}

.summary-action button:hover,
.recommendation button:hover {
  background: var(--violet-deep);
}

.summary-action button.selected {
  background: #315f4b;
}

/* 01 — state-driven, low-frequency motion */
.prototype-frame[data-variant="pulse-map"] .server-block.live .state-dot,
.prototype-frame[data-variant="pulse-map"] .pane-row[data-state="run"] .agent-icon {
  animation: pulse-map 2.4s ease-in-out infinite;
}

.prototype-frame[data-variant="pulse-map"] .pane-row.is-selected::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(185,104,229,.24), transparent 72%);
  animation: selected-breathe 3.4s ease-in-out infinite;
}

.prototype-frame[data-variant="pulse-map"] .pane-row[data-state="done"]::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #b968e5;
  animation: done-tick 4s ease-in-out infinite;
}

/* 02 — a visible signal travelling through the hierarchy */
.prototype-frame[data-variant="signal-current"] .workspace::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 0;
  width: 1px;
  height: 46px;
  background: linear-gradient(transparent, #b968e5 45%, #7ff2ba 65%, transparent);
  filter: drop-shadow(0 0 4px #b968e5);
  animation: current-drop 2.8s linear infinite;
}

.prototype-frame[data-variant="signal-current"] .server-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(185,104,229,.12), transparent);
  animation: current-scan 4.8s ease-in-out infinite;
}

.prototype-frame[data-variant="signal-current"] .pane-row[data-state="run"] .pane-state::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: current-spark 1.4s steps(3) infinite;
}

/* 03 — springy hierarchy and focus changes */
.prototype-frame[data-variant="spring-hierarchy"] .server-content,
.prototype-frame[data-variant="spring-hierarchy"] .workspace-content {
  transition-duration: 390ms;
  transition-timing-function: cubic-bezier(.18, 1.42, .35, 1);
}

.prototype-frame[data-variant="spring-hierarchy"] .pane-row {
  transition-duration: 280ms;
  transition-timing-function: cubic-bezier(.18, 1.42, .35, 1);
}

.prototype-frame[data-variant="spring-hierarchy"] .pane-row:hover {
  transform: translateX(4px);
}

.prototype-frame[data-variant="spring-hierarchy"] .pane-row.is-selected {
  transform: translateX(3px);
}

.prototype-frame[data-variant="spring-hierarchy"] .pane-row.is-selected .agent-icon {
  animation: spring-pop 520ms cubic-bezier(.18, 1.42, .35, 1);
}

.prototype-frame[data-variant="spring-hierarchy"].replaying .server-block {
  animation: spring-enter 520ms both cubic-bezier(.18, 1.42, .35, 1);
  animation-delay: calc(var(--order) * 65ms);
}

/* 04 — bolder ambient motion, strongest personality */
.prototype-frame[data-variant="fleet-aurora"] .fleet-scroll {
  background:
    radial-gradient(320px 150px at 20% var(--pointer-y), rgba(116,54,145,.19), transparent 72%),
    linear-gradient(90deg, transparent 0 15px, rgba(255,255,255,.045) 15px 16px, transparent 16px),
    var(--rail);
}

.prototype-frame[data-variant="fleet-aurora"] .server-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  transform: translateX(-72%);
  background: linear-gradient(102deg, transparent 0 35%, rgba(185,104,229,.22) 50%, transparent 65%);
  animation: aurora-drift 6.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--order) * -1.1s);
}

.prototype-frame[data-variant="fleet-aurora"] .server-block::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, transparent, rgba(185,104,229,.72), rgba(127,242,186,.36), transparent);
  animation: divider-live 4.2s ease-in-out infinite;
  animation-delay: calc(var(--order) * -780ms);
}

.prototype-frame[data-variant="fleet-aurora"] .pane-row.is-selected {
  background:
    linear-gradient(100deg, rgba(113,60,137,.9), rgba(53,33,67,.9) 76%),
    var(--rail-row);
  animation: aurora-selected 3.8s ease-in-out infinite;
}

.prototype-frame[data-variant="fleet-aurora"] .terminal-stage::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -210px;
  top: -250px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(107, 50, 133, 0.12);
  filter: blur(70px);
  animation: terminal-aurora 8s ease-in-out infinite alternate;
}

.prototype-frame.replaying:not([data-variant="spring-hierarchy"]) .server-block {
  animation: replay-enter 420ms both cubic-bezier(.22, 1, .36, 1);
  animation-delay: calc(var(--order) * 55ms);
}

.prototype-frame.replaying .focus-readout {
  animation: focus-enter 480ms 180ms both cubic-bezier(.22, 1, .36, 1);
}

.motion-principles {
  padding-block: 90px 100px;
}

.motion-principles .section-head {
  margin-bottom: 36px;
}

.motion-principles .section-head h2 {
  color: #f2ebf4;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.principle-grid article {
  min-height: 210px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.principle-grid article:last-child {
  border-right: 0;
}

.principle-grid span {
  color: #7c6e81;
  font-family: var(--mono);
  font-size: 10px;
}

.principle-grid h3 {
  margin: 58px 0 11px;
  font-size: 17px;
  font-weight: 560;
}

.principle-grid p {
  margin: 0;
  color: #9f94a4;
  font-size: 13px;
  line-height: 1.55;
}

.recommendation {
  min-height: 290px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 44px 54px;
  background: var(--violet-deep);
}

.recommendation-index {
  align-self: start;
  color: rgba(255,255,255,.45);
  font-family: var(--mono);
  font-size: 50px;
}

.recommendation .eyebrow {
  margin-bottom: 10px;
  color: #d7bcdf;
}

.recommendation h2 {
  margin: 0 0 14px;
  font-size: 42px;
  font-weight: 520;
  letter-spacing: -0.045em;
}

.recommendation p {
  max-width: 660px;
  margin: 0;
  color: #e1d4e5;
  font-size: 14px;
  line-height: 1.6;
}

.recommendation button {
  background: #17101f;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #706475;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.decision-dock {
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: 18px;
  width: min(560px, calc(100% - 28px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 11px 10px 17px;
  transform: translateX(-50%) translateY(110px);
  border: 1px solid #5f466d;
  background: rgba(20, 13, 28, 0.96);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  opacity: 0;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease;
}

.decision-dock.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.decision-dock span,
.decision-dock b {
  display: block;
}

.decision-dock div > span {
  margin-bottom: 4px;
  color: #83768a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.decision-dock b {
  font-size: 14px;
  font-weight: 550;
}

.decision-dock button {
  height: 42px;
  padding-inline: 15px;
  border: 0;
  background: #5b2f70;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

.decision-dock button:disabled {
  background: #29212f;
  color: #6f6574;
  cursor: default;
}

.toast {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  padding: 10px 14px;
  transform: translate(-50%, -18px);
  background: #e9e2ec;
  color: #221927;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
}

.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes node-breathe { 0%,100% { transform: scale(.7); opacity: .45; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes caret-blink { 0%,48% { opacity: 1; } 49%,100% { opacity: 0; } }
@keyframes pulse-map {
  0%,100% { box-shadow: 0 0 0 0 rgba(127,242,186,0); opacity: .72; }
  48% { box-shadow: 0 0 0 4px rgba(127,242,186,.08), 0 0 10px rgba(127,242,186,.58); opacity: 1; }
}
@keyframes selected-breathe { 0%,100% { opacity: .18; } 50% { opacity: .62; } }
@keyframes done-tick { 0%,72%,100% { opacity: .28; } 80% { opacity: 1; box-shadow: 0 0 8px #b968e5; } }
@keyframes current-drop { 0% { transform: translateY(-52px); opacity: 0; } 12%,75% { opacity: 1; } 100% { transform: translateY(126px); opacity: 0; } }
@keyframes current-scan { 0%,52% { transform: translateX(-110%); } 78%,100% { transform: translateX(110%); } }
@keyframes current-spark { 0%,100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes spring-pop { 0% { transform: scale(.72) rotate(-8deg); } 65% { transform: scale(1.18) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes spring-enter { 0% { opacity: 0; transform: translateY(-10px) scale(.985); } 68% { opacity: 1; transform: translateY(2px) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes aurora-drift { 0% { transform: translateX(-72%); } 100% { transform: translateX(72%); } }
@keyframes divider-live { 0%,100% { transform: scaleX(.16); opacity: .2; } 50% { transform: scaleX(1); opacity: .75; } }
@keyframes aurora-selected { 0%,100% { box-shadow: inset 0 0 0 rgba(185,104,229,0); } 50% { box-shadow: inset 35px 0 45px rgba(185,104,229,.18); } }
@keyframes terminal-aurora { 0% { transform: translate(-30px, -20px) scale(.9); } 100% { transform: translate(40px, 40px) scale(1.18); } }
@keyframes replay-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes focus-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes event-wave { 0% { opacity: 0; transform: translateX(-16%); } 22% { opacity: 1; } 100% { opacity: 0; transform: translateX(12%); } }
@keyframes event-hit { 0% { box-shadow: inset 0 0 0 1px rgba(127,242,186,.9), 0 0 0 rgba(127,242,186,0); } 55% { box-shadow: inset 0 0 0 1px rgba(127,242,186,.35), 0 0 20px rgba(127,242,186,.22); } 100% { box-shadow: inset 0 0 0 1px rgba(127,242,186,0), 0 0 0 rgba(127,242,186,0); } }

html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 30px;
  }

  .hero-orbit {
    width: 220px;
    height: 220px;
  }

  .orbit-core { inset: 76px; }
  .ring-two { inset: 42px; }

  .app-stage {
    grid-template-columns: minmax(360px, 420px) minmax(260px, 1fr);
  }

  .variant-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-lead {
    grid-column: 1 / 3;
  }

  .summary-action {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-dark);
  }

  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-grid article:nth-child(2) { border-right: 0; }
  .principle-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 66px;
  }

  .header-status {
    font-size: 8px;
  }

  .hero {
    min-height: auto;
    display: block;
    padding-block: 58px 64px;
  }

  .hero-orbit {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 68px);
  }

  .lab {
    width: 100%;
    padding-inline: 14px;
  }

  .section-head {
    display: block;
  }

  .section-head > p {
    margin-top: 14px;
  }

  .motion-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .motion-option:nth-child(2) {
    border-right: 0;
  }

  .motion-option:nth-child(-n+2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .lab-toolbar {
    align-items: flex-start;
  }

  .toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .app-stage {
    min-height: 0;
    display: block;
  }

  .fleet-rail {
    width: 100%;
    border-right: 0;
  }

  .fleet-scroll {
    height: 548px;
  }

  .terminal-stage {
    display: none;
  }

  .window-titlebar {
    grid-template-columns: 64px 1fr auto;
  }

  .window-titlebar > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .variant-summary {
    grid-template-columns: 1fr 1fr;
  }

  .summary-lead {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line-dark);
  }

  .summary-fact:nth-of-type(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-dark);
  }

  .recommendation {
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 34px 24px;
  }

  .recommendation button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .header-status {
    max-width: 160px;
    text-align: right;
  }

  .hero-copy > p:last-child {
    font-size: 14px;
  }

  .motion-option {
    min-height: 92px;
    padding-inline: 12px;
  }

  .lab-toolbar {
    display: block;
  }

  .toolbar-actions {
    margin-top: 10px;
    justify-content: flex-start;
  }

  .tool-button {
    padding-inline: 8px;
  }

  .motion-switch {
    width: 100%;
    padding-left: 0;
  }

  .fleet-head span { font-size: 13px; }
  .lens-tabs button { font-size: 12px; }

  .variant-summary {
    display: block;
  }

  .summary-lead,
  .summary-fact,
  .summary-action {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .summary-action {
    min-height: 84px;
  }

  .principle-grid {
    display: block;
  }

  .principle-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-grid h3 {
    margin-top: 30px;
  }

  .recommendation {
    display: block;
  }

  .recommendation-index {
    display: block;
    margin-bottom: 22px;
  }

  .recommendation button {
    margin-top: 24px;
  }

  .site-footer {
    display: block;
    padding-block: 34px 100px;
  }

  .site-footer span {
    display: block;
    margin-bottom: 8px;
  }
}
