/* =========================================================
   Moving parts MCP: the assistant session in its record frame,
   on the home's (04) and on the MCP page, and that page's own parts.
   landing/assets/mcp.css
   ========================================================= */

/* ---------- the viewfinder, for the pages that do not load the home's sheet ---------- */
.mcp-page .rec-frame { margin: 0; --vfh: 34px; }
.mcp-page .rf-media { position: relative; margin-top: var(--vfh); }
.mcp-page .vf, .mcp-page .vf-bar { opacity: var(--ticks, 1); }
.mcp-page .vf { position: absolute; left: 0; right: 0; bottom: 0; top: calc(-1 * var(--vfh)); pointer-events: none; z-index: 2; }
.mcp-page .vf::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--rec); }
.mcp-page .vf::after { content: ""; position: absolute; inset: 0; --m: 14px; --c: color-mix(in srgb, var(--text) 85%, transparent);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--m) 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--m),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--m) 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--m),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--m) 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--m),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--m) 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--m);
  background-repeat: no-repeat; }
.mcp-page .vf-bar { position: absolute; left: 0; right: 0; bottom: 100%; height: var(--vfh); display: flex; align-items: center; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--rec); color: var(--label); white-space: nowrap; }
.mcp-page .vf-bar b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.mcp-page .vf-rec { display: inline-flex; align-items: center; color: var(--text); }
.mcp-page .fx-bar { flex: 1; height: 1px; background: var(--rec); position: relative; overflow: hidden; display: block; }
.mcp-page .fx-bar::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }

/* ---------- the session: an ask, three calls, the files, the answer ---------- */
.mcp-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.mcp .h2 { font-size: clamp(40px, 5vw, 80px); }
.mcp-tools { list-style: none; margin-top: clamp(26px, 4vh, 40px); border-top: 1px solid var(--line-strong); }
.mcp-tools li { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: 12px; padding: 12px 0 11px; border-bottom: 1px solid var(--line-strong); color: var(--label); }
.mcp-tools b { color: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0; }
.mcp-note { margin-top: 18px; color: var(--label); display: flex; align-items: center; gap: 10px; }
.mcp-soon { color: var(--bg); background: var(--text); padding: 2px 7px 1px; }
.mcp-frame { margin: 0; }
.mcp-term { position: relative; aspect-ratio: 16 / 11; background: var(--bg); padding: clamp(18px, 2.2vw, 30px); overflow: hidden;
  font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: clamp(11.5px, .95vw, 14px); line-height: 1.55; color: var(--muted); }
/* every line keeps its height while it waits, so the frame never grows as the session plays */
.mcp-term p { min-height: 1.55em; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); white-space: pre-wrap; }
.mcp-term p.in { opacity: 1; transform: none; }
.mcp-term .t-you { color: var(--text); padding: 10px 12px; background: #161618; border-left: 2px solid var(--text); margin-bottom: 16px; }
.mcp-term .t-you::before { content: "› "; color: var(--label); }
.mcp-term .t-call { color: var(--label); margin-top: 10px; }
.mcp-term .t-call b { color: var(--text); font-weight: 500; }
.mcp-term .t-call i { display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: 1px; border: 1px solid var(--label); border-top-color: transparent; border-radius: 50%; animation: mcp-spin .6s linear infinite; }
.mcp-term .t-call.ok i { animation: none; border: 0; background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent); }
.mcp-term .t-out { padding-left: 17px; color: var(--muted); }
.mcp-term .t-out::before { content: "↳ "; color: var(--label); }
.mcp-term .t-done { color: var(--muted); }
.mcp-term .t-done:first-of-type, .mcp-term .t-out + .t-done { margin-top: 16px; }
.mcp-term .t-done::before { content: "+ "; color: var(--label); }
.mcp-term .t-done.ok::before { content: "✓ "; color: #3ecf8e; }
.mcp-term .t-say { color: var(--text); margin-top: 16px; max-width: 58ch; min-height: 3.1em; }
@keyframes mcp-spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) { .mcp-grid { grid-template-columns: 1fr; } .mcp-term { aspect-ratio: auto; min-height: 420px; } }
@media (max-width: 820px) { .mcp-tools li { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .mcp-term .t-call i { animation: none; } .mcp-term p { transition: none; } }

/* ---------- the MCP page ---------- */
.mcp-lead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 48px; flex-wrap: wrap; }
.mcp-lead .mcp-note { margin-top: 26px; }
.mcp-show { padding-top: clamp(40px, 6vh, 72px); }
.mcp-term-wide { aspect-ratio: auto; padding: clamp(28px, 3.4vw, 56px) clamp(22px, 4vw, 64px); font-size: clamp(12px, 1.05vw, 16px); }
.mcp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(36px, 6vh, 64px); }
.mcp-steps li { border-top: 1px solid var(--line-strong); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.mcp-steps li .mono { color: var(--label); }
.mcp-steps li b { font-weight: 430; font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -.045em; line-height: 1; }
.mcp-steps li p { color: var(--muted); max-width: 36ch; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.45; }
.mcp-table .tr { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, .9fr); }
.mcp-table code { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: .92em; color: var(--text); }
.mcp-table .part { color: var(--muted); }
.mcp-where-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
.mcp-clients { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.mcp-clients li { display: grid; gap: 4px; padding: 16px 0 15px; border-bottom: 1px solid var(--line-strong); color: var(--label); }
.mcp-clients li:nth-child(odd) { padding-right: 16px; }
.mcp-clients b { color: var(--text); font-weight: 500; font-size: 13px; }
@media (max-width: 980px) { .mcp-steps, .mcp-where-grid { grid-template-columns: 1fr; } .mcp-term-wide { aspect-ratio: auto; min-height: 460px; } }
@media (max-width: 820px) { .mcp-table .tr { grid-template-columns: 1fr; gap: 4px; } .mcp-table .tr.th { display: none; } .mcp-clients { grid-template-columns: 1fr; } }
.mcp-more { margin-top: 22px; }

/* ---------- plug it in: a console where the config writes itself and the two ends connect ---------- */
.plug-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 48px; flex-wrap: wrap; }
.plug-head .sub { max-width: 40ch; }
.mcp-page .plug-frame { margin-top: clamp(64px, 9vh, 110px); --vfh: 46px; }
.plug-bar { gap: 14px; }
.plug-tabs { flex: 1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.plug-tabs::-webkit-scrollbar { display: none; }
.plug-tab { position: relative; padding: 7px 11px 6px; color: var(--label); white-space: nowrap; font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color .3s; }
.plug-tab::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.plug-tab:hover { color: var(--text); }
.plug-tab[aria-selected="true"] { color: var(--text); }
.plug-tab[aria-selected="true"]::after { transform: none; }
.plug-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: clamp(420px, 34vw, 520px); background: var(--bg); }
.plug-editor { display: flex; flex-direction: column; padding: clamp(18px, 2vw, 28px); border-right: 1px solid var(--rec); min-width: 0; }
.plug-file { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--label); text-transform: none; letter-spacing: .02em; padding-bottom: 14px; border-bottom: 1px solid var(--rec); }
.plug-copy { padding: 5px 10px 4px; border: 1px solid var(--line-strong); color: var(--text); border-radius: 999px; transition: background-color .3s, color .3s; text-transform: uppercase; }
.plug-copy:hover { background: var(--text); color: var(--bg); }
.plug-pre { flex: 1; margin: 18px 0; overflow-x: auto; counter-reset: ln; }
.plug-pre code { display: block; font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: clamp(12px, .95vw, 14.5px); line-height: 1.75; color: var(--text); white-space: pre; }
.plug-pre .ln { display: block; counter-increment: ln; min-height: 1.75em; }
.plug-pre .ln::before { content: counter(ln); display: inline-block; width: 2.4ch; margin-right: 2ch; color: color-mix(in srgb, var(--text) 22%, transparent); text-align: right; }
.plug-pre .gl { color: var(--accent); }
.plug-pre .dim { color: var(--label); }
.plug-pre .car { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: var(--text); animation: plug-car .9s steps(1) infinite; }
@keyframes plug-car { 50% { opacity: 0; } }
.plug-steps { list-style: none; counter-reset: s; display: grid; gap: 2px; border-top: 1px solid var(--rec); padding-top: 12px; }
.plug-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; padding: 7px 0; color: var(--label); font-size: clamp(14px, .98vw, 15.5px); line-height: 1.45; transition: color .5s var(--ease-out); }
.plug-steps li::before { content: counter(s, decimal-leading-zero); font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 11px; padding-top: 3px; color: var(--label); transition: color .5s; }
.plug-steps li.on { color: var(--text); }
.plug-steps li.on::before { color: var(--accent); }
.plug-steps li.done { color: var(--muted); }
.plug-steps b { font-weight: 460; }
.plug-steps code { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: .88em; }
.plug-steps li span { opacity: 1; transform: none; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.plug-steps.swap li span { opacity: 0; transform: translateY(6px); transition: none; }
/* a faint grid of points, like a sheet of the library, under a blue glow that brightens once connected */
.plug-link { position: relative; overflow: hidden; min-height: 320px;
  background: radial-gradient(90% 70% at 50% 50%, color-mix(in srgb, var(--accent) 6%, transparent), color-mix(in srgb, var(--accent) 0%, transparent) 70%), radial-gradient(circle, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.2px) 0 0 / 22px 22px; transition: background-color .6s; }
.plug-link.live { background-color: color-mix(in srgb, var(--accent) 3.5%, transparent); }
.plug-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plug-node { position: absolute; top: 50%; translate: 0 -50%; display: grid; gap: 8px; padding: 16px 18px; background: #111113; border: 1px solid var(--line-strong); min-width: 128px; transition: border-color .5s, box-shadow .5s; }
.plug-node .mono { color: var(--label); }
.plug-node b { font-weight: 450; font-size: clamp(17px, 1.4vw, 22px); letter-spacing: -.025em; }
.plug-node-a { left: 8%; }
.plug-node-b { right: 8%; }
.plug-node-b .brand-logo { height: 18px; }
.plug-link.live .plug-node { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 28px color-mix(in srgb, var(--accent) 18%, transparent); }
.plug-status { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 9px; color: var(--label); }
.plug-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--label); transition: background-color .4s, box-shadow .4s; }
.plug-link.wait .plug-status i { background: #f5a524; box-shadow: 0 0 8px rgba(245, 165, 36, .6); animation: live 1s var(--ease-out) infinite; }
.plug-link.live .plug-status { color: var(--text); }
.plug-link.live .plug-status i { background: #3ecf8e; box-shadow: 0 0 8px rgba(62, 207, 142, .6); animation: none; }
.plug-url { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; color: var(--label); }
.plug-also { margin-top: 10px; }
.plug-also b { font-weight: inherit; color: var(--text); }
.plug-url code { font-family: "Geist Mono", ui-monospace, Menlo, monospace; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
@media (max-width: 980px) {
  .plug-body { grid-template-columns: 1fr; }
  .plug-editor { border-right: 0; border-bottom: 1px solid var(--rec); }
  .plug-link { min-height: 260px; }
}
@media (max-width: 820px) { .plug-bar .vf-tc { display: none; } .plug-frame { --vfh: 42px; } }
@media (prefers-reduced-motion: reduce) { .plug-pre .car { animation: none; } }

/* ---------- the spot: one ask, the real component, a cut per ask, the whole library ---------- */
.tuto-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 48px; flex-wrap: wrap; }
.tuto-head .sub { max-width: 42ch; }
.mcp-page .tuto-frame { margin-top: clamp(64px, 9vh, 110px); --vfh: 40px; }
.tuto-chap { display: inline-block; color: var(--text); min-width: 12ch; }
.tuto-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; perspective: 1600px; container-type: inline-size;
  background: radial-gradient(60% 55% at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent) 0%, transparent) 70%), #07070a; }
.sp { position: absolute; inset: 0; }
.sp > * { position: absolute; }
/* the prompt, Claude's own composer, big */
.sp-prompt { left: 50%; top: 50%; width: 62cqw; padding: 2.2cqw 2.4cqw 2cqw; border-radius: 2cqw; background: #1c1c20; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .5); transform-origin: 50% 50%; }
.sp-chip { display: flex; align-items: center; gap: .7cqw; font: 500 1.05cqw/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .04em; color: #c9c9ce; margin-bottom: 1.6cqw; }
.sp-chip i { width: .7cqw; height: .7cqw; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 .8cqw rgba(62, 207, 142, .8); }
.sp-chip span { color: #6f6f77; }
.sp-line { min-height: 1.3em; font-weight: 430; font-size: 2.9cqw; line-height: 1.2; letter-spacing: -.035em; color: var(--text); padding-right: 5cqw; }
.sp-car { display: inline-block; width: .12em; height: 1em; margin-left: .06em; vertical-align: -.12em; background: #d97757; animation: plug-car .9s steps(1) infinite; }
.sp-send { position: absolute; right: 2cqw; bottom: 2cqw; display: grid; place-items: center; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: #d97757; color: #fff; }
.sp-send svg { width: 45%; height: 45%; }
/* the call: the prompt's line of light, filling */
.sp-call { left: 50%; top: 50%; width: 69cqw; translate: -50% -50%; display: grid; gap: 1.2cqw; text-align: center; }
.sp-call .mono { color: #c9c9ce; font-size: 1.05cqw; text-transform: none; letter-spacing: .02em; }
.sp-bar { display: block; height: 2px; background: color-mix(in srgb, var(--text) 15%, transparent); }
.sp-bar i { display: block; height: 100%; background: var(--text); transform-origin: 0 50%; box-shadow: 0 0 12px color-mix(in srgb, var(--text) 80%, transparent); }
/* the screen: the real component, the library's own recording */
.sp-screen { left: 50%; top: 50%; width: 78cqw; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1cqw; background: #fbfbf9; box-shadow: 0 4cqw 10cqw rgba(0, 0, 0, .65); }
.sp-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-flash { position: absolute; inset: 0; z-index: 3; background: #fff; pointer-events: none; }
/* the name of what just landed, inside the picture, on a shade */
.sp-screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--bg) 0%, transparent)); pointer-events: none; }
.sp-cap { position: absolute; z-index: 2; left: 2.6cqw; bottom: 2.2cqw; display: flex; align-items: baseline; gap: 1.4cqw; white-space: nowrap; }
.sp-cap b { font-weight: 430; font-size: 3cqw; letter-spacing: -.045em; color: var(--text); }
.sp-cap .mono { font-size: 1.1cqw; color: #3ecf8e; text-transform: none; letter-spacing: .02em; }
/* the asks, one after the other */
.sp-ask { left: 4.5cqw; top: 50%; translate: 0 -50%; width: 28cqw; }
.sp-ask .mono { color: var(--accent); font-size: .95cqw; margin-bottom: 1.4cqw; }
.sp-ask h5 { font-weight: 430; font-size: 4.2cqw; line-height: .98; letter-spacing: -.05em; color: var(--text); }
.sp-ask .aw { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.sp-ask .aw > span { display: inline-block; }
/* the whole library */
.sp-grid { inset: 7cqw 8cqw; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 1.4cqw; transform-style: preserve-3d; }
.sp-grid span { border-radius: .8cqw; background: center / cover no-repeat #fbfbf9; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .55); }
.sp-head { inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.sp-head h5 { font-weight: 430; font-size: 6.4cqw; line-height: .98; letter-spacing: -.055em; color: var(--text); }
.sp-head .m { color: #9c9ca4; }
.sp-head .sw { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.sp-head .sw > span { display: inline-block; }
.sp-lock { inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.4cqw; text-align: center; }
.sp-lock .brand-logo { height: 4.2cqw; color: var(--text); }
.sp-lock b { font-weight: 430; font-size: 9cqw; line-height: .85; letter-spacing: -.06em; color: var(--text); }
.sp-lock .mono { color: #8b8b93; font-size: 1cqw; }
.sp-soon { padding: .35cqw .8cqw .3cqw; background: var(--text); color: var(--bg) !important; font-size: .9cqw; }
/* the player: play, a track with its chapters */
.tuto-ctrl { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; padding: 14px 16px 34px; border-top: 1px solid var(--rec); background: var(--bg); }
.tuto-play { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.tuto-play i { width: 10px; height: 12px; border-left: 3px solid var(--text); border-right: 3px solid var(--text); }
.tuto-play.paused i { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--text); margin-left: 3px; }
.tuto-track { position: relative; height: 16px; cursor: pointer; }
.tuto-track::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--rec); }
.tuto-fill { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; }
.tuto-chapters { position: absolute; left: calc(16px + 44px + 14px); right: 16px; bottom: 10px; height: 16px; }
.tuto-chapters button { position: absolute; top: 0; color: var(--label); white-space: nowrap; font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color .3s; }
.tuto-chapters button::before { content: ""; position: absolute; left: 0; top: -19px; width: 1px; height: 10px; background: var(--line-strong); }
.tuto-chapters button b { font-weight: 500; }
.tuto-chapters button:hover, .tuto-chapters button.on { color: var(--text); }
.tuto-chapters button.on b { color: var(--accent); }
@media (max-width: 820px) { .tuto-chapters button:not(.on) { font-size: 0; } .tuto-chapters button:not(.on) b { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .sp-car { animation: none; } }
/* the film keeps its 16:9, and its whole frame, bar and player included, fits the screen under the nav */
.mcp-page .tuto-frame { width: min(100%, max(320px, calc((100svh - 245px) * 16 / 9))); margin-left: auto; margin-right: auto; }
