/* Homepage "Make your agents talk behind your back" (Claude Design 8a). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin.woff2") format("woff2"); }

:root { --bg: #121210; --fg: #f2efe8; --green: #3ccf8e; --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --loop: 40s ease-in-out infinite; }
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; overflow-x: clip; }
body.ap { margin: 0; background: var(--bg); color: var(--fg); font-family: Geist, system-ui, sans-serif; position: relative; isolation: isolate; overflow-x: clip; -webkit-font-smoothing: antialiased; }
.ap a { color: inherit; text-decoration: none; }
.ap a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.ap-skip { position: absolute; left: 12px; top: -60px; padding: 8px 14px; background: var(--fg); color: var(--bg) !important; border-radius: 8px; z-index: 10; }
.ap-skip:focus { top: 12px; }
.ap-glow { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.ap-glow i { position: absolute; border-radius: 50%; }
.ap-glow i:nth-child(1) { width: 520px; height: 520px; left: -120px; top: 120px; background: radial-gradient(circle, rgba(60,207,142,.28), transparent 65%); filter: blur(40px); animation: tr-drift 22s ease-in-out infinite alternate; }
.ap-glow i:nth-child(2) { width: 620px; height: 620px; right: -180px; top: 380px; background: radial-gradient(circle, rgba(60,207,142,.18), transparent 65%); filter: blur(50px); animation: tr-drift 28s ease-in-out infinite alternate-reverse; }
.ap-glow i:nth-child(3) { width: 420px; height: 420px; left: 40%; top: 900px; background: radial-gradient(circle, rgba(255,143,107,.14), transparent 65%); filter: blur(50px); animation: tr-drift 34s ease-in-out infinite alternate; }
.ap-glow b { position: absolute; inset: 0; height: 1400px; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%); }

/* nav */
.ap-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 48px; border-bottom: 1px solid rgba(255,255,255,.07); max-width: 1200px; margin: 0 auto; }
.ap-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; }
.ap-nav__links { display: flex; gap: 26px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.ap-nav__links a:hover { color: var(--fg); }
.ap-nav__cta { padding: 9px 16px; border-radius: 999px; background: var(--fg); color: var(--bg) !important; font-size: 13.5px; font-weight: 500; white-space: nowrap; }

/* hero */
.ap-hero { text-align: center; padding: 72px 48px 44px; }
.ap-hero h1 { margin: 0 auto 18px; font-size: 72px; line-height: .98; letter-spacing: -.035em; font-weight: 600; max-width: 900px; text-wrap: balance; }
.ap-hero h1 span { color: var(--green); }
.ap-hero p { margin: 0 auto 28px; font-size: 19px; line-height: 1.5; color: rgba(255,255,255,.62); max-width: 520px; text-wrap: pretty; }
.ap-hero__ctas { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ap-btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.ap-btn:hover { transform: translateY(-1px); }
.ap-btn--green { background: var(--green); color: var(--bg) !important; font-weight: 600; }
.ap-btn--ghost { border: 1px solid rgba(255,255,255,.18); }
.ap-btn--ghost:hover { background: rgba(255,255,255,.06); }

/* scene */
.ap-scene { position: relative; max-width: 1200px; margin: 0 auto; scroll-margin-top: 24px; }
.ap-scene__row { container-type: inline-size; position: relative; display: grid; grid-template-columns: 250px 1fr 250px; align-items: center; padding: 0 48px; }
.ap-caption { position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%); z-index: 3; }
.ap-caption div { font-size: 16px; color: rgba(255,255,255,.75); white-space: nowrap; }
.ap-muse { position: relative; z-index: 2; }
.ap-phone { width: 250px; height: 470px; border-radius: 38px; background: #000; border: 6px solid #2a2a27; overflow: hidden; position: relative; font-family: -apple-system, Geist, sans-serif; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.ap-phone__status { display: flex; justify-content: space-between; padding: 10px 20px 0; font-size: 11px; font-weight: 600; }
.ap-phone .dim { color: rgba(255,255,255,.7); }
.ap-phone__top { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 14px 0; }
.ap-phone--instinct .ap-phone__top { padding: 8px 12px 0; }
.ap-round { width: 28px; height: 28px; border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; font-size: 12px; flex: none; }
.ap-round--blue { color: #0a84ff; }
.ap-pill { padding: 5px 10px; border-radius: 999px; background: #1c1c1e; font-size: 11px; }
.ap-avatar { display: flex; flex-direction: column; align-items: center; }
.ap-avatar__face { border-radius: 50%; display: grid; place-items: center; }
.ap-avatar__face--muse { width: 44px; height: 44px; background: #e9ded2; font-size: 18px; color: #333; }
.ap-avatar__face--instinct { width: 40px; height: 40px; background: #4b3b8f; font-size: 16px; font-weight: 700; }
.ap-avatar__name { margin-top: -8px; padding: 3px 9px; border-radius: 999px; background: #1c1c1e; font-size: 11px; font-weight: 500; }
.ap-phone--instinct .ap-avatar__name { margin-top: -6px; padding: 2px 8px; font-size: 10.5px; font-weight: 400; }
.ap-phone__chat { position: absolute; left: 10px; right: 10px; bottom: 62px; display: flex; flex-direction: column; gap: 7px; }
.ap-phone__chat--low { bottom: 16px; gap: 6px; }
.ap-bubble { max-width: 92%; padding: 9px 12px; font-size: 12px; line-height: 1.35; }
.ap-bubble--me { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: #0a7aff; }
.ap-bubble--them { justify-self: start; align-self: flex-start; border-radius: 18px 18px 18px 4px; background: #1c1c1e; }
.ap-bubble--grey { background: #262628; }
.ap-stack { display: grid; }
.ap-stack > * { grid-area: 1 / 1; }
.ap-input { margin-top: 4px; padding: 9px 12px; border-radius: 14px; background: #1c1c1e; font-size: 11px; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; }
.ap-tabbar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 40px; border-radius: 999px; background: #1c1c1e; display: flex; align-items: center; justify-content: space-around; font-size: 13px; color: rgba(255,255,255,.8); }
.ap-tabbar .on { width: 38px; height: 30px; border-radius: 999px; background: #2c2c2e; display: grid; place-items: center; }
.ap-note { align-self: center; font: 10px var(--mono); color: var(--green); }
.ap-imsg { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.ap-imsg .ap-round { width: 30px; height: 30px; font-size: 14px; }
.ap-imsg__field { flex: 1; padding: 8px 12px; border-radius: 999px; background: #1c1c1e; font-size: 11px; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; }

/* hub: shared context card and the wires around it */
.ap-hub { display: flex; flex-direction: column; align-self: stretch; justify-content: flex-start; min-width: 0; }
.ap-hub__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 28px; }
.ap-hub__drop { flex: 1; min-height: 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.ap-wire { position: relative; height: 1px; background: repeating-linear-gradient(90deg, rgba(60,207,142,.5) 0 6px, transparent 6px 14px); }
.ap-vwire { position: relative; width: 1px; flex: 1; min-height: 40px; margin: 0 auto; background: repeating-linear-gradient(180deg, rgba(60,207,142,.5) 0 6px, transparent 6px 14px); }
.ap-vwire--short { flex: none; height: 36px; min-height: 0; }
.ap-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.ap-dot--r { top: -3px; animation: tr-travel 2.8s linear infinite; }
.ap-dot--l { top: -3px; animation: tr-travel-r 2.8s linear infinite; }
.ap-dot--down { left: -3px; animation: tr-fall 2.2s linear infinite; }
.ap-dot--mid { left: 50%; }
.ap-dot.ap-delay { animation-delay: 1.4s; }
.ap-dot.ap-delay-1 { animation-delay: .6s; }
.ap-dot.ap-delay-2 { animation-delay: 1.3s; }
.ap-context { position: relative; width: 300px; background: #141412; border: 1px solid rgba(60,207,142,.4); border-radius: 20px; padding: 18px; box-shadow: 0 0 100px -10px rgba(60,207,142,.35), inset 0 0 40px rgba(60,207,142,.05); }
.ap-context__head { display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); color: var(--green); margin-bottom: 12px; white-space: nowrap; }
.ap-context__head > span:first-child { display: flex; gap: 8px; align-items: center; }
.ap-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; animation: tr-pulse 1.6s infinite; }
.ap-context__title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ap-context__rows { display: flex; flex-direction: column; gap: 5px; }
.ap-agent { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.05); white-space: nowrap; font: 11.5px var(--mono); }
.ap-swap { display: grid; text-align: right; }
.ap-swap > * { grid-area: 1 / 1; }
.ap-swap .off { color: rgba(255,255,255,.28); }
.ap-swap .on { color: rgba(255,255,255,.75); }
.ap-context__foot { margin-top: 12px; font: 11px var(--mono); color: var(--green); }
.c-muse { color: #ff9b6b; } .c-instinct { color: #9b8cff; } .c-grok { color: #ddd; } .c-codex { color: #aaa; }

.ap-fork { padding: 0 48px; }
.ap-fork__bar { position: relative; height: 1px; margin: 0 25%; background: repeating-linear-gradient(90deg, rgba(60,207,142,.5) 0 6px, transparent 6px 14px); }
.ap-fork__legs, .ap-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ap-tools { padding: 0 48px 72px; align-items: start; }
.ap-term { border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.ap-term__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1a1a18; border-bottom: 1px solid rgba(255,255,255,.06); font: 11px var(--mono); color: rgba(255,255,255,.55); }
.ap-g { width: 18px; height: 18px; border-radius: 5px; background: #fff; color: #000; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ap-light { width: 10px; height: 10px; border-radius: 50%; }
.ap-light.r { background: #ff5f57; } .ap-light.y { background: #febc2e; } .ap-light.g { background: #28c840; }
.ap-term__path { margin-left: 12px; color: rgba(255,255,255,.5); }
.ap-term__body { padding: 14px 16px; font: 12px/1.7 var(--mono); color: rgba(255,255,255,.75); }
.ap-term__body .g { color: var(--green); } .ap-term__body .w { color: #fff; } .ap-term__body .dim { color: rgba(255,255,255,.45); white-space: pre-wrap; }

/* stats strip */
.ap-stats { max-width: 1200px; margin: 0 auto; padding: 32px 48px; border-top: 1px solid rgba(255,255,255,.07); }
.ap-stats dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.ap-stats dt { font: 500 11px var(--mono); color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .04em; }
.ap-stats dd { margin: 6px 0 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ap-stats .swarm-stats__note { margin: 12px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.45); }

/* CRM story: text a name, Grok and Muse fill in the card (24 s loop) */
.ap-crm { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.07); padding: 72px 48px 88px; display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 48px; align-items: center; }
.ap-crm__copy h2 { margin: 0 0 16px; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.ap-crm__copy p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.6); text-wrap: pretty; }
.ap-crm > * { min-width: 0; }
.ap-crm__stage { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.ap-contact { width: 440px; max-width: 100%; background: #141412; border: 1px solid rgba(60,207,142,.35); border-radius: 20px; padding: 16px; box-shadow: 0 0 90px -20px rgba(60,207,142,.3); }
.ap-contact__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ap-contact__face { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ff9b6b, #9b8cff); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #121210; flex: none; }
.ap-contact__head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.ap-contact__head p { margin: 2px 0 0; font-size: 12.5px; color: rgba(255,255,255,.55); }
.ap-contact__live { margin-left: auto; display: flex; gap: 7px; align-items: center; font: 10.5px var(--mono); color: var(--green); white-space: nowrap; }
.ap-src { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.ap-src > p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.78); }
.ap-src__who { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font: 11px var(--mono); color: rgba(255,255,255,.45); }
.ap-src__who .ap-g { width: 16px; height: 16px; font-size: 10px; border-radius: 4px; }
.ap-src__note { color: rgba(255,255,255,.6) !important; font-size: 12.5px !important; }
.ap-mood { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 8px; font: 11px var(--mono); }
.ap-mood__label { color: rgba(255,255,255,.45); }
.ap-mood__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.ap-mood__bar i { display: block; height: 100%; width: 78%; border-radius: inherit; background: linear-gradient(90deg, #ff8f6b, #febc2e 40%, #3ccf8e); }
.ap-mood__value { color: var(--green); }
.ap-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.ap-shot { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: grid; place-items: center; font-size: 26px; }
.ap-shot::before { opacity: .9; }
.ap-shot--rock { background: linear-gradient(160deg, #6b4a3a, #c98a5a 60%, #3a2a22); }
.ap-shot--rock::before { content: "🧗"; }
.ap-shot--dog { background: linear-gradient(160deg, #d9a650, #f2d08a 55%, #7a8f5a); }
.ap-shot--dog::before { content: "🐕"; }
.ap-shot--race { background: linear-gradient(160deg, #2f5d8a, #6fa3c9 55%, #23324a); }
.ap-shot--race::before { content: "🏃"; }
.ap-shot figcaption { position: absolute; left: 5px; bottom: 5px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.65); font: 9.5px var(--mono); color: var(--green); white-space: nowrap; }
.ap-shot__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--green); box-shadow: 0 0 10px 2px rgba(60,207,142,.7); opacity: 0; }
.ap-contact__foot { margin-top: 10px; font: 11px var(--mono); color: var(--green); }
.c-in3{animation:c-in3 24s ease-in-out infinite} .c-in10{animation:c-in10 24s ease-in-out infinite} .c-in12{animation:c-in12 24s ease-in-out infinite}
.c-in25{animation:c-in25 24s ease-in-out infinite} .c-in33{animation:c-in33 24s ease-in-out infinite} .c-in45{animation:c-in45 24s ease-in-out infinite}
.c-in55{animation:c-in55 24s ease-in-out infinite} .c-in58{animation:c-in58 24s ease-in-out infinite} .c-in61{animation:c-in61 24s ease-in-out infinite}
.c-in66{animation:c-in66 24s ease-in-out infinite} .c-in72{animation:c-in72 24s ease-in-out infinite}
.c-grow{animation:c-grow 24s ease-in-out infinite} .c-scan{animation:c-scan 24s linear infinite}
@keyframes c-in3{0%,3%{opacity:0;transform:translateY(8px)}6%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in10{0%,10%{opacity:0;transform:translateY(8px)}13%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in12{0%,12%{opacity:0;transform:translateY(8px)}15%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in25{0%,25%{opacity:0;transform:translateY(8px)}28%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in33{0%,33%{opacity:0;transform:translateY(8px)}36%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in45{0%,45%{opacity:0;transform:translateY(8px)}48%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in55{0%,55%{opacity:0;transform:translateY(8px)}58%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in58{0%,58%{opacity:0;transform:translateY(8px)}61%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in61{0%,61%{opacity:0;transform:translateY(8px)}64%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in66{0%,66%{opacity:0;transform:translateY(8px)}69%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-in72{0%,72%{opacity:0;transform:translateY(8px)}75%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes c-grow{0%,28%{width:0}36%,93%{width:78%}97%,100%{width:0}}
@keyframes c-scan{0%,48%{top:-4px;opacity:0}49%{top:0;opacity:1}62%{top:100%;opacity:1}63%,100%{top:100%;opacity:0}}

/* Event story: Muse offers the host your demo (reuses the CRM layout and its 24 s c-in timing) */
.ap-crm--flip { grid-template-columns: 1fr minmax(0, 420px); }
.ap-crm--flip h2 { font-size: 36px; }
.ap-crm--flip h2 > span { display: inline-block; }
.ap-crm--flip .ap-crm__copy { order: 2; }
.ap-crm--flip .ap-crm__stage { justify-content: center; }
.ap-crm__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.ap-crm__real { font: 12px var(--mono); color: rgba(255,255,255,.55); }
.ap-crm__real:hover { color: var(--fg); }
.ap-phone--tall { width: 280px; height: 580px; flex: none; }
.ap-event { align-self: flex-start; width: 88%; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: #1c1c1e; border-left: 3px solid #ff9b6b; font-size: 11px; color: rgba(255,255,255,.6); }
.ap-event strong { font-size: 12.5px; line-height: 1.3; color: var(--fg); font-weight: 600; }
.ap-event__src { font: 9.5px var(--mono); color: rgba(255,255,255,.45); }
.ap-event__ok { color: var(--green); }
.ap-chips { align-self: flex-end; display: flex; gap: 6px; }
.ap-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: 11px; color: rgba(255,255,255,.75); }
.ap-chip--on { background: #0a7aff; border-color: #0a7aff; color: #fff; }

/* why */
.ap-why { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.07); padding: 72px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ap-kicker { font: 500 11px var(--mono); color: var(--green); margin-bottom: 16px; }
.ap-why h2 { margin: 0 0 16px; font-size: 44px; line-height: 1.05; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.ap-why > div > p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.6); max-width: 440px; text-wrap: pretty; }
.ap-cards { display: flex; flex-direction: column; gap: 10px; }
.ap-card { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 20px; border-radius: 14px; background: #1a1a18; border: 1px solid rgba(255,255,255,.06); }
.ap-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ap-card p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.6); }
.c-before { color: #ff8f6b; } .c-after { color: var(--green); }

/* close + footer */
.ap-close { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.07); padding: 64px 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ap-close h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.025em; font-weight: 600; }
.ap-close p { margin: 0; font: 12px var(--mono); color: rgba(255,255,255,.45); }
.ap-close .ap-btn { padding: 14px 26px; flex: none; }
.ap-foot { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.07); padding: 24px 48px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: rgba(255,255,255,.45); }
.ap-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.ap-foot a:hover { color: var(--fg); }

/* 40 s story loop */
.a-z0{animation:tr-z0 var(--loop)} .a-z1{animation:tr-z1 var(--loop)} .a-z2{animation:tr-z2 var(--loop)} .a-z3{animation:tr-z3 var(--loop)}
.a-z4{animation:tr-z4 var(--loop)} .a-z5{animation:tr-z5 var(--loop)} .a-z6{animation:tr-z6 var(--loop)} .a-z7{animation:tr-z7 var(--loop)}
.a-z8{animation:tr-z8 var(--loop)} .a-z9{animation:tr-z9 var(--loop)} .a-z10{animation:tr-z10 var(--loop)} .a-z11{animation:tr-z11 var(--loop)}
.a-z12{animation:tr-z12 var(--loop)} .a-z13{animation:tr-z13 var(--loop)} .a-z14{animation:tr-z14 var(--loop)} .a-z15{animation:tr-z15 var(--loop)}
.a-z16{animation:tr-z16 var(--loop)} .a-z17{animation:tr-z17 var(--loop)} .a-z18{animation:tr-z18 var(--loop)}
.a-dz33{animation:tr-dz33 var(--loop)} .a-dz37{animation:tr-dz37 var(--loop)} .a-dz52{animation:tr-dz52 var(--loop)} .a-dz60{animation:tr-dz60 var(--loop)}
.a-muse2{animation:tr-muse2 var(--loop)}

@keyframes tr-drift{0%{transform:translate(0,0) scale(1)}50%{transform:translate(80px,-60px) scale(1.15)}100%{transform:translate(-60px,50px) scale(.95)}}
@keyframes tr-dz33{0%{opacity:0}2%,33%{opacity:1}36%,100%{opacity:0}}
@keyframes tr-dz37{0%{opacity:0}2%,37%{opacity:1}40%,100%{opacity:0}}
@keyframes tr-dz52{0%{opacity:0}2%,52%{opacity:1}55%,100%{opacity:0}}
@keyframes tr-dz60{0%{opacity:0}2%,60%{opacity:1}63%,100%{opacity:0}}
@keyframes tr-fall{0%{top:0;opacity:0}15%{opacity:1}85%{opacity:1}100%{top:calc(100% - 7px);opacity:0}}
@keyframes tr-muse2{0%{opacity:0;transform:translate(calc(50cqw - 125px),0) scale(1.12)}2%,24%{opacity:1;transform:translate(calc(50cqw - 125px),0) scale(1.12)}30%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-pulse{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes tr-travel{0%{left:0;opacity:0}12%{opacity:1}88%{opacity:1}100%{left:calc(100% - 7px);opacity:0}}
@keyframes tr-travel-r{0%{left:calc(100% - 7px);opacity:0}12%{opacity:1}88%{opacity:1}100%{left:0;opacity:0}}
@keyframes tr-z0{0%,2%{opacity:0;transform:translateY(8px)}5%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z1{0%,7%{opacity:0;transform:translateY(8px)}10%,42%{opacity:1;transform:none}45%,100%{opacity:0;transform:none}}
@keyframes tr-z10{0%,50%{opacity:0;transform:translateY(30px)}53%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z11{0%,54%{opacity:0;transform:translateY(8px)}57%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z12{0%,58%{opacity:0;transform:translateY(30px)}61%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z13{0%,62%{opacity:0;transform:translateY(8px)}65%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z14{0%,12%{opacity:0;transform:translateY(8px)}15%,22%{opacity:1;transform:none}25%,100%{opacity:0;transform:none}}
@keyframes tr-z15{0%,30%{opacity:0;transform:translateY(8px)}33%,44%{opacity:1;transform:none}47%,100%{opacity:0;transform:none}}
@keyframes tr-z16{0%,66%{opacity:0;transform:translateY(8px)}69%,90%{opacity:1;transform:none}93%,100%{opacity:0;transform:none}}
@keyframes tr-z17{0%,50%{opacity:0;transform:translateY(8px)}53%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z18{0%,58%{opacity:0;transform:translateY(8px)}61%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z2{0%,46%{opacity:0;transform:translateY(8px)}49%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z3{0%,37%{opacity:0;transform:translateY(8px)}40%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z4{0%,39%{opacity:0;transform:translateY(8px)}42%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z5{0%,34%{opacity:0;transform:translateX(60px)}37%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z6{0%,30%{opacity:0;transform:translateY(8px)}33%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z7{0%,33%{opacity:0;transform:translateY(8px)}36%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z8{0%,52%{opacity:0;transform:translateY(8px)}55%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes tr-z9{0%,60%{opacity:0;transform:translateY(8px)}63%,93%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
/* Mid widths: the CRM copy goes above its stage instead of squeezing beside it. */
@media (max-width: 1180px) {
  .ap-crm { grid-template-columns: 1fr; gap: 36px; }
  .ap-crm__copy { max-width: 560px; }
  .ap-crm__stage { justify-content: center; }
  .ap-crm--flip .ap-crm__copy { order: 0; }
  .ap-crm--flip .ap-crm__stage { justify-content: center; }
}

/* Narrow screens: one column, Muse stays in place, wires drop out. */
@media (max-width: 960px) {
  .ap-nav { padding: 16px 20px; }
  .ap-nav__links { display: none; }
  .ap-hero { padding: 48px 20px 32px; }
  .ap-hero h1 { font-size: clamp(40px, 11vw, 72px); }
  .ap-hero p { font-size: 17px; }
  .ap-scene__row { grid-template-columns: 1fr; justify-items: center; gap: 28px; padding: 0 20px; }
  .ap-caption { display: none; }
  .ap-scene [class*="a-"] { animation: none; }
  .ap-scene .is-before { display: none; }
  .ap-hub__row { grid-template-columns: 1fr; padding-top: 0; }
  .ap-wire, .ap-hub__drop, .ap-fork { display: none; }
  .ap-context { width: min(300px, calc(100vw - 40px)); }
  .ap-tools { grid-template-columns: 1fr; padding: 28px 20px 56px; }
  .ap-stats { padding: 28px 20px; }
  .ap-crm { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px; }
  .ap-crm__copy h2 { font-size: 30px; }
  .ap-crm__stage { flex-direction: column; align-items: center; }
  .ap-contact { width: 100%; }
  .ap-crm * { animation: none; }

  .ap-stats dd { font-size: 24px; }
  .ap-why { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px; }
  .ap-why h2 { font-size: 32px; }
  .ap-card { grid-template-columns: 1fr; gap: 6px; }
  .ap-close { flex-direction: column; align-items: flex-start; padding: 48px 20px; }
  .ap-close h2 { font-size: 28px; }
  .ap-foot { padding: 24px 20px 32px; }
}

/* Reduced motion: show the finished story, hide the "before" states. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ap *, .ap *::before, .ap *::after { animation: none !important; transition: none !important; }
  .ap .is-before { visibility: hidden; }
  .ap-dot { display: none; }
}

/* Agent app icons (lobehub marks in /site/agent-logos, MIT), filled with the text colour. Instinct has no public mark: monogram tile. */
.ap-mk { display: inline-block; flex: none; width: 1.2em; height: 1.2em; margin-right: .45em; vertical-align: -.25em; background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.ap-mk--muse { --mark: url(/site/agent-logos/meta.svg); color: #2d8cff; }
.ap-mk--grok { --mark: url(/site/agent-logos/grok.svg); }
.ap-mk--codex { --mark: url(/site/agent-logos/codex.svg); }
.ap-mk--chatgpt { --mark: url(/site/agent-logos/openai.svg); }
.ap-mk--claude { --mark: url(/site/agent-logos/claude.svg); color: #d97757; }
.ap-mk--hermes { --mark: url(/site/agent-logos/hermesagent.svg); }
.ap-mk--gemini { --mark: url(/site/agent-logos/gemini.svg); color: #6f9cff; }
.ap-mk--kimi { --mark: url(/site/agent-logos/kimi.svg); }
.ap-mk--instinct { display: inline-grid; vertical-align: middle; place-items: center; -webkit-mask: none; mask: none; border-radius: 28%; background: #4b3b8f; color: #fff; }
.ap-mk--instinct::before { content: "I"; font: 700 .68em/1 var(--sans, system-ui, sans-serif); }
.ap-g .ap-mk, .ap-avatar__face .ap-mk { margin: 0; }
.ap-avatar__face--muse .ap-mk { width: 24px; height: 24px; }
.ap-works { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; margin: 12px 0 0; padding: 0; list-style: none; }
.ap-works li { display: inline-flex; align-items: center; padding: 6px 12px 6px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.03); font-size: 13px; color: rgba(255,255,255,.82); white-space: nowrap; }
.ap-works .ap-mk { width: 16px; height: 16px; margin-right: 7px; vertical-align: 0; }
