mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdv7StJZXmK5oNtoxtW
412 lines
34 KiB
CSS
412 lines
34 KiB
CSS
/* Network, round 3 + review fixes (MASTER §3): the deck's neutral ramp only; flat fills or 1px hairlines, never both; no shadows (only
|
|
the kit's sheet floats); radii 24 tiles, 16 code, 12 rows, 6 chips, full pills; press .97 in 90ms; hover changes fill
|
|
or ink, never lift or scale. A route is told by weight (lit links are ink and thicker), a preview by a dash, a hit by a
|
|
filled tag. Type rests at the kit's sizes: nothing here is set larger than the h1. */
|
|
|
|
/* hero: title, lede and ask on the left five columns; the fabric and its toolbar on the right eight */
|
|
.nw-hero { min-height: calc(100svh - var(--lx-head) - 56px); display: flex; padding: clamp(32px, 4vw, 56px) 0 clamp(32px, 3.4vw, 48px); overflow: hidden; }
|
|
.nw-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: clamp(24px, 4vw, 56px); align-items: stretch; }
|
|
.nw-hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-bottom: 40px; }
|
|
.nw-hero-low { display: flex; flex-direction: column; gap: 28px; }
|
|
.nw-lede { color: var(--ink); max-width: 30ch; }
|
|
.nw-acts { display: flex; gap: 8px 24px; align-items: center; flex-wrap: wrap; }
|
|
|
|
/* the fabric: unframed on the paper, clipped to its own window; it grows as you leave the hero */
|
|
.nw-fab { display: flex; flex-direction: column; min-width: 0; }
|
|
.nw-fab-win { position: relative; flex: 1; min-height: 360px; overflow: hidden; margin-right: calc(-1 * max(var(--gut), (100vw - 1152px) / 2)); }
|
|
.nw-map-wrap { position: absolute; inset: 0; transform-origin: 50% 60%; }
|
|
.nw-map { position: absolute; inset: 24px 64px 28px 20px; }
|
|
.nw-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
.nw-links line { stroke: rgba(0, 0, 0, .14); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .3s var(--e-io), stroke-width .3s var(--e-io); }
|
|
.nw-links line.on { stroke: #0a0a0a; stroke-width: 2; }
|
|
.nw-links line.pv:not(.on) { stroke: #737373; stroke-width: 1.5; stroke-dasharray: 5 5; transition: none; }
|
|
.nw-peer { position: absolute; width: 0; height: 0; }
|
|
.nw-peer::before { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
|
|
.nw-peer > i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #d4d4d4; transition: box-shadow .3s var(--e-out) var(--d, 0s), background-color .3s var(--e-out) var(--d, 0s); }
|
|
.nw-peer > i::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px solid #0a0a0a; opacity: 0; transform: scale(.5); transition: opacity .3s var(--e-out), transform .4s var(--lx-ease); }
|
|
.nw-peer.lit > i { background: #0a0a0a; box-shadow: inset 0 0 0 2px #0a0a0a; }
|
|
.nw-peer.end > i::after { opacity: .4; transform: scale(1); }
|
|
.nw-peer.you > i { background: #0a0a0a; box-shadow: none; }
|
|
/* pointing at a peer: its ring turns ink and a dashed halo marks it (ink and line, never a lift or a scale) */
|
|
.nw-peer.peek > i { box-shadow: inset 0 0 0 4px #0a0a0a; }
|
|
.nw-peer.peek > i::after { opacity: .6; transform: scale(1); border-style: dashed; }
|
|
.nw-tags { position: absolute; left: 16px; top: -18px; display: flex; gap: 4px; white-space: nowrap; }
|
|
.nw-peer.l .nw-tags { left: auto; right: 16px; }
|
|
.nw-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 4px; border-radius: 8px; background: #f2f2f2; font: 500 13px/1 var(--mono); color: #525252; transition: background-color .3s var(--e-out), color .3s var(--e-out); }
|
|
.nw-tag.me { padding: 7px 9px; }
|
|
.nw-sm .nw-tag.q, .nw-sm .nw-tag.x, .nw-sm .nw-tag.hit:not(:has(img)) { padding: 7px 9px; }
|
|
/* Hanzo's render of the model: 28px, cropped at true size, never filtered */
|
|
.nw-th { position: relative; display: block; flex: none; width: 32px; height: 32px; border-radius: 6px; overflow: hidden; background: #000; }
|
|
.nw-th img { position: absolute; width: 80px; height: 100px; max-width: none; left: calc(16px - var(--cx) * 80px); top: calc(16px - var(--cy) * 100px); }
|
|
.nw-tag.me, .nw-tag.hit { background: #0a0a0a; color: #fff; }
|
|
.nw-peer.peek .nw-tag:not(.hit) { background: #e4e4e7; color: #0a0a0a; }
|
|
.nw-packet { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #0a0a0a; pointer-events: none; }
|
|
|
|
/* the fabric's toolbar, in its own frame under the map (nothing floats over the map) */
|
|
.nw-tool { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) 44px; grid-template-areas: 'k k p' 'a r p'; gap: 12px 32px; align-items: end; padding-top: 16px; border-top: 1px solid var(--line); }
|
|
.nw-tool-k { grid-area: k; color: var(--ink); }
|
|
.nw .nw-pause { grid-area: p; align-self: start; }
|
|
.nw-ask { grid-area: a; display: grid; gap: 10px; }
|
|
.nw-ask-l { margin: 0; font: 500 13px/1 var(--mono); color: #737373; }
|
|
.nw-read { grid-area: r; min-width: 0; padding-bottom: 4px; }
|
|
.nw-route { margin: 0; font: 500 13px/1.4 var(--mono); color: #737373; white-space: pre-wrap; }
|
|
.nw-route.pv { color: #0a0a0a; }
|
|
.nw-ans { margin: 4px 0 0; font: 500 14px/1.4 var(--mono); color: #737373; transition: color .3s var(--e-out); }
|
|
.nw-ans.on { color: #0a0a0a; }
|
|
|
|
/* segmented controls (the model picker, the lend toggle): a flat track, a white pill that slides, ink for the chosen */
|
|
.nw-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px; border-radius: 999px; background: #f2f2f2; }
|
|
.nw-seg button { position: relative; min-width: 64px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 500 14px/1 var(--mono); color: #525252; cursor: pointer; touch-action: manipulation; transition: color .15s var(--e-out), background-color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.nw-seg button[aria-checked='true'], .nw-seg button[aria-pressed='true'] { color: #0a0a0a; }
|
|
.nw-seg button span { position: relative; z-index: 1; }
|
|
.nw-pick { position: absolute; inset: 0; border-radius: 999px; background: #fff; }
|
|
.nw-seg button:active { transform: scale(.97); transition-duration: .09s; }
|
|
|
|
/* the chapter count is Hanzo's own caption: set under the chapter title, never above it (MASTER part 7) */
|
|
|
|
/* the chapters' object: the same fabric zoomed in, on one flat quiet tile; each fact changes the map */
|
|
.nw-sm { display: flex; flex-direction: column; border-radius: 24px; background: #f5f5f5; overflow: hidden; }
|
|
.nw-sm-map { position: relative; height: min(480px, 58svh); margin: 28px 56px 8px 36px; }
|
|
.nw-sm-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
.nw-sm-links line { stroke: rgba(0, 0, 0, .18); stroke-width: 1; stroke-linecap: round; transition: stroke .3s var(--e-out), stroke-width .3s var(--e-io); }
|
|
/* chapter one draws the topology in (line art); five draws the join; six draws the work into one root */
|
|
html.js .nw-sm-links line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nw-draw .9s var(--e-io) forwards; }
|
|
@keyframes nw-draw { to { stroke-dashoffset: 0; } }
|
|
.nw-sm-links line.w1 { stroke: #737373; stroke-width: 2; }
|
|
.nw-sm-links line.w2 { stroke: #0a0a0a; stroke-width: 3; }
|
|
.nw-sm-links line.w3 { stroke: #0a0a0a; stroke-width: 5; }
|
|
.nw-sm-links line.on { stroke: #0a0a0a; stroke-width: 3; }
|
|
.nw-sm-links line.join { stroke: #0a0a0a; stroke-width: 2; }
|
|
.nw-sm-links line.settle { stroke: #0a0a0a; stroke-width: 1.5; stroke-dasharray: 1; }
|
|
.nw-sp { position: absolute; width: 0; height: 0; }
|
|
.nw-sp > i { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #a3a3a3; transition: background-color .3s var(--e-out), box-shadow .3s var(--e-out); transition-delay: calc(var(--i, 0) * 30ms); }
|
|
.nw-sp.you > i, .nw-sp.lit > i, .nw-sp.att > i { background: #0a0a0a; box-shadow: none; }
|
|
.nw-sp.idle > i { background: none; box-shadow: none; outline: 1.5px dashed #737373; outline-offset: -1.5px; }
|
|
.nw-sp.dec > i { background: #fff; box-shadow: none; outline: 1.5px dashed #0a0a0a; outline-offset: -1.5px; }
|
|
.nw-sp.new > i { background: #0a0a0a; box-shadow: none; }
|
|
html.js .nw-sp.new > i { animation: nw-join .4s var(--lx-ease) .5s both; }
|
|
@keyframes nw-join { from { transform: scale(.4); opacity: 0; } }
|
|
html.js .nw-sp .nw-tags { animation: nw-in .3s var(--lx-ease) .15s both; }
|
|
html.js .nw-sp.new .nw-tags { animation-delay: .7s; }
|
|
@keyframes nw-in { from { opacity: 0; transform: translateY(8px); } }
|
|
.nw-sp.l .nw-tags { left: auto; right: 16px; }
|
|
.nw-sm .nw-tag { background: #fff; color: #525252; }
|
|
.nw-sm .nw-tag.me, .nw-sm .nw-tag.hit { background: #0a0a0a; color: #fff; }
|
|
.nw-sm .nw-tag.q { background: #fff; color: #0a0a0a; }
|
|
.nw-sm .nw-tag.x { background: none; color: #525252; outline: 1.5px dashed #a3a3a3; outline-offset: -1.5px; text-decoration: line-through; }
|
|
.nw-sm .nw-tag.place { background: #fff; color: #0a0a0a; outline: 1.5px dashed #0a0a0a; outline-offset: -1.5px; }
|
|
.nw-region { position: absolute; padding: 12px 18px; border-radius: 8px; background: #fff; font: 500 16px/1 var(--mono); color: #737373; text-decoration: line-through; text-decoration-color: #0a0a0a; text-decoration-thickness: 1.5px; }
|
|
.nw-root { position: absolute; transform: translate(-50%, -50%); padding: 10px 14px; border-radius: 8px; background: #0a0a0a; color: #fafafa; font: 500 13px/1 var(--mono); white-space: nowrap; }
|
|
html.js .nw-root { animation: nw-in .3s var(--lx-ease) .2s both; }
|
|
.nw-root b { color: #a3a3a3; font-weight: 500; margin-right: 6px; }
|
|
.nw-sm-cap { display: flex; align-items: center; min-height: 68px; padding: 12px 28px; border-top: 1px solid var(--line); font: 500 14px/1.4 var(--mono); color: #525252; }
|
|
html.js .nw-sm-cap > * { animation: nw-in .3s var(--lx-ease) both; }
|
|
.nw-sm-cap p { margin: 0; }
|
|
.nw-sm-cap b { color: #0a0a0a; font-weight: 600; }
|
|
.nw-sm-cap code { font: inherit; color: #0a0a0a; }
|
|
.nw-sm-ten { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
|
|
.nw-ten { display: inline-grid; grid-template-columns: repeat(10, 18px); gap: 3px; }
|
|
.nw-ten i { height: 18px; border-radius: 6px; background: #e4e4e7; }
|
|
.nw-ten i.ai { background: #0a0a0a; }
|
|
.nw-cmd { margin: 0; padding: 10px 16px; border-radius: 8px; background: #171717; color: #fafafa; font: 500 15px/1 var(--mono); }
|
|
.nw-cmd span { color: #a3a3a3; margin-right: 6px; }
|
|
|
|
/* the chapter's dash: a short ink stroke runs its links, 2.4s ease-in-out, staggered, forever while pinned */
|
|
.nw-sm-links line.flow { stroke: #0a0a0a; stroke-width: 9; stroke-linecap: round; stroke-dasharray: .001 .999; stroke-dashoffset: .001; opacity: 0; }
|
|
html.js .nw-sm-links line.flow { opacity: 1; animation: nw-flow 2.4s var(--e-io) infinite; }
|
|
@keyframes nw-flow { from { stroke-dashoffset: .001; } to { stroke-dashoffset: -1; } }
|
|
/* the intro: peers only, nothing linked yet; each one is discovered in turn (a ring pings round the fabric), so
|
|
chapter one drawing the topology in is a real change, not the same picture twice */
|
|
html.js .nw-sm[data-st='intro'] .nw-sm-links line { opacity: 0; }
|
|
.nw-sm[data-st='intro'] .nw-sp:not(.you) > i::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid #0a0a0a; opacity: 0; }
|
|
html.js .nw-sm[data-st='intro'] .nw-sp:not(.you) > i::after { animation: nw-ping 4.4s var(--e-out) infinite; animation-delay: calc(var(--i) * 400ms); }
|
|
html.js .nw-sm[data-st='intro'] .nw-sp:not(.you) > i { animation: nw-found 4.4s var(--e-out) infinite; animation-delay: calc(var(--i) * 400ms); }
|
|
@keyframes nw-ping { 0% { opacity: .5; transform: scale(.5); } 14%, 100% { opacity: 0; transform: scale(1.3); } }
|
|
@keyframes nw-found { 0%, 18% { box-shadow: inset 0 0 0 2px #0a0a0a; } 30%, 100% { box-shadow: inset 0 0 0 2px #a3a3a3; } }
|
|
|
|
/* Lend it to (chapter five) */
|
|
.nw-lend { margin-top: 24px; display: grid; gap: 14px; justify-items: start; }
|
|
.nw-lend-c button { font-family: var(--sans); font-size: 15px; }
|
|
.nw-lend-a { margin: 0; font-size: 16px; line-height: 1.5; color: #525252; max-width: 40ch; }
|
|
.nw-lend-a code { font: 600 15px/1 var(--mono); color: #0a0a0a; }
|
|
|
|
/* the black room: two ends, and the strand between them */
|
|
.nw-ends { padding: clamp(72px, 11vw, 188px) 0; background: #000; }
|
|
.nw-ends-h { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); column-gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
|
|
.nw-strand { position: relative; height: clamp(120px, 11vw, 160px); margin: 0 4px 24px; }
|
|
.nw-strand svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
.nw-strand line, .nw-strand path { fill: none; vector-effect: non-scaling-stroke; }
|
|
.nw-strand .nw-pulse path { vector-effect: none; }
|
|
.nw-strand .spur { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
|
|
.nw-strand .way { stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
|
|
.nw-strand .pulse { stroke: #fafafa; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 9 120; stroke-dashoffset: 9; }
|
|
/* a request runs the strand once: line art, 1.4s ease-in-out (MASTER §3.1: only scene moves pass 500ms) */
|
|
.nw-strand .pulse.call { animation: nw-call 1.4s var(--e-io) both; }
|
|
.nw-strand .pulse.serve { animation: nw-serve 1.4s var(--e-io) both; }
|
|
@keyframes nw-call { from { stroke-dashoffset: 9; } to { stroke-dashoffset: -100; } }
|
|
@keyframes nw-serve { from { stroke-dashoffset: -100; } to { stroke-dashoffset: 9; } }
|
|
.nw-sn { position: absolute; width: 0; height: 0; }
|
|
.nw-sn::before { content: ''; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
|
|
.nw-sn.sp::before { left: -4px; top: -4px; width: 8px; height: 8px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
|
|
.nw-sn.a::before, .nw-sn.b::before { left: -9px; top: -9px; width: 18px; height: 18px; box-shadow: inset 0 0 0 2px #fafafa; }
|
|
.nw-sn.a::before { background: #fafafa; }
|
|
.nw-sn::after { content: ''; position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #fafafa; opacity: 0; transform: scale(.4); }
|
|
.nw-strand[data-flow='call'] .nw-sn.b::before { animation: nw-fill 1.4s both; }
|
|
.nw-strand[data-flow='call'] .nw-sn.b::after, .nw-strand[data-flow='serve'] .nw-sn.a::after { animation: nw-ring 1.4s both; }
|
|
.nw-strand[data-flow='rest'] .nw-sn.b::before { background: #fafafa; }
|
|
@keyframes nw-fill { 0%, 78% { background: #000; } 100% { background: #fafafa; } }
|
|
@keyframes nw-ring { 0%, 78% { opacity: 0; transform: scale(.4); } 100% { opacity: .55; transform: scale(1); } }
|
|
.nw-st { position: absolute; transform: translate(18px, -50%); padding: 7px 10px; border-radius: 6px; background: #fafafa; color: #0a0a0a; font: 500 14px/1 var(--mono); white-space: nowrap; }
|
|
.nw-st.b { transform: translate(calc(-100% - 18px), -50%); background: #262626; color: #fafafa; }
|
|
.nw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
/* each end is a flat graphite tile that opens its page: hover deepens the fill, press is .97 */
|
|
.nw-end { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: clamp(220px, 20vw, 280px); padding: 32px; border-radius: 24px; background: #171717; color: #fafafa; text-decoration: none; overflow: hidden; transition: background-color .15s var(--e-out), transform .15s var(--e-out); touch-action: manipulation; }
|
|
.nw-end .lx-kick { color: #a3a3a3; margin-bottom: 4px; }
|
|
.nw-end-t { font-weight: 497; font-size: 32px; line-height: 1.1; letter-spacing: -.025em; max-width: 10ch; }
|
|
.nw-end svg { position: absolute; right: 32px; top: 32px; }
|
|
.nw-end:active { transform: scale(.97); transition-duration: .09s; }
|
|
.nw-gh { margin-top: 40px; }
|
|
|
|
/* the agent prompt, in the black room under the two ends: the kit's 8/5 split, section-heading size, graphite box */
|
|
.nw-pastes { padding: clamp(72px, 11vw, 188px) 0; background: #fff; }
|
|
.nw .cf-paste { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); }
|
|
.nw .cf-paste-t { font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.15; }
|
|
.nw .cf-paste.dark .cf-paste-t { color: #fafafa; }
|
|
.nw .cf-paste.dark .cf-paste-d { color: rgba(255, 255, 255, .78); }
|
|
.nw .cf-paste.dark .cf-paste-box { border: 0; border-radius: 16px; background: #171717; color: #fafafa; }
|
|
.nw .cf-paste-bar { border-bottom-color: rgba(255, 255, 255, .1); }
|
|
.nw .cf-paste-bar .x-copy { background: #262626; border-color: rgba(255, 255, 255, .1); color: #fafafa; min-height: 44px; }
|
|
.nw .cf-caret { background: #fafafa; }
|
|
.nw .x-copy-t { font-size: 13px; }
|
|
.nw-docs { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
|
|
.nw-docs .lx-kick { color: #a3a3a3; }
|
|
.nw-docs-a { font: 500 17px/1.3 var(--sans); color: #fafafa; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); transition: text-decoration-color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.nw-docs-a:active { transform: scale(.97); transition-duration: .09s; }
|
|
/* every text link presses (the kit's lx-text has no :active) */
|
|
.nw .lx-text { transition: text-decoration-color .15s var(--e-out), transform .15s var(--e-out); }
|
|
.nw .lx-text:active { transform: translateY(1px); transition-duration: .09s; }
|
|
|
|
@media (hover: hover) {
|
|
.nw-seg button:not([aria-checked='true']):not([aria-pressed='true']):hover { color: #0a0a0a; background: #e4e4e7; }
|
|
.nw-end:hover { background: #262626; }
|
|
.nw-docs-a:hover { text-decoration-color: currentColor; }
|
|
}
|
|
|
|
@media (max-width: 899px) {
|
|
/* phone floor (14px) for the kit's lowercase mono captions on this page */
|
|
.nw .cf-paste-k, .nw .cf-api, .nw .cf-api i, .nw .lx-close-facts { font-size: 14px; }
|
|
.nw-hero { min-height: 0; padding: 20px 0 64px; }
|
|
.nw-hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
|
|
.nw-hero-copy { padding-top: 0; gap: 16px; }
|
|
.nw-hero-low { gap: 20px; }
|
|
.nw-lede { max-width: none; }
|
|
.nw-fab-win { flex: none; height: 240px; min-height: 0; margin: 0 calc(-1 * var(--gut)); }
|
|
.nw-map { inset: 16px 20px 18px 16px; }
|
|
.nw-peer:not(.lit):not(.you):not(.named) .nw-tags { display: none; }
|
|
.nw-peer.named:not(.lit) .nw-tag:not(.nm) { display: none; }
|
|
.nw-tags { left: 12px; }
|
|
.nw-peer.l .nw-tags { right: 12px; }
|
|
.nw-tag { padding: 5px 7px; font-size: 14px; }
|
|
.nw-tool { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: 'k p' 'a a' 'r r'; gap: 12px; }
|
|
.nw-tool-k { align-self: center; }
|
|
.nw-seg { display: grid; }
|
|
.nw-seg button { min-width: 0; padding: 0 8px; }
|
|
.nw-ask-l, .nw-route { font-size: 14px; }
|
|
.nw-sm { border-radius: 16px; height: 42svh; }
|
|
.nw-sm-map { flex: 1; height: auto; min-height: 0; margin: 20px 28px 8px 16px; }
|
|
.nw-sm .nw-tag { font-size: 14px; }
|
|
.nw-sm-cap { min-height: 56px; padding: 8px 16px; font-size: 14px; }
|
|
.nw-ten { grid-template-columns: repeat(10, 12px); }
|
|
.nw-ten i { height: 12px; border-radius: 6px; }
|
|
.nw-root { font-size: 14px; }
|
|
/* phone: only the tags that carry the chapter (the route and the placement; declared, not attested; idle) */
|
|
.nw-sm[data-st='3'] .nw-sp:not(.lit):not(.you) .nw-tag:not(.place) { display: none; }
|
|
.nw-sm[data-st='2'] .nw-tag.q { display: none; }
|
|
.nw-sm[data-st='1'] .nw-sp[data-p='2'] .nw-tag.q { display: none; }
|
|
.nw-lend { margin-top: 12px; }
|
|
.nw-lend-a, .nw-lend .x-copy { display: none; }
|
|
.nw-ends-h { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
|
|
.nw-strand { height: 120px; margin: 0 0 16px; }
|
|
.nw-two { grid-template-columns: minmax(0, 1fr); }
|
|
.nw-end { min-height: 168px; gap: 8px; padding: 24px; border-radius: 16px; }
|
|
.nw-end-t { font-size: 26px; }
|
|
.nw-end svg { right: 24px; top: 24px; }
|
|
.nw .cf-paste { grid-template-columns: minmax(0, 1fr); }
|
|
.nw .x-copy-t { font-size: 14px; }
|
|
.nw-docs { flex-direction: column; align-items: flex-start; gap: 6px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nw-peer > i, .nw-peer > i::after, .nw-links line, .nw-sp > i, .nw-sm-links line { transition: none; }
|
|
html.js .nw-sm-links line.draw, html.js .nw-sm-links line.flow, html.js .nw-sp.new > i, html.js .nw-sm[data-st='intro'] .nw-sp > i, html.js .nw-sm[data-st='intro'] .nw-sp > i::after, html.js .nw-sp .nw-tags, html.js .nw-root, html.js .nw-sm-cap > * { animation: none; stroke-dashoffset: 0; }
|
|
.nw-strand .pulse { animation: none; display: none; }
|
|
.nw-sm-links line.flow { display: none; }
|
|
}
|
|
.nw-sm .nw-sp[data-p='4'] .nw-tags { top: 12px; }
|
|
/* chapter four: peer 03's tags open to its left, so peer 04's ring never sits on them */
|
|
.nw-sm[data-st='3'] .nw-sp[data-p='3'] .nw-tags { left: auto; right: 16px; }
|
|
@media (max-width: 899px) {
|
|
.nw-sm[data-st='3'] .nw-sp[data-p='3'] .nw-tag:not(.hit) { display: none; }
|
|
/* the placement tag lifts above peer 07 and shows only uta's render (the caption names it), clear of peer 06's ring */
|
|
.nw-sm[data-st='3'] .nw-sp[data-p='7'] .nw-tags { top: -54px; right: -20px; }
|
|
.nw-sm[data-st='3'] .nw-tag.place { font-size: 0; gap: 0; padding: 4px; }
|
|
}
|
|
/* the replay control stays quiet when it shows play: white with a hairline ring and an ink glyph, never a solid
|
|
disc beside the one solid ask */
|
|
.nw .nw-pause[aria-pressed='true'] { background: #fff; color: #0a0a0a; border-color: #d4d4d4; }
|
|
@media (hover: hover) { .nw .nw-pause:hover, .nw .nw-pause[aria-pressed='true']:hover { background: #f2f2f2; color: #0a0a0a; } }
|
|
/* the resting bead: smaller and quieter than the demo's packet */
|
|
.nw-packet.idle { left: -5px; top: -5px; width: 10px; height: 10px; }
|
|
|
|
|
|
/* ---------- motion map (James, 7 Nov): signature `graph`; entrances split-merge, grow-from-point, typewriter,
|
|
zoom-through, invert-flash, one per section in page order ---------- */
|
|
|
|
/* the living graph: a peer can be picked up (mouse) and its paths light and name themselves */
|
|
.nw-peer::before { cursor: grab; }
|
|
.nw-map:active .nw-peer::before { cursor: grabbing; }
|
|
.nw-links line.nb:not(.on) { stroke: #0a0a0a; stroke-width: 1.5; }
|
|
.nw-tag.nm { padding: 7px 9px; background: #fff; color: #0a0a0a; outline: 1px solid #d4d4d4; outline-offset: -1px; }
|
|
.nw-peer.peek .nw-tag.nm { background: #0a0a0a; color: #fafafa; outline: 0; }
|
|
.nw-peer.named:not(.peek):not(.lit):not(.you) > i { box-shadow: inset 0 0 0 2px #0a0a0a; }
|
|
.nw-h1 span { display: block; }
|
|
|
|
/* 1 split-merge (hero): the words slide in from the left, the graph from the right, the title's two words from
|
|
opposite sides, and they meet. Transform only, so the h1 is never invisible. */
|
|
.nw-en-split .nw-hero-copy, .nw-en-split .nw-fab, .nw-en-split .nw-h1 span { transition: transform 1s var(--lx-ease); }
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
html.js .nw-en-split:not([data-enter='in']) .nw-hero-copy { transform: translateX(-22vw); }
|
|
html.js .nw-en-split:not([data-enter='in']) .nw-fab { transform: translateX(22vw); }
|
|
html.js .nw-en-split:not([data-enter='in']) .nw-h1-a { transform: translateX(-30vw); }
|
|
html.js .nw-en-split:not([data-enter='in']) .nw-h1-b { transform: translateX(30vw); }
|
|
}
|
|
|
|
/* 2 grow-from-point (the black room): a circle opens from where the pointer last was and the room grows out of it */
|
|
/* the clip sits on a backdrop layer (a clipped section would never report itself in view) */
|
|
.nw-en-grow { position: relative; }
|
|
.nw-en-grow > .lx-wrap { position: relative; }
|
|
html.js .nw-en-grow:not([data-enter='rest']) { background: transparent; }
|
|
html.js .nw-en-grow:not([data-enter='rest'])::before { content: ''; position: absolute; inset: 0; background: #000; }
|
|
html.js .nw-en-grow[data-enter='armed']::before { clip-path: circle(0 at 50% 50%); }
|
|
html.js .nw-en-grow[data-enter='armed'] > .lx-wrap { opacity: 0; }
|
|
html.js .nw-en-grow[data-enter='in']::before { animation: nw-grow 1.1s var(--lx-ease) both; }
|
|
html.js .nw-en-grow[data-enter='in'] > .lx-wrap { transform-origin: var(--ox, 50%) var(--oy, 50%); animation: nw-grow-in 1.1s var(--lx-ease) both; }
|
|
@keyframes nw-grow { from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(160% at var(--ox, 50%) var(--oy, 50%)); } }
|
|
@keyframes nw-grow-in { from { transform: scale(.3); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
|
|
|
|
/* 3 typewriter (how it works): the heading types itself with a caret; then the facts and the map arrive */
|
|
.nw-typed { position: relative; display: inline-block; }
|
|
.nw-typed-on { display: none; }
|
|
.nw-typed[data-armed] .nw-typed-ghost { color: transparent; }
|
|
.nw-typed[data-armed] .nw-typed-on { display: block; position: absolute; inset: 0; }
|
|
.nw-caret { display: inline-block; width: .07em; height: .95em; margin-left: .05em; background: currentColor; vertical-align: -.1em; opacity: 0; }
|
|
.nw-caret.on { animation: nw-blink 1s steps(1) 4; }
|
|
@keyframes nw-blink { 0% { opacity: 1; } 50% { opacity: 0; } }
|
|
html.js .nw-en-type[data-enter='armed'] .nw-how-grid { opacity: 0; }
|
|
html.js .nw-en-type[data-enter='in'] .nw-how-grid { animation: nw-after 0.5s var(--lx-ease) 1.15s both; }
|
|
@keyframes nw-after { from { opacity: 0; transform: translateY(16px); } }
|
|
|
|
/* 4 zoom-through (the agent prompt): flies in from far behind the screen */
|
|
.nw-en-zoom { perspective: 900px; overflow: hidden; }
|
|
html.js .nw-en-zoom[data-enter='armed'] > .lx-wrap { transform: translateZ(-1800px); opacity: 0; }
|
|
html.js .nw-en-zoom[data-enter='in'] > .lx-wrap { animation: nw-zoom 1s var(--lx-ease) both; }
|
|
@keyframes nw-zoom { from { transform: translateZ(-1800px); opacity: 0; } 25% { opacity: 1; } to { transform: none; opacity: 1; } }
|
|
|
|
/* 5 invert-flash (the close): it arrives inverted, black for white, holds a beat, then turns to paper */
|
|
.nw-en-flash { background: #fff; }
|
|
html.js .nw-en-flash[data-enter='in'] { animation: nw-flash .9s var(--e-io) both; }
|
|
@keyframes nw-flash { 0%, 38% { filter: invert(1); } 100% { filter: invert(0); } }
|
|
|
|
/* how it works, not pinned: six facts as rows (the open one shows its words) beside the fabric they change */
|
|
.nw-how { padding: clamp(72px, 11vw, 188px) 0; }
|
|
.nw-how-h { margin: 0 0 clamp(32px, 4vw, 56px); }
|
|
.nw-how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
|
|
.nw-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
|
|
.nw-fact { border-bottom: 1px solid var(--line); padding: 8px 0; }
|
|
.nw-fact-t { margin: 0; font: 497 21px/1.25 var(--sans); letter-spacing: -.015em; }
|
|
.nw-fact-t button { display: flex; align-items: baseline; gap: 14px; width: 100%; min-height: 48px; padding: 8px 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-align: left; color: #737373; cursor: pointer; transition: color .15s var(--e-out), transform .15s var(--e-out); touch-action: manipulation; }
|
|
.nw-fact-t button:active { transform: translateY(1px); transition-duration: .09s; }
|
|
.nw-fact.on .nw-fact-t button { color: #0a0a0a; }
|
|
.nw-fact-n { flex: none; width: 22px; font: 500 13px/1 var(--mono); color: #737373; }
|
|
.nw-fact.on .nw-fact-n { color: #0a0a0a; }
|
|
.nw-fact-d { margin: 0; padding: 0 0 12px 36px; font-size: 16px; line-height: 1.55; color: #525252; max-width: 46ch; }
|
|
.nw-fact .nw-lend { margin: 4px 0 12px 36px; }
|
|
html.js .nw-fact:not(.on) .nw-fact-d, html.js .nw-fact:not(.on) .nw-lend { display: none; }
|
|
html.js .nw-fact.on .nw-fact-d, html.js .nw-fact.on .nw-lend { animation: nw-after .3s var(--lx-ease) both; }
|
|
@media (hover: hover) { .nw-fact:not(.on) .nw-fact-t button:hover { color: #0a0a0a; } }
|
|
.nw-how-obj { min-width: 0; }
|
|
|
|
@media (max-width: 899px) {
|
|
.nw-how-grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
|
|
.nw-how-obj { order: -1; }
|
|
.nw-how .nw-sm { height: 42svh; }
|
|
.nw-fact-t { font-size: 17px; }
|
|
.nw-fact-d { padding-left: 36px; font-size: 15px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.nw-caret { display: none; }
|
|
}
|
|
.nw-how-count { margin: 14px 0 0; color: #525252; font-variant-numeric: tabular-nums; }
|
|
|
|
/* ---------- dark (Hanzo's :not(.light), docs/DARK-MODE.md): every value a token from @hanzo/design, by role ----------
|
|
The shared .lx kit (components/v2/LaunchType.css, LaunchClose.css) pins its light ink, greys and tiles in both modes, so
|
|
the page points them at Hanzo's tokens here (.lx renames --muted and --card, so fills use the foundation's --x-*
|
|
tokens). The fabric draws in Hanzo's foreground on its background: idle links white 15%, lit links and peers in
|
|
foreground; tags and tracks on #171717 / #262626; the chapter tile on #171717; ink fills turn light with dark type
|
|
(Hanzo's primary). The black room (two ends) stays black. */
|
|
html:not(.light) .nw {
|
|
--ink: var(--foreground); --acc: var(--foreground); --acc-soft: var(--x-fill); --muted: var(--muted-foreground); --soft: var(--muted-foreground);
|
|
--faint: var(--text-tertiary); --silver: var(--x-knob); --card: var(--x-fill); --line: var(--border); --bg: var(--background);
|
|
}
|
|
html:not(.light) .nw .lx-cta { background: var(--primary); color: var(--primary-foreground); }
|
|
html:not(.light) .nw .lx-ghost { border-color: var(--border-control); }
|
|
html:not(.light) .nw :is(.lx-text, .lx-close-repo) { text-decoration-color: var(--text-disabled); }
|
|
html:not(.light) .nw .cf-api i { background: var(--x-knob) !important; color: var(--foreground) !important; }
|
|
html:not(.light) .nw :focus-visible { outline-color: var(--foreground); box-shadow: 0 0 0 4px var(--background); }
|
|
html:not(.light) .nw :is(.lx-close-art, .lx-rel-card) { background: var(--x-fill); }
|
|
html:not(.light) .nw .lx-close-sigil { color: var(--foreground); }
|
|
html:not(.light) .nw .lx-sheet-panel { color: var(--foreground); --ink: var(--foreground); --soft: var(--muted-foreground); --muted: var(--muted-foreground); --faint: var(--text-tertiary); --line: var(--border); }
|
|
html:not(.light) .nw .lx-sheet-bar { background: var(--surface-overlay); }
|
|
html:not(.light) .nw .lx-sheet-x { color: var(--foreground); }
|
|
@media (hover: hover) {
|
|
html:not(.light) .nw .lx-cta:hover { background: var(--foreground); }
|
|
html:not(.light) .nw .lx-ghost:hover { border-color: var(--foreground); background: var(--x-fill); }
|
|
html:not(.light) .nw .lx-sheet-x:hover { background: var(--x-fill); }
|
|
}
|
|
html:not(.light) .nw :is(.nw-route.pv, .nw-ans.on, .nw-seg button[aria-checked='true'], .nw-seg button[aria-pressed='true'], .nw-peer.peek .nw-tag:not(.hit), .nw-sm .nw-tag.q, .nw-sm .nw-tag.place, .nw-sm-cap b, .nw-sm-cap code, .nw-lend-a code, .nw-fact.on .nw-fact-t button, .nw-fact.on .nw-fact-n, .nw-tag.nm) { color: var(--foreground); }
|
|
html:not(.light) .nw :is(.nw-tag, .nw-seg button, .nw-sm .nw-tag, .nw-sm .nw-tag.x, .nw-sm-cap, .nw-lend-a, .nw-fact-d, .nw-how-count) { color: var(--muted-foreground); }
|
|
html:not(.light) .nw :is(.nw-ask-l, .nw-route, .nw-ans, .nw-region, .nw-fact-t button, .nw-fact-n) { color: var(--text-tertiary); }
|
|
html:not(.light) .nw :is(.nw-pastes, .nw-en-flash, .nw-peer > i) { background: var(--background); }
|
|
html:not(.light) .nw :is(.nw-tag, .nw-seg, .nw-sm) { background: var(--x-fill); }
|
|
html:not(.light) .nw :is(.nw-pick, .nw-sm .nw-tag:not(.x), .nw-sm .nw-tag.q, .nw-sm .nw-tag.place, .nw-region, .nw-peer.peek .nw-tag:not(.hit), .nw-ten i) { background: var(--x-knob); }
|
|
html:not(.light) .nw :is(.nw-sp > i, .nw-sp.dec > i, .nw-tag.nm) { background: var(--x-raised); }
|
|
html:not(.light) .nw .nw-sp.idle > i { background: none; }
|
|
html:not(.light) .nw .nw-cmd { background: var(--background); }
|
|
/* ink fills: Hanzo's primary, light with dark type */
|
|
html:not(.light) .nw :is(.nw-tag.me, .nw-tag.hit, .nw-sm .nw-tag.me, .nw-sm .nw-tag.hit, .nw-packet, .nw-peer.lit > i, .nw-peer.you > i, .nw-sp.you > i, .nw-sp.lit > i, .nw-sp.att > i, .nw-sp.new > i, .nw-root, .nw-ten i.ai, .nw-peer.peek .nw-tag.nm) { background: var(--foreground); }
|
|
html:not(.light) .nw :is(.nw-tag.me, .nw-tag.hit, .nw-sm .nw-tag.me, .nw-sm .nw-tag.hit, .nw-root, .nw-root b, .nw-peer.peek .nw-tag.nm) { color: var(--primary-foreground); }
|
|
/* the fabric's lines and rings */
|
|
html:not(.light) .nw .nw-links line, html:not(.light) .nw .nw-sm-links line { stroke: var(--border-control); }
|
|
html:not(.light) .nw :is(.nw-links line.on, .nw-links line.nb:not(.on), .nw-sm-links line.w2, .nw-sm-links line.w3, .nw-sm-links line.on, .nw-sm-links line.join, .nw-sm-links line.settle, .nw-sm-links line.flow) { stroke: var(--foreground); }
|
|
html:not(.light) .nw :is(.nw-links line.pv:not(.on), .nw-sm-links line.w1) { stroke: var(--text-tertiary); }
|
|
html:not(.light) .nw .nw-peer > i { box-shadow: inset 0 0 0 2px var(--border-control); }
|
|
html:not(.light) .nw :is(.nw-peer.lit > i, .nw-peer.named:not(.peek):not(.lit):not(.you) > i) { box-shadow: inset 0 0 0 2px var(--foreground); }
|
|
html:not(.light) .nw .nw-peer.you > i { box-shadow: none; }
|
|
html:not(.light) .nw .nw-peer.peek > i { box-shadow: inset 0 0 0 4px var(--foreground); }
|
|
html:not(.light) .nw :is(.nw-peer > i::after, .nw-sm[data-st='intro'] .nw-sp:not(.you) > i::after) { border-color: var(--foreground); }
|
|
html:not(.light) .nw :is(.nw-sp.dec > i, .nw-sm .nw-tag.place) { outline-color: var(--foreground); }
|
|
html:not(.light) .nw .nw-sp.idle > i { outline-color: var(--text-tertiary); }
|
|
html:not(.light) .nw .nw-tag.nm { outline-color: var(--border-control); }
|
|
html:not(.light) .nw .nw-peer.peek .nw-tag.nm { outline: 0; }
|
|
html:not(.light) .nw .nw-region { text-decoration-color: var(--foreground); }
|
|
html.js:not(.light) .nw .nw-sm[data-st='intro'] .nw-sp:not(.you) > i { animation-name: nw-found-d; }
|
|
@keyframes nw-found-d { 0%, 18% { box-shadow: inset 0 0 0 2px var(--foreground); } 30%, 100% { box-shadow: inset 0 0 0 2px var(--muted-foreground); } }
|
|
html:not(.light) .nw .nw-pause[aria-pressed='true'] { background: var(--x-raised); color: var(--foreground); border-color: var(--border-control); }
|
|
@media (hover: hover) {
|
|
html:not(.light) .nw .nw-seg button:not([aria-checked='true']):not([aria-pressed='true']):hover { color: var(--foreground); background: var(--x-knob); }
|
|
html:not(.light) .nw .nw-fact:not(.on) .nw-fact-t button:hover { color: var(--foreground); }
|
|
html:not(.light) .nw :is(.nw-pause:hover, .nw-pause[aria-pressed='true']:hover) { background: var(--x-fill); color: var(--foreground); }
|
|
}
|
|
html:not(.light) .nw .nw-pastes .cf-paste-box { box-shadow: inset 0 0 0 1px var(--border); }
|
|
/* live's hero halftone (components/pages/HeroDither, dark only) fills the hero under its content */
|
|
html:not(.light) .nw .nw-hero { position: relative; }
|