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_01P5YBdwj33XByFVTvu9bfci
506 lines
46 KiB
CSS
506 lines
46 KiB
CSS
/* Kai guide (kg-). Deck values only (MASTER 3.1): monochrome, sizes 12/13/14/16/17/21/26/32/44/52/64, weights 400/497/606
|
|
(220 for the largest figures), radii 24 tiles · 20 art · 6 chips · full buttons, container 1152, 13 columns split 5/8,
|
|
section padding clamp(72px, 11vw, 188px), motion 90/150/300/400/500 ms on ease-emphasis, no springs.
|
|
Colour: the repo has no deck tokens.css (app/system.css carries #6e6e73-style values that are off the deck), so every
|
|
deck value this page uses is named once here and the rules below read only these names (docs/build-notes/requests/kai-guide.md). */
|
|
.kg {
|
|
/* light room */
|
|
--paper: #fff; --quiet-room: #f5f5f5; --tile: #f2f2f2; --muted-tile: #ededed; --brand-tone: #e4e4e7; --track: #d4d4d4;
|
|
--ink: #0a0a0a; --mute: #525252; --quiet: #737373; --grey-on-black: #a3a3a3;
|
|
--line: rgba(0, 0, 0, .1); --line-2: rgba(0, 0, 0, .14); --fill: rgba(0, 0, 0, .08);
|
|
/* dark rooms */
|
|
--graphite: #171717; --black: #000; --on-black: #fafafa; --on-black-2: rgba(255, 255, 255, .78); --on-black-3: rgba(255, 255, 255, .55);
|
|
--on-black-edge: rgba(255, 255, 255, .3); --on-black-line: rgba(255, 255, 255, .14); --on-black-hair: rgba(255, 255, 255, .1);
|
|
--on-black-band: rgba(255, 255, 255, .08); --on-black-fill: rgba(255, 255, 255, .05);
|
|
--e: cubic-bezier(.16, 1, .3, 1); --eo: cubic-bezier(0, 0, .2, 1); --eio: cubic-bezier(.4, 0, .2, 1);
|
|
--pad: clamp(72px, 8vw, 116px); --gut: clamp(16px, 4vw, 32px); /* section padding held to 116 so no band of empty white */
|
|
background: var(--paper); color: var(--ink);
|
|
}
|
|
.kg-wrap { width: min(100% - 2 * var(--gut), 1152px); margin-inline: auto; }
|
|
.kg-sec { padding: var(--pad) 0; }
|
|
.kg :is(p, dd) > code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--tile); }
|
|
.kg-kick { margin: 0; font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
|
|
.kg-sub { margin-top: 17px; }
|
|
.kg-h2 { margin: 0; max-width: 18ch; font-size: 26px; font-weight: 497; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
|
|
.kg-lede-s { margin: 10px 0 0; max-width: 44ch; font-size: 17px; line-height: 1.5; color: var(--mute); text-wrap: pretty; }
|
|
.kg-head { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 27px 24px; align-items: end; }
|
|
.kg-head > div:first-child { grid-column: 1 / span 5; }
|
|
.kg-head > .kg-side { grid-column: 6 / -1; }
|
|
.kg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 17px 27px; margin-top: 27px; }
|
|
.kg-acts .x-arrow { min-height: 44px; }
|
|
|
|
/* 1. hero: words (5 of 13) beside the session (8 of 13) */
|
|
/* the h1's last line lands near 38% of the screen and the next section's head peeks in under the terminal */
|
|
.kg-hero { padding: clamp(72px, 6.5vw, 96px) 0 27px; }
|
|
.kg-hero-g { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 24px; align-items: start; }
|
|
.kg-hero-t { grid-column: 1 / span 5; padding-top: 27px; }
|
|
.kg-h1 { margin: 0; font-size: 52px; font-weight: 497; line-height: 1.04; letter-spacing: -.03em; }
|
|
.kg-lede { margin: 27px 0 0; max-width: 44ch; font-size: 21px; line-height: 1.4; color: var(--mute); text-wrap: pretty; }
|
|
.kg-lede code { font-size: .8em; color: var(--ink); }
|
|
.kg-crumb { margin: 44px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--quiet); }
|
|
.kg-crumb a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
|
|
@media (hover: hover) { .kg-crumb a:hover { color: var(--ink); } }
|
|
|
|
.kg-sess { grid-column: 6 / -1; margin: 0; border-radius: 24px; background: var(--graphite); color: var(--on-black-2); overflow: hidden; }
|
|
.kg-sess-bar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 21px; border-bottom: 1px solid var(--on-black-hair); font: 500 13px var(--mono); color: var(--on-black-3); }
|
|
.kg-sess-bar b { font-weight: 500; color: var(--on-black); }
|
|
.kg-sess-st { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
|
|
.kg-sess-st span { display: inline-block; min-width: 15ch; text-align: right; }
|
|
.kg-sess-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-black); }
|
|
.kg-sess-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--on-black-line); background: transparent; color: var(--on-black); cursor: pointer; transition: background .15s var(--eo), transform .09s var(--eo); }
|
|
.kg-sess-btn:active { transform: scale(.97); }
|
|
@media (hover: hover) { .kg-sess-btn:hover { background: var(--on-black-hair); } }
|
|
.kg-sess-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; box-shadow: 0 0 0 4px var(--black); }
|
|
/* the hero Copy is a full 44px target, the same height as the pause control beside it */
|
|
.kg-sess-copy .x-copy { height: 44px; padding: 0 16px; background: transparent; border-color: var(--on-black-line); color: var(--on-black); }
|
|
.kg .x-copy-t { font-size: 13px; }
|
|
.kg-sess[data-phase='run'] .kg-sess-st i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--on-black); }
|
|
/* the conversation: a thread of one fixed height (it scrolls inside; the page never moves), the questions under it */
|
|
.kg-sess-scr { position: relative; height: min(calc(100svh - 440px), 440px); min-height: 300px; overflow: auto; overscroll-behavior: contain; padding: 21px 21px 17px; scrollbar-width: none; }
|
|
.kg-sess-scr::-webkit-scrollbar { display: none; }
|
|
.kg-sess-scr:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
|
|
.kg-thread { display: flex; flex-direction: column; gap: 17px; min-height: 100%; }
|
|
.kg-thread > :first-child { margin-top: auto; }
|
|
.kg-ex { display: flex; flex-direction: column; gap: 10px; }
|
|
.kg-m { max-width: 86%; padding: 14px 17px; border-radius: 16px; animation: kg-in .4s var(--e) both; }
|
|
.kg-m-q { align-self: flex-end; background: var(--on-black-band); color: var(--on-black); border-bottom-right-radius: 6px; }
|
|
.kg-m-a { align-self: flex-start; min-width: min(100%, 300px); box-shadow: inset 0 0 0 1px var(--on-black-line); border-bottom-left-radius: 6px; animation-delay: .15s; }
|
|
@keyframes kg-in { from { opacity: 0; transform: translateY(10px); } }
|
|
.kg-m-h { display: flex; gap: 10px; font: 500 12px var(--mono); color: var(--on-black-3); }
|
|
.kg-m-h code { color: var(--on-black); background: none; padding: 0; }
|
|
.kg-m-text { margin: 6px 0 0; font-size: 17px; line-height: 1.4; color: var(--on-black); }
|
|
.kg-m-c { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
|
|
.kg-m-c code { padding: 3px 8px; border-radius: 6px; background: var(--on-black-fill); box-shadow: inset 0 0 0 1px var(--on-black-hair); font: 500 12px var(--mono); color: var(--on-black-2); }
|
|
.kg-m-s { display: block; margin-top: 10px; font: 400 13px/1.45 var(--mono); color: var(--on-black-3); overflow-wrap: anywhere; }
|
|
.kg-m-s span { color: var(--on-black-2); }
|
|
.kg-m-a pre { margin: 10px 0 0; font: 400 14px/1.6 var(--mono); white-space: pre-wrap; color: var(--on-black); }
|
|
.kg-m-a pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
|
|
.kg-m-a pre i { font-style: normal; color: var(--on-black-3); }
|
|
.kg-m-a[data-run] pre code::after { content: ''; display: inline-block; width: 8px; height: 1.15em; margin-left: 2px; vertical-align: -3px; background: var(--on-black); animation: kg-blink 1s steps(2, jump-none) infinite; }
|
|
@keyframes kg-blink { 50% { opacity: 0; } }
|
|
/* the guide's line on what the type returns: its place is held while the answer streams, so the bubble never grows twice */
|
|
.kg-m-g { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--on-black-hair); font-size: 13px; line-height: 1.45; color: var(--on-black-3); transition: opacity .3s var(--eo); }
|
|
.kg-m-a[data-run] .kg-m-g { opacity: 0; }
|
|
.kg-m-g b { margin-right: 6px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-black-2); }
|
|
.kg-m-g code { font-family: var(--mono); color: var(--on-black-2); }
|
|
/* with JS on, the settled thread is hidden until the conversation takes over (no flash of the JS-off answers) */
|
|
.js .kg-sess:not([data-live]) .kg-thread { visibility: hidden; }
|
|
/* the choices: two rows of three at one fixed height (phone: one row that swipes) */
|
|
.kg-asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border-top: 1px solid var(--on-black-hair); }
|
|
.kg-ask { display: flex; align-items: center; height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--on-black-line); background: transparent; color: var(--on-black-2); font: 400 13px/1.3 var(--sans); text-align: left; cursor: pointer; transition: background .15s var(--eo), color .15s var(--eo), border-color .15s var(--eo), transform .09s var(--eo); }
|
|
.kg-ask span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
@media (hover: hover) { .kg-ask:hover { background: var(--on-black-fill); border-color: var(--on-black-edge); color: var(--on-black); } }
|
|
.kg-ask:active { transform: scale(.98); }
|
|
.kg-ask:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
|
|
.kg-ask[data-on] { background: var(--on-black); border-color: var(--on-black); color: var(--black); }
|
|
|
|
/* 2. the three types: a spec sheet, rows divided by hairlines */
|
|
.kg-types { padding-top: 27px; }
|
|
.kg-rows { list-style: none; margin: 72px 0 0; padding: 0; border-top: 1px solid var(--line); }
|
|
/* row hover: a Quiet fill wipes in from the left behind the row (clip-path, no layout change) */
|
|
.kg-rows li { position: relative; isolation: isolate; }
|
|
.kg-rows li::before { content: ''; position: absolute; inset: 0 calc(-1 * min(var(--gut), 27px)); z-index: -1; border-radius: 16px; background: var(--quiet-room); clip-path: inset(0 100% 0 0 round 16px); transition: clip-path .5s var(--e); pointer-events: none; }
|
|
@media (hover: hover) and (pointer: fine) { .kg-rows li:hover::before { clip-path: inset(0 0 0 0 round 16px); } .kg-rows li:hover h3 { transform: translateX(6px); } }
|
|
.kg-row-n h3 { transition: transform .3s var(--e); }
|
|
.kg-rows li { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 24px; align-items: start; padding: 44px 0; border-bottom: 1px solid var(--line); }
|
|
.kg-row-n { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 17px; }
|
|
/* the type names sit in the deck's H3 band (21px), under the section's 26px h2 */
|
|
.kg-row-n h3 { margin: 0; font: 497 21px/1.2 var(--mono); letter-spacing: -.01em; }
|
|
.kg-rows p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--mute); }
|
|
.kg-rows p:nth-of-type(1) { grid-column: 6 / span 4; }
|
|
.kg-rows p:nth-of-type(2) { grid-column: 10 / -1; }
|
|
.kg-rows b { display: block; margin-bottom: 6px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
|
|
.kg-rows code { font-size: .9em; color: var(--ink); }
|
|
/* each glyph draws its type when the row reaches the screen, then the three take turns showing it again (9 s round,
|
|
one mover at a time); paused off screen ([data-off]) and under reduced motion */
|
|
.kg-glyph { position: relative; display: block; width: 160px; height: 28px; }
|
|
.kg-glyph i { position: absolute; display: block; }
|
|
.g0 i { left: 0; height: 4px; border-radius: 2px; background: var(--ink); transform-origin: 0 50%; }
|
|
.g0 i:nth-child(1) { top: 0; width: 100%; transform: scaleX(.62); } .g0 i:nth-child(2) { top: 11px; width: 100%; opacity: .45; transform: scaleX(.26); } .g0 i:nth-child(3) { top: 22px; width: 100%; opacity: .22; transform: scaleX(.12); } .g0 i:nth-child(4) { display: none; }
|
|
.g1 i { top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--track); }
|
|
.g1 i:nth-child(1) { left: 0; } .g1 i:nth-child(2) { left: 50px; } .g1 i:nth-child(3) { left: 100px; }
|
|
.g1 i:nth-child(4) { left: -6px; top: 6px; width: 16px; height: 16px; background: var(--ink); transform: translateX(100px); }
|
|
.g1::after { content: ''; position: absolute; left: 150px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--track); }
|
|
.g2 i:nth-child(1) { top: 12px; left: 0; width: 150px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-tone), var(--ink)); }
|
|
.g2 i:nth-child(2) { top: 3px; left: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); transform: translateX(118px); }
|
|
.g2 i:nth-child(3), .g2 i:nth-child(4) { display: none; }
|
|
.js .kg-rows li .g0 i:nth-child(1) { animation: kg-w 1.2s var(--e) both, kg-c0a 9s var(--eio) 1.4s infinite; }
|
|
.js .kg-rows li .g0 i:nth-child(2) { animation: kg-w 1.2s var(--e) .06s both, kg-c0b 9s var(--eio) 1.4s infinite; }
|
|
.js .kg-rows li .g0 i:nth-child(3) { animation: kg-w 1.2s var(--e) .12s both, kg-c0c 9s var(--eio) 1.4s infinite; }
|
|
.js .kg-rows li .g1 i:nth-child(4) { animation: kg-step 1.4s var(--eio) both, kg-c1 9s var(--eio) 4.4s infinite; }
|
|
.js .kg-rows li .g2 i:nth-child(2) { animation: kg-tip 1.2s var(--eio) both, kg-c2 9s var(--eio) 7.4s infinite; }
|
|
[data-off] .kg-glyph i { animation-play-state: paused !important; }
|
|
@keyframes kg-w { from { transform: scaleX(.02); } }
|
|
@keyframes kg-step { 0% { transform: translateX(0); } 33% { transform: translateX(50px); } 66% { transform: translateX(50px); } }
|
|
@keyframes kg-tip { from { transform: translateX(28px); } }
|
|
/* choice: the probabilities re-weight and settle back; score: the expected level steps up, down, home; noul: P(true) tips */
|
|
@keyframes kg-c0a { 0%, 33%, 100% { transform: scaleX(.62); } 11%, 22% { transform: scaleX(.34); } }
|
|
@keyframes kg-c0b { 0%, 33%, 100% { transform: scaleX(.26); } 11%, 22% { transform: scaleX(.5); } }
|
|
@keyframes kg-c0c { 0%, 33%, 100% { transform: scaleX(.12); } 11%, 22% { transform: scaleX(.16); } }
|
|
@keyframes kg-c1 { 0%, 33%, 100% { transform: translateX(100px); } 8%, 13% { transform: translateX(150px); } 20%, 26% { transform: translateX(50px); } }
|
|
@keyframes kg-c2 { 0%, 33%, 100% { transform: translateX(118px); } 11%, 22% { transform: translateX(40px); } }
|
|
|
|
/* 3. call it: the words hold still while the code scrolls past */
|
|
/* a Quiet room, the code on a flat white tile in ink: the hero terminal stays the only dark surface up top */
|
|
.kg-call { background: var(--quiet-room); --room-soft: var(--mute); --room-fill: rgba(0, 0, 0, .06); }
|
|
.kg-call-g { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 24px; align-items: start; }
|
|
.kg-call-t { grid-column: 1 / span 5; }
|
|
.kg-call-t .kg-lede-s { margin-top: 17px; font-size: 16px; line-height: 1.55; max-width: 40ch; }
|
|
/* the shape of one call: questions in, answers out under the same names, the type on the line between them */
|
|
.kg-shape { display: grid; grid-template-columns: auto minmax(72px, 1fr) auto; gap: 0 10px; margin-top: 44px; max-width: 400px; font: 500 13px var(--mono); }
|
|
.kg-shape-h { padding-bottom: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
|
|
.kg-shape-h:last-child { text-align: right; }
|
|
.kg-shape-r { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 44px; border-top: 1px solid var(--line); }
|
|
.kg-shape-r:last-child { border-bottom: 1px solid var(--line); }
|
|
.kg-shape-r code { color: var(--ink); }
|
|
.kg-shape-r code:last-child { text-align: right; }
|
|
.kg-shape-w { position: relative; display: grid; place-items: center; height: 100%; }
|
|
.kg-shape-w i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--track); transform-origin: 0 50%; transition: background .15s var(--eo), transform .5s var(--e); }
|
|
.kg-shape-w i::after { content: ''; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--track); border-right: 1px solid var(--track); transform: rotate(45deg); transition: border-color .15s var(--eo); }
|
|
.kg-shape-w em { position: relative; padding: 2px 8px; border-radius: 6px; background: var(--quiet-room); font-style: normal; color: var(--mute); transition: color .15s var(--eo), background .15s var(--eo); }
|
|
@media (hover: hover) and (pointer: fine) {
|
|
.kg-shape-r:hover .kg-shape-w i { background: var(--ink); }
|
|
.kg-shape-r:hover .kg-shape-w i::after { border-color: var(--ink); }
|
|
.kg-shape-r:hover .kg-shape-w em { background: var(--ink); color: var(--paper); }
|
|
}
|
|
.kg-code { grid-column: 6 / -1; min-width: 0; display: grid; gap: 17px; justify-items: start; }
|
|
.kg-code-p { width: 100%; min-width: 0; }
|
|
.kg-code .x-codeblock { max-width: 100%; }
|
|
.kg-code .x-codeblock { --focus: var(--ink); border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); }
|
|
.kg-code .x-codeblock pre { max-height: none; padding: 21px 44px 21px 27px; overflow-x: auto; }
|
|
.kg-code .x-codeblock-h { min-height: 56px; padding: 6px 10px 6px 27px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); }
|
|
.kg-code .x-codeblock .x-copy { height: 36px; background: var(--paper); border-color: var(--line-2); color: var(--ink); }
|
|
.kg-code .x-codeblock-l.c { color: var(--quiet); }
|
|
.kg-code .x-codeblock pre:focus-visible { outline: 2px solid var(--ink); }
|
|
/* a long block opens capped at 12 lines over a fade, Show all beneath it; long lines fade at the right edge (they
|
|
scroll), so a cut line reads as more to the right, not as a clipped card */
|
|
.kg-cap { position: relative; border-radius: 24px; overflow: hidden; }
|
|
.kg-cap::before { content: ''; position: absolute; z-index: 1; top: 57px; right: 0; bottom: 0; width: 44px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--paper)); pointer-events: none; }
|
|
.js .kg-cap[data-cap] .x-codeblock pre { max-height: calc(var(--cap) * 1.65em + 21px); overflow-y: hidden; }
|
|
.js .kg-cap[data-cap]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 116px; background: linear-gradient(rgba(255, 255, 255, 0), var(--paper) 72%); pointer-events: none; }
|
|
.kg-more { position: absolute; z-index: 2; left: 50%; bottom: 17px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 21px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; transition: background .15s var(--eo), transform .09s var(--eo); }
|
|
.kg-more svg { transition: transform .3s var(--e); }
|
|
@media (hover: hover) { .kg-more:hover { background: var(--quiet-room); } .kg-more:hover svg { transform: translateY(2px); } }
|
|
.kg-more:active { transform: scale(.97); }
|
|
.kg-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--paper); }
|
|
html:not(.js) .kg-more { display: none; }
|
|
|
|
/* 4. limits (8 of 13) beside the checker (5 of 13): one limit open at a time */
|
|
.kg-limits-g { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 24px; align-items: start; }
|
|
.kg-limits-t { grid-column: 1 / span 7; }
|
|
.kg-limits-c { grid-column: 9 / -1; perspective: 1200px; }
|
|
/* one row of five labels over a hairline, the open one in ink with an ink rule under it; beneath, one sentence slot
|
|
(every sentence sits in the same grid cell, the folded ones hidden="until-found") */
|
|
.kg-dl { display: grid; grid-template-columns: repeat(5, auto) minmax(0, 1fr); align-content: start; margin: 44px 0 0; }
|
|
.kg-dl > div { display: contents; }
|
|
.kg-dl dt { grid-row: 1; position: relative; border-bottom: 1px solid var(--line); }
|
|
.kg-dl::after { content: ''; grid-row: 1; grid-column: 6; border-bottom: 1px solid var(--line); }
|
|
.kg-dl dt::after { content: ''; position: absolute; left: 0; right: 17px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--e); }
|
|
.kg-dl > div[data-on] dt::after { transform: none; }
|
|
.kg-dl dt button { display: flex; align-items: center; min-height: 56px; margin: 0; padding: 0 17px 0 0; border: 0; background: none; text-align: left; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); cursor: pointer; transition: color .15s var(--eo), transform .09s var(--eo); }
|
|
.kg-dl > div + div dt button { padding-left: 10px; }
|
|
.kg-dl > div + div dt::after { left: 10px; }
|
|
.kg-dl dt button:active { transform: translateY(1px); }
|
|
.kg-dl dt button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
|
|
.kg-dl dt button svg { display: none; }
|
|
.kg-dl > div[data-on] dt button { color: var(--ink); }
|
|
/* a folded label under the pointer: it darkens and its rule shows at a third */
|
|
@media (hover: hover) { .kg-dl dt button:hover { color: var(--ink); } .kg-dl > div:not([data-on]) dt:hover::after { transform: scaleX(.33); } }
|
|
.kg-dl dd { grid-row: 2; grid-column: 1 / -1; margin: 0; padding: 27px 0 0; max-width: 64ch; font-size: 17px; line-height: 1.6; }
|
|
.js .kg-dl > div:not([data-on]) > dd:not([hidden]) { display: none; }
|
|
.kg-dl > div[data-on] > dd { animation: kg-open .5s var(--e) both; }
|
|
html:not(.js) .kg-dl dd { grid-row: auto; }
|
|
@keyframes kg-open { from { opacity: 0; transform: translateY(-6px); } }
|
|
.kg-dl dd code { font-size: .9em; }
|
|
|
|
/* the checker is a light instrument: a Quiet tile, ink type, hairlines (no dark surface between the hero and the room) */
|
|
.kg-check { border-radius: 24px; background: var(--quiet-room); color: var(--ink); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--eo); }
|
|
.kg-check-bar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 21px; border-bottom: 1px solid var(--line); font: 500 13px var(--mono); color: var(--mute); }
|
|
.kg-check-bar b { font-weight: 500; color: var(--ink); }
|
|
.kg-check-bar em { margin-left: auto; font-style: normal; padding: 4px 10px; border-radius: 6px; background: var(--paper); color: var(--mute); }
|
|
.kg-check code { background: transparent; padding: 0; }
|
|
.kg-ck-body { padding: 21px 21px 27px; display: grid; gap: 21px; }
|
|
.kg-models { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
.kg-chip { min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--mute); font: 500 14px var(--mono); cursor: pointer; transition: background .15s var(--eo), color .15s var(--eo), transform .09s var(--eo); }
|
|
.kg-chip:active { transform: scale(.97); }
|
|
@media (hover: hover) { .kg-chip:hover { background: var(--paper); color: var(--ink); } }
|
|
.kg-chip[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
|
|
.kg-ruler { display: grid; gap: 10px; }
|
|
.kg-r-h { display: flex; justify-content: space-between; font-size: 14px; color: var(--mute); }
|
|
.kg-r-h b { font: 500 14px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; min-width: 13ch; text-align: right; }
|
|
.kg-track { position: relative; height: 8px; border-radius: 4px; background: var(--brand-tone); margin: 6px 8px 24px; }
|
|
.kg-zone { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
|
|
.kg-zone.z1 { left: 0; right: 0; background: var(--grey-on-black); transform-origin: 0 50%; }
|
|
.kg-zone.z3 { right: 0; background: repeating-linear-gradient(-45deg, var(--quiet) 0 3px, transparent 3px 7px); }
|
|
.kg-mk { position: absolute; top: 14px; translate: -50% 0; font: 500 13px var(--mono); color: var(--mute); white-space: nowrap; }
|
|
.kg-run { position: absolute; inset: 0; pointer-events: none; transition: transform .3s var(--e); }
|
|
.kg-run i { position: absolute; top: 50%; left: -9px; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px var(--fill); transition: transform .15s var(--eo); }
|
|
.kg-ruler input { position: absolute; left: -12px; right: -12px; top: -18px; width: calc(100% + 24px); height: 44px; margin: 0; opacity: 0; cursor: pointer; touch-action: none; }
|
|
.kg-ruler:has(input:focus-visible) .kg-run i { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
|
|
@media (hover: hover) { .kg-ruler:hover .kg-run i { transform: scale(1.12); } }
|
|
.kg-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 17px; align-items: center; padding: 17px; border-radius: 16px; background: var(--paper); transition: background .3s var(--eo); }
|
|
.kg-verdict[data-bad] { background: repeating-linear-gradient(-45deg, var(--muted-tile) 0 6px, var(--paper) 6px 12px); }
|
|
.kg-verdict b { min-width: 7ch; font: 400 32px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
|
|
.kg-verdict[data-bad] b { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 2px; }
|
|
.kg-v-stack { display: grid; min-width: 0; }
|
|
.kg-v-stack > div { grid-area: 1 / 1; visibility: hidden; }
|
|
.kg-v-stack > div[data-on] { visibility: visible; }
|
|
.kg-v-stack code { font: 500 14px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
|
|
.kg-v-stack p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--mute); }
|
|
/* the price line: when Price is the limit in focus, a white tile wipes in behind it and the figure steps forward */
|
|
.kg-cost { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 4px 17px; margin: 0 -10px; padding: 10px; font-size: 14px; color: var(--mute); }
|
|
.kg-cost::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 12px; background: var(--paper); clip-path: inset(0 100% 0 0 round 12px); transition: clip-path .5s var(--e); }
|
|
.kg-cost[data-on]::before { clip-path: inset(0 0 0 0 round 12px); }
|
|
.kg-cost b { min-width: 8ch; text-align: right; font: 500 21px var(--mono); color: var(--ink); grid-row: span 2; align-self: center; font-variant-numeric: tabular-nums; transform-origin: 100% 50%; transition: transform .3s var(--e); }
|
|
.kg-cost[data-on] b { transform: scale(1.24); }
|
|
|
|
/* 5. the one black room: a rounded tile inside the gutters, the recipes as a stage */
|
|
.kg-recipes, .kg-jev { padding-top: 0; }
|
|
/* the black is a layer behind the words (so the line-draw entrance can stroke the outline first, then fill) */
|
|
.kg-room { position: relative; isolation: isolate; padding: clamp(44px, 6vw, 72px) clamp(21px, 5vw, 72px); border-radius: 24px; color: var(--on-black); }
|
|
.kg-room::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--black); }
|
|
.kg-room-in { position: relative; z-index: 1; }
|
|
.kg-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
|
|
.kg-outline rect { x: .75px; y: .75px; width: calc(100% - 1.5px); height: calc(100% - 1.5px); rx: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
|
|
.kg-room .kg-kick { color: var(--grey-on-black); }
|
|
.kg-room .kg-h2 { color: var(--on-black); }
|
|
.kg-room .kg-lede-s { color: var(--on-black-2); }
|
|
/* the recipes as a stage: the six names small on the left (5 of 13), the one in focus large on the right (8 of 13) */
|
|
.kg-rx { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 24px; margin-top: 72px; align-items: stretch; }
|
|
.kg-rec { grid-column: 1 / span 5; grid-row: 1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-black-line); }
|
|
.kg-rec li { position: relative; border-bottom: 1px solid var(--on-black-line); }
|
|
.kg-rec li::before { content: ''; position: absolute; inset: 0; background: var(--on-black-fill); clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--e); pointer-events: none; }
|
|
.kg-rec li::after { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: var(--on-black); transform: scaleY(0); transition: transform .3s var(--e); }
|
|
.kg-rec li[data-on]::after { transform: scaleY(1); }
|
|
@media (hover: hover) and (pointer: fine) { .kg-rec li:hover::before { clip-path: inset(0 0 0 0); } }
|
|
.kg-rec button { position: relative; display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0 17px; border: 0; background: none; text-align: left; cursor: pointer; transition: transform .09s var(--eo); }
|
|
.kg-rec button:active { transform: scale(.98); }
|
|
.kg-rec button:focus-visible { outline: 2px solid var(--paper); outline-offset: -2px; box-shadow: inset 0 0 0 4px var(--black); }
|
|
.kg-rec code { font: 500 14px/1.3 var(--mono); color: var(--grey-on-black); background: transparent; padding: 0; transition: color .15s var(--eo), transform .3s var(--e); }
|
|
.kg-rec li[data-on] code { color: var(--on-black); transform: translateX(6px); }
|
|
@media (hover: hover) { .kg-rec button:hover code { color: var(--on-black); } }
|
|
.kg-rx-stage { grid-column: 7 / -1; grid-row: 1; display: flex; flex-direction: column; gap: 27px; padding: 27px 0 0; border-top: 1px solid var(--on-black-line); }
|
|
.kg-rx-top { display: flex; align-items: center; gap: 17px; }
|
|
/* the stage's place: six ticks (no numerals), the one on stage long and white, the ones played white 55% */
|
|
.kg-rx-ix { flex: none; display: flex; align-items: center; gap: 2px; }
|
|
.kg-rx-ix i { width: 17px; height: 6px; border-radius: 3px; background: var(--on-black-edge); transform: scaleX(.36); transition: background .3s var(--eo), transform .3s var(--e); }
|
|
.kg-rx-ix i[data-past] { background: var(--on-black-3); }
|
|
.kg-rx-ix i[data-on] { transform: none; background: var(--on-black); }
|
|
.kg-rx-bar { position: relative; flex: 1; height: 1px; background: var(--on-black-line); overflow: hidden; }
|
|
.kg-rx-bar i { position: absolute; inset: 0; background: var(--on-black); transform-origin: 0 50%; transform: scaleX(0); }
|
|
.js .kg-rx-bar i { animation: kg-fill 6s linear forwards; }
|
|
.kg-rx[data-off] .kg-rx-bar i, .kg-rx[data-hold] .kg-rx-bar i, .kg-rx:hover .kg-rx-bar i, .kg-rx:focus-within .kg-rx-bar i { animation-play-state: paused; }
|
|
@keyframes kg-fill { to { transform: scaleX(1); } }
|
|
.kg-rx-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--on-black-line); background: transparent; color: var(--on-black); cursor: pointer; transition: background .15s var(--eo), transform .09s var(--eo); }
|
|
.kg-rx-btn:active { transform: scale(.97); }
|
|
@media (hover: hover) { .kg-rx-btn:hover { background: var(--on-black-hair); } }
|
|
.kg-rx-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; box-shadow: 0 0 0 4px var(--black); }
|
|
.kg-rx-stack { display: grid; }
|
|
.kg-rx-it { grid-area: 1 / 1; visibility: hidden; transition: visibility 0s .5s; }
|
|
.kg-rx-it[data-on] { visibility: visible; transition-delay: 0s; }
|
|
.kg-rx-m { display: block; overflow: hidden; padding: .04em 0 .1em; }
|
|
.kg-rx-m code { display: block; font: 400 44px/1.1 var(--mono); letter-spacing: -.03em; color: var(--on-black); background: none; padding: 0; overflow-wrap: anywhere; transition: transform .5s var(--e); }
|
|
.kg-rx-it[data-pos='down'] .kg-rx-m code { transform: translateY(105%); }
|
|
.kg-rx-it[data-pos='up'] .kg-rx-m code { transform: translateY(-105%); }
|
|
.kg-rx-it p { margin: 21px 0 0; max-width: 44ch; font-size: 21px; line-height: 1.45; color: var(--on-black-2); text-wrap: pretty; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--e) .1s; }
|
|
.kg-rx-it:not([data-on]) p { clip-path: inset(0 0 100% 0); transition-delay: 0s; }
|
|
/* with JS off every recipe is printed in the stage, one under another */
|
|
html:not(.js) .kg-rx-stack { gap: 27px; }
|
|
html:not(.js) .kg-rx-it { grid-area: auto; visibility: visible; }
|
|
html:not(.js) .kg-rx-it .kg-rx-m code { transform: none; font-size: 26px; }
|
|
html:not(.js) .kg-rx-it p { clip-path: none; font-size: 16px; }
|
|
html:not(.js) .kg-rx-top { display: none; }
|
|
.kg-room .kg-acts { margin-top: 44px; }
|
|
.kg-room .x-arrow { color: var(--on-black); }
|
|
/* the recipes ask is the quiet kind here: outlined on black, so the header's ask stays the one solid fill */
|
|
.kg-room .x-btn:not(.solid) { background: transparent; border-color: var(--on-black-edge); color: var(--on-black); }
|
|
@media (hover: hover) { .kg-room .x-btn:not(.solid):hover { background: var(--on-black-hair); border-color: var(--on-black-3); box-shadow: none; } }
|
|
.kg-room .x-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
|
|
.kg-gh { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--on-black); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
|
|
|
|
/* 6. from Jev: one diff, the changed lines land in turn; the benchmark as the proof figures; the ask again */
|
|
/* the diff is a light sheet: Quiet tile, removed lines in body grey with the old token struck, added lines on white in ink */
|
|
.kg-jev-d { margin-top: 72px; border-radius: 24px; background: var(--quiet-room); overflow: hidden; }
|
|
.kg-jev-d pre { margin: 0; padding: 27px 0; overflow-x: auto; font: 400 14px/1.9 var(--mono); color: var(--mute); }
|
|
.kg-jev-d pre code { display: inline-block; min-width: 100%; background: none; padding: 0; font-size: inherit; }
|
|
.kg-dl-l { display: block; padding: 0 27px 0 0; white-space: pre; }
|
|
.kg-dl-l > i { display: inline-block; width: 44px; text-align: center; font-style: normal; color: var(--mute); }
|
|
.kg-dl-l[data-s='+'] { background: var(--paper); color: var(--ink); }
|
|
.kg-dl-l[data-s='+'] > i { color: var(--ink); }
|
|
.kg-cm { color: var(--mute); }
|
|
.kg-jev-d mark { color: var(--ink); background: var(--brand-tone); border-radius: 4px; padding: 0 3px; text-decoration: line-through; text-decoration-thickness: 1px; }
|
|
.kg-dl-l[data-s='+'] mark { color: var(--paper); background: var(--ink); text-decoration: none; }
|
|
.kg-jev-d pre:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
|
|
.kg-differs { margin: 44px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--mute); }
|
|
.kg-differs b { color: var(--ink); font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
|
|
.kg-differs code { font-size: .9em; }
|
|
|
|
/* 7. the proof strip: the two benchmark figures (8 of 13) and their method line (5 of 13), between hairlines */
|
|
.kg-jev { padding-bottom: 72px; }
|
|
.kg-proof-g { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 24px; align-items: end; padding: 44px 0; border-top: 1px solid var(--line); }
|
|
.kg-proof .kg-bench-f { grid-column: 1 / span 7; }
|
|
.kg-proof-g > p { grid-column: 9 / -1; margin: 0; font-size: 16px; line-height: 1.55; color: var(--mute); text-wrap: pretty; }
|
|
.kg-bench-f { display: grid; gap: 17px; }
|
|
.kg-bf { display: grid; grid-template-columns: 96px auto minmax(0, 1fr); align-items: center; gap: 21px; }
|
|
.kg-bf-n { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
|
|
.kg-bf-v { min-width: 5ch; font-size: 64px; font-weight: 220; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
|
|
.kg-bf + .kg-bf .kg-bf-v { color: var(--quiet); }
|
|
.kg-bf-bar { position: relative; height: 4px; border-radius: 2px; background: var(--muted-tile); overflow: hidden; }
|
|
.kg-bf-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: 0 50%; }
|
|
.kg-bf + .kg-bf .kg-bf-bar i { background: var(--grey-on-black); }
|
|
/* "The runs →" keeps its place in the sentence but answers on a 44px line box */
|
|
.kg-runs { display: inline-block; margin: -10px 0 -10px 6px; padding: 10px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
|
|
/* 8. the closing band: the Quiet room, centred (the one centred head on the page), the sentence cut in by line mask */
|
|
.kg-end { padding: clamp(72px, 9vw, 116px) 0; background: var(--quiet-room); text-align: center; }
|
|
.kg-end-h { margin: 0 auto; max-width: 26ch; font-size: 32px; font-weight: 497; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
|
|
.kg-close { justify-content: center; margin-top: 44px; }
|
|
|
|
/* 9. the five section entrances (motion map rule 7), in page order. Each holds its "before" state only while the
|
|
section is armed ([data-arm]: JS on, motion allowed) and not yet in ([data-in]); JS off and reduced motion never arm,
|
|
so every section is simply there. Transform, opacity, clip-path and a stroke offset only: no layout moves. */
|
|
/* 1. ripple (types): a ring spreads from the centre and the sheet opens behind it */
|
|
.kg-types { position: relative; overflow: clip; }
|
|
.kg-ring { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 17px var(--fill); opacity: 0; pointer-events: none; }
|
|
.kg-types[data-arm]:not([data-in]) > .kg-wrap { clip-path: circle(0% at 50% 50%); }
|
|
.kg-types[data-arm] > .kg-wrap { transition: clip-path 1.2s var(--e) .12s; clip-path: circle(100% at 50% 50%); }
|
|
.kg-types[data-arm][data-in] > .kg-ring { animation: kg-ripple 1.4s var(--eo) both; }
|
|
@keyframes kg-ripple { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(40); } }
|
|
/* 2. drop-in (call): the words and the code fall in from above and settle with a small bounce */
|
|
.kg-call[data-arm]:not([data-in]) .kg-call-g > * { opacity: 0; transform: translateY(-56px); }
|
|
.kg-call[data-arm][data-in] .kg-call-g > * { animation: kg-drop .9s var(--eio) both; }
|
|
.kg-call[data-arm][data-in] .kg-call-g > :nth-child(2) { animation-delay: .12s; }
|
|
@keyframes kg-drop { 0% { opacity: 0; transform: translateY(-56px); } 55% { opacity: 1; transform: translateY(6px); } 78% { transform: translateY(-2px); } 100% { opacity: 1; transform: none; } }
|
|
/* 3. tilt-3d-hover (limits): both columns arrive tipped back in 3D and level; the checker then leans toward the pointer */
|
|
.kg-limits-g { perspective: 1400px; }
|
|
.kg-limits[data-arm] .kg-limits-g > * { transform-origin: 50% 0; transition: transform .9s var(--e), opacity .5s var(--eo); }
|
|
.kg-limits[data-arm] .kg-limits-g > :nth-child(2) { transition-delay: .1s; }
|
|
.kg-limits[data-arm]:not([data-in]) .kg-limits-g > * { opacity: 0; transform: rotateX(24deg) rotateY(-10deg) translateY(40px); }
|
|
/* 4. line-draw (the black room): the outline strokes itself round, then the black fills in and the words arrive */
|
|
.kg-recipes[data-arm] .kg-outline rect { transition: stroke-dashoffset 1s var(--eio); }
|
|
.kg-recipes[data-arm] .kg-room::before { transition: opacity .5s var(--eo) .85s; }
|
|
.kg-recipes[data-arm] .kg-room-in { transition: opacity .5s var(--eo) 1.1s; }
|
|
.kg-recipes[data-arm]:not([data-in]) .kg-outline rect { stroke-dashoffset: 1; }
|
|
.kg-recipes[data-arm]:not([data-in]) .kg-room::before, .kg-recipes[data-arm]:not([data-in]) .kg-room-in { opacity: 0; }
|
|
/* 5. cover-slide (from Jev): the section rises over the room's tail, a white sheet with the floating shadow on its edge */
|
|
.kg-jev { position: relative; z-index: 1; padding-top: 44px !important; background: var(--paper); border-radius: 24px 24px 0 0; }
|
|
.kg-jev::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 72px; border-radius: inherit; box-shadow: 0 -24px 60px -16px rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; }
|
|
.kg-jev[data-arm] { transition: transform 1s var(--e); }
|
|
.kg-jev[data-arm]::before { transition: opacity .6s var(--eo) .7s; }
|
|
.kg-jev[data-arm]:not([data-in]) { transform: translateY(160px); }
|
|
.kg-jev[data-arm]:not([data-in])::before { opacity: 1; transition-delay: 0s; }
|
|
|
|
@media (max-width: 899px) {
|
|
.kg { --pad: 72px; }
|
|
.kg-hero { padding: 56px 0 27px; }
|
|
.kg-hero-g, .kg-head, .kg-call-g, .kg-limits-g, .kg-proof-g, .kg-rows li, .kg-rx { grid-template-columns: minmax(0, 1fr); gap: 17px; }
|
|
.kg-head > div:first-child, .kg-head > .kg-side, .kg-call-t, .kg-code, .kg-limits-t, .kg-limits-c, .kg-proof .kg-bench-f, .kg-proof-g > p,
|
|
.kg-row-n, .kg-rows p:nth-of-type(1), .kg-rows p:nth-of-type(2) { grid-column: 1; }
|
|
/* phone: the title, its caption 17px under it, the lede and the ask, then the session at 45svh, its JSON unwrapped */
|
|
.kg-hero-g { gap: 0; }
|
|
.kg-hero-t { display: contents; }
|
|
.kg-h1 { order: 1; font-size: 44px; line-height: 1.05; }
|
|
.kg-hero-t > .kg-sub { order: 2; margin-top: 17px; }
|
|
.kg-lede { order: 3; margin-top: 17px; font-size: 17px; line-height: 1.45; }
|
|
.kg-hero-t > .kg-acts { order: 4; margin-top: 17px; }
|
|
.kg-sess { order: 5; grid-column: 1; margin-top: 27px; border-radius: 20px; }
|
|
.kg-crumb { order: 6; margin-top: 27px; }
|
|
.kg-sess-bar, .kg-check-bar, .kg-mk { font-size: 14px; }
|
|
.kg .x-copy-t { font-size: 14px; }
|
|
.kg-sess-bar { height: 56px; padding-left: 17px; }
|
|
.kg-sess-st { display: none; }
|
|
.kg-sess-btn { margin-left: auto; }
|
|
.kg-sess-scr { height: calc(45svh - 56px); min-height: 220px; padding: 17px 17px 21px; mask-image: linear-gradient(90deg, var(--black) calc(100% - 17px), transparent); }
|
|
.kg-sess pre { width: max-content; min-width: 100%; font-size: 13px; line-height: 1.6; white-space: pre; word-break: normal; }
|
|
.kg-sess-res { margin-top: 14px !important; padding-top: 14px; }
|
|
.kg-kick, .kg-rows b, .kg-dl dt button, .kg-bf-n { font-size: 12px; }
|
|
.kg-rows { margin-top: 44px; }
|
|
.kg-rows li { padding: 27px 0; gap: 10px; }
|
|
.kg-row-n h3 { font-size: 21px; }
|
|
.kg-call-t, .kg-limits-c { position: static; }
|
|
.kg-shape { margin-top: 27px; max-width: none; }
|
|
.kg-code .x-codeblock, .kg-cap { border-radius: 20px; }
|
|
.kg-code .x-codeblock pre { padding: 17px 27px 17px 17px; }
|
|
.kg-code .x-tab { padding: 0 10px; font-size: 13px; }
|
|
.kg-dl { margin-top: 27px; }
|
|
.kg-dl dt button { padding-right: 10px; }
|
|
.kg-dl > div + div dt button { padding-left: 6px; }
|
|
.kg-dl > div + div dt::after { left: 6px; }
|
|
.kg-dl dt::after { right: 10px; }
|
|
.kg-dl dd { padding-top: 21px; font-size: 16px; }
|
|
.kg-check, .kg-jev-d { border-radius: 20px; }
|
|
.kg-ck-body { padding: 17px 17px 21px; }
|
|
/* the two model ids side by side at equal width */
|
|
.kg-models { display: grid; grid-template-columns: 1fr 1fr; }
|
|
.kg-chip { padding: 0 6px; font-size: 13px; }
|
|
.kg-verdict b { font-size: 26px; }
|
|
.kg-room { padding: 44px 21px; border-radius: 20px; }
|
|
/* phone: the stage on top, the six names as a two-column grid of 44px chips beneath it */
|
|
.kg-rx { margin-top: 44px; gap: 27px; }
|
|
.kg-rx-stage { grid-column: 1; grid-row: 1; padding-top: 21px; gap: 21px; }
|
|
.kg-rec { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; border-top: 0; gap: 0 10px; }
|
|
.kg-rec li { border-bottom: 1px solid var(--on-black-line); }
|
|
.kg-rec button { min-height: 48px; padding: 0 10px; }
|
|
.kg-rec code { font-size: 13px; }
|
|
.kg-rec li[data-on] code { transform: translateX(4px); }
|
|
.kg-rx-m code { font-size: 26px; }
|
|
.kg-rx-it p { margin-top: 17px; font-size: 17px; }
|
|
.kg-jev { padding-bottom: 44px; }
|
|
.kg-jev-d { margin-top: 44px; }
|
|
.kg-differs { margin-top: 27px; }
|
|
.kg-proof-g { padding: 27px 0; gap: 27px; }
|
|
.kg-bf { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 17px; }
|
|
.kg-bf-bar { grid-column: 1 / -1; }
|
|
.kg-end { padding: 72px 0; }
|
|
.kg-end-h { font-size: 26px; }
|
|
.kg-close { margin-top: 27px; }
|
|
}
|
|
@media (max-width: 359px) { .kg-dl dt button { letter-spacing: .02em; } }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.kg-sess-req code::after { animation: none !important; }
|
|
.js .kg-rows li .kg-glyph i { animation: none !important; }
|
|
.kg-dl-l, .kg-bf-bar i, .kg-dl dt::after, .kg-rec li::before, .kg-rows li::before, .kg-run, .kg-cost::before, .kg-cost b,
|
|
.kg-rx-m code, .kg-rx-it, .kg-rx-it p, .kg-end-h .x-line-in, .kg-rl, .kg-rl::before, .kg-sess-req, .kg-shape-w i { transition: none !important; }
|
|
.kg-rx-bar i, .kg-dl dd { animation: none !important; }
|
|
}
|
|
|
|
/* round 9 (8 Nov): the thread fills from the top like a terminal; it no longer sits at the bottom of its box, where
|
|
every streamed line pushed the exchange above it up (layout shift 0.03). The scroller follows the newest line. */
|
|
.kg-thread > :first-child { margin-top: 0; }
|
|
/* the checker's two model chips share the row equally on phones */
|
|
@media (max-width: 899px) { .kg-check .kg-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
/* the thread never traps the wheel: once it is at its end, the page scrolls on (a pointer resting on the hero's
|
|
conversation used to hold the whole page still) */
|
|
.kg-sess-scr { overscroll-behavior: auto; }
|
|
/* the code blocks never trap the wheel either: the kit block contains overscroll on both axes, so a capped block
|
|
(overflow-y hidden) held the page still under the pointer; vertical wheel now passes on to the page */
|
|
.kg .x-codeblock pre, .kg-jev-d pre { overscroll-behavior-y: auto; }
|
|
/* the shape of one call runs by itself: a dot carries each question across to its answer in turn (time, not scroll;
|
|
none under reduced motion) */
|
|
.kg-shape-w::before { content: ''; position: absolute; left: 0; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0; animation: kg-carry 3.6s cubic-bezier(.4, 0, .2, 1) infinite; }
|
|
.kg-shape-r:nth-child(5) .kg-shape-w::before { animation-delay: 1.2s; } .kg-shape-r:nth-child(6) .kg-shape-w::before { animation-delay: 2.4s; }
|
|
@keyframes kg-carry { 0% { opacity: 0; transform: translateX(0); } 6% { opacity: 1; } 30% { opacity: 1; transform: translateX(var(--kg-run, 120px)); } 34%, 100% { opacity: 0; transform: translateX(var(--kg-run, 120px)); } }
|
|
.kg-shape-w { container-type: inline-size; }
|
|
.kg-shape-w::before { --kg-run: calc(100cqw - 8px); }
|
|
@media (prefers-reduced-motion: reduce) { .kg-shape-w::before { animation: none; display: none; } }
|
|
/* the last quiet controls answer the pointer: The runs thickens its underline, the language tabs ink, the dark
|
|
room's quiet ask brightens its outline; presses dip 1px */
|
|
@media (hover: hover) {
|
|
.kg-runs:hover { text-decoration-thickness: 2px; }
|
|
.kg-code [role='tab']:not([aria-selected='true']):hover { color: var(--ink); }
|
|
.kg-room .x-btn:not(.solid):hover { border-color: var(--on-black); background: var(--on-black-band); }
|
|
}
|
|
.kg-runs { transition: transform .09s var(--eo); } .kg-runs:active { transform: translateY(1px); }
|
|
|
|
/* dark mode (docs/DARK-MODE.md): the page's deck names take Hanzo's own dark tokens, as live hanzo.ai; the session
|
|
terminal, the record and the dark room keep their black values in both modes. */
|
|
html:not(.light) .kg {
|
|
--paper: var(--bg); --quiet-room: var(--x-fill); --tile: var(--secondary); --muted-tile: var(--secondary); --brand-tone: var(--secondary); --track: var(--white-22);
|
|
--ink: var(--foreground); --mute: var(--muted-foreground); --quiet: var(--text-tertiary);
|
|
--line: var(--border); --line-2: var(--border-control); --fill: var(--glass-strong);
|
|
}
|
|
html:not(.light) .kg-call { --room-fill: var(--glass); }
|
|
html:not(.light) .kg-run i { color: var(--x-on-ink); } /* the slider knob is an ink fill, light in dark like Hanzo's primary */
|
|
/* dark: live hanzo.ai's heroes carry a halftone dot field in dark, densest at the edges; light mode draws nothing here */
|
|
html:not(.light) .kg-hero { position: relative; isolation: isolate; }
|
|
html:not(.light) .kg-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle, var(--white-20) 1px, transparent 1.6px) 0 0 / 5px 5px; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 45% 45%, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse 75% 70% at 45% 45%, transparent 35%, #000 100%); }
|