/* /agents: the home page's white page and type, the film of five chats, how it connects, and how it measured.
   The film's beats play one at a time (agents.js); each beat's steps carry .st and arrive in order. */
:root { --rule: #dfe1e6; }

.agents-hero { padding-top: 0; }
.agents-hero .agents-go { margin-top: 28px; }
.agents .last { padding-block: clamp(56px, 7vw, 88px); }

/* Sources into Ownfeed, Ownfeed out to the AI: the home page's tiles and lines (welcome.css .source-icon), one drawing
   that keeps its proportions, so lines, dots and tiles scale together. */
.aflow { position: relative; width: min(100% - 48px, 1040px); aspect-ratio: 1040 / 400; margin: clamp(56px, 7vw, 88px) auto 0; }
.aflow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aflow-lines path { fill: none; stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.af-dot { fill: var(--accent); opacity: 0; }
.aflow-tiles { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.af-tile { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: clamp(36px, 5vw, 56px); aspect-ratio: 1; border-radius: 28%; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 18px #11131712; transform: translate(-50%, -50%); }
.af-tile .glyph { width: 50%; height: 50%; }
.af-tile.source-podcast { background: #9b3fd6; }
.af-hub { width: clamp(52px, 8vw, 84px); border-radius: 30%; box-shadow: 0 0 0 1px var(--line), 0 16px 40px #1113171f; }
.af-hub .brand-mark { scale: clamp(.9, .12vw + .8, 1.4); }  /* scale, not transform: the mark keeps its tilt */
.af-name { position: absolute; top: calc(100% + 8px); left: 50%; color: var(--soft); font-size: 13px; font-weight: 500; white-space: nowrap; transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .af-ai { animation: af-lit 3s ease-out var(--d) infinite; }
}
@media (prefers-reduced-motion: reduce) { .af-dot { display: none; } }
@keyframes af-lit { 0% { box-shadow: 0 0 0 1px var(--line), 0 6px 18px #11131712; } 8% { box-shadow: 0 0 0 2px var(--accent), 0 6px 18px #0866da33; } 40%, 100% { box-shadow: 0 0 0 1px var(--line), 0 6px 18px #11131712; } }

/* How a reader connects: sign in, or a named token.  */
.ways { width: min(100% - 48px, 720px); margin: clamp(40px, 5vw, 64px) auto 0; text-align: center; }
.ways h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
.ways-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; text-align: left; }
.ways-list li { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #11131714; }
.ways-list b { font-size: 16px; }
.ways-list span { color: var(--soft); font-size: 15px; line-height: 1.45; }
.ways-go { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; }
/* The benchmark: one card, two big numbers (with, without) and one small line. */
.bench { width: min(100% - 48px, 760px); margin: clamp(56px, 7vw, 88px) auto 0; }
.bench h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; text-align: center; }
.bench-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--rule); border-radius: 20px; }
.bench-stats p { display: grid; gap: 10px; margin: 0; padding: 28px 24px 26px; color: var(--soft); font-size: 15px; }
.bench-stats p + p { border-left: 1px solid var(--rule); }
.bench-stats b { color: var(--ink); font-size: clamp(56px, 9vw, 88px); font-weight: 400; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.bench-stats .stat-of { color: var(--accent); }
.bench-on { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 0; color: var(--soft); font-size: 14px; }
.bench-on svg { width: 20px; height: 20px; fill: currentColor; }
.bench-meta { margin: 8px 4px 0; color: var(--soft); font-size: 13px; line-height: 1.5; text-align: center; }

/* The film: five beats on one stage. Each beat opens with its title, then its chat window (ChatGPT's or Claude's look,
   names only) comes in; the answer is drawn as the card view agents render (mcp_cards.html). agents.js runs the clock.
   Only transform and opacity move. --h is the stage height: one per breakpoint, so nothing jumps between beats. */
.demo{--h:624px;width:min(100% - 48px,1000px);margin:clamp(28px,4vw,40px) auto 0}
.stage{display:grid;height:var(--h)}
.stage>*{grid-area:1/1;min-width:0}
.ttl{place-self:center;margin:0;font-size:clamp(48px,7vw,88px);font-weight:600;letter-spacing:-.045em;line-height:1;opacity:0;transform:translateY(14px);transition:opacity .4s var(--ease-out),transform .6s var(--ease-out)}
.ttl.in{opacity:1;transform:none}
.ttl.out{opacity:0;transform:translateY(-10px) scale(.98);transition-duration:.3s,.4s}
.scene{display:flex;flex-direction:column;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px #11131718,0 12px 32px #1113170f;opacity:0;visibility:hidden;transform:translateY(18px) scale(.985);transition:opacity .25s var(--ease-out),transform .25s var(--ease-out),visibility 0s .25s;font-size:16px;line-height:1.5;color:#0d0d0d;text-align:left;contain:layout paint}
.scene.on{opacity:1;visibility:visible;transform:none;transition:opacity .45s var(--ease-out),transform .6s var(--ease-out)}
.scene .top{position:relative;z-index:1;flex:none;height:48px;display:flex;align-items:center;padding:0 20px;background:inherit;font-size:15px;font-weight:600}
.msgs{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:safe center;align-items:flex-start;gap:12px;padding:8px 20px 12px;overflow:hidden}
.u{text-wrap:balance;align-self:flex-end;max-width:82%;padding:10px 16px;border-radius:22px;margin:0;overflow-wrap:anywhere}
.tool{font:500 12.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;padding:7px 10px;border-radius:8px;border:1px solid #e5e5e5;background:#f7f7f8;color:#55595f}
.a{width:100%;margin:0}
.st{opacity:0;transform:translateY(10px);transition:opacity .3s var(--ease-out),transform .4s var(--ease-out)}
.st.in{opacity:1;transform:none}
.comp{position:relative;z-index:1;flex:none;margin:0 16px 16px;display:flex;align-items:flex-end;gap:10px;min-height:52px;padding:8px 8px 8px 18px;border:1px solid #e3e3e3;border-radius:26px;background:#fff;box-shadow:0 2px 8px #1113170a}
.comp .txt{flex:1;min-width:0;align-self:center;padding:2px 0;overflow-wrap:anywhere}
.hint{color:#8e8e8e}.typed:not(:empty)+.hint{display:none}
.typing .typed::after{content:"";display:inline-block;width:2px;height:1.1em;margin-left:1px;vertical-align:-.18em;background:currentColor;animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.send{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#d9d9d9;color:#fff;transition:background-color .2s var(--ease-out)}
.send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.gpt .u{background:#f4f4f4}
.gpt .comp.typing .send{background:#0d0d0d}
/* Claude's window, as it was before the film */
.cla{background:#faf9f5;color:#1f1e1d}
.cla .top{font-family:Georgia,"Times New Roman",serif;font-size:19px;font-weight:500}
.cla .u{background:#f0eee6;border-radius:14px}
.cla .tool{background:#f0eee6;border-color:#e6e3d8}
.cla .comp{display:block;min-height:84px;padding:14px 56px 14px 16px;border-radius:20px;border-color:#e6e3d8}
.cla .comp .txt{display:block;font-size:16px}
.cla .send{position:absolute;right:10px;bottom:10px;background:#e6c9bd;border-radius:10px}
.cla .comp.typing .send{background:#c15f3c}
.cla .hint{color:#8a877d}

/* The card view's look (mcp_cards.html, light), renamed so welcome.css's card classes stay out. */
.a{--surface:#fff;--surface-2:#f0f1f4;--line:#e7e8ed;--ink:#1d1d1f;--ink-2:#585b65;--muted:#747781;--accent:#0866da;--accent-soft:#edf4ff;--ok:#258453;color:var(--ink);font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.a [data-platform]{--platform-color:#71809a}
.a [data-platform=x]{--platform-color:#758192}
.a [data-platform=youtube]{--platform-color:#c76662}
.a [data-platform=podcast]{--platform-color:#9478a2}
.a [data-platform=newsletter]{--platform-color:#8a78a5}
.a svg{display:block;width:18px;height:18px;fill:currentColor}
/* The push-in: the card with the thing that changes grows a little, centred on it, then settles back. */
.pc,.sc{position:relative}
.a .zoom{z-index:1;transform:scale(1.05);transition:transform .9s cubic-bezier(.77,0,.175,1)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:16px;align-items:start}
.pc{display:block;border:1px solid color-mix(in srgb,var(--platform-color) 10%,var(--line));border-radius:18px;background:var(--surface);overflow:hidden}
.pc-meta{display:flex;align-items:center;gap:12px;padding:12px 8px 12px 16px;background:color-mix(in srgb,var(--platform-color) 6%,var(--surface));color:var(--muted);font-size:12px;line-height:1.25;white-space:nowrap}
.pc-by{display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0}
.pc-name{overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:13px;font-weight:650}
.pc-det{overflow:hidden;text-overflow:ellipsis}
.pc-plat{color:color-mix(in srgb,var(--platform-color) 78%,var(--ink));font-weight:650}
.pc-tile{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--platform-color) 12%,var(--surface));color:var(--platform-color)}
.pc-media{position:relative;display:block;background:var(--surface-2)}
.pc-media img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.play{position:absolute;inset:0;display:grid;place-items:center}
.play span{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fffef5f0;color:#171b20;box-shadow:0 7px 28px #0005}
.a .play svg{width:22px;height:22px;margin-left:3px}
.pc-main{display:block;padding:14px 16px 16px}
.pc-title{display:-webkit-box;margin:0 0 8px;font-size:17px;line-height:1.32;font-weight:600;letter-spacing:-.01em;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pc-main>:last-child{margin-bottom:0}
.pc-ex{display:-webkit-box;margin:0;color:var(--ink-2);-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
/* An X post: its words first, then the picture in a rounded frame. Clamped shorter than the real view so the beat fits. */
.x .pc-title{font-size:15px;font-weight:430;line-height:1.55;-webkit-line-clamp:4}
.x .pc-media{margin:0 16px 16px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
/* The bookmark: outline until saved, then filled (two stacked marks, crossfaded) */
.bm{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;color:var(--ink-2)}
.a .bm svg{grid-area:1/1;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:opacity .2s var(--ease-out)}
.a .bm .f{fill:currentColor;color:var(--ink);opacity:0}
.done .bm[data-press] .f{opacity:1}.done .bm[data-press] .o{opacity:0}
/* A face: initials on a tint from the name (agents.js sets --hue), the picture over them when it loads, a platform badge. */
.fc{position:relative;display:grid;flex:none;place-items:center;width:36px;height:36px;border-radius:50%;background:hsl(var(--hue,210) 38% 44%);color:#fff;font-size:13px;font-weight:750;letter-spacing:-.02em}
.fc img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover}
.fc.lg{width:56px;height:56px;font-size:19px}
.fc-b{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--surface);color:var(--platform-color);box-shadow:0 0 0 1.5px var(--surface)}
.a .fc-b svg{width:10px;height:10px}
.fc.lg .fc-b{right:-3px;bottom:-3px;width:22px;height:22px}
.a .fc.lg .fc-b svg{width:13px;height:13px}
/* A source card: Following with Undo, or Unfollow and Keep, then Unfollowed with Undo. */
.sc{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;max-width:520px;padding:16px;border:1px solid color-mix(in srgb,var(--platform-color) 12%,var(--line));border-radius:18px;background:var(--surface)}
.sc-head{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0}
.sc-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:650}
.sc-plat{color:color-mix(in srgb,var(--platform-color) 78%,var(--ink));font-size:12px;font-weight:650}
.bio{grid-column:1/-1;margin:4px 0 0;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sc-foot{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.sc-foot.swap{display:grid}
.swap>span{grid-area:1/1;display:flex;align-items:center;gap:8px;transition:opacity .25s var(--ease-out)}
.swap>span+span,.done .swap>span:first-child{opacity:0}
.done .swap>span+span{opacity:1}
.state{display:inline-flex;align-items:center;gap:5px;margin-right:auto;color:var(--muted);font-size:13px;font-weight:600}
.state.on{color:var(--ok)}
.a .state svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pl{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:14px;font-weight:600;line-height:1;white-space:nowrap}
.pl.primary{border-color:transparent;background:var(--accent-soft);color:var(--accent)}
/* The pointer in beats 4 and 5: glides to the control, presses it (both shrink a little), then fades. */
[data-press]{transition:transform .12s var(--ease-out)}
[data-press].down{transform:scale(.94)}
.ptr{position:absolute;left:0;top:0;z-index:2;width:22px;height:22px;opacity:0;pointer-events:none;transform:translate(calc(var(--x) + 90px),calc(var(--y) + 110px));transition:transform .7s cubic-bezier(.77,0,.175,1),opacity .3s var(--ease-out)}
.ptr.aim{opacity:1;transform:translate(var(--x),var(--y))}
.ptr.aim.off{opacity:0}
.ptr svg{display:block;width:100%;height:100%;fill:#fff;stroke:#1d1d1f;stroke-width:1.5;stroke-linejoin:round;transform-origin:0 0;transition:transform .12s var(--ease-out)}
.ptr.down svg{transform:scale(.86)}

.dchips{display:flex;gap:8px;justify-content:center;margin-top:16px}
.dchip{position:relative;flex:none;height:44px;padding:0 14px 3px;border:0;border-radius:999px;background:var(--wash);color:var(--soft);font:600 14px Inter,system-ui,sans-serif;cursor:pointer;overflow:hidden;transition:background-color .2s var(--ease-out),color .2s var(--ease-out)}
.dchip[aria-current=true]{background:var(--accent-soft);color:var(--accent-dark)}
.dchip i{position:absolute;left:14px;right:14px;bottom:8px;height:2px;border-radius:1px;background:transparent}
.dchip[aria-current=true] i{background:#0866da26}
.dchip i b{display:block;height:100%;border-radius:1px;background:var(--accent);transform:scaleX(0);transform-origin:left}
.demo-note{margin:14px 0 0;color:var(--soft);font-size:15px;text-align:center}
@media(max-width:760px){
 .demo{width:calc(100% - 32px)}
 .dchips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .dchip{padding:0 4px 3px;font-size:13px}.dchip i{left:10px;right:10px}
 .msgs{padding:8px 16px 12px}.scene .top{padding:0 16px}
}
/* Three cards across need about 1000px. Below that the stage fits the tallest beat: one card across, then two side by side
   (the pictureless posts, or the two videos). Pictures stop growing at 200px so a wide tablet fits too. */
@media(max-width:1000px){
 .demo{--h:770px}
 .cards{gap:10px}
 .pc-meta{padding-block:8px}
 .pc-main{padding:10px 14px 12px}
 .bm{width:36px;height:36px}
 .lead,.watch{grid-template-columns:1fr 1fr}
 .lead .pc:first-child,.watch .pc:last-child{grid-column:1/-1}
 .lead .pc:not(:first-child) .bm,.watch .pc:not(:last-child) .bm{display:none}
 .lead .pc:not(:first-child) .pc-meta,.watch .pc:not(:last-child) .pc-meta{gap:8px;padding-inline:10px}
 .x .pc-title{font-size:14px;line-height:1.5;-webkit-line-clamp:7}
 .x:first-child .pc-title{-webkit-line-clamp:3}
 .x .pc-media{margin:0 14px 12px}
 .x .pc-media img{aspect-ratio:2.4}
 .pc-media img{max-height:200px}
 .lead .pc:not(:first-child) .pc-name,.watch .pc:not(:last-child) .pc-name{white-space:normal}
 .watch .pc-title{font-size:15px;-webkit-line-clamp:5}
 .watch .play span{width:40px;height:40px}.watch .play svg{width:16px;height:16px;margin-left:2px}
}
/* The smallest phones: the two videos' names need the tile's room. */
@media(max-width:380px){.watch .pc:not(:last-child) .pc-tile{display:none}}
@media(prefers-reduced-motion:reduce){.st,.scene{transform:none}.typing .typed::after{animation:none}}
/* No script: the first beat stands finished; with it, agents.js adds .js and plays them. */
html:not(.js) .scene:first-of-type{opacity:1;visibility:visible;transform:none}
html:not(.js) .st{opacity:1;transform:none}
@media (max-width: 760px) {
  .bench { width: calc(100% - 32px); }
  .bench-stats p { padding: 22px 16px 20px; font-size: 14px; }
  .ways { width: calc(100% - 32px); }
  .aflow { width: calc(100% - 32px); aspect-ratio: 1040 / 620; margin-bottom: 18px; }
  .af-name { top: calc(100% + 5px); font-size: 11px; }
  .bench { margin-top: 48px; }
}
