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_01P5YBdx19ukLv4B41yE4M3v
414 lines
35 KiB
CSS
414 lines
35 KiB
CSS
/* Datastore (v2, MASTER): see Datastore.jsx. Built on components/v2/Keynote*. Deck greys only; status is a shape
|
|
(filled ink = read / on, hollow = not), never a colour. Sizes from the deck scale. */
|
|
.ds-k { margin: 0; font: 606 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#525252, var(--muted-foreground)); }
|
|
|
|
/* the hero object: the query console (an outlined window; the columns being read fill with ink) */
|
|
.ds-q { display: flex; flex-direction: column; }
|
|
.ds-q-bar { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 clamp(24px, 6vw, 88px); border-bottom: 1px solid var(--hair); }
|
|
.ds-q-bar > i { width: 10px; height: 10px; border-radius: 50%; background: light-dark(#e4e4e7, var(--secondary)); }
|
|
.ds-q-t { margin-left: 12px; display: inline-flex; align-items: center; gap: 10px; font: 497 16px/1 var(--mono); }
|
|
.ds-q-t em { padding: 5px 8px; border-radius: 6px; background: light-dark(#f5f5f5, var(--muted)); font: 400 13px/1 var(--mono); font-style: normal; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.ds-q-reads { margin: 0 0 0 auto; display: flex; align-items: baseline; gap: 8px; font: 400 16px/1 var(--sans); color: var(--body); }
|
|
/* the count only settles: the true number cuts in from behind a mask, never through other digits */
|
|
.ds-q-n { display: inline-block; overflow: hidden; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
|
|
.ds-q-n b { display: inline-block; min-width: 1ch; font-size: 26px; font-weight: 400; letter-spacing: -.02em; color: var(--ink); font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
|
|
.js .ds-q-n b { animation: ds-cut .3s var(--e-in) both; }
|
|
.js .ds-q-reads, .js .ds-q-line:not([hidden]) { animation: ds-swap .3s var(--e-in) both; } /* the count and the query settle in as they change */
|
|
@keyframes ds-swap { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
|
|
.ds-q-sql .ds-q-line[hidden] { display: none; }
|
|
@keyframes ds-cut { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
|
|
.ds-q-sql { padding: clamp(24px, 2.6vw, 32px) clamp(24px, 6vw, 88px); border-bottom: 1px solid var(--hair); min-height: 5.6em; }
|
|
.ds-q-sql .ds-q-line { display: block; font: 400 21px/1.45 var(--mono); letter-spacing: -.01em; color: var(--ink); }
|
|
.ds-files { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: clamp(24px, 2.6vw, 32px) clamp(24px, 6vw, 88px) 16px; }
|
|
.ds-file { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 4px 10px; border-radius: 12px; border: 1px solid var(--hair); background: var(--x-raised); color: var(--body); cursor: pointer; overflow: hidden; text-align: center; transition: border-color .3s var(--e-move), background-color .3s var(--e-move), color .3s var(--e-move), transform .15s var(--e-out); }
|
|
.ds-file.on { border-color: var(--ink); background: var(--ink); color: light-dark(#fafafa, var(--primary-foreground)); }
|
|
.ds-file.fixed { cursor: default; }
|
|
.ds-name { font: 400 13px/1.1 var(--mono); letter-spacing: -.02em; min-height: 2.2em; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
|
|
.ds-blocks { display: grid; gap: 4px; }
|
|
.ds-blocks i { height: 12px; border-radius: 6px; background: var(--ink); transition: background-color .3s var(--e-move); }
|
|
.ds-file.on .ds-blocks i { background: var(--x-sunk); }
|
|
/* the scan: a band of white light running down the files being read (CSS, so it moves at first paint) */
|
|
.ds-beam { position: absolute; left: 0; right: 0; top: 0; height: 36%; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2) 70%, rgba(255, 255, 255, .4)); pointer-events: none; animation: ds-beam 1.5s var(--e-move) infinite; }
|
|
@keyframes ds-beam { from { transform: translate3d(0, -100%, 0); } to { transform: translate3d(0, 290%, 0); } }
|
|
.ds-q-foot { padding: 4px clamp(24px, 6vw, 88px) clamp(20px, 2.4vw, 32px); }
|
|
.ds-q-foot p { margin: 0; font-size: 14px; color: var(--quiet); }
|
|
@media (hover: hover) { .ds-file:not(.on):hover { border-color: light-dark(#a3a3a3, var(--border-strong)); color: var(--ink); } }
|
|
.ds-file:not(.fixed):active { transform: scale(.97); transition-duration: 90ms; }
|
|
.ds-file:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
|
|
|
|
/* chapters: what it does (heading left, Hanzo's lede right) */
|
|
.ds-ch-head { align-items: end; row-gap: 17px; }
|
|
.ds-ch-h { grid-column: 1 / span 5; }
|
|
.ds-ch-l { grid-column: 7 / -1; max-width: 32ch; }
|
|
.ds-ch .knc-head { padding-bottom: 27px; }
|
|
.ds-sc { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 27px; padding: clamp(24px, 3.6vw, 56px); background: light-dark(#f5f5f5, var(--muted)); border-color: transparent; --quiet: light-dark(#525252, var(--muted-foreground)); }
|
|
.ds-s-cap { margin: 0; font: 400 14px/1.3 var(--mono); color: light-dark(#525252, var(--muted-foreground)); text-align: center; }
|
|
|
|
.ds-s-cols { flex-direction: row; align-items: stretch; justify-content: center; gap: clamp(12px, 1.6vw, 24px); }
|
|
.ds-s-file { flex: 1; max-width: 150px; display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; border-radius: 16px; background: var(--x-raised); }
|
|
.ds-s-file b { font: 497 16px/1 var(--mono); text-align: center; }
|
|
.ds-s-file span { flex: 1; display: flex; flex-direction: column; gap: 5px; }
|
|
.ds-s-file span i { flex: 1; min-height: 12px; border-radius: 6px; background: var(--ink); }
|
|
.ds-s-file em { font: 400 14px/1 var(--mono); font-style: normal; text-align: center; color: light-dark(#525252, var(--muted-foreground)); padding: 8px 0 2px; border-top: 1px solid var(--hair); }
|
|
:is(.knc-v, .ds-fact-v)[data-on] .ds-s-file { animation: ds-file-in .5s var(--e-in) both; animation-delay: calc(var(--i) * 60ms); }
|
|
@keyframes ds-file-in { from { transform: translate3d(0, 16px, 0); } to { transform: none; } }
|
|
|
|
.ds-nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
|
|
.ds-node { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 16px; border: 1px dashed transparent; background: var(--x-raised); transition: background-color .4s var(--e-move), border-color .4s var(--e-move); }
|
|
.js .ds-node:not(.in) { background: transparent; border-color: light-dark(#a3a3a3, var(--border-strong)); }
|
|
.js .ds-node:not(.in) > * { visibility: hidden; }
|
|
.ds-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
|
|
.ds-parts i { height: 64px; border-radius: 8px; background: var(--ink); }
|
|
.ds-parts i.merged { grid-column: span 2; }
|
|
.ds-parts i.gone { display: none; }
|
|
|
|
.ds-raft { position: relative; width: min(100%, 460px); aspect-ratio: 300 / 260; margin: 0 auto; }
|
|
.ds-raft svg { position: absolute; inset: 0; width: 100%; height: 100%; }
|
|
.ds-raft path { fill: none; stroke: light-dark(#737373, var(--text-tertiary)); stroke-width: 1.5; stroke-dasharray: 5 6; }
|
|
.ds-raft-q { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); margin: 0; font: 606 14px/1 var(--mono); color: var(--ink); white-space: nowrap; }
|
|
.ds-rep { position: absolute; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--x-raised); transform: translate(-50%, -50%); }
|
|
.ds-rep.r0 { left: 50%; top: 15%; }
|
|
.ds-rep.r1 { left: 13%; top: 81%; }
|
|
.ds-rep.r2 { left: 87%; top: 81%; }
|
|
.ds-rep b { font: 606 14px/1 var(--mono); }
|
|
.ds-rep span { display: flex; gap: 3px; }
|
|
.ds-rep i { width: 14px; height: 18px; border-radius: 6px; border: 1.5px solid light-dark(#a3a3a3, var(--border-strong)); transition: background-color .3s var(--e-move), border-color .3s var(--e-move); }
|
|
.ds-rep i.on { background: var(--ink); border-color: var(--ink); }
|
|
|
|
.ds-disk-tabs { display: flex; gap: 4px; align-self: center; padding: 4px; border-radius: 999px; background: var(--x-raised); }
|
|
.ds-disk-tabs span { padding: 12px 18px; border-radius: 999px; font: 400 14px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); transition: background-color .3s var(--e-in), color .3s var(--e-in); }
|
|
.ds-disk-tabs span.on { background: var(--ink); color: var(--x-on-ink); }
|
|
.ds-disk { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 12px; }
|
|
.ds-dn { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 16px; border-radius: 16px; background: var(--x-raised); }
|
|
.ds-dn b { font: 497 16px/1 var(--mono); }
|
|
.ds-dn i { width: 76%; height: 64px; border-radius: 8px; background: var(--ink); transition: transform .5s var(--e-move), opacity .4s var(--e-move); transform-origin: 50% 0; }
|
|
.ds-bucket { grid-column: 1 / -1; display: grid; place-items: center; height: 88px; border-radius: 16px; border: 1.5px dashed var(--ink); font: 400 14px/1 var(--mono); color: var(--ink); }
|
|
.js .ds-bucket { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .4s var(--e-in), transform .5s var(--e-in); }
|
|
.ds-disk.obj .ds-dn i { transform: scaleY(.25); opacity: .25; }
|
|
.js .ds-disk.obj .ds-bucket { opacity: 1; transform: none; }
|
|
.ds-ttl { display: flex; align-items: center; gap: 6px; }
|
|
.ds-ttl span { flex: 1; padding: 14px 0; border-radius: 8px; background: var(--x-raised); font: 400 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); text-align: center; }
|
|
.ds-ttl span.old { background: transparent; border: 1px dashed light-dark(#a3a3a3, var(--border-strong)); color: light-dark(#525252, var(--muted-foreground)); text-decoration: line-through; }
|
|
.ds-ttl em { font: 606 14px/1 var(--mono); font-style: normal; color: var(--ink); }
|
|
|
|
.ds-s-shape { gap: 21px; }
|
|
.ds-streams { display: grid; gap: 8px; }
|
|
.ds-streams p { margin: 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 12px; }
|
|
.ds-streams b { font: 606 14px/1 var(--mono); text-transform: lowercase; }
|
|
.ds-streams i { position: relative; height: 2px; background: light-dark(#d4d4d4, var(--secondary-hover)); overflow: hidden; }
|
|
.ds-streams i::after { content: ''; position: absolute; left: 0; top: 0; width: 18%; height: 100%; background: var(--ink); transform: translateX(-100%); }
|
|
:is(.knc-v, .ds-fact-v)[data-on] .ds-streams i::after { animation: ds-flow 1.5s linear 3; animation-delay: calc(var(--i) * .3s); }
|
|
@keyframes ds-flow { to { transform: translateX(560%); } }
|
|
.ds-time { display: flex; flex-direction: column; gap: 10px; }
|
|
.ds-time span { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
|
|
.ds-time i { height: 44px; border-radius: 8px; background: var(--ink); opacity: calc(.35 + var(--j) * .09); }
|
|
.ds-mv { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 16px; background: var(--x-raised); }
|
|
.ds-mv span { display: flex; align-items: flex-end; gap: 8px; height: 56px; }
|
|
.ds-mv i { flex: 1; height: 100%; border-radius: 6px 6px 0 0; background: var(--ink); transform-origin: 50% 100%; transform: scaleY(var(--h)); }
|
|
:is(.knc-v, .ds-fact-v)[data-on] .ds-mv i { animation: ds-roll .9s var(--e-move) 3 alternate both; animation-delay: calc(var(--j) * .12s); }
|
|
@keyframes ds-roll { from { transform: scaleY(calc(var(--h) * .8)); } to { transform: scaleY(var(--h)); } }
|
|
|
|
.ds-ports { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
|
|
.ds-ports li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 17px 4px; border-bottom: 1px solid var(--hair); }
|
|
.ds-ports b { font-size: 21px; font-weight: 497; letter-spacing: -.015em; }
|
|
.ds-ports span { font: 400 14px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
|
|
.ds-ports span.num { font: 220 32px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
|
|
.ds-loads { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.ds-loads span { padding: 9px 14px; border-radius: 999px; background: var(--x-raised); font: 400 14px/1 var(--mono); }
|
|
|
|
/* the signature: the exploded table, in the quiet room */
|
|
.ds-x { position: relative; background: light-dark(#f5f5f5, var(--muted)); --quiet: light-dark(#525252, var(--muted-foreground)); --body: light-dark(#525252, var(--muted-foreground)); }
|
|
.ds-x-run { position: relative; }
|
|
.ds-x-pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(17px, 3vh, 44px); padding: clamp(72px, 11vw, 188px) 0; }
|
|
.ds-x-top { align-items: end; row-gap: 17px; }
|
|
.ds-x-h { grid-column: 1 / span 5; max-width: 18ch; }
|
|
.ds-x-lede { grid-column: 7 / -1; padding-bottom: .2em; }
|
|
.ds-x-stage { display: flex; justify-content: center; min-height: 0; }
|
|
.ds-x-obj { --ex: 0; --sp: 0; --cz: 0; --gx: 26px; --gy: 16px; position: relative; display: flex; gap: 3px; padding: 8px 0; }
|
|
.ds-x-col { position: relative; width: clamp(72px, 8.4vw, 124px); display: flex; flex-direction: column; gap: 3px; transform: translate3d(calc(var(--ci) * var(--ex) * var(--gx)), 0, 0); }
|
|
.ds-x-name { margin: 0; height: 30px; display: grid; place-items: center; border-radius: 6px 6px 0 0; border: 1px solid var(--ink); background: var(--ink); color: var(--x-on-ink); font: 400 13px/1 var(--mono); white-space: nowrap; overflow: hidden; transition: background-color .3s var(--e-move), color .3s var(--e-move), border-color .3s var(--e-move); }
|
|
.ds-x-codec { margin: 4px 0 2px; height: 14px; text-align: center; font: 400 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); opacity: var(--cz); transform: translate3d(0, calc((1 - var(--cz)) * 8px), 0); }
|
|
.ds-x-parts { position: relative; display: flex; flex-direction: column; gap: 3px; transform-origin: 50% 0; transform: scaleY(calc(1 - var(--cz) * (1 - var(--r)))); }
|
|
.ds-x-part { position: relative; display: flex; flex-direction: column; gap: 3px; transform: translate3d(0, calc(var(--pi) * var(--sp) * var(--gy)), 0); transition: opacity .4s var(--e-move); }
|
|
.ds-x-part::before { content: ''; position: absolute; left: -6px; top: 0; width: 3px; height: 10px; border-radius: 999px; background: var(--ink); opacity: var(--sp); }
|
|
.ds-x-part i { display: block; height: clamp(10px, 1.75vh, 17px); border-radius: 6px; background: var(--ink); opacity: var(--v); transition: opacity .4s var(--e-move); }
|
|
.ds-x-row { position: absolute; left: -10px; right: -10px; top: calc(64px + 4 * (clamp(10px, 1.75vh, 17px) + 3px)); height: calc(clamp(10px, 1.75vh, 17px) + 6px); margin-top: -3px; border-radius: 6px; border: 2px solid var(--ink); opacity: calc(1 - var(--ex) * 4); pointer-events: none; }
|
|
/* a column that steps back keeps its name as a hollow outline (not a fade); its blocks thin out */
|
|
/* 01: the named columns are read, the rest are not */
|
|
.ds-x-obj.s0 .ds-x-col:not(.read) .ds-x-parts { opacity: calc(1 - var(--ex) * .7); }
|
|
.ds-x-obj.s0[data-apart] .ds-x-col:not(.read) .ds-x-name { background: transparent; color: light-dark(#525252, var(--muted-foreground)); border-color: light-dark(#a3a3a3, var(--border-strong)); }
|
|
.ds-x-obj.s0 .ds-x-col.read .ds-x-part i { opacity: calc(var(--v) + .35); }
|
|
/* 02: a block of one column's values, one instruction */
|
|
.ds-x-obj.s1 .ds-x-col:not(.vec) .ds-x-parts { opacity: .35; }
|
|
.ds-x-obj.s1 .ds-x-col:not(.vec) .ds-x-name { background: transparent; color: light-dark(#525252, var(--muted-foreground)); border-color: light-dark(#a3a3a3, var(--border-strong)); }
|
|
.ds-x-obj.s1 .ds-x-col.vec .ds-x-part:nth-child(-n+2) i { opacity: 1; }
|
|
.ds-x-col.vec .ds-x-parts::after { content: ''; position: absolute; left: -6px; right: -6px; top: -4px; height: calc(50% + 4px); border-radius: 8px; border: 2px solid var(--ink); opacity: 0; transition: opacity .4s var(--e-move); pointer-events: none; }
|
|
.ds-x-obj.s1 .ds-x-col.vec .ds-x-parts::after { opacity: 1; }
|
|
/* 03: sorted parts, a contiguous run */
|
|
.ds-x-obj.s2 .ds-x-part:not(.run) { opacity: .3; }
|
|
.ds-x-obj.s2 .ds-x-part.run i { opacity: 1; }
|
|
|
|
.ds-x-bot { align-items: end; min-height: 200px; row-gap: 17px; }
|
|
.ds-x-says { grid-column: 1 / span 6; display: grid; gap: 27px; }
|
|
.ds-x-say { display: flex; flex-direction: column; gap: 10px; }
|
|
.ds-x-k { margin: 0; font: 606 12px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); letter-spacing: .14em; }
|
|
.ds-x-p { margin: 0; font-size: 16px; line-height: 1.6; color: light-dark(#525252, var(--muted-foreground)); max-width: 58ch; }
|
|
.ds-x-p.sub { font-size: 14px; }
|
|
.ds-x-rail { grid-column: 9 / span 4; justify-self: end; display: flex; gap: 4px; }
|
|
.ds-x-rail button { min-width: 48px; height: 44px; border: 0; border-radius: 999px; background: var(--x-raised); font: 497 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); cursor: pointer; transition: background-color .3s var(--e-in), color .3s var(--e-in), transform .15s var(--e-out); }
|
|
.ds-x-rail button[aria-current] { background: var(--ink); color: var(--x-on-ink); }
|
|
@media (hover: hover) { .ds-x-rail button:not([aria-current]):hover { background: light-dark(#ededed, var(--secondary)); color: var(--ink); } }
|
|
.ds-x-rail button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.ds-x-rail button:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
|
|
/* pinned and one sentence at a time only on wide screens with JS; JS off or phones: every sentence stands */
|
|
@media (min-width: 900px) {
|
|
.js .ds-x-run { height: 420svh; }
|
|
.js .ds-x-pin { position: sticky; top: 0; height: 100svh; padding: 64px 0 0; overflow: hidden; }
|
|
.js .ds-x-says { gap: 0; }
|
|
.js .ds-x-say { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translate3d(0, 20px, 0); visibility: hidden; transition: opacity .3s var(--e-move), transform .4s var(--e-move), visibility 0s linear .4s; }
|
|
.js .ds-x-say[data-on] { opacity: 1; transform: none; visibility: visible; transition: opacity .5s var(--e-in) .08s, transform .5s var(--e-in) .05s, visibility 0s; }
|
|
}
|
|
html:not(.js) .ds-x-rail { display: none; }
|
|
|
|
/* what people point it at */
|
|
.ds-who-g { row-gap: 44px; align-items: start; }
|
|
.ds-who-h { grid-column: 1 / span 4; position: sticky; top: 116px; display: flex; flex-direction: column; gap: 17px; }
|
|
.ds-index { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--kn-g); }
|
|
.ds-index li { break-inside: avoid; display: flex; align-items: baseline; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hair); font-size: 21px; font-weight: 497; letter-spacing: -.015em; line-height: 1.2; }
|
|
.ds-index li span { flex: none; font: 400 13px/1 var(--mono); color: var(--quiet); }
|
|
|
|
/* Beyond: which way in (quiet room; the board is the one figure on this screen) */
|
|
.ds-ways { background: light-dark(#f5f5f5, var(--muted)); --quiet: light-dark(#525252, var(--muted-foreground)); }
|
|
.ds-ways-g { align-items: center; row-gap: 44px; }
|
|
.ds-ways-l { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 27px; }
|
|
.ds-ways-h { display: flex; flex-direction: column; gap: 10px; }
|
|
.ds-ways-pick { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.ds-ways-pick button { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid light-dark(rgba(0, 0, 0, .1), var(--border)); background: transparent; font: 497 16px/1 var(--sans); color: light-dark(#525252, var(--muted-foreground)); cursor: pointer; transition: background-color .3s var(--e-in), color .3s var(--e-in), border-color .3s var(--e-in), transform .15s var(--e-out); }
|
|
.ds-ways-pick button[aria-checked='true'] { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); }
|
|
@media (hover: hover) { .ds-ways-pick button[aria-checked='false']:hover { color: var(--ink); border-color: light-dark(#a3a3a3, var(--border-strong)); } }
|
|
.ds-ways-pick button:active { transform: scale(.97); transition-duration: 90ms; }
|
|
.ds-ways-pick button:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
|
|
.ds-port { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 17px; padding: clamp(27px, 4vw, 44px); border-radius: 24px; background: var(--x-raised); }
|
|
.ds-port-k { margin: 0; font: 606 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#737373, var(--text-tertiary)); }
|
|
/* the board: one dark tile per digit, a hairline across its middle; a new digit drops in from behind the tile */
|
|
.ds-board { margin: 0; display: flex; gap: 6px; }
|
|
.ds-tile { position: relative; display: grid; place-items: center; width: 64px; height: 84px; border-radius: 8px; background: #0a0a0a; overflow: hidden; }
|
|
.ds-tile::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .14); }
|
|
.ds-tile b { display: block; font-size: 64px; font-weight: 220; line-height: 1; letter-spacing: -.02em; color: #fafafa; font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
|
|
.js .ds-tile b { animation: ds-drop .4s var(--e-in) both; animation-delay: calc(var(--i) * 60ms); }
|
|
@keyframes ds-drop { from { transform: translate3d(0, -105%, 0); } to { transform: none; } }
|
|
.ds-port-w { margin: 0; overflow: hidden; padding: .04em 0 .12em; font-size: 44px; font-weight: 497; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
|
|
.ds-port-w span { display: inline-block; }
|
|
.js .ds-port-w span { animation: ds-cut .4s var(--e-in) both; }
|
|
.ds-port-l { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 44ch; }
|
|
.ds-port-f { margin: 0; padding-top: 17px; border-top: 1px solid var(--hair); font-size: 16px; line-height: 1.5; color: light-dark(#525252, var(--muted-foreground)); }
|
|
|
|
/* the close's text-link ask (kit Cta link) reads --ink, which the dark room does not flip: white on graphite here */
|
|
.ds .knx .x-arrow { color: #fafafa; }
|
|
/* the kit's text-link asks get a 44px target (the link is 21px of text) */
|
|
.ds .x-arrow { min-height: 44px; }
|
|
|
|
[data-off] .ds-beam, [data-off] .ds-streams i::after, [data-off] .ds-mv i, [data-off] .ds-tile b { animation-play-state: paused; }
|
|
|
|
@media (min-width: 900px) and (max-width: 1199px) { .ds-files { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
|
|
@media (max-width: 899px) {
|
|
.ds-q-bar { min-height: 0; flex-wrap: wrap; row-gap: 6px; padding: 12px 16px; }
|
|
.ds-q-bar > i { display: none; }
|
|
.ds-q-t { margin-left: 0; font-size: 14px; }
|
|
.ds-q-t em { font-size: 14px; }
|
|
.ds-q-reads { font-size: 14px; }
|
|
.ds-q-n b { font-size: 21px; }
|
|
.ds-q-sql { padding: 17px 16px; min-height: 7.4em; }
|
|
.ds-q-sql .ds-q-line { font-size: 16px; }
|
|
.ds-files { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 16px 16px 8px; }
|
|
.ds-file { padding: 10px 4px 8px; gap: 8px; min-height: 44px; }
|
|
.ds-name { font-size: 14px; letter-spacing: -.03em; }
|
|
.ds-blocks { gap: 3px; }
|
|
.ds-blocks i { height: 5px; }
|
|
.ds-q-foot { padding: 4px 16px 17px; }
|
|
|
|
.ds-ch-h, .ds-ch-l { grid-column: 1 / -1; }
|
|
.ds-ch .knc-v { aspect-ratio: auto; height: auto; min-height: 320px; }
|
|
.ds-sc { padding: 20px; gap: 17px; }
|
|
.ds-s-cols { gap: 8px; }
|
|
.ds-s-file { padding: 12px 6px; }
|
|
.ds-s-file b, .ds-s-file em { font-size: 14px; }
|
|
.ds-s-file em { overflow-wrap: anywhere; }
|
|
.ds-s-file span i { height: 14px; }
|
|
.ds-nodes { gap: 8px; }
|
|
.ds-node { padding: 12px; }
|
|
.ds-parts i { height: 28px; }
|
|
.ds-rep { padding: 8px 10px; }
|
|
.ds-rep i { width: 10px; height: 14px; }
|
|
.ds-ttl span, .ds-ttl em { font-size: 14px; }
|
|
.ds-disk-tabs span { padding: 10px 12px; }
|
|
.ds-ttl span { padding: 8px 0; letter-spacing: -.04em; }
|
|
.ds-ttl span:nth-child(4) { display: none; }
|
|
.ds-streams p { grid-template-columns: 76px minmax(0, 1fr); }
|
|
.ds-time i { height: 30px; }
|
|
.ds-ports li { padding: 14px 0; }
|
|
.ds-ports b { font-size: 17px; }
|
|
.ds-ports span.num { font-size: 26px; }
|
|
|
|
.ds-x-pin { padding: 72px 0; gap: 32px; }
|
|
.ds-x-h, .ds-x-lede, .ds-x-says, .ds-x-rail { grid-column: 1 / -1; }
|
|
.ds-x-obj { --gx: 5px; --gy: 10px; gap: 2px; }
|
|
.ds-x-col, .ds-x-parts, .ds-x-part, .ds-x-codec { transition: transform .5s var(--e-move), opacity .4s var(--e-move); }
|
|
.ds-x-col { width: 36px; }
|
|
.ds-x-name { height: 96px; writing-mode: vertical-rl; transform: rotate(180deg); border-radius: 0 0 6px 6px; font-size: 14px; }
|
|
.ds-x-codec { position: absolute; left: 0; right: 0; bottom: 4px; margin: 0; height: auto; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 14px; display: grid; place-items: center; }
|
|
.ds-x-row { display: none; }
|
|
.ds-x-part::before { display: none; }
|
|
.ds-x-part i { height: 9px; }
|
|
.ds-x-bot { min-height: 0; row-gap: 20px; }
|
|
.ds-x-says { order: 2; }
|
|
.ds-x-rail { justify-self: start; }
|
|
.ds-x-rail button { font-size: 14px; }
|
|
|
|
.ds-who-h, .ds-index { grid-column: 1 / -1; }
|
|
.ds-who-h { position: static; }
|
|
.ds-index { columns: 1; }
|
|
.ds-index li { font-size: 17px; padding: 16px 0; }
|
|
.ds-index li span { font-size: 14px; }
|
|
.ds-ways-l, .ds-port { grid-column: 1 / -1; }
|
|
.ds-ways-pick button { padding: 0 16px; }
|
|
.ds-tile { width: 52px; height: 68px; }
|
|
.ds-tile b { font-size: 52px; }
|
|
.ds-port-w { font-size: 32px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.ds-beam, .ds-streams i::after, .ds-mv i, .ds-s-file, .ds-q-n b, .ds-q-reads, .ds-q-line, .ds-tile b, .ds-port-w span { animation: none !important; }
|
|
.ds-beam { opacity: .6; transform: translate3d(0, 80%, 0); }
|
|
.ds-x-say, .ds-x-col, .ds-x-part, .ds-x-parts, .ds-x-codec, .ds-node, .ds-bucket, .ds-dn i { transition: none !important; }
|
|
}
|
|
|
|
/* ---------- round 4 (8 Nov) ---------- */
|
|
/* the first screen: the console's column files sit inside 1470x801, and the hero ask is the one solid fill */
|
|
@media (min-width: 900px) {
|
|
.ds > .kns { padding-top: clamp(32px, calc(24svh - 128px), 110px); padding-bottom: clamp(44px, 5vw, 72px); }
|
|
.ds > .kns .kns-g { row-gap: 32px; }
|
|
.ds-q-bar { min-height: 52px; }
|
|
.ds-q-sql { padding-top: 20px; padding-bottom: 20px; min-height: 0; }
|
|
.ds-files { padding-top: 20px; }
|
|
}
|
|
.ds .kns-acts .x-btn:not(.solid) { background-color: var(--btn-solid-bg, #0a0a0a); border-color: var(--btn-solid-bg, var(--ink)); color: var(--btn-solid-ink, #fff); }
|
|
@media (hover: hover) { .ds .kns-acts .x-btn:not(.solid):hover { background-color: var(--btn-solid-hover, #262626); border-color: var(--btn-solid-hover, #262626); } }
|
|
.ds .kns-acts .x-btn:active { transform: scale(.98); }
|
|
/* text links answer: underline and the arrow steps */
|
|
@media (hover: hover) {
|
|
.ds .x-arrow svg { transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.ds .x-arrow:hover svg { transform: translateX(4px); }
|
|
.ds .x-arrow:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
|
}
|
|
.ds .x-arrow:active { transform: translateY(1px); }
|
|
|
|
/* What it does: the sideways rail */
|
|
.ds-facts { overflow: hidden; }
|
|
.ds-facts .ds-ch-head { padding-bottom: 44px; }
|
|
.ds-rail { --pad: max(var(--kn-g), calc((100vw - 1152px) / 2)); list-style: none; margin: 0; padding: 0 var(--pad) 8px; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
|
|
.ds-rail::-webkit-scrollbar { display: none; }
|
|
.ds-rail[data-drag] { scroll-snap-type: none; cursor: grabbing; user-select: none; }
|
|
.ds-fact { flex: none; width: min(520px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
|
|
.ds-fact-v { height: 340px; border-radius: 24px; overflow: hidden; background: light-dark(#f5f5f5, var(--muted)); transition: transform .5s var(--e-move); }
|
|
.ds-fact-v > * { height: 100%; }
|
|
.ds-fact-n { margin: 12px 0 0; font: 606 12px/1 var(--mono); letter-spacing: .14em; color: light-dark(#737373, var(--text-tertiary)); }
|
|
.ds-fact-t { margin: 0; font-size: 21px; font-weight: 497; letter-spacing: -.015em; color: var(--ink); }
|
|
.ds-fact-d { margin: 0; font-size: 16px; line-height: 1.6; color: light-dark(#525252, var(--muted-foreground)); max-width: 52ch; }
|
|
@media (hover: hover) { .ds-fact:hover .ds-fact-v { transform: translateY(-4px); } .ds-fact:hover .ds-fact-n { color: var(--ink); } }
|
|
.ds-rail-ctl { display: flex; align-items: center; gap: 12px; padding-top: 27px; }
|
|
.ds-rail-track { position: relative; flex: 1; height: 1px; background: var(--hair); overflow: hidden; }
|
|
.ds-rail-track i { position: absolute; left: 0; top: 0; height: 100%; width: calc(100% / 6); background: var(--ink); transform: translateX(calc(var(--at) * 100%)); transition: transform .4s var(--e-move); }
|
|
.ds-rail-at { margin: 0 8px 0 12px; font: 497 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
|
|
.ds-rail-b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair); background: var(--x-raised); color: var(--ink); cursor: pointer; transition: background-color .2s var(--e-out), border-color .2s var(--e-out), color .2s var(--e-out), transform .15s var(--e-out); }
|
|
@media (hover: hover) { .ds-rail-b:not(:disabled):hover { background: var(--ink); border-color: var(--ink); color: var(--x-on-ink); } }
|
|
.ds-rail-b:not(:disabled):active { transform: scale(.96); }
|
|
.ds-rail-b:disabled { color: #a3a3a3; cursor: default; }
|
|
.ds-rail-b:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
|
|
|
|
/* the industries: the scan passes over the wall, a row at a time */
|
|
.ds-index li { position: relative; color: light-dark(#737373, var(--text-tertiary)); transition: color .3s var(--e-move); cursor: default; }
|
|
.ds-index li[data-on] { color: var(--ink); }
|
|
.ds-index li[data-on] > span { color: var(--ink); }
|
|
.ds-index-b { margin-left: auto; align-self: center; display: flex; gap: 3px; padding-left: 12px; }
|
|
.ds-index-b b { width: 6px; height: 14px; border-radius: 3px; background: var(--ink); transform: scaleY(.35); transform-origin: 50% 100%; transition: transform .35s var(--e-move); }
|
|
.ds-index li[data-on] .ds-index-b b { transform: none; }
|
|
.ds-index li[data-on] .ds-index-b b:nth-child(2) { transition-delay: .04s; } .ds-index li[data-on] .ds-index-b b:nth-child(3) { transition-delay: .08s; }
|
|
.ds-index li[data-on] .ds-index-b b:nth-child(4) { transition-delay: .12s; } .ds-index li[data-on] .ds-index-b b:nth-child(5) { transition-delay: .16s; } .ds-index li[data-on] .ds-index-b b:nth-child(6) { transition-delay: .2s; }
|
|
.ds-index li::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--e-move); }
|
|
.ds-index li[data-on]::before { transform: none; }
|
|
html:not(.js) .ds-index li { color: var(--ink); }
|
|
|
|
/* entrances (arrive.js: data-arm below the fold, data-in on arrival; JS off and reduced motion: the final state) */
|
|
/* spiral-in: the fact cards turn in from the right edge along a curve, one after another */
|
|
.ds-rail[data-arm]:not([data-in]) .ds-fact { opacity: 0; transform: translate(60vw, 120px) rotate(24deg) scale(.7); }
|
|
.ds-rail[data-in] .ds-fact { animation: ds-spiral 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--k) * 90ms); }
|
|
@keyframes ds-spiral { 0% { opacity: 0; transform: translate(60vw, 120px) rotate(24deg) scale(.7); } 30% { opacity: 1; } 60% { transform: translate(6vw, -18px) rotate(-3deg) scale(.96); } 100% { opacity: 1; transform: none; } }
|
|
/* rack-focus: the wall comes into focus, top rows first */
|
|
.ds-index[data-arm]:not([data-in]) { filter: blur(10px); opacity: .3; }
|
|
.ds-index[data-in] { animation: ds-rack 1.1s cubic-bezier(.4, 0, .2, 1) both; }
|
|
@keyframes ds-rack { from { filter: blur(10px); opacity: .3; } 60% { filter: blur(1px); opacity: 1; } to { filter: none; opacity: 1; } }
|
|
/* squash-land: the port card lands with a squash and settles */
|
|
.ds-port[data-arm]:not([data-in]) { opacity: 0; transform: translateY(-80px); }
|
|
.ds-port[data-in] { transform-origin: 50% 100%; animation: ds-squash .9s both; }
|
|
@keyframes ds-squash { 0% { opacity: 0; transform: translateY(-80px) scale(.96, 1.06); animation-timing-function: cubic-bezier(.5, 0, .9, .5); } 45% { opacity: 1; transform: translateY(0) scale(1.05, .93); animation-timing-function: cubic-bezier(.2, .8, .4, 1); } 70% { transform: translateY(-6px) scale(.99, 1.02); } 100% { opacity: 1; transform: none; } }
|
|
|
|
@media (max-width: 899px) {
|
|
.ds-fact-v { height: 300px; border-radius: 20px; }
|
|
.ds-fact-t { font-size: 19px; }
|
|
.ds-rail { gap: 12px; }
|
|
.ds-rail-at { margin: 0 4px; font-size: 14px; }
|
|
.ds-index-b { display: none; }
|
|
/* the console: three files a row, so duration_ms reads on one line */
|
|
.ds-files { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.ds-blocks i:nth-child(n + 7) { display: none; }
|
|
.ds-name { letter-spacing: -.02em; }
|
|
.ds-x-name { height: 112px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.ds .kns-in, .ds .kns-obj-in, .ds .knl-t, .ds-q-n b { animation: none !important; }
|
|
.ds-fact-v, .ds-index li, .ds-index-b b, .ds-index li::before, .ds-rail-track i { transition: none !important; }
|
|
}
|
|
@media (max-width: 899px) {
|
|
.ds-name { flex-wrap: nowrap; white-space: nowrap; letter-spacing: -.04em; }
|
|
/* the four column files as two by two inside a phone card, so each codec reads whole */
|
|
.ds-fact .ds-s-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; }
|
|
.ds-fact .ds-s-file { max-width: none; gap: 6px; padding: 8px 10px; }
|
|
.ds-fact .ds-s-file span { gap: 3px; }
|
|
.ds-fact .ds-s-file span i { min-height: 4px; height: auto; }
|
|
.ds-fact .ds-s-file em { padding-top: 6px; overflow-wrap: normal; }
|
|
}
|
|
/* every fact's picture fits its card whole */
|
|
.ds-fact-v { height: 392px; }
|
|
.ds-fact .ds-sc { padding: 28px; gap: 20px; }
|
|
.ds-fact .ds-dn { padding: 16px 12px; gap: 12px; }
|
|
.ds-fact .ds-dn i { height: 48px; }
|
|
.ds-fact .ds-bucket { height: 64px; }
|
|
.ds-fact .ds-raft { width: min(100%, 340px); }
|
|
@media (max-width: 899px) {
|
|
.ds-fact-v { height: 340px; }
|
|
.ds-fact .ds-sc { padding: 16px; gap: 14px; }
|
|
.ds-fact .ds-dn i { height: 32px; }
|
|
.ds-fact .ds-bucket { height: 52px; }
|
|
}
|
|
/* copy rule (8 Nov): each industry is its own text element */
|
|
.ds-index li .ds-index-t, .ds-index li[data-on] > .ds-index-t { flex: 0 1 auto; font: inherit; letter-spacing: inherit; color: inherit; }
|
|
@media (max-width: 899px) { .ds-index li .ds-index-t { font-size: inherit; } }
|
|
|
|
/* ---------- dark mode (8 Nov, docs/DARK-MODE.md): the Keynote deck pins its tokens light on .kn, so this page points
|
|
them at Hanzo's dark tokens; every light value above is unchanged ---------- */
|
|
html:not(.light) .ds { --ink: var(--foreground); --soft: var(--muted-foreground); --faint: var(--text-tertiary); --line: var(--border); --body: var(--muted-foreground); --quiet: var(--text-tertiary); --hair: var(--border); background: var(--background); }
|
|
/* dark: data marks stay dim unless they are the ones being read (as live hanzo.ai/datastore draws them in dark) */
|
|
html:not(.light) .ds .ds-file:not(.on) .ds-blocks i { background: var(--secondary-hover); }
|
|
html:not(.light) .ds .ds-file.on { background: var(--secondary); border-color: var(--foreground); color: var(--foreground); }
|
|
html:not(.light) .ds .ds-file.on .ds-blocks i { background: var(--foreground); }
|
|
html:not(.light) .ds .ds-beam { opacity: .35; }
|
|
html:not(.light) .ds :is(.ds-s-file span i, .ds-parts i, .ds-dn i, .ds-time i, .ds-index-b b) { background: var(--secondary-hover); }
|
|
html:not(.light) .ds .ds-time i { background: var(--border-selected); }
|
|
html:not(.light) .ds .ds-mv i { background: var(--muted-foreground); }
|
|
html:not(.light) .ds .ds-index li[data-on] .ds-index-b b { background: var(--foreground); }
|
|
html:not(.light) .ds .ds-x-name { background: var(--secondary); border-color: var(--border-strong); color: var(--foreground); }
|
|
html:not(.light) .ds .ds-x-part i { background: var(--secondary-hover); }
|
|
html:not(.light) .ds :is(.ds-x-obj.s0 .ds-x-col.read, .ds-x-obj.s1 .ds-x-col.vec) .ds-x-name { border-color: var(--foreground); }
|
|
html:not(.light) .ds :is(.ds-x-obj.s0 .ds-x-col.read .ds-x-part i, .ds-x-obj.s1 .ds-x-col.vec .ds-x-part:nth-child(-n+2) i, .ds-x-obj.s2 .ds-x-part.run i) { background: var(--foreground); }
|
|
html:not(.light) .ds .ds-x-obj.s3 .ds-x-part i { background: var(--muted-foreground); }
|