Files

634 lines
55 KiB
CSS

/* Hanzo Chat v4. Greys only (JAMES.md 7): ink #171717, secondary #404040, muted #737373, raised #f5f5f5, hairlines.
One dark middle room (the six tools) and a dark close. Colour arrives only through Hanzo's model artwork.
Every entrance here is CSS that starts with the first paint (nothing waits for JS to be seen). */
.cht { --ink: #0a0a0a; --mute: #525252; --raise: #f5f5f5; --hair: rgba(0, 0, 0, .08); --xs: 13px; --emph: cubic-bezier(.16, 1, .3, 1); }
@media (max-width: 900px) { .cht { --xs: 14px; } }
/* the one ask is the kit's Cta; its text secondary is a link in ink with a 1px underline (MASTER 3.1) */
.cht .x-arrow { color: #0a0a0a; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .3); min-height: 44px; transition: text-underline-offset .2s var(--emph), text-decoration-color .2s, transform .09s; }
.cht .x-arrow svg { transition: transform .2s var(--emph); }
.x-band .x-arrow { color: #fafafa; text-decoration-color: rgba(255, 255, 255, .4); }
@media (min-width: 901px) {
.cht .x-arrow:hover { text-decoration-color: currentColor; text-underline-offset: 5px; }
.cht .x-arrow:hover svg { transform: translateX(4px); }
}
/* the hand-off: a pressed, busy ask for ~320 ms before it leaves (the ring comes from system.css) */
.cht a[data-leaving].x-btn { transform: scale(.98); }
.cht .cht-tools .x-copy:active { transform: scale(.98) !important; }
/* ---------- 1. hero: headline left, the whole window right ---------- */
.cht-hero { position: relative; padding: clamp(28px, 3vw, 44px) 0 clamp(120px, 12vw, 200px); overflow: hidden; }
.cht-hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 4vw, 64px); align-items: center; }
.cht-copy { padding-bottom: 24px; }
.cht-lede { margin: 26px 0 0; max-width: 30ch; color: #404040; }
.cht-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }
.cht-win-wrap { position: relative; min-width: 0; animation: cht-win-in 1.1s var(--emph) .05s 1 both; }
/* the line-mask cut-in, 700 ms, 60 ms apart (MASTER part 3), running from the first paint */
.cht-cut { animation: cht-cut .7s var(--emph) 1 both; animation-delay: calc(.05s + var(--i) * 60ms); }
.cht-up { animation: cht-in .6s var(--emph) 1 both; animation-delay: var(--d, 0s); }
@keyframes cht-cut { from { transform: translateY(105%); } }
@keyframes cht-win-in { from { transform: translateX(48px); } } /* painted from the first frame: it only slides */
@keyframes cht-win-up { from { transform: translateY(24px); } }
/* the window, at 100% */
.cht-win { border-radius: 28px; background: #fff; border: 1px solid rgba(0, 0, 0, .1); box-shadow: 0 80px 140px -70px rgba(0, 0, 0, .4), 0 30px 60px -40px rgba(0, 0, 0, .16), 0 1px 2px rgba(0, 0, 0, .03); overflow: hidden; }
.cht-bar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 6px 0 20px; background: #fbfbfb; border-bottom: 1px solid var(--hair); }
.cht-dots3 { display: flex; gap: 7px; }
.cht-dots3 i { width: 12px; height: 12px; border-radius: 50%; background: #d4d4d4; }
.cht-name { margin: 0 0 0 8px; font: 500 var(--xs)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cht-ctl { width: 40px; height: 40px; margin-left: 4px; border-color: transparent; background: none; }
.cht-bar .cht-model { margin-left: auto; height: 30px; }
.cht-body { position: relative; display: grid; grid-template-columns: 244px minmax(0, 1fr) 280px; height: clamp(500px, calc(100svh - 168px), 700px); }
/* desktop: the recents are a drawer that slides over the chat (a state change, transform only) */
.cht-side-t { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; padding: 0; border: 0; border-radius: 10px; background: none; color: #404040; cursor: pointer; transition: background-color .2s, color .2s, transform .12s; }
.cht-side-t:active { transform: scale(.94); }
.cht-side-t[aria-expanded='true'] { background: #e9e9e9; color: var(--ink); }
.cht-side-t:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 901px) { .cht-side-t:hover { background: #ededed; color: var(--ink); } }
@media (min-width: 901px) {
.cht-body { grid-template-columns: minmax(0, 1fr) 280px; }
.cht-side { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 244px; transform: translateX(-102%); box-shadow: 24px 0 48px -32px rgba(0, 0, 0, .3); transition: transform .45s var(--emph); }
.cht-win.side .cht-side { transform: none; }
.cht-win:not(.side) .cht-side { visibility: hidden; transition: transform .45s var(--emph), visibility 0s .45s; }
}
.cht-side { display: flex; flex-direction: column; gap: 4px; min-height: 0; padding: 16px 12px; background: #f7f7f7; border-right: 1px solid var(--hair); }
.cht-new, .cht-find { display: flex; align-items: center; justify-content: flex-start; gap: 10px; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: none; font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer; text-align: left; transition: background-color .2s, transform .12s; }
.cht-new { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--hair); }
.cht-new span { font-size: 16px; color: var(--mute); }
.cht-find { color: #404040; }
.cht-new:active, .cht-find:active, .cht-recents button:active { transform: scale(.98); }
.cht-find-in { height: 40px; padding: 0 12px; border: 1px solid rgba(0, 0, 0, .16); border-radius: 12px; background: #fff; font: 400 16px/1 var(--sans); color: var(--ink); outline: none; }
.cht-find-in:focus { border-color: var(--ink); }
.cht-recents-k { margin: 18px 12px 6px; font: 500 var(--xs)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cht-recents { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; }
.cht-recents button { width: 100%; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: 400 14px/34px var(--sans); color: #404040; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background-color .2s, color .2s, transform .12s; }
.cht-recents button.on { background: #e9e9e9; color: var(--ink); font-weight: 500; }
@media (min-width: 901px) {
.cht-new:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .14); }
.cht-find:hover, .cht-recents button:hover { background: #ededed; color: var(--ink); }
}
.cht-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cht-model { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--raise); font: 600 14px/1 var(--sans); }
.cht-model img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cht-log { flex: 1; min-height: 0; overflow-y: auto; padding: 26px clamp(18px, 3vw, 44px) 12px; scrollbar-width: thin; }
.cht-msgs { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.cht-q { align-self: flex-end; max-width: 80%; padding: 11px 17px; border-radius: 20px 20px 6px 20px; background: var(--ink); color: #f5f5f5; font-size: 15.5px; line-height: 1.45; animation: cht-in .4s var(--emph) 1 both; }
.cht-a { align-self: flex-start; max-width: 94%; animation: cht-in .4s var(--emph) .08s 1 both; }
.cht-who { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; font: 500 var(--xs)/1 var(--mono); letter-spacing: .04em; color: var(--mute); }
.cht-who img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.cht-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; text-wrap: pretty; }
.cht-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: var(--ink); }
.cht-dots { display: inline-flex; gap: 5px; padding: 12px 0; }
.cht-a > .cht-dots { display: flex; width: max-content; padding: 4px 0 10px; }
.cht-dots i { width: 7px; height: 7px; border-radius: 50%; background: #a3a3a3; animation: cht-dot 1s var(--emph) infinite; }
.cht-dots i:nth-child(2) { animation-delay: .15s; } .cht-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cht-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
.cht-tools { display: flex; gap: 6px; margin-top: 10px; }
.cht-listen { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; color: #404040; font: 500 var(--xs)/1 var(--sans); cursor: pointer; transition: border-color .2s, color .2s, transform .12s; }
.cht-listen:active { transform: scale(.97); }
.cht-listen.on { color: var(--ink); border-color: var(--ink); }
@media (min-width: 901px) { .cht-listen:hover { color: var(--ink); border-color: rgba(0, 0, 0, .3); } }
.cht-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.cht-empty-t { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
.cht-composer { display: flex; align-items: center; gap: 8px; margin: 10px clamp(14px, 2.4vw, 32px) 20px; padding: 6px 6px 6px 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(0, 0, 0, .14); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .3); transition: border-color .25s, box-shadow .25s; }
.cht-composer:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .06), 0 12px 30px -18px rgba(0, 0, 0, .3); }
.cht-composer input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font: 400 16px/1 var(--sans); color: var(--ink); outline: none; }
.cht-composer input::placeholder { color: var(--mute); }
.cht-send { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 14px; background: var(--ink); color: #fff; cursor: pointer; transition: background-color .2s, transform .12s; }
.cht-send:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 901px) { .cht-send:hover { background: #404040; } }
.cht-send.busy svg { opacity: 0; }
.cht-send.busy::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: cht-spin .7s linear infinite; }
/* the router rail */
.cht-rail { display: flex; flex-direction: column; min-height: 0; padding: 16px 14px; background: #fbfbfb; border-left: 1px solid var(--hair); }
.cht-hub { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--hair); }
.cht-hub > span:last-child { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cht-hub b { font-size: 15px; font-weight: 600; }
.cht-hub > span:last-child span { font-size: 12px; letter-spacing: .04em; line-height: 1.35; color: var(--mute); }
.cht-hub-o { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; }
.cht-hub-o img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cht-hub-o::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--ink); opacity: 0; transition: opacity .3s; }
.cht-hub.busy .cht-hub-o::after { opacity: 1; animation: cht-spin .8s linear infinite; }
@keyframes cht-spin { to { transform: rotate(360deg); } }
.cht-lanes { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; position: relative; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.cht-lanes::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 18px; width: 1px; background: rgba(0, 0, 0, .1); }
.cht-lanes li { position: relative; height: 40px; border-radius: 12px; font-size: 14px; color: #404040; transition: color .2s, background-color .2s; }
.cht-lane-b { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 0 10px; border: 0; border-radius: inherit; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .12s; }
.cht-lane-b:active { transform: scale(.98); }
.cht-lane-b:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cht-lanes li.peek:not(.lit) { background: rgba(0, 0, 0, .05); color: var(--ink); }
.cht-peek { flex: none; margin: auto 0 0; padding: 12px 10px 2px; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.45; color: #404040; }
.cht-peek b { margin-right: 6px; font-weight: 600; color: var(--ink); }
.cht-peek a { margin-left: 6px; white-space: nowrap; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .22); text-underline-offset: 3px; display: inline-block; transition: text-underline-offset .2s var(--emph), text-decoration-color .2s, transform .2s var(--emph); }
@media (min-width: 901px) {
.cht-peek a:hover, .cht-who-go:hover { text-decoration-color: currentColor; text-underline-offset: 5px; transform: translateX(3px); }
.cht-ctl:hover { background: #ededed; }
}
/* the proof card idles: its picture drifts slowly while you rest on it */
.cht-pic img.on { animation: cht-kb 16s ease-in-out 1.2s infinite alternate; }
@keyframes cht-kb { from { transform: none; } to { transform: scale(1.06) translateX(-1.5%); } }
.cht-lanes li::before { content: ''; position: absolute; left: -12px; top: 50%; width: 10px; height: 1px; background: rgba(0, 0, 0, .1); }
.cht-lanes li > * { position: relative; }
.cht-lane-bg { position: absolute !important; inset: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .16); }
.cht-lanes li.lit .cht-lane-bg { background: var(--ink); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); }
.cht-lanes img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.cht-lanes b { font-weight: 600; }
.cht-tag { margin-left: auto; font: 500 var(--xs)/1 var(--mono); letter-spacing: .04em; color: var(--mute); }
.cht-live { width: 8px; height: 8px; border-radius: 50%; }
.cht-lanes li.scan, .cht-lanes li.lit { color: var(--ink); }
.cht-lanes li.lit { color: #fff; }
.cht-lanes li.lit .cht-tag { color: #a3a3a3; }
.cht-lanes li.lit .cht-live { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.cht-lanes li.lit::before { background: var(--ink); height: 2px; }
/* ---------- 2. the six tools (the dark middle room) ---------- */
.cht-ch-head { padding: clamp(72px, 8vw, 112px) 0 0; }
.cht-ch-hw { transform-origin: 0 100%; }
/* the moment: 84px as it arrives, shrinking toward the 32px of a section heading as the scene pins */
.cht .cht-ch-h { margin: 0; max-width: 15ch; font-size: clamp(2.75rem, 5.7vw, 5.25rem); font-weight: 497; line-height: 1.02; letter-spacing: -.04em; color: #fafafa; }
.cht-ch-h .v2a-line.soft { color: #a3a3a3; }
/* the tab rail: tabs size to their labels, so none is cut; hover answers with a faint fill */
@media (min-width: 901px) {
.cht-ch .v2a-ch-nav button { flex: 1 1 auto; padding: 0 14px; transition: color .15s cubic-bezier(0, 0, .2, 1), background-color .15s cubic-bezier(0, 0, .2, 1), transform .09s cubic-bezier(0, 0, .2, 1); }
.cht-ch .v2a-ch-nav-t { overflow: visible; text-overflow: clip; }
.cht-ch .v2a-ch-nav button svg { flex: none; transition: transform .2s var(--emph); }
@media (min-width: 901px) {
.cht-ch .v2a-ch-nav button:hover { background-color: rgba(255, 255, 255, .06); }
.cht-ch .v2a-ch-nav button:hover svg { transform: translateY(-2px); }
}
}
.cht-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* each scene plays once when its chapter comes in ([data-play]) and rests on its last frame: every keyframe runs FROM a
start state TO the element's own resting style, so with no animation the art simply shows its final frame. After
the scene, a quiet idle keeps the panel alive while you rest there (it starts from, and returns to, the rest frame). */
.v2a-ch-art:not([data-play]) .cht-art * { animation: none !important; }
@keyframes cht-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes cht-breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
@keyframes cht-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
/* route: a question, Enso, the one model that takes it, over Enso's own artwork (drifting) */
.cht-art-route { justify-content: flex-end; padding: 0 7%; }
.cht-drift { position: absolute; left: -6%; top: 50%; width: 62%; translate: 0 -50%; animation: cht-drift 14s ease-in-out 1s infinite alternate; }
@keyframes cht-drift { from { transform: none; } to { transform: scale(1.08) rotate(-4deg); } }
.cht-art-bg { display: block; width: 100%; height: auto; mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.cht-route { position: relative; width: min(360px, 62%); display: flex; flex-direction: column; align-items: stretch; }
.cht-route .cht-mini-q { align-self: flex-end; }
.cht-route-hub { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px; border-radius: 20px; background: #171717; border: 1px solid rgba(255, 255, 255, .12); animation: cht-in .6s var(--emph) .6s 1 both; }
.cht-route-o { position: relative; width: 56px; height: 56px; flex: none; border-radius: 50%; }
.cht-route-o img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cht-route-o::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: #f5f5f5; opacity: 0; animation: cht-route-spin 1.4s linear .9s 1 both; }
@keyframes cht-route-spin { from { opacity: 1; transform: none; } 85% { opacity: 1; } to { opacity: 0; transform: rotate(720deg); } }
.cht-route span { display: flex; flex-direction: column; gap: 5px; }
.cht-route b { font-size: 17px; font-weight: 600; color: #f5f5f5; }
.cht-route em { font-style: normal; font-size: 12px; letter-spacing: .06em; color: #a3a3a3; }
.cht-route-wire { position: relative; align-self: center; width: 2px; height: 44px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.cht-route-wire i { position: absolute; inset: 0; background: #f5f5f5; transform-origin: 50% 0; animation: cht-wire .5s var(--emph) 2.3s 1 both; }
@keyframes cht-wire { from { transform: scaleY(0); } }
.cht-route-pick { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; background: #f5f5f5; color: #0a0a0a; box-shadow: 0 30px 60px -30px #000; animation: cht-pickin .7s var(--emph) 2.6s 1 both; }
.cht-route-pick img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cht-route-pick b { color: #0a0a0a; }
.cht-route-pick em { color: #525252; }
.cht-route-pick .cht-live { margin-left: auto; background: #0a0a0a; animation: cht-blink 2.4s ease-in-out 3.4s infinite; }
@keyframes cht-pickin { from { opacity: 0; transform: translateY(16px) scale(.96); } }
/* the app, small: a question, Zen's answer as code that runs, the result */
.cht-art-chat { padding: 0 8%; }
.cht-mini { width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px; }
.cht-mini-q { align-self: flex-end; margin: 0; padding: 11px 17px; border-radius: 20px 20px 6px 20px; background: #f5f5f5; color: #0a0a0a; font-size: 15px; animation: cht-in .5s var(--emph) .2s 1 both; }
.cht-mini-who { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 13px/1 var(--mono); color: #a3a3a3; }
.cht-mini-who img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.cht-mini-code { display: flex; flex-direction: column; padding: 14px 0 16px; border-radius: 18px; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; line-height: 1.85; color: #d4d4d4; animation: cht-in .6s var(--emph) .6s 1 both; }
.cht-mini-run { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 0 18px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #a3a3a3; }
.cht-mini-run i { font-style: normal; color: #f5f5f5; }
.cht-mini-run2 { display: flex; gap: 10px; margin: 0; font-size: 13px; color: #a3a3a3; overflow-wrap: anywhere; animation: cht-in .4s var(--emph) 2.1s 1 both; }
.cht-mini-run2 span { color: #f5f5f5; }
.cht-ln { display: block; padding: 0 18px 0 36px; text-indent: -18px; white-space: pre-wrap; overflow-wrap: anywhere; animation: cht-type .45s steps(24, end) 1 both; animation-delay: calc(.9s + var(--j) * .22s); }
.cht-ln i { display: inline-block; width: 18px; text-indent: 0; font-style: normal; color: #737373; }
.cht-ln.del { color: #737373; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.cht-ln.add { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 500; }
.cht-ln.add i { color: #fff; }
@keyframes cht-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.cht-mini-ok { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: #d4d4d4; animation: cht-in .5s var(--emph) 2.6s 1 both; }
.cht-mini-ok span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f5f5f5; color: #000; font-size: 12px; animation: cht-blink 2.6s ease-in-out 3.6s infinite; }
/* files: attachments land in the composer, then float */
.cht-art-files { flex-direction: column; padding: 0 8%; }
.cht-attach { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; width: min(560px, 100%); }
.cht-chip { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px 0 10px; border-radius: 16px; background: #171717; border: 1px solid rgba(255, 255, 255, .1); color: #e5e5e5; font-size: 14px; animation: cht-drop .8s var(--emph) 1 both, cht-breathe 4.8s ease-in-out infinite; animation-delay: calc(.2s + var(--j) * .18s), calc(1.8s + var(--j) * .7s); }
.cht-chip i { position: relative; width: 30px; height: 38px; border-radius: 6px; background: #f5f5f5; }
.cht-chip.doc i { background: repeating-linear-gradient(transparent 0 6px, #a3a3a3 6px 7.5px) 6px 8px / calc(100% - 12px) calc(100% - 14px) no-repeat, #f5f5f5; }
.cht-chip.sheet i { background: linear-gradient(90deg, transparent 32%, #737373 32% 35%, transparent 35% 65%, #737373 65% 68%, transparent 68%), linear-gradient(transparent 32%, #737373 32% 35%, transparent 35% 65%, #737373 65% 68%, transparent 68%), #e5e5e5; }
.cht-chip.pic { padding: 0; width: 56px; overflow: hidden; }
.cht-chip.pic img { width: 100%; height: 100%; object-fit: cover; }
@keyframes cht-drop { from { opacity: 0; transform: translateY(-28px); } }
.cht-art-bar { display: flex; align-items: center; gap: 12px; width: min(560px, 100%); height: 60px; margin-top: 18px; padding: 0 8px 0 20px; border-radius: 20px; background: #f5f5f5; color: #525252; font-size: 16px; }
.cht-art-ph { animation: cht-blink 3s ease-in-out 2s infinite; }
.cht-art-bar b { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 14px; background: #000; color: #fff; }
/* voice: Zen's answer, read aloud; the waveform keeps breathing */
.cht-art-voice { padding: 0 8%; }
.cht-say { width: min(540px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cht-say-t { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.4; letter-spacing: -.015em; color: #f5f5f5; animation: cht-in .6s var(--emph) .2s 1 both; }
.cht-wave { display: flex; align-items: center; gap: 5px; height: 84px; }
.cht-wave i { display: block; width: 5px; height: 100%; transform: scaleY(var(--h)); animation: cht-bar 1.6s var(--emph) 1 both; animation-delay: calc(.6s + var(--j) * 25ms); }
.cht-wave b { display: block; width: 100%; height: 100%; border-radius: 3px; background: #f5f5f5; animation: cht-pulse 1.3s ease-in-out infinite; animation-delay: calc(2.4s + var(--j) * 60ms); }
.cht-wave i:nth-child(4n + 2) b { background: #737373; }
@keyframes cht-bar { from { transform: scaleY(.06); } }
@keyframes cht-pulse { 0%, 100% { transform: none; } 50% { transform: scaleY(.55); } }
.cht-listen.dark { background: #171717; border-color: rgba(255, 255, 255, .16); color: #e9e9e9; height: 40px; padding: 0 16px; font-size: 14px; cursor: default; }
.cht-listen.dark.on { background: #f5f5f5; border-color: #f5f5f5; color: #000; }
/* memory: a line from one conversation carried into the next */
.cht-art-memory { gap: 22px; padding: 0 6%; }
.cht-convo { display: flex; flex-direction: column; gap: 14px; width: 40%; min-height: 230px; padding: 22px; border-radius: 22px; background: #171717; border: 1px solid rgba(255, 255, 255, .1); }
.cht-convo-t { margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; color: #f5f5f5; }
.cht-convo-t span { margin-right: 6px; color: #a3a3a3; }
.cht-convo-a { margin: 0; font-size: 14.5px; line-height: 1.55; color: #a3a3a3; }
.cht-convo-a mark { padding: 1px 3px; border-radius: 4px; background: rgba(255, 255, 255, .16); color: #fff; }
.cht-convo-pin { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); font-size: 14px; line-height: 1.45; color: #f5f5f5; animation: cht-arrive .8s var(--emph) 1.2s 1 both; }
.cht-convo-pin svg { flex: none; margin-top: 2px; }
.cht-convo-ph { margin: auto 0 0; padding: 12px 14px; border-radius: 12px; background: #f5f5f5; color: #525252; font-size: 14px; }
@keyframes cht-arrive { from { opacity: 0; transform: translateX(-34px); } }
.cht-carry { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: #f5f5f5; color: #000; animation: cht-hop 1.2s var(--emph) .3s 1 both; }
.cht-carry-in { display: grid; place-items: center; animation: cht-ferry 3.2s ease-in-out 2.2s infinite; }
@keyframes cht-hop { from { transform: translateX(-60px); opacity: 0; } }
@keyframes cht-ferry { 0%, 100% { transform: none; } 50% { transform: translateX(5px); } }
/* chat, then dev: the conversation, the switch flips, and Dev's session lands its diff */
.cht-art-dev { flex-direction: column; gap: 22px; padding: 0 8%; }
.cht-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 240px; height: 52px; flex: none; padding: 4px; border-radius: 999px; background: #171717; border: 1px solid rgba(255, 255, 255, .1); }
.cht-switch span { position: relative; z-index: 1; display: grid; place-items: center; font-size: 16px; font-weight: 500; color: #a3a3a3; }
.cht-switch span:first-child { animation: cht-ink1 .5s ease 1.5s 1 both; }
.cht-switch span:nth-child(2) { color: #000; animation: cht-ink2 .5s ease 1.5s 1 both; }
.cht-switch i { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 999px; background: #f5f5f5; transform: translateX(100%); animation: cht-slide .6s var(--emph) 1.4s 1 both; }
@keyframes cht-slide { from { transform: none; } }
@keyframes cht-ink1 { from { color: #000; } }
@keyframes cht-ink2 { from { color: #a3a3a3; } }
.cht-dev-pane { position: relative; width: min(560px, 100%); height: 330px; border-radius: 22px; background: #171717; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.cht-dev-pane > div { position: absolute; inset: 0; display: flex; flex-direction: column; }
.cht-dev-pane .chat { gap: 14px; padding: 26px; opacity: 0; transform: translateX(-32px); animation: cht-hide .6s var(--emph) 1.4s 1 both; }
.cht-dev-pane .chat .cht-mini-q { animation-delay: .1s; }
.cht-dev-pane .chat .cht-dots { padding: 0; }
.cht-dev-pane .chat .cht-dots i { background: #737373; }
@keyframes cht-hide { from { opacity: 1; transform: none; } }
.cht-dev-pane .code { justify-content: center; padding: 18px 0; background: #0a0a0a; font-size: 13px; line-height: 1.75; color: #d4d4d4; animation: cht-devin .6s var(--emph) 1.5s 1 both; }
@keyframes cht-devin { from { opacity: 0; transform: translateX(40px); } }
.cht-dev-pane .code .cht-ln { animation-delay: calc(1.8s + var(--j) * .16s); }
.cht-dev-l { margin: 0; padding: 0 18px; display: flex; gap: 10px; overflow-wrap: anywhere; color: #a3a3a3; animation: cht-in .35s var(--emph) 1 both; animation-delay: calc(1.8s + var(--j) * .16s); }
.cht-dev-l b { font-weight: 500; color: #f5f5f5; }
.cht-dev-l i { font-style: normal; color: #f5f5f5; }
.cht-dev-l.cmd { color: #f5f5f5; margin-bottom: 4px; }
.cht-dev-l.ok { color: #f5f5f5; margin-top: 4px; }
.cht-dev-l .cht-caret { background: #f5f5f5; animation: cht-blink 1s steps(1, end) 3.8s infinite; }
/* ---------- 3. proof, who answers: one card that opens into the model's page ---------- */
.cht-who-grid { align-items: center; }
.cht-who-l { grid-column: 1 / 6; }
.cht-who-r { grid-column: 7 / 13; }
.cht-pic { position: relative; display: block; width: min(100%, calc((100svh - 150px) * .8)); aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .55); color: #f5f5f5; text-decoration: none; transition: transform .45s var(--emph), box-shadow .45s var(--emph); }
.cht-pic:active { transform: scale(.98); }
.cht-pic:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (min-width: 901px) { .cht-pic:hover { transform: translateY(-4px); box-shadow: 0 70px 130px -60px rgba(0, 0, 0, .65); } .cht-pic:hover .cht-pic-cap i { transform: translateX(4px); } }
.cht-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform 1.1s var(--emph); }
.cht-pic img.on { opacity: 1; transform: none; }
.cht-pic::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.cht-pic-cap { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; display: flex; align-items: baseline; gap: 14px; margin: 0; color: #f5f5f5; }
.cht-pic-cap b { font-size: clamp(2.25rem, 3.9vw, 3.5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.cht-pic-cap span { font-size: 13px; letter-spacing: .08em; color: #d4d4d4; white-space: nowrap; }
.cht-pic-cap { flex-wrap: wrap; row-gap: 8px; }
.cht-pic-cap i { margin-left: auto; font-style: normal; font-size: 22px; transition: transform .3s var(--emph); }
.cht-who-h { margin: 0 0 clamp(28px, 3.4vw, 48px); max-width: 18ch; text-wrap: balance; }
.cht-roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cht-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 16px 16px 14px; border: 1px solid var(--hair); border-radius: 18px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .12s; }
.cht-row:active { transform: scale(.98); }
.cht-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cht-row-pic { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; transition: transform .45s var(--emph); }
.cht-row-n { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.cht-row-t { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cht-roster li.on .cht-row { background: #f5f5f5; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cht-roster li.on .cht-row-t { color: #404040; }
.cht-roster li.on .cht-row-pic { transform: scale(1.12); }
@media (min-width: 901px) { .cht-roster li:not(.on) .cht-row:hover { border-color: rgba(0, 0, 0, .3); } }
.cht-who-d { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-height: 3.2em; margin: 22px 0 0; font-size: 17px; line-height: 1.5; color: #404040; }
.cht-who-d span { animation: cht-in .4s var(--emph) 1 both; }
.cht-who-go { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 3px; display: inline-block; transition: text-underline-offset .2s var(--emph), text-decoration-color .2s, transform .2s var(--emph); }
@media (prefers-reduced-motion: reduce) {
.cht *, .cht *::before, .cht *::after { animation: none !important; }
.cht-ctl { visibility: hidden; }
}
/* ---------- phones ---------- */
@media (max-width: 900px) {
.cht-hero { padding: 36px 0 96px; }
.cht-hero-in { grid-template-columns: minmax(0, 1fr); }
.cht-copy { padding: 0; }
.cht-h1 { font-size: clamp(2.6rem, 12.4vw, 3.2rem); }
.cht-lede { margin-top: 18px; }
.cht-acts { margin-top: 24px; gap: 4px 20px; }
.cht-side-t { display: none; }
.cht-ctl { margin-left: auto; }
.cht-win-wrap { margin: 12px 0 0; animation-name: cht-win-up; }
.cht-win { border-radius: 24px; }
.cht-bar { height: 48px; padding-left: 16px; }
.cht-name { margin-left: 4px; }
.cht-bar .cht-model { display: none; }
.cht-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; height: auto; }
/* the recents row scrolls sideways and fades at its right edge, so no chip is cut hard mid-word */
.cht-side { flex-direction: row; align-items: center; gap: 6px; padding: 10px 28px 10px 10px; border-right: 0; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.cht-side::-webkit-scrollbar { display: none; }
.cht-new, .cht-find { flex: none; height: 44px; }
.cht-find-in { flex: none; width: 140px; height: 44px; }
.cht-recents-k { display: none; }
.cht-recents { display: flex; gap: 6px; overflow: visible; flex: none; }
.cht-recents button { width: auto; height: 44px; line-height: 44px; padding: 0 14px; background: #fff; box-shadow: 0 0 0 1px var(--hair); overflow: visible; text-overflow: clip; }
.cht-log { height: 300px; flex: none; padding: 18px 14px 8px; }
.cht-q, .cht-text { font-size: 15px; }
.cht-composer { margin: 8px 10px 12px; }
.cht-rail { order: 3; border-left: 0; border-top: 1px solid var(--hair); padding: 10px; }
.cht-hub { display: none; }
.cht-lanes { flex-direction: row; margin: 0; padding: 0; gap: 6px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.cht-lanes::before, .cht-lanes li::before { display: none; }
.cht-lanes li { flex: none; height: 44px; }
.cht-peek { margin-top: 8px; padding: 10px 4px 2px; min-height: calc(3 * 1.45em + 12px); }
.cht-peek a { display: inline-flex; align-items: center; min-height: 44px; }
.cht-tag { display: none; }
.cht .x-copy, .cht-listen { min-height: 44px; padding-inline: 14px; }
.cht-ch-head { padding: 88px 0 48px; }
.cht-art-route { justify-content: center; padding: 0 16px; }
.cht-drift { width: 100%; left: 0; opacity: .5; }
.cht-route { width: 100%; max-width: 320px; }
.cht-route-hub { margin-top: 16px; padding: 10px; }
.cht-route-o { width: 44px; height: 44px; }
.cht-route-wire { height: 30px; }
.cht-art-chat, .cht-art-voice, .cht-art-files, .cht-art-dev { padding: 0 14px; }
.cht-mini { gap: 10px; }
.cht-mini-code, .cht-dev-pane .code { font-size: 11.5px; line-height: 1.6; }
.cht-mini-code { padding: 10px 0 12px; }
.cht-mini-run { padding: 0 12px 8px; margin-bottom: 4px; }
.cht-mini-run2 { font-size: 11.5px; }
.cht-ln { padding: 0 12px 0 28px; text-indent: -16px; }
.cht-ln i { width: 16px; }
.cht-dev-l { padding: 0 12px; gap: 8px; }
.cht-chip { height: 48px; font-size: 13px; }
.cht-art-bar { height: 54px; font-size: 15px; }
.cht-art-memory { gap: 10px; padding: 0 12px; }
.cht-convo { width: 44%; min-height: 0; padding: 14px; gap: 10px; }
.cht-convo-a, .cht-convo-pin { font-size: 13px; }
.cht-convo-ph { display: none; }
.cht-art-bar b { width: 40px; height: 40px; }
.cht-wave { height: 64px; gap: 3px; }
.cht-wave i { width: 3px; }
.cht-say-t { font-size: 1.125rem; }
.cht-carry { width: 40px; height: 40px; }
.cht-art-dev { gap: 12px; }
.cht-switch { height: 44px; width: 200px; }
.cht-dev-pane { height: 270px; }
.cht-dev-pane .code { padding: 10px 0; }
/* proof on phones: the card stays, names under it swap it on tap */
.cht-who-grid { display: flex; flex-direction: column; align-items: stretch; }
.cht-who-r { display: contents; }
.cht-who-h { order: 1; }
.cht-who-l { order: 2; margin-bottom: 14px; }
.cht-roster { order: 3; }
.cht-who-d { order: 4; }
.cht-pic { width: 100%; aspect-ratio: 4 / 3.4; border-radius: 22px; }
.cht-pic-cap { left: 20px; right: 20px; bottom: 18px; }
.cht-pic-cap span { display: none; }
.cht-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cht-row { padding: 12px 10px 10px; border-radius: 14px; gap: 4px; }
.cht-row-pic { width: 28px; height: 28px; }
.cht-row-n { font-size: 1rem; }
.cht-row-t { font-size: 11px; letter-spacing: .04em; }
.cht-who-d { font-size: 16px; }
}
/* 8 Nov (Ready pass): each chapter's scene lands its payoff inside ~1.5 s, so a panel is never an empty slab while
you pass through it and "14 passed" arrives before the next chapter takes over. Same keyframes, shorter delays. */
.cht-ch .cht-mini-q { animation-delay: .05s; }
.cht-ch .cht-mini-code { animation-delay: .2s; }
.cht-ch .cht-art-chat .cht-ln { animation-duration: .3s; animation-delay: calc(.3s + var(--j) * .1s); }
.cht-ch .cht-mini-run2 { animation-delay: .85s; }
.cht-ch .cht-mini-ok { animation-delay: 1.1s; }
.cht-ch .cht-mini-ok span { animation-delay: 2s; }
.cht-ch .cht-route-hub { animation-delay: .25s; }
.cht-ch .cht-route-o::after { animation-delay: .4s; }
.cht-ch .cht-route-wire i { animation-delay: 1s; }
.cht-ch .cht-route-pick { animation-delay: 1.15s; }
.cht-ch .cht-route-pick .cht-live { animation-delay: 1.9s; }
.cht-ch .cht-chip { animation-delay: calc(.05s + var(--j) * .12s), calc(1.2s + var(--j) * .7s); }
.cht-ch .cht-carry { animation-delay: .1s; }
.cht-ch .cht-convo-pin { animation-delay: .55s; }
.cht-ch .cht-carry-in { animation-delay: 1.4s; }
.cht-ch .cht-switch span:first-child, .cht-ch .cht-switch span:nth-child(2) { animation-delay: .65s; }
.cht-ch .cht-switch i { animation-delay: .55s; }
.cht-ch .cht-dev-pane .chat { animation-delay: .55s; }
.cht-ch .cht-dev-pane .code { animation-delay: .6s; }
.cht-ch .cht-dev-pane .code .cht-ln, .cht-ch .cht-dev-l { animation-delay: calc(.8s + var(--j) * .08s); }
.cht-ch .cht-dev-l .cht-caret { animation-delay: 2s; }
/* the Enso card is not floating: no long shadow (it left a grey smudge under the header); it still lifts on hover */
.cht-pic, .cht-pic:hover { box-shadow: none !important; }
/* phones: the memory scene stacks, so the carried answer reads at a normal measure (was one word per line) */
@media (max-width: 600px) {
.cht-art-memory { flex-direction: column; gap: 8px; padding: 12px; }
.cht-art-memory .cht-convo { flex: none; width: 100%; min-height: 0; padding: 12px 14px; gap: 8px; border-radius: 18px; }
.cht-art-memory .cht-convo-t { padding-bottom: 8px; font-size: 13px; }
.cht-art-memory .cht-convo-a, .cht-art-memory .cht-convo-pin { font-size: 13.5px; line-height: 1.45; }
.cht-art-memory .cht-convo-pin { padding: 8px 10px; }
.cht-art-memory .cht-convo-ph { display: none; }
.cht-art-memory .cht-carry { width: 40px; height: 40px; rotate: 90deg; }
}
@media (max-width: 900px) { .cht-who-go { display: inline-flex; align-items: center; min-height: 44px; } }
/* 8 Nov (James: match hanzo.ai/chat): the six tools as Hanzo lays them out, one heading over a three-by-two grid of
cards; each card keeps its small scene in a dark window above its words */
.cht-tools-h { text-align: center; margin: 0 auto clamp(36px, 4vw, 56px); max-width: 24ch; text-wrap: balance; }
.cht-tools-g { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cht-tool { display: flex; flex-direction: column; border-radius: 24px; background: #f5f5f5; overflow: hidden; outline: none; transition: transform .45s var(--emph), background-color .3s var(--emph); }
.cht-tool:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cht-tool-art { position: relative; aspect-ratio: 7 / 5; margin: 8px 8px 0; border-radius: 18px; overflow: hidden; background: #171717; }
.cht-tool-scale { position: absolute; left: 0; top: 0; width: 560px; height: 400px; transform: scale(var(--k, .6)); transform-origin: 0 0; }
.cht-tool-b { display: grid; gap: 8px; padding: 20px 22px 24px; }
.cht-tool-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ink); }
.cht-tool-t { margin: 6px 0 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.cht-tool-d { margin: 0; font-size: 15px; line-height: 1.5; color: #525252; }
@media (hover: hover) { .cht-tool:hover { transform: translateY(-4px); background: #ededed; } }
.cht-tool:active { transform: scale(.98); }
@media (max-width: 900px) { .cht-tools-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .cht-tools-g { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cht-tool { transition: none; } }
/* live writes each answer as two paragraphs */
.cht-text + .cht-text { margin-top: 8px; }
/* ---------- dark (docs/DARK-MODE.md): the page, the window, its rail and the tool cards follow Hanzo's dark tokens.
The six small scenes stay dark windows in both modes (their insides untouched), as do the Enso card and the Band.
Light is untouched: every rule below is scoped to html:not(.light). ---------- */
html:not(.light) .cht { --ink: var(--foreground); --mute: var(--muted-foreground); --raise: var(--muted); --hair: var(--border); }
html:not(.light) .cht .v2a-display, html:not(.light) .cht .v2a-head { color: var(--foreground); }
html:not(.light) .cht .v2a-lede { color: var(--muted-foreground); }
html:not(.light) .cht .v2a-line.soft { color: var(--text-tertiary); }
html:not(.light) .cht .v2a-demo-ctl:not(.dark) { background: var(--x-raised); color: var(--foreground); }
html:not(.light) .cht .x-arrow { color: var(--ink); text-decoration-color: var(--white-30); }
html:not(.light) .cht .x-band .x-arrow { color: #fafafa; text-decoration-color: rgba(255, 255, 255, .4); }
html:not(.light) .cht-lede { color: var(--text-secondary); }
/* the window */
html:not(.light) .cht-win { background: var(--x-raised); border-color: var(--border); }
html:not(.light) .cht-bar { background: var(--x-sunk); }
html:not(.light) .cht-dots3 i { background: var(--border-strong); }
html:not(.light) .cht-side-t, html:not(.light) .cht-find, html:not(.light) .cht-recents button, html:not(.light) .cht-lanes li, html:not(.light) .cht-peek { color: var(--text-secondary); }
html:not(.light) .cht-side-t[aria-expanded='true'], html:not(.light) .cht-recents button.on { background: var(--secondary); color: var(--ink); }
html:not(.light) .cht-side { background: var(--x-sunk); }
html:not(.light) .cht-new { background: var(--x-raised); }
html:not(.light) .cht-find-in { border-color: var(--border-control); background: var(--x-raised); }
@media (min-width: 901px) {
html:not(.light) .cht-side-t:hover, html:not(.light) .cht-find:hover, html:not(.light) .cht-recents button:hover, html:not(.light) .cht-ctl:hover { background: var(--secondary); color: var(--ink); }
html:not(.light) .cht-new:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 0 0 1px var(--border-strong); }
}
html:not(.light) .cht-q { color: var(--x-on-ink); }
html:not(.light) .cht-listen:not(.dark) { background: var(--x-raised); color: var(--text-secondary); }
html:not(.light) .cht-listen.on:not(.dark) { color: var(--ink); }
@media (min-width: 901px) { html:not(.light) .cht-listen:not(.dark):hover { color: var(--ink); border-color: var(--border-strong); } }
html:not(.light) .cht-composer { background: var(--x-raised); border-color: var(--border-control); }
html:not(.light) .cht-composer:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--glass), 0 12px 30px -18px rgba(0, 0, 0, .3); }
html:not(.light) .cht-send { color: var(--x-on-ink); }
@media (min-width: 901px) { html:not(.light) .cht-send:hover { background: var(--primary-hover); } }
html:not(.light) .cht-send.busy::after { border-color: var(--border-control); border-top-color: var(--x-on-ink); }
/* the router rail */
html:not(.light) .cht-rail { background: var(--x-sunk); }
html:not(.light) .cht-hub { background: var(--x-raised); }
html:not(.light) .cht-lanes::before, html:not(.light) .cht-lanes li::before { background: var(--border); }
html:not(.light) .cht-lanes li.lit::before { background: var(--ink); }
html:not(.light) .cht-lanes li.peek:not(.lit) { background: var(--glass); color: var(--ink); }
html:not(.light) .cht-lanes li.scan { color: var(--ink); }
html:not(.light) .cht-lane-bg { background: var(--x-raised); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 1px var(--border-control); }
html:not(.light) .cht-lanes li.lit .cht-lane-bg { background: var(--ink); }
html:not(.light) .cht-lanes li.lit { color: var(--x-on-ink); }
html:not(.light) .cht-lanes li.lit .cht-tag { color: var(--neutral-600); }
html:not(.light) .cht-lanes li.lit .cht-live { background: var(--x-on-ink); box-shadow: 0 0 0 3px var(--border-control); }
html:not(.light) .cht-peek a, html:not(.light) .cht-who-go { text-decoration-color: var(--white-22); }
/* who answers */
html:not(.light) .cht-row { background: var(--x-raised); }
html:not(.light) .cht-roster li.on .cht-row { background: var(--secondary); }
html:not(.light) .cht-roster li.on .cht-row-t, html:not(.light) .cht-who-d { color: var(--text-secondary); }
@media (min-width: 901px) { html:not(.light) .cht-roster li:not(.on) .cht-row:hover { border-color: var(--border-strong); } }
@media (max-width: 900px) { html:not(.light) .cht-recents button { background: var(--x-raised); } html:not(.light) .cht-recents button.on { background: var(--secondary); } }
/* the six tools: Hanzo's dark cards (a hairline, as on hanzo.ai/chat), each scene's window recessed into its card */
html:not(.light) .cht-tool { background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
html:not(.light) .cht-tool-art { background: var(--background); box-shadow: inset 0 0 0 1px var(--border); }
html:not(.light) .cht-tool-i { background: var(--secondary); }
html:not(.light) .cht-tool-d { color: var(--muted-foreground); }
@media (hover: hover) { html:not(.light) .cht-tool:hover { background: var(--secondary); } }
/* the lit lane carries its own ink fill in dark (same colour as the sliding lane pill behind it) */
html:not(.light) .cht-lanes li.lit { background: var(--ink); }
/* ---------- 8 Nov, Zack's pages: the home page's bar (Frame.css: .zf, .zf-sec, .zf-head, .zf-room, .zf-lift) ----------
Every section reads in one frame at 1470 x 801; on a phone the heading and the first card show together.
Hero: halftone lit from the bottom left, a soft light behind the window, and the prompt as the way in.
Tools: the page's one dark room, a bento of the six scenes (two wide, four square) that opens like a curtain.
Who answers: the Enso card sized to the frame, lifted. Close: "Ask anything" as a real prompt over the three plans. */
.zf .cht-hero { --hx: 0%; --hy: 100%; --lx: 74%; --ly: 45%; padding-block: clamp(20px, 3.5svh, 44px) clamp(56px, 9svh, 104px); overflow: hidden; }
.cht-hero .cht-acts { margin-top: 18px; gap: 4px 26px; }
.cht-prompt { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 30px; padding: 7px 7px 7px 9px; border-radius: 999px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: var(--zf-shadow); transition: border-color .2s, box-shadow .35s var(--emph); }
.cht-prompt:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent), var(--zf-shadow-hi); }
.cht-prompt-o { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #000; }
.cht-prompt-o img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cht-prompt input { flex: 1; min-width: 0; height: 44px; padding: 0 2px; border: 0; background: transparent; font: 400 16px/1 var(--sans); color: var(--ink); outline: none; }
.cht-prompt input::placeholder { color: var(--soft); opacity: 1; }
.cht-prompt .x-btn { flex: none; }
.cht-prompt.busy .x-btn { transform: scale(.98); }
.cht-prompt.big { max-width: 660px; margin: clamp(22px, 3.4svh, 34px) auto 0; padding: 8px 8px 8px 12px; }
.cht-prompt.big .cht-prompt-o { width: 38px; height: 38px; }
.cht-prompt.big input { height: 52px; font-size: 18px; }
/* the dark room: six scenes as a bento, sized to the frame */
.zf .cht-do { padding-block: clamp(56px, 8.5svh, 104px); }
html .zf .cht-do-head h2 { max-width: 22ch; text-align: left; }
html .zf .cht-do .cht-tools-g { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: calc((var(--fr) - 196px) / 2); gap: 12px; }
html .zf .cht-do .cht-tool { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; background: #141416; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -50px #000; --dx: 100%; --dy: 0%; }
html .zf .cht-do .cht-tool::before { opacity: .45; transition: opacity .5s var(--emph); }
html .zf .cht-do .cht-tool.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); --dx: 0%; --dy: 100%; }
html .zf .cht-do .cht-tool-art { flex: 1; min-height: 0; aspect-ratio: auto; margin: 8px 8px 0; border-radius: 16px; background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
html .zf .cht-do .cht-tool.wide .cht-tool-art { order: 2; margin: 8px; }
html .zf .cht-do .cht-tool-scale { left: calc((100% - 560px * var(--k, .5)) / 2); top: calc((100% - 400px * var(--k, .5)) / 2); }
html .zf .cht-do .cht-tool-b { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; padding: 14px 18px 16px; }
html .zf .cht-do .cht-tool.wide .cht-tool-b { align-self: end; padding: 24px 6px 22px 24px; }
html .zf .cht-do .cht-tool-i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .09); color: #f5f5f7; }
html .zf .cht-do .cht-tool-t { margin: 0; font-size: 16px; font-weight: 500; color: #f5f5f7; }
html .zf .cht-do .cht-tool.wide .cht-tool-t { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; }
html .zf .cht-do .cht-tool-d { grid-column: 1 / -1; margin: 0; font-size: 13.5px; line-height: 1.45; color: #a1a1a6; }
html .zf .cht-do .cht-tool.wide .cht-tool-d { font-size: 15px; }
@media (hover: hover) {
html .zf .cht-do .cht-tool:hover { background: #19191c; transform: translateY(-3px); }
html .zf .cht-do .cht-tool:hover::before { opacity: 1; }
}
html .zf .cht-do .x-arrow { color: #f5f5f7; text-decoration-color: rgba(255, 255, 255, .4); }
/* who answers: the card sized to the frame, lifted; the heading carries the page's hairline */
.zf .cht-who-sec { --hx: 100%; --hy: 100%; --lx: 22%; --ly: 50%; padding-block: clamp(56px, 8.5svh, 104px); }
html .zf .cht-who-sec .cht-pic { width: min(100%, calc((var(--fr) - 20px) * .8)); box-shadow: 0 40px 80px -52px rgba(0, 0, 0, .55) !important; }
html.dark .zf .cht-who-sec .cht-pic { box-shadow: 0 0 0 1px var(--border), 0 40px 80px -50px rgba(0, 0, 0, .9) !important; }
.zf .cht-who-head { margin-bottom: clamp(22px, 3.2svh, 32px); }
html .zf .cht-who-head h2 { max-width: 17ch; font-size: clamp(1.9rem, 2.9vw, 2.9rem); }
/* the close: a lit stage, the prompt, the three plans (Pro inked and lifted) */
.zf .cht-close { padding-block: clamp(64px, 10svh, 120px); overflow: hidden; }
.cht-close::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle, var(--zf-dot) 1px, transparent 1.5px) 0 0 / 12px 12px;
-webkit-mask-image: radial-gradient(55% 55% at 50% 22%, #000, transparent 72%); mask-image: radial-gradient(55% 55% at 50% 22%, #000, transparent 72%); }
.cht-close::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(46% 50% at 50% 30%, color-mix(in srgb, var(--ink) 7%, transparent), transparent 70%); }
html .zf .cht-close h2 { color: var(--ink); font-size: clamp(2.6rem, 5.4vw, 5rem); }
.cht-plans { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: clamp(28px, 4.6svh, 48px) auto 0; padding: 0; text-align: left; }
html .zf .cht-plan { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 22px; }
.cht-plan-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cht-plan-h b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.cht-plan-p { font-size: 12.5px; color: var(--soft); white-space: nowrap; }
.cht-plan-p strong { margin-right: 6px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
html .zf .cht-plan p { flex: 1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft); }
.cht-plan .x-btn { align-self: stretch; height: 40px; }
html .zf .cht-plan.rec { background: var(--ink); border-color: transparent; transform: translateY(-8px); box-shadow: var(--zf-shadow-hi); }
.cht-plan.rec .cht-plan-h b, .cht-plan.rec .cht-plan-p strong { color: var(--x-on-ink); }
html .zf .cht-plan.rec .cht-plan-p, html .zf .cht-plan.rec p { color: color-mix(in srgb, var(--x-on-ink) 72%, var(--ink)); }
html .zf .cht-plan.rec .x-btn.solid { background: var(--x-on-ink); border-color: var(--x-on-ink); color: var(--ink); }
.cht-close-l { display: flex; justify-content: center; margin-top: clamp(16px, 2.6svh, 26px); }
@media (max-width: 1100px) {
html .zf .cht-do .cht-tools-g { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; }
}
@media (max-width: 900px) {
.zf .cht-hero { padding-block: 28px 64px; }
.cht-prompt { margin-top: 24px; }
html .zf .cht-who-head h2 { font-size: 2rem; }
html .zf .cht-who-sec .cht-pic { width: 100%; }
}
@media (max-width: 640px) {
/* the six scenes become a rail you swipe, the next card peeking in */
html .zf .cht-do .cht-tools-g { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; grid-auto-rows: auto; margin-inline: -16px; padding: 4px 16px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; animation: none; }
html .zf .cht-do .cht-tools-g::-webkit-scrollbar { display: none; }
html .zf .cht-do .cht-tool, html .zf .cht-do .cht-tool.wide { grid-column: auto; display: flex; flex-direction: column; scroll-snap-align: start; }
html .zf .cht-do .cht-tool-art, html .zf .cht-do .cht-tool.wide .cht-tool-art { flex: none; order: 0; aspect-ratio: 7 / 5; margin: 8px 8px 0; }
html .zf .cht-do .cht-tool.wide .cht-tool-b { align-self: auto; padding: 14px 18px 16px; }
.cht-prompt { padding: 6px 6px 6px 8px; }
.cht-prompt-o { display: none; }
.cht-prompt input { padding-left: 10px; }
.cht-prompt .x-btn { height: 44px; padding: 0 16px; font-size: 14.5px; }
.cht-prompt.big { flex-wrap: wrap; border-radius: 26px; }
.cht-prompt.big input { flex-basis: 100%; height: 48px; font-size: 17px; }
.cht-prompt.big .x-btn { width: 100%; }
.cht-prompt.big > div, .cht-prompt.big > span:not(.cht-prompt-o) { flex: 1 1 100%; }
.cht-plans { grid-template-columns: minmax(0, 1fr); gap: 10px; }
html .zf .cht-plan.rec { transform: none; order: -1; }
}
/* the room's heading on one line beside its link, so the scenes get the height */
@media (min-width: 1101px) {
html .zf .cht-do-head { grid-template-columns: minmax(0, 1fr) auto; }
html .zf .cht-do-head h2 { max-width: none; font-size: clamp(2rem, 3.1vw, 2.9rem); }
html .zf .cht-do .cht-tools-g { grid-auto-rows: calc((var(--fr) - 128px) / 2); }
html .zf .cht-do .cht-tool:not(.wide) .cht-tool-b { padding: 10px 16px 14px; gap: 4px 9px; }
html .zf .cht-do .cht-tool:not(.wide) .cht-tool-art { margin: 6px 6px 0; }
html .zf .cht-do .cht-tool:not(.wide) .cht-tool-i { width: 24px; height: 24px; border-radius: 7px; }
html .zf .cht-do .cht-tool:not(.wide) .cht-tool-d { font-size: 13px; }
}