Files

393 lines
34 KiB
CSS

/* /agents/<page> (prefix xag-), on Hanzo's deck (docs/build-notes/MASTER.md ยง3): monochrome, Zen 497 headings, sizes from
12 13 14 16 17 21 26 32 44 52 64; container 1152, 13 columns split 5/8; section air clamp(72px, 11vw, 188px);
radii 24 tiles, 20 art, 6 chips, full buttons; only floating things cast a shadow. One big thing per screen. */
.xag {
--ink: #0a0a0a; --muted: #525252; --xag-soft: #525252; --quiet: #737373; --tile: #f5f5f5; --tile-2: #f2f2f2; --track: #d4d4d4;
--line: rgba(0, 0, 0, .1); --black: #000; --graphite: #171717; --on-black: #fafafa; --on-black-2: rgba(255, 255, 255, .78);
--on-black-3: rgba(255, 255, 255, .55); --on-black-line: rgba(255, 255, 255, .1);
--e-out: cubic-bezier(0, 0, .2, 1); --e-move: cubic-bezier(.4, 0, .2, 1); --e-in: cubic-bezier(.16, 1, .3, 1);
--t-press: 90ms; --t-fast: 150ms; --t-base: 300ms; --t-slow: 400ms;
--gut: clamp(16px, 4vw, 32px); --air: clamp(72px, 11vw, 188px);
position: relative; background: var(--bg); color: var(--ink);
}
/* dark mode (docs/DARK-MODE.md): the page's own ramp points at Hanzo's tokens; the black and graphite rooms stay as they
are. Page tokens resolved at <html> (--x-fill, --bg) are used where this page's own names shadow Hanzo's (--muted, --line). */
html:not(.light) .xag {
--ink: var(--foreground); --muted: var(--x-fill); --xag-soft: var(--muted-foreground); --quiet: var(--text-tertiary); --tile: var(--x-fill);
--tile-2: var(--secondary); --track: var(--border-strong); --line: var(--border);
--btn-solid-hover: var(--primary-hover);
}
/* the room's screenshot in its day state is a picture of Hanzo's bright room: it keeps its bright ramp */
html:not(.light) .xag-shot:not([data-night]) { --ink: #0a0a0a; --tile: #f5f5f5; --line: rgba(0, 0, 0, .1); }
.xag-first { position: absolute; top: 0; left: 0; width: 1px; height: 100svh; pointer-events: none; visibility: hidden; } /* the first screen, for the ask bar */
.xag-wrap { width: min(100% - var(--gut) * 2, 1152px); margin-inline: auto; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: 27px; }
.xag-wrap > * { grid-column: 1 / -1; }
.xag-sec { padding: var(--air) 0; position: relative; }
/* type */
.xag-h1 { font-size: 52px; font-weight: 497; line-height: 1; letter-spacing: -.03em; margin: 0; max-width: 14ch; text-wrap: balance; }
.xag-h2 { font-size: 26px; font-weight: 497; line-height: 1.15; letter-spacing: -.02em; margin: 0; max-width: 18ch; text-wrap: balance; }
.xag-h3 { font-size: 17px; font-weight: 606; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 10px; }
.xag-kick { font: 500 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); margin: 0; }
.xag-kick.under { margin-top: 14px; } /* a label sits under its headline, never above */
.xag-meta { margin: 14px 0 0; font: 500 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.xag-lede { font-size: 21px; line-height: 1.4; color: var(--xag-soft); margin: 27px 0 0; max-width: 34ch; text-wrap: pretty; }
.xag-body { font-size: 16px; line-height: 1.6; color: var(--xag-soft); margin: 0; max-width: 64ch; text-wrap: pretty; }
.xag-cap { font: 400 13px/1.4 var(--mono); color: var(--quiet); margin: 17px 0 0; }
.xag-head .xag-lede { margin-top: 17px; }
/* the page's one reveal: the h1 cuts into its line on arrival (CSS from first paint, only under html.js; the server
HTML has it set). No other heading, lede or section fades or rises in */
@media (prefers-reduced-motion: no-preference) {
.js .xag-cut { animation: xag-cut 1.1s var(--e-in) .08s both; }
}
@keyframes xag-cut { from { transform: translateY(110%); } to { transform: none; } }
.xag { --btn-solid-hover: #262626; } /* the deck's hover for the solid ask (dark rooms set their own) */
/* actions: one solid ask (the kit Cta), the rest text links whose chevron nudges */
.xag-acts { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-top: 27px; align-items: center; }
.xag-ask { gap: 10px; }
.xag-ask svg { transition: transform var(--t-fast) var(--e-out); }
@media (hover: hover) { .xag-ask:hover svg { transform: translateX(3px); } }
.xag-tl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-size: 16px; font-weight: 606; color: var(--ink); text-decoration: none; }
.xag-tl svg { transition: transform var(--t-fast) var(--e-out); }
@media (hover: hover) { .xag-tl:hover svg { transform: translateX(3px); } .xag-tl:hover span { text-decoration: underline; text-underline-offset: 3px; } }
.xag-tl:active { transform: translateY(1px); transition: transform var(--t-press); }
/* ---------- the signature: split screen. The object holds still (sticky) in the right eight columns; the steps scroll in
the left five and each one, as its middle crosses the screen's middle, changes the object. Inactive steps rest at
the quiet grey so the one in charge reads; a column of pips beside the object counts the steps ---------- */
.xag-split { position: relative; }
.xag-split-g { padding: 0 0 12svh; align-items: start; }
.xag-step { grid-column: 1 / span 5; min-height: 78svh; display: flex; flex-direction: column; justify-content: center; padding: 44px 0; transition: opacity var(--t-slow) var(--e-move); }
.xag-step-0 { min-height: 100svh; padding-top: 112px; }
.xag-still { grid-column: 6 / span 8; grid-row: 1 / span 20; position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding-top: 60px; }
.xag-still-i { position: relative; display: grid; place-items: center; width: 100%; }
.js .xag-step:not([data-on]) { opacity: .28; }
.js .xag-step:not([data-on]):focus-within { opacity: 1; }
.xag-pips { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; z-index: 2; }
.xag-pips li { width: 3px; height: 14px; border-radius: 2px; background: var(--track); transition: background-color var(--t-base) var(--e-out), height var(--t-base) var(--e-move); }
.xag-pips li[data-on] { background: var(--ink); height: 28px; }
.xag-art { position: absolute; inset: -12% -10%; color: var(--quiet); opacity: .4; pointer-events: none; z-index: 0; }
.xag-sigil { width: 100%; height: 100%; display: block; }
.xag-still-i > :not(.xag-art) { position: relative; z-index: 1; }
/* SDK: the still side has two views, the console and the install terminal, crossing over as the step changes */
.xag-views { display: grid; width: min(100%, 620px); }
.xag-view { grid-area: 1 / 1; align-self: center; transition: opacity var(--t-slow) var(--e-move), transform var(--t-slow) var(--e-move); }
.xag-views[data-view='con'] .xag-view-term, .xag-views[data-view='term'] .xag-view-con { opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; }
.xag-view-term .xag-term { margin: 0; }
.xag-pil-h { margin-bottom: 44px; }
.xag-pil { display: grid; grid-template-columns: auto 1fr; column-gap: 27px; row-gap: 10px; align-items: baseline; }
.xag-pil .xag-sheet-n { grid-row: 1 / span 2; font: 220 64px/1 var(--mono); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.xag-pil .xag-h3 { margin: 0; }
.xag-pil .xag-body { grid-column: 2; }
/* ---------- Crew: ten seats on a ring, the turn passing round ---------- */
.xag-ring { --R: clamp(160px, 15vw, 214px); --s: min(clamp(60px, 5.4vw, 76px), calc(var(--R) * 6.2832 / var(--n, 10) * .86)); /* seats never overlap, however long the roster */ position: relative; width: calc(var(--R) * 2 + var(--s)); aspect-ratio: 1; }
.xag-orbit { position: absolute; inset: calc(var(--s) / 2); border-radius: 50%; border: 1px solid var(--line); }
.xag-seat { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; transform: rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1)); transition: opacity var(--t-base) var(--e-out); }
.xag-face { --fs: 100%; position: relative; display: grid; place-items: center; align-content: center; width: var(--fs); height: var(--fs); border-radius: 50%; overflow: hidden; flex: none; background: var(--tile-2); color: var(--ink); box-shadow: 0 0 0 3px var(--bg); transition: transform var(--t-slow) var(--e-move), box-shadow var(--t-fast) var(--e-out), background-color var(--t-base) var(--e-out), color var(--t-base) var(--e-out); }
.xag-face[data-tone='b'] { background: light-dark(#e5e5e5, var(--border-strong)); }
.xag-face b { font-size: 26px; font-weight: 497; line-height: 1; letter-spacing: -.02em; }
.xag-face-m { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; opacity: .28; transition: opacity var(--t-base) var(--e-out); }
.xag-face-dot { fill: currentColor; stroke: none; }
.xag-face i { position: absolute; inset: 0; background-size: cover; background-position: center; }
.xag-seat[data-on] .xag-face { transform: scale(1.12); background: var(--ink); color: var(--x-on-ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.xag-seat[data-on] .xag-face-m { opacity: .5; }
@media (hover: hover) { .xag-seat:hover .xag-face { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); } }
.xag-seat:active .xag-face { transform: scale(.97); transition-duration: var(--t-press); }
.xag-seat[data-dim] { opacity: .22; }
.xag-seat:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.xag-baton { position: absolute; inset: 0; pointer-events: none; }
.xag-baton i { position: absolute; left: 50%; top: calc(var(--s) + 6px); width: 1px; height: calc(var(--R) - var(--s) - 80px); background: linear-gradient(var(--ink), rgba(255, 255, 255, 0)); }
.xag-hub { position: absolute; left: 50%; top: 50%; width: 220px; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 6px; justify-items: center; }
.xag-hub b { display: block; font-size: 32px; font-weight: 497; letter-spacing: -.02em; line-height: 1.05; }
.xag-hub span { display: block; min-height: 2.8em; font-size: 14px; line-height: 1.4; color: var(--xag-soft); max-width: 22ch; }
.xag-hub .xag-hub-n { min-height: 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--quiet); }
.xag-find { margin-top: 27px; max-width: 420px; }
.xag-find .x-field { margin: 0; }
.xag-find-box { position: relative; }
.xag-find-box .x-input2 { width: 100%; padding-right: 52px; }
.xag-find-box .x-input2::-webkit-search-cancel-button, .xag-find-box .x-input2::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.xag-clear { position: absolute; right: 2px; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--xag-soft); cursor: pointer; transition: background-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out); }
.xag-clear[hidden] { display: none; }
@media (hover: hover) { .xag-clear:hover { background: var(--tile); color: var(--ink); } }
.xag-clear:active { transform: scale(.97); transition: transform var(--t-press); }
.xag-clear:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.xag-find-n { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font-size: 16px; font-weight: 606; }
.xag-find-n .xag-face { --fs: 28px; box-shadow: none; }
.xag-find-n .xag-face b { font-size: 13px; }
.xag-find-n em { font-style: normal; font-weight: 400; color: var(--xag-soft); }
.xag-find-n kbd { margin-left: auto; font: 500 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--tile); color: var(--xag-soft); }
/* the Bots room: the crew's one black room */
.xag-room { background: var(--black); color: var(--on-black); }
.xag-room .xag-kick, .xag-room .xag-cap { color: var(--on-black-3); }
.xag-room .xag-lede { color: var(--on-black-2); margin-top: 0; }
.xag-room .xag-h2 { color: var(--on-black); }
.xag-room-h { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: 27px; align-items: end; margin-bottom: 44px; }
.xag-room-h > div:first-child { grid-column: 1 / span 5; }
.xag-room-r { grid-column: 6 / span 8; }
.xag-room-r .xag-acts { margin-top: 17px; }
.xag-room .xag-tl { color: var(--on-black); }
.xag-shot { margin: 0; border-radius: 20px; overflow: hidden; background: var(--graphite); }
.xag-shot-bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 17px; border-bottom: 1px solid var(--on-black-line); color: var(--on-black-2); }
.xag-shot:not([data-night]) .xag-shot-bar { background: var(--tile); color: var(--ink); border-color: var(--line); }
.xag-dots { display: inline-flex; gap: 6px; } .xag-dots i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .3; }
.xag-url { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto; padding: 6px 12px; border-radius: 6px; background: var(--on-black-line); font-size: 13px; }
.xag-shot:not([data-night]) .xag-url { background: #fff; }
.xag-live { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.xag-night { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 606 13px/1 var(--sans); cursor: pointer; transition: background-color var(--t-fast) var(--e-out); }
@media (hover: hover) { .xag-night:hover { background: var(--on-black-line); } .xag-shot:not([data-night]) .xag-night:hover { background: var(--line); } }
.xag-night:active { transform: scale(.97); transition: transform var(--t-press); }
/* the window takes the screenshot's shape only once Hanzo's picture has loaded ([data-pic]); until then it is exactly as
tall as the room drawn from the picture's own description, so there is no empty pane */
.xag-shot-i { position: relative; overflow: hidden; }
.xag-shot-i[data-pic] { aspect-ratio: 2304 / 1440; }
.xag-shot-p { position: absolute; inset: 0; background-size: cover; background-position: top center; }
.xag-shot-i:not([data-pic]) .xag-shot-p { display: none; }
/* the room: each state has its own ink ramp. Dark: #fafafa / white 78% / 55% on graphite. Light: #0a0a0a / #525252 on white */
.xag-sk { --sk-ink: var(--on-black); --sk-2: var(--on-black-2); --sk-3: var(--on-black-3); --sk-fill: var(--on-black-line); --sk-line: var(--on-black-line);
position: relative; display: grid; grid-template-columns: 22% 1fr; font-size: 14px; color: var(--sk-ink); }
.xag-shot-i[data-pic] .xag-sk { position: absolute; inset: 0; }
.xag-shot:not([data-night]) .xag-shot-i { background: #fff; }
.xag-shot:not([data-night]) .xag-sk { --sk-ink: #0a0a0a; --sk-2: #525252; --sk-3: #525252; --sk-fill: #f5f5f5; --sk-line: rgba(0, 0, 0, .1); }
.xag-sk aside { display: flex; flex-direction: column; gap: 2px; padding: 20px 12px; border-right: 1px solid var(--sk-line); }
.xag-sk aside span { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--sk-2); transition: background-color var(--t-base) var(--e-out), color var(--t-base) var(--e-out); }
.xag-sk aside span[data-on] { background: var(--sk-fill); color: var(--sk-ink); font-weight: 606; }
.xag-sk-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; opacity: .7; }
.xag-sk aside span[data-on] .xag-sk-dot { background: currentColor; opacity: 1; }
.xag-sk-m { padding: 28px 44px 32px; display: flex; flex-direction: column; }
.xag-sk-h { margin: 0 0 27px; }
.xag-sk-h p { margin: 0; font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.15; color: var(--sk-ink); }
.xag-sk-h span { display: block; margin-top: 4px; font-size: 14px; color: var(--sk-2); }
.xag-sk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xag-sk li { display: flex; justify-content: space-between; align-items: center; padding: 14px 17px; border-radius: 12px; background: var(--sk-fill); color: var(--sk-ink); }
.xag-sk li em { font-style: normal; font-size: 12px; color: var(--sk-3); letter-spacing: .14em; text-transform: uppercase; }
.xag-sk-box { margin: 27px 0 0; padding: 17px; border-radius: 12px; border: 1px solid var(--sk-line); color: var(--sk-2); }
.xag-sk-box::before { content: 'โ†’ '; }
/* "Or build your own.": one big row, the crew's size rolling up at its start */
.xag-build-a { display: flex; align-items: center; gap: 27px; padding: 27px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.xag-build-n { flex: none; font: 220 64px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--quiet); }
.xag-build-t { flex: 1; font-size: 44px; font-weight: 497; line-height: 1.05; letter-spacing: -.03em; }
.xag-build-a svg { width: 44px; height: auto; flex: none; transition: transform var(--t-fast) var(--e-out); }
@media (hover: hover) { .xag-build-a:hover svg { transform: translateX(6px); } .xag-build-a:hover .xag-build-n { color: var(--ink); } }
.xag-build-a:active { transform: translateY(1px); }
/* the roll call (the split's last step): the crew in type, hairline rows; the row in charge is ink, the rest grey */
.xag-mates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xag-mates li { border-bottom: 1px solid var(--line); }
.xag-mate { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; min-height: 44px; text-decoration: none; color: var(--quiet); transition: color var(--t-base) var(--e-out); }
.xag-mate-n { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 497; letter-spacing: -.01em; line-height: 1.2; }
.xag-mate-n svg { opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out); }
.xag-mate-r { font-size: 14px; line-height: 1.4; color: var(--quiet); }
.xag-mates li[data-on] .xag-mate { color: var(--ink); }
.xag-mates li[data-on] .xag-mate-r { color: var(--xag-soft); }
.xag-mates li[data-on] .xag-mate-n svg { opacity: 1; transform: none; }
@media (hover: hover) { .xag-mate:hover { color: var(--ink); } .xag-mate:hover .xag-mate-n svg { opacity: 1; transform: translateX(3px); } }
.xag-mate:active { transform: translateY(1px); }
.xag-mate:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
/* ---------- SDK: the console, real product UI on a white tile with a hairline ---------- */
.xag-con { margin: 0; width: min(100%, 620px); }
.xag-win { border-radius: 24px; background: var(--x-raised); overflow: hidden; border: 1px solid var(--line); }
.xag-win-bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 17px; border-bottom: 1px solid var(--line); color: var(--quiet); }
.xag-win-t { display: inline-block; font-size: 14px; color: var(--xag-soft); text-decoration: none; }
@media (hover: hover) { a.xag-win-t:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
a.xag-win-t:active { transform: translateY(1px); }
.xag-turn { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tile); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.xag-turn i { font-style: normal; padding: 6px 10px; border-radius: 999px; color: var(--quiet); transition: background-color var(--t-base) var(--e-out), color var(--t-base) var(--e-out); }
.xag-turn i[data-on] { background: var(--ink); color: var(--x-on-ink); }
.xag-win-g { display: grid; grid-template-columns: 144px 1fr; min-height: 330px; }
.xag-win-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line); background: var(--tile); }
.xag-win-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--xag-soft); text-decoration: none; font-size: 14px; transition: background-color var(--t-fast) var(--e-out); }
.xag-win-nav em { font-style: normal; }
.xag-win-nav a[aria-current] { background: var(--ink); color: var(--x-on-ink); }
@media (hover: hover) { .xag-win-nav a:not([aria-current]):hover { background: var(--x-raised); color: var(--ink); } }
.xag-win-nav a:active { transform: scale(.97); transition: transform var(--t-press); }
.xag-turns { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.xag-turns li { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--e-in), transform var(--t-slow) var(--e-in); }
.xag-turns li[data-seen] { opacity: 1; transform: none; }
.xag-turns li[data-who='you'] { align-self: flex-end; max-width: 86%; }
.xag-turns li[data-who='enso'] { max-width: 94%; }
.xag-turns button { position: relative; display: flex; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--tile); color: var(--ink); text-align: left; font: 400 16px/1.5 var(--sans); cursor: pointer; transition: background-color var(--t-fast) var(--e-out); }
.xag-turns li[data-who='you'] button { background: var(--ink); color: var(--x-on-ink); }
@media (hover: hover) { .xag-turns li[data-who='enso'] button:hover { background: var(--tile-2); } .xag-turns li[data-who='you'] button:hover { background: light-dark(#262626, var(--primary-hover)); } }
.xag-turns button:active { transform: scale(.97); transition: transform var(--t-press); }
.xag-who { flex: none; color: var(--quiet); }
.xag-turns li[data-who='you'] .xag-who { color: var(--on-black-3); }
html:not(.light) .xag-turns li[data-who='you'] .xag-who { color: var(--x-on-ink); opacity: .6; }
.xag-hold { position: absolute; inset: -4px; border-radius: 20px; border: 1.5px solid var(--ink); pointer-events: none; }
.xag-think { display: flex; gap: 5px; padding: 6px 16px; }
.xag-think[data-on] { opacity: 1; transform: none; }
.xag-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--quiet); animation: xag-dot 1s var(--e-move) infinite; }
.xag-think i:nth-child(2) { animation-delay: .15s; } .xag-think i:nth-child(3) { animation-delay: .3s; }
.xag-win-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 17px; border-top: 1px solid var(--line); font-size: 13px; }
.xag-win-foot code { color: var(--xag-soft); font-family: var(--mono); }
.xag-open { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 606; font-size: 14px; }
.xag-open i { font-style: normal; display: inline-block; transition: transform var(--t-fast) var(--e-out); }
@media (hover: hover) { .xag-open:hover i { transform: translate(2px, -2px); } }
.xag-open:active { transform: translateY(1px); }
.xag-con .xag-cap { text-align: center; }
.xag-lede-b { color: var(--ink); margin-top: 0; }
.xag-inst { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 27px; padding: 6px; border-radius: 999px; background: var(--graphite); color: var(--on-black); width: fit-content; max-width: 100%; }
.xag-inst-r { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--on-black-line); }
.xag-inst-r button { position: relative; min-height: 38px; min-width: 64px; padding: 0 14px; border: 0; background: none; color: var(--on-black-3); font: 500 13px/1 var(--mono); cursor: pointer; border-radius: 999px; transition: color var(--t-fast) var(--e-out); }
@media (hover: hover) { .xag-inst-r button:hover { color: var(--on-black); background: var(--on-black-line); } }
.xag-inst-r button:active { transform: scale(.97); transition: transform var(--t-press); }
.xag-inst-r button[aria-checked='true'] { color: var(--ink); }
html:not(.light) .xag-inst-r button[aria-checked='true'] { color: #0a0a0a; } /* on the white knob of the graphite bar, as in bright */
.xag-inst-r button span { position: relative; }
.xag-inst-r button i { position: absolute; inset: 0; border-radius: 999px; background: var(--on-black); }
.xag-inst-c { font: 400 14px/1.4 var(--mono); padding: 0 6px; white-space: nowrap; }
.xag-inst .x-copy { min-height: 44px; font-size: 13px; background: transparent; border-color: var(--on-black-line); color: var(--on-black-2); }
@media (hover: hover) { .xag-inst .x-copy:hover { color: var(--on-black); background: var(--on-black-line); } }
.xag-inst .x-copy:active { transform: scale(.97); }
.xag-note { font-size: 14px; line-height: 1.55; color: var(--xag-soft); max-width: 54ch; margin: 17px 0 0; }
.xag-thru { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 17px 0 0; }
.xag-thru .x-mono { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); margin-right: 6px; }
.xag-thru-c { padding: 6px 10px; border-radius: 6px; background: var(--tile); font-size: 13px; }
/* parts: one open at a time beside the contour, which is redrawn for the open part */
.xag-spec-h { grid-column: 1 / span 5; align-self: start; }
.xag-spec-art { position: relative; margin-top: 44px; aspect-ratio: 1; max-width: 360px; border-radius: 24px; background: var(--tile); color: var(--quiet); overflow: hidden; touch-action: pan-y; cursor: grab; }
.xag-spec-art:active { cursor: grabbing; }
.xag-spec-tag { position: absolute; left: 20px; bottom: 18px; font-size: 12px; letter-spacing: .14em; color: var(--xag-soft); }
.xag-spec-l { grid-column: 6 / span 8; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xag-spec-l > li { border-bottom: 1px solid var(--line); }
.xag-spec-t { margin: 0; }
.xag-spec-t button { display: grid; grid-template-columns: 44px 1fr 16px; align-items: baseline; width: 100%; min-height: 64px; padding: 20px 0; border: 0; background: none; text-align: left; color: var(--quiet); font: 606 17px/1.3 var(--sans); cursor: pointer; transition: color var(--t-base) var(--e-out); }
.xag-spec-t .x-mono { font-size: 12px; font-weight: 500; letter-spacing: .14em; }
.xag-spec-t i { width: 12px; height: 12px; align-self: center; position: relative; }
.xag-spec-t i::before, .xag-spec-t i::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 1.5px; background: currentColor; transition: transform var(--t-base) var(--e-move); }
.xag-spec-t i::after { transform: rotate(90deg); }
.xag-spec-l li[data-open] .xag-spec-t button { color: var(--ink); }
.xag-spec-l li[data-open] .xag-spec-t i::after { transform: rotate(0deg); }
@media (hover: hover) { .xag-spec-t button:hover { color: var(--ink); } }
.xag-spec-t button:active { transform: translateY(1px); }
.xag-spec-t button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.xag-spec-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--e-move); }
.xag-spec-p > div { overflow: hidden; }
.xag-spec-p .xag-body { padding: 0 0 27px 44px; }
.xag-spec-l li[data-open] .xag-spec-p, html:not(.js) .xag-spec-p { grid-template-rows: 1fr; }
/* code: the SDK's graphite room, the kit's CodeBlock as its object */
.xag-code { background: var(--graphite); color: var(--on-black); }
.xag-code .xag-kick { color: var(--on-black-3); }
.xag-code .xag-h2 { color: var(--on-black); }
.xag-code .xag-tl { color: var(--on-black); }
.xag-code-h { grid-column: 1 / span 5; align-self: start; position: sticky; top: 116px; } /* the heading opens level with the code's top */
.xag-code-h .xag-h2 { margin-top: -4px; }
.xag-pre { grid-column: 6 / span 8; margin: 0; border-radius: 20px; }
/* close */
.xag-close-t { font-size: 44px; font-weight: 497; line-height: 1.05; letter-spacing: -.03em; margin: 0; max-width: 16ch; text-wrap: balance; }
.xag-close-g { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: 27px; align-items: end; margin-top: 27px; }
.xag-close-l { grid-column: 1 / span 8; }
.xag-close-l .xag-lede { margin: 0; }
.xag-term { margin: 0; border-radius: 24px; background: var(--graphite); overflow: hidden; color: var(--on-black); }
.xag-roll { display: inline-flex; }
.xag-roll > span[aria-hidden] { display: inline-flex; }
.xag-roll b { display: inline-block; height: 1.15em; overflow: hidden; font-weight: inherit; }
.xag-roll b > span { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1.15em)); transition: transform .9s var(--e-in) calc(var(--k) * 80ms); }
.xag-roll b i { display: block; height: 1.15em; line-height: 1.15em; font-style: normal; }
.xag-roll em { font-style: normal; }
/* ---------- entrances: the final state is the default; the start pose only under html.js until [data-in] ---------- */
@media (prefers-reduced-motion: no-preference) {
/* spring-snap: snaps in from the left, overshoots, settles */
.js [data-ent='spring-snap']:not([data-in]) { transform: translateX(-72px); opacity: 0; }
.js [data-ent='spring-snap'][data-in] { animation: xag-spring .72s cubic-bezier(.2, .9, .3, 1) both; }
/* invert-flash: arrives as its own negative for a beat, then normal */
.js [data-ent='invert-flash'][data-in] { animation: xag-invert .62s steps(1, end) both, xag-invert-fade .62s var(--e-out) both; }
/* inertia-drag: thrown in from the right, decelerating as if let go; then it can be grabbed and thrown again */
.js [data-ent='inertia-drag']:not([data-in]) { transform: translateX(160px); opacity: 0; }
.js [data-ent='inertia-drag'][data-in] { animation: xag-throw .85s cubic-bezier(.05, .7, .1, 1) both; }
/* count-roll: the digits sit at 0 until the section arrives, then roll up to their value */
.js [data-ent='count-roll']:not([data-in]) .xag-roll b > span { transform: none; }
}
@keyframes xag-spring { 0% { transform: translateX(-72px); opacity: 0; } 55% { transform: translateX(10px); opacity: 1; } 78% { transform: translateX(-4px); } 100% { transform: none; opacity: 1; } }
@keyframes xag-invert { 0% { filter: invert(1); } 40% { filter: invert(0); } 100% { filter: none; } }
@keyframes xag-invert-fade { from { opacity: .4; } to { opacity: 1; } }
@keyframes xag-throw { 0% { transform: translateX(160px); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; opacity: 1; } }
[data-ent='invert-flash'] { background: inherit; }
.xag-step [data-ent='invert-flash'] { background: var(--bg); }
.xag-throw { touch-action: pan-y; cursor: grab; }
.xag-throw:active { cursor: grabbing; }
.xag-pre-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 17px; border-bottom: 1px solid var(--on-black-line); color: var(--on-black-3); }
.xag-term .xag-inst { margin: 0; width: 100%; border-radius: 0; padding: 22px 17px 27px; background: transparent; }
.xag-term .xag-inst-c { font-size: 16px; flex: 1 1 auto; }
.xag-get { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 17px 27px; margin-top: 116px; padding-top: 27px; border-top: 1px solid var(--line); }
.xag-get-t { font-size: 26px; font-weight: 497; margin: 0 0 6px; }
.xag-get p { margin: 0; color: var(--xag-soft); font-size: 16px; }
.xag-get-c { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.xag-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 6px; background: var(--tile); font: 400 13px/1 var(--mono); color: var(--ink); text-decoration: none; transition: background-color var(--t-fast) var(--e-out); }
.xag-chip span { color: var(--quiet); }
@media (hover: hover) { a.xag-chip:hover { background: var(--tile-2); text-decoration: underline; text-underline-offset: 3px; } }
a.xag-chip:active { transform: translateY(1px); }
@keyframes xag-dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 899px) {
.xag-wrap { grid-template-columns: minmax(0, 1fr); }
.xag-wrap > *, .xag-step, .xag-still, .xag-room-h > div, .xag-room-r, .xag-close-l, .xag-code-h, .xag-pre,
.xag-spec-h, .xag-spec-l { grid-column: 1 / -1 !important; }
.xag-first { height: 56svh; } /* on a phone the hero ask leaves view about here: the bar takes over from it */
/* the split on a phone: the headline reads first; then the object sticks under the header (a white band, 46svh)
while the other steps scroll up beneath it and change it */
.xag-split-g { padding-bottom: 8svh; }
.xag-step-0 { grid-row: 1; min-height: 0; padding: 96px 0 27px; }
.xag-still { grid-row: 2; position: sticky; top: 56px; height: 46svh; padding: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); }
.xag-still-i { height: 100%; overflow: hidden; }
.xag-step { min-height: 64svh; padding: 27px 0; justify-content: flex-start; }
.xag-pips { right: 0; gap: 6px; }
.xag-pips li { height: 10px; } .xag-pips li[data-on] { height: 20px; }
.xag-split[data-kind='sdk'] .xag-views { width: 140%; transform: scale(.714); transform-origin: top center; align-self: start; margin-top: 10px; }
.xag-h1 { font-size: 40px; }
.xag-lede { font-size: 17px; margin-top: 17px; }
.xag-ring { --R: 128px; --s: min(46px, calc(var(--R) * 6.2832 / var(--n, 10) * .86)); }
.xag-seat::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; } /* a finger-sized hit area round each small seat */
.xag-face b { font-size: 18px; }
.xag-baton i { height: calc(var(--R) - var(--s) - 44px); }
.xag-hub { width: 132px; }
.xag-hub b { font-size: 21px; }
.xag-hub span { font-size: 13px; min-height: 2.6em; }
.xag-pil .xag-sheet-n { font-size: 44px; }
.xag-mate-n { font-size: 17px; }
.xag-con { width: 100%; }
.xag-win-g { grid-template-columns: 1fr; }
.xag-win-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
.xag-win-nav a { flex: none; min-height: 44px; }
.xag-turns { padding: 16px; min-height: 280px; }
.xag-turn { display: none; }
.xag-inst { width: 100%; border-radius: 24px; }
.xag-inst-c { white-space: normal; flex: 1 1 100%; padding: 6px; }
.xag-room-h, .xag-close-g { grid-template-columns: 1fr; row-gap: 17px; }
.xag-shot { border-radius: 20px; }
.xag-shot-i[data-pic] { aspect-ratio: 4 / 5; }
.xag-shot-p { background-position: top left; background-size: auto 100%; }
.xag-sk { grid-template-columns: 1fr; }
.xag-sk aside { display: none; }
.xag-sk-m { padding: 20px 16px; }
.xag-url { font-size: 12px; }
.xag-night-t { display: none; }
.xag-spec-h { margin-bottom: 27px; }
.xag-spec-art { max-width: none; aspect-ratio: 16 / 9; margin-top: 27px; }
.xag-spec-p .xag-body { padding-left: 0; }
.xag-code-h { margin-bottom: 27px; position: static; }
.xag-close-t, .xag-build-t { font-size: 32px; }
.xag-build-a { gap: 17px; }
.xag-build-n { font-size: 32px; }
.xag-build-a svg { width: 32px; }
.xag-get { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
.xag-think i { animation: none !important; }
.xag-turns li { transition: none; }
}