Files

688 lines
57 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Analytics (v2): see Analytics.jsx. Built on components/v2/Keynote*, on Hanzo's deck (docs/build-notes/MASTER.md section 3):
ink #0a0a0a, greys #525252 / #737373, whites and silvers, graphite #171717 for the one dark room. Sizes from the deck
(12 13 14 16 17 21 26 32 44 52 64), weights 220 / 400 / 497 / 606. Surfaces are an outline or a fill, never both,
and nothing here takes a shadow. Entrance states hide only under .js, so with JS off every word stands. */
.an { --an-tr: light-dark(#e5e5e5, var(--secondary)); }
/* the kit's CodeBlock, held to the deck on this page (fill only, deck greys, 44px copy) */
.an .x-codeblock { background: #0a0a0a; color: #fafafa; border: 0; border-radius: 16px; }
.an .x-codeblock-h { color: #a3a3a3; font-size: 13px; border-bottom-color: rgba(255, 255, 255, .1); }
.an .x-codeblock .x-copy { background: transparent; border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .78); height: 44px; min-width: 44px; justify-content: center; }
.an .x-codeblock-l.c, .an .x-codeblock-p { color: rgba(255, 255, 255, .55); }
@media (hover: hover), (pointer: none) { .an .x-codeblock .x-copy:hover { border-color: rgba(255, 255, 255, .55); color: #fafafa; box-shadow: none; } }
/* ---------- motion map (7 Nov): the shared reveals stand still on this page ----------
The line-mask cut-in on the h1 and on "Get Analytics", the Stage's fade-rise and its scroll-scrubbed settle are
held at their final state here: the flip board is the page's signature, and each main section has its own entrance. */
.an .knl .knl-t { animation: none !important; transform: none !important; transition: none !important; }
.js .an .kns-in, .js .an .kns-obj-in { animation: none !important; }
.an .kns-obj { transform: none !important; }
/* ---------- the signature: split-flap tiles ----------
A tile is two halves of the same box (clip-path), the character drawn from data-c. On a change the upper flap
(the old character) falls and the lower flap (the new one) rises over the old lower half. */
.fl-w { display: inline-block; }
.fl-row { display: inline-flex; gap: 2px; vertical-align: middle; }
.fl { --fl-w: 19px; --fl-h: 30px; --fl-bg: #262626; --fl-ink: #fafafa; position: relative; flex: none; width: var(--fl-w); height: var(--fl-h); perspective: 220px; font: 497 15px/var(--fl-h) var(--mono); text-transform: none; }
.fl::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: rgba(0, 0, 0, .55); z-index: 3; }
.fl-h { position: absolute; inset: 0; border-radius: 4px; background: var(--fl-bg); color: var(--fl-ink); text-align: center; font-style: normal; backface-visibility: hidden; }
.fl-h::before { content: attr(data-c); }
.fl-t, .fl-ft { clip-path: inset(0 0 50% 0); }
.fl-b, .fl-fb { clip-path: inset(50% 0 0 0); }
.fl-ft { z-index: 2; transform-origin: 50% 50%; animation: fl-down .1s cubic-bezier(.55, 0, 1, .45) both; }
.fl-fb { z-index: 2; transform-origin: 50% 50%; animation: fl-up .12s cubic-bezier(0, .55, .45, 1) .1s both; }
@keyframes fl-down { from { transform: rotateX(0); } to { transform: rotateX(-90deg); } }
@keyframes fl-up { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
/* light tiles (the KPI and commerce figures): ink on #f2f2f2 */
.fl-w.lt .fl { --fl-w: 23px; --fl-h: 38px; --fl-bg: light-dark(#f2f2f2, var(--muted)); --fl-ink: var(--ink); font: 400 30px/var(--fl-h) var(--sans); letter-spacing: -.02em; }
.fl-w.lt .fl::after { background: light-dark(rgba(255, 255, 255, .9), var(--background)); }
.fl-w.lt.lg .fl { --fl-w: 30px; --fl-h: 54px; --fl-bg: var(--x-raised); font: 220 44px/var(--fl-h) var(--sans); }
.fl-w.lt.lg .fl::after { background: light-dark(#f5f5f5, var(--background)); }
.fl-w.lt .fl.nar { --fl-w: 12px; }
.fl-w.lt.lg .fl.nar { --fl-w: 16px; }
.an-kfig { display: block; }
@media (prefers-reduced-motion: reduce) { .fl-ft, .fl-fb { animation: none; } }
/* the realtime board: a dark departure board inside the dashboard */
.an-fb-board { padding: 20px; background: #0a0a0a; color: #fafafa; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.an-fb-board .an-rt-h { margin: 0; color: #fafafa; }
.an-fb-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.an-fb-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px 6px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; text-align: left; transition: background-color .2s var(--e-out), border-color .2s var(--e-out); }
.an-fb-row .an-fb-ref { margin-left: auto; }
.an-fb-dot { position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #525252; transition: background-color .2s var(--e-out), transform .2s var(--e-out); }
@media (hover: hover), (pointer: none) { .an-fb-row:hover { background: rgba(255, 255, 255, .06); } }
.an-fb-row.held { border-color: rgba(255, 255, 255, .55); }
.an-fb-row.held .an-fb-dot { background: #fafafa; transform: scale(1.4); }
.an-fb-row[aria-pressed='true'] { background: rgba(255, 255, 255, .1); }
.an-fb-row:active { transform: scale(.99); }
.an-fb-row:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
.an-fb-rows li:first-child .an-fb-dot { background: #fafafa; }
/* the kit's link Cta gets a 44px target here (the system gives .x-arrow no hit area); on hover an underline draws
in from the left and the arrow steps on, so a link ask always answers the pointer */
.an .x-arrow { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.an .x-arrow > span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--e-move); }
.an .x-arrow > svg { transition: transform .3s var(--e-move); }
@media (hover: hover), (pointer: none) {
.an .x-arrow:hover > span { background-size: 100% 1px; text-decoration: none; }
.an .x-arrow:hover > svg { transform: translateX(5px); }
}
/* the first screen's one solid ask: above 700px the hero's "Try Hanzo" is the filled button (the header's goes quiet
while it shows); on phones the header's own "Try Hanzo" stays solid, so the hero's stays an outline (one solid) */
.an [data-cta='analytics.hero'] { min-height: 48px; padding: 0 26px; font-size: 16px; }
@media (min-width: 701px) {
.an [data-cta='analytics.hero'] { background-color: var(--btn-solid-bg); border-color: var(--btn-solid-bg); color: var(--btn-solid-ink); }
}
@media (min-width: 701px) and (hover: hover) { .an [data-cta='analytics.hero']:hover { background-color: light-dark(#262626, var(--primary-hover)); border-color: light-dark(#262626, var(--primary-hover)); color: var(--btn-solid-ink); } }
/* the hero, Analytics' own: the title runs across with the lede and asks on the right, and the dashboard is a wide,
short stage the full width of the grid below (no window chrome), starting large and settling as you scroll. At
1470×801 the h1 baseline sits near 32%, the stage fills the rest and the reports heading peeks under the fold line. */
@media (min-width: 900px) {
.an .an-hero { padding: clamp(24px, calc(30svh - 140px), 140px) 0 clamp(36px, 3vw, 44px); }
.an .an-hero .kns-g { row-gap: 32px; }
.an .an-hero .kns-t { grid-column: 1 / span 6; }
.an .an-hero .kns-r { grid-column: 7 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; column-gap: 32px; row-gap: 17px; }
.an .an-hero .kns-r .kn-lede { flex: 1 1 300px; max-width: 34ch; font-size: 17px; line-height: 1.5; }
.an .an-hero .kns-acts { flex: none; }
.an .an-hero .kn-display { white-space: nowrap; }
}
@media (max-width: 899px) { .an .an-hero { padding-bottom: 56px; } }
/* the stage: KPIs as a column on the left, then the flip board and the activity line */
.an-bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px 0 10px; border-bottom: 1px solid var(--line); background: var(--x-sunk); }
.an-bar > span { font: 497 14px/1 var(--sans); color: var(--soft); }
.an-bar-k { margin: 0 6px 0 auto; text-align: right; }
.an-live-btn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); cursor: pointer; transition: border-color .2s var(--e-out), background-color .2s var(--e-out), transform .1s var(--e-out); position: relative; }
.an-live-btn::before { content: ''; position: absolute; inset: -4px; }
@media (hover: hover), (pointer: none) { .an-live-btn:hover { border-color: var(--ink); background: light-dark(#f5f5f5, var(--muted)); } }
.an-live-btn:active { transform: scale(.94); }
.an-live-btn[aria-pressed='true'] { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); }
.an-live-btn:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
.an-board[data-paused] *, .an-board[data-paused] *::before, .an-board[data-paused] *::after { animation-play-state: paused !important; }
.an .an-hero .kns-obj { transform-origin: 50% 0; }
@media (min-width: 900px) {
.an .an-board { display: grid; grid-template-columns: minmax(200px, 21%) minmax(0, 1fr); }
.an .an-bar { grid-column: 1 / -1; }
.an .an-kpis { grid-template-columns: minmax(0, 1fr); border-bottom: 0; border-right: 1px solid var(--line); }
.an .an-kpi { padding: 10px 24px; gap: 4px; justify-content: center; }
.an .an-kpi + .an-kpi { border-left: 0; border-top: 1px solid var(--line); }
.an .an-kpi b { font-size: 32px; }
.an .an-main { grid-template-columns: minmax(0, 1fr); }
.an .an-live { padding: 20px 24px 16px; }
.an .an-live-h { margin-bottom: 12px; }
.an .an-chart { height: 170px; }
}
@media (min-width: 1240px) {
.an .an-main { grid-template-columns: auto minmax(0, 1fr); }
.an .an-chart { height: clamp(150px, calc(100svh - 600px), 230px); }
}
@media (max-width: 899px) {
/* phones: each visit is two lines of tiles, the page over its referrer */
.an-fb-board { padding: 16px; }
.an-fb-row { flex-wrap: wrap; row-gap: 4px; padding: 8px; }
.an-fb-row .an-fb-ref { margin-left: 18px; flex-basis: 100%; }
.an-fb-board .fl { --fl-w: 19px; --fl-h: 28px; font-size: 15px; }
.an-fb-rows li:nth-child(5) { display: none; }
.fl-w.lt .fl { --fl-w: 19px; --fl-h: 32px; font-size: 24px; }
.fl-w.lt.lg .fl { --fl-w: 17px; --fl-h: 34px; font-size: 26px; font-weight: 400; }
}
/* ---------- section entrances (motion map: focus-pull-scroll, ripple, noise-dissolve, stretch-scroll, card-deal) ----------
Each runs once when its section is first seen (data-en, set by useEnter), in under .9 s, and ends in the section's
normal state with no lasting filter, clip or transform. The start state applies only under .js before data-en, and
never under reduced motion; with JS off every section simply stands. */
@media (prefers-reduced-motion: no-preference) {
/* 1. focus-pull-scroll (The reports): the heading softens like a background as the cards pull into focus */
.js .en-focus:not([data-en]) .an-rep-grid { filter: blur(14px); transform: scale(1.04); }
.en-focus[data-en] .an-rep-grid { animation: en-sharp .85s cubic-bezier(.2, .7, .2, 1) backwards; }
.en-focus[data-en] .an-rep-h { animation: en-soft .85s ease-out; }
@keyframes en-sharp { from { filter: blur(14px); transform: scale(1.04); } to { filter: none; transform: none; } }
@keyframes en-soft { 0% { filter: none; } 35% { filter: blur(3px); opacity: .55; } 100% { filter: none; opacity: 1; } }
/* 2. ripple (Add the script): a ring spreads from the centre and the section opens behind it */
.en-ripple { overflow: clip; }
.js .en-ripple:not([data-en]) > .kn-wrap { clip-path: circle(0% at 50% 50%); }
.en-ripple[data-en] > .kn-wrap { animation: en-open .8s cubic-bezier(.3, .6, .2, 1) backwards; }
.en-ripple[data-en]::after { content: ''; position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 1.5px solid light-dark(rgba(0, 0, 0, .35), var(--border-selected)); pointer-events: none; animation: en-ring .85s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes en-open { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(110% at 50% 50%); } }
@keyframes en-ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(22); opacity: 0; } }
/* 3. noise-dissolve (From a visit to a number): the section resolves out of grain */
.en-noise::before { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: var(--x-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.js .en-noise:not([data-en])::before { opacity: 1; }
.en-noise[data-en]::before { animation: en-grain .8s steps(8, end) both; }
@keyframes en-grain { 0% { opacity: 1; background-position: 0 0; } 40% { opacity: .7; background-position: 37px 11px; } 70% { opacity: .35; background-position: -23px 41px; } 100% { opacity: 0; background-position: 13px -17px; } }
/* 4. stretch-scroll (If you sell something): arrives stretched tall and relaxes into place */
.js .en-stretch:not([data-en]) > .kn-wrap { transform: scaleY(1.2); transform-origin: 50% 0; }
.en-stretch[data-en] > .kn-wrap { transform-origin: 50% 0; animation: en-stretch .8s cubic-bezier(.2, .7, .3, 1) backwards; }
@keyframes en-stretch { 0% { transform: scaleY(1.2) translateY(-24px); } 60% { transform: scaleY(.98); } 100% { transform: none; } }
/* 5. card-deal (the graphite room): its cards are dealt from a deck at the lower right onto their places */
.en-deal .an-ai-l li, .en-deal .an-anom, .en-deal .an-ins li, .en-deal .an-rec { --dx: 46vw; --dy: 260px; }
.en-deal .an-ai-o .an-anom, .en-deal .an-ins li, .en-deal .an-rec { --dx: 12vw; --dy: 220px; }
.js .en-deal:not([data-en]) :is(.an-ai-l li, .an-anom, .an-ins li, .an-rec) { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) rotate(9deg); }
.en-deal[data-en] :is(.an-ai-l li, .an-anom, .an-ins li, .an-rec) { animation: en-deal .55s cubic-bezier(.2, .8, .25, 1) backwards; }
.en-deal[data-en] .an-anom { animation-delay: 0ms; }
.en-deal[data-en] .an-ins li:nth-child(1) { animation-delay: 70ms; }
.en-deal[data-en] .an-ins li:nth-child(2) { animation-delay: 140ms; }
.en-deal[data-en] .an-ins li:nth-child(3) { animation-delay: 210ms; }
.en-deal[data-en] .an-rec { animation-delay: 280ms; }
.en-deal[data-en] .an-ai-l li:nth-child(1) { animation-delay: 120ms; }
.en-deal[data-en] .an-ai-l li:nth-child(2) { animation-delay: 190ms; }
.en-deal[data-en] .an-ai-l li:nth-child(3) { animation-delay: 260ms; }
@keyframes en-deal { 0% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) rotate(9deg); } 15% { opacity: 1; } 100% { opacity: 1; transform: none; } }
}
/* the graphite room, page-local (it is dark from the start; no scrubbed opening) */
.an-ai { background: #171717; color: #fafafa; overflow: clip; }
/* "From a visit to a number": three quick cards */
.an-visit-g { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--kn-g); }
.an-visit-g li { display: flex; flex-direction: column; gap: 12px; }
.an-visit-pic { height: clamp(260px, 24vw, 340px); margin-bottom: 8px; }
.an-visit-pic > .an-sc { height: 100%; }
.an-visit-d { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 44ch; }
@media (max-width: 899px) {
.an-visit-g { grid-template-columns: minmax(0, 1fr); gap: 44px; margin-top: 32px; }
.an-visit-pic { height: 280px; }
}
/* section rhythm: the next section peeks instead of a 300px white gap */
.an .kn-sec { padding: clamp(48px, 5.5vw, 88px) 0; }
.an-ch .knc-head { padding-top: 0; }
.an .an-rep { padding-top: 24px; padding-bottom: clamp(48px, 5vw, 80px); }
/* a figure settles into place: a line mask, Hanzo's true value only, never other digits */
.an-m { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.an-m > span { display: inline-block; }
.js .an-kpi .an-m > span { animation: an-settle .38s var(--e-in) both; animation-delay: calc(var(--an-i, 0) * 40ms); }
@keyframes an-settle { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
/* ---------- hero: the example dashboard ---------- */
.an-board { width: 100%; display: flex; flex-direction: column; font-family: var(--sans); }
.an-bar em, .an-shop-h em { margin-left: 4px; padding: 4px 8px; border-radius: 6px; background: light-dark(#f2f2f2, var(--muted)); font: 497 13px/1 var(--mono); font-style: normal; color: light-dark(#525252, var(--muted-foreground)); }
.an-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.an-kpi { padding: 24px 27px; display: flex; flex-direction: column; gap: 10px; }
.an-kpi + .an-kpi { border-left: 1px solid var(--line); }
.an-kpi p { margin: 0; font-size: 14px; color: var(--soft); }
.an-kpi b { font-size: 32px; line-height: 1.05; font-weight: 400; letter-spacing: -.025em; color: var(--ink); }
.an-kpi > span { font: 497 13px/1 var(--mono); color: var(--faint); }
.an-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 34%); flex: 1; }
.an-live { padding: 24px 27px 21px; display: flex; flex-direction: column; min-width: 0; }
.an-live-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 17px; }
.an-live-h p { margin: 0; font-size: 16px; font-weight: 497; letter-spacing: -.01em; }
.an-at { margin-right: auto; min-width: 5ch; font: 497 13px/1 var(--mono); color: var(--ink); }
.an-live-h span:not(.an-at) { font-size: 13px; color: var(--soft); }
.an-live-h b { font: 497 17px/1 var(--sans); }
.an-live-h b.dim { color: var(--faint); font-weight: 400; }
.an-live-h em { font: 497 13px/1 var(--mono); font-style: normal; color: var(--soft); }
.an-chart { position: relative; height: clamp(180px, 17vw, 250px); cursor: crosshair; touch-action: pan-y; }
.an-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.an-grid { stroke: light-dark(#ededed, var(--border)); stroke-width: 1; }
.an-area { fill: light-dark(#f5f5f5, var(--muted)); }
.an-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; }
/* first paint, no script needed: the line draws itself and the area under it settles in */
.js .an-line { animation: an-draw 1.4s var(--e-in) .35s both; }
.js .an-area { animation: an-fade .4s var(--e-out) 1.3s both; }
@keyframes an-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes an-fade { from { opacity: 0; } }
.an-now { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); outline: 3px solid var(--x-on-ink); }
.an-now::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; animation: an-ring 2s var(--e-out) 1.8s infinite; }
.js .an-now { animation: an-fade .3s var(--e-out) 1.6s both; }
.an-now.hold, .an-now.hold::after { animation: none; }
@keyframes an-ring { 0% { transform: scale(.5); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.an-hair { position: absolute; top: 0; bottom: 0; width: 1px; background: #737373; pointer-events: none; }
.an-axis { display: flex; justify-content: space-between; margin-top: 12px; font: 497 13px/1 var(--mono); color: var(--faint); }
.an-rt { padding: 24px clamp(27px, 4vw, 64px) 21px 24px; border-left: 1px solid var(--line); background: var(--x-sunk); display: flex; flex-direction: column; min-width: 0; }
.an-rt-h { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; font-size: 16px; font-weight: 497; letter-spacing: -.01em; }
.an-rt-h i, .an-ai-ph i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.an-rt-h i::after, .an-ai-ph i::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: an-ring 1.8s var(--e-out) .6s infinite; }
.an-rt-win { position: relative; flex: 1; overflow: hidden; max-height: 268px; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.an-rt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.an-rt li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.an-rt li.new { animation: an-wipe .4s var(--e-in) both; }
@keyframes an-wipe { from { clip-path: inset(0 100% 0 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }
.an-rt li b { font: 497 14px/1.2 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-rt li span { font: 497 13px/1 var(--mono); color: var(--soft); }
/* ---------- the reports: a bento of cards that open ---------- */
.an-rep-h { align-items: start; row-gap: 27px; margin-bottom: 44px; }
.an-rep-ht { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 17px; }
.an-ask { grid-column: 8 / -1; display: flex; flex-direction: column; gap: 12px; }
.an-ask-q { display: flex; flex-wrap: wrap; gap: 8px; }
.an-ask-q button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); font: 400 16px/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .15s var(--e-out), background-color .15s var(--e-out), transform .15s var(--e-out); }
.an-ask-q button svg { flex: none; color: var(--faint); transition: transform .3s var(--e-move), color .15s var(--e-out); }
@media (hover: hover), (pointer: none) {
.an-ask-q button:hover { border-color: var(--ink); background: light-dark(#f5f5f5, var(--muted)); }
.an-ask-q button:hover svg { transform: translateX(4px); color: var(--ink); }
}
.an-ask-q button:active { transform: scale(.97); transition-duration: 90ms; }
.an-ask-q button[aria-pressed='true'] { background: light-dark(#ededed, var(--secondary)); border-color: transparent; }
.an-ask-q button[aria-pressed='true'] svg { color: var(--ink); }
.an-ask-q button:focus-visible, .an-r:focus-visible, .an-more:focus-visible, .an-apply:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; }
.an-rep-grid .kno-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.an-rep-grid .kno-grid > li:nth-child(1) { grid-column: span 7; }
.an-rep-grid .kno-grid > li:nth-child(2) { grid-column: span 5; }
.an-rep-grid .kno-grid > li:nth-child(3) { grid-column: span 3; }
.an-rep-grid .kno-grid > li:nth-child(4) { grid-column: span 5; }
.an-rep-grid .kno-grid > li:nth-child(5) { grid-column: span 4; }
.an-rep-grid .kno-card .kno-art { aspect-ratio: auto; height: clamp(220px, 20vw, 300px); }
/* a card answers the pointer: it lifts, its hairline turns ink, and its little picture starts playing */
.an-rep-grid .kno-card { transition: border-color .2s var(--e-out), translate .3s var(--e-move), scale .15s var(--e-out); }
@media (hover: hover), (pointer: none) {
.an-rep-grid .kno-card:hover { border-color: var(--ink); translate: 0 -4px; }
.an-rep-grid .kno-card:hover .kno-plus { transform: rotate(90deg); }
.kno-card:hover .an-art-rt p, .kno-card:hover .an-art-e p { animation: an-wipe .4s var(--e-in) both; animation-delay: calc(var(--an-i) * 60ms); }
.kno-card:hover .an-art-rt i::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; animation: an-ring 1.8s var(--e-out) .2s infinite; }
.kno-card:hover .an-j-hot { animation: an-path 1s var(--e-in) both; }
.kno-card:hover .an-art-j circle.hot { animation: an-pop .4s var(--e-in) .8s both; }
.kno-card:hover .an-art-f i { animation: an-fbar .5s var(--e-in) both; animation-delay: calc(var(--an-i) * 60ms); }
.kno-card:hover .an-a-bar span { animation: an-grow .5s var(--e-in) both; animation-delay: calc(var(--an-i) * 60ms); }
}
/* the idle walk plays the same pictures, one card at a time, with the hairline in ink (no lift) */
.an-rep-grid .kno-card.an-walk { border-color: var(--ink); }
.kno-card.an-walk .an-art-rt p, .kno-card.an-walk .an-art-e p { animation: an-wipe .4s var(--e-in) both; animation-delay: calc(var(--an-i) * 60ms); }
.kno-card.an-walk .an-j-hot { animation: an-path 1s var(--e-in) both; }
.kno-card.an-walk .an-art-j circle.hot { animation: an-pop .4s var(--e-in) .8s both; }
.kno-card.an-walk .an-art-f i { animation: an-fbar .5s var(--e-in) both; animation-delay: calc(var(--an-i) * 60ms); }
.kno-card.an-walk .an-a-bar span { animation: an-grow .5s var(--e-in) both; animation-delay: calc(var(--an-i) * 60ms); }
@keyframes an-pop { from { transform: scale(0); } }
.an-art-j circle.hot { transform-box: fill-box; transform-origin: 50% 50%; }
/* each report's own picture (still on the card; it plays once opened) */
.an-art { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 2.4vw, 32px); }
.an-art-rt { gap: 8px; }
.an-art-rt p { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--x-raised); }
.an-art-rt i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.an-art-rt b { font: 497 14px/1 var(--mono); color: var(--ink); }
.an-art-rt span { font: 497 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
.an-art-j svg { width: 100%; height: 100%; max-height: 240px; }
.an-j-p { fill: none; stroke: light-dark(#d4d4d4, var(--border-control)); stroke-width: 2.5; stroke-linecap: round; }
.an-j-hot { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; }
.an-art-j circle { fill: var(--x-raised); stroke: var(--ink); stroke-width: 2.5; }
.an-art-j circle.hot { fill: var(--ink); }
.an-art-f { gap: 10px; }
.an-art-f span { display: block; height: clamp(20px, 2vw, 28px); border-radius: 6px; background: var(--an-tr); overflow: hidden; }
.an-art-f i { display: block; height: 100%; border-radius: 6px; background: var(--ink); transform: scaleX(var(--an-w)); transform-origin: 0 50%; }
/* the cliff is told by shape, not colour: a hatched bar */
.an-art-f span.cliff i, .an-fb.cliff .an-fb-col i { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 7px); }
.an-art-e { gap: 8px; }
.an-art-e p { margin: 0; padding: 12px 16px; border-radius: 12px; background: #0a0a0a; color: #a3a3a3; font: 497 13px/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-art-e b { color: #fafafa; font-weight: 497; }
.an-art-a { gap: 14px; }
.an-a-bar { display: flex; gap: 6px; height: clamp(88px, 9vw, 120px); }
.an-a-bar span:nth-child(3) { min-width: 92px; }
.an-a-bar span { position: relative; min-width: 0; border-radius: 12px; background: var(--ink); transform-origin: 50% 100%; }
.an-a-bar span:nth-child(2) { background: #737373; }
.an-a-bar span:nth-child(3) { background: light-dark(#d4d4d4, var(--secondary-hover)); }
.an-a-bar em { position: absolute; left: 12px; bottom: 12px; font: 497 13px/1 var(--mono); font-style: normal; color: var(--x-on-ink); }
.an-a-bar span:nth-child(3) em { color: var(--ink); }
.an-a-ends { display: flex; justify-content: space-between; gap: 12px; font: 497 13px/1.3 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
.an-a-ends span:last-child { text-align: right; }
/* opened: the picture plays (wipes and draws, no fades) */
.kno-art.big .an-art-rt p { animation: an-wipe .4s var(--e-in) both; animation-delay: calc(.3s + var(--an-i) * 60ms); }
.kno-art.big .an-art-rt i::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; animation: an-ring 1.8s var(--e-out) .9s 3; }
.kno-art.big .an-j-hot { animation: an-path 1.2s var(--e-in) .3s both; }
.kno-art.big .an-art-f i { animation: an-fbar .5s var(--e-in) both; animation-delay: calc(.3s + var(--an-i) * 60ms); }
.kno-art.big .an-art-e p { animation: an-wipe .4s var(--e-in) both; animation-delay: calc(.3s + var(--an-i) * 60ms); }
.kno-art.big .an-a-bar span { animation: an-grow .5s var(--e-in) both; animation-delay: calc(.3s + var(--an-i) * 60ms); }
@keyframes an-path { from { stroke-dashoffset: 260; } }
@keyframes an-fbar { from { transform: scaleX(0); } }
@keyframes an-grow { from { transform: scaleY(0); } }
/* ---------- the signature: from a visit to a number ---------- */
.an-ch-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--kn-g); row-gap: 27px; align-items: end; }
.an-ch-head .kn-headline { grid-column: 1 / span 6; }
.an-ch-r { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; }
.an-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 497 16px/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: transform 90ms var(--e-out); }
.an-more { padding: 0 10px; margin: 0 -10px; border-radius: 10px; transition: transform 90ms var(--e-out), background-color .15s var(--e-out); }
@media (hover: hover), (pointer: none) { .an-more:hover { background: light-dark(#f5f5f5, var(--muted)); text-decoration-thickness: 2px; } }
.an-more:active { transform: translateY(1px); }
.an-sc { position: relative; height: 100%; display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 44px); }
.an-sc-k { margin: 0; }
.an-sc-note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--soft); max-width: 40ch; }
.an-fbars { position: relative; flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 17px); min-height: 0; }
.an-fb { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.an-fb-col { position: relative; flex: 1; border-radius: 12px; background: light-dark(#f5f5f5, var(--muted)); overflow: hidden; }
.an-fb-col i { position: absolute; inset: 0; border-radius: 12px; background: var(--ink); transform-origin: 50% 100%; }
.an-fb em { display: inline-flex; align-items: center; gap: 6px; font: 497 13px/1 var(--mono); font-style: normal; color: var(--faint); }
.an-fb.cliff em { color: var(--ink); }
.an-cliff { display: inline-grid; place-items: center; }
.an-sc-r { background: light-dark(#f5f5f5, var(--muted)); border-color: transparent; justify-content: center; --quiet: light-dark(#525252, var(--muted-foreground)); --faint: light-dark(#525252, var(--muted-foreground)); }
.an-coh { display: flex; flex-direction: column; gap: 6px; }
.an-coh-r { display: grid; grid-template-columns: 36px repeat(8, minmax(0, 1fr)); gap: 6px; align-items: center; }
.an-coh-l { font: 497 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
.an-coh i { aspect-ratio: 1; border-radius: 6px; background: var(--an-tr); position: relative; overflow: hidden; }
.an-coh i::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .3s var(--e-out), transform .4s var(--e-in); }
.an-coh i.on::after { opacity: var(--an-v); transform: none; }
.an-coh i.none { background: transparent; }
.an-v-key { display: flex; flex-wrap: wrap; gap: 17px; font: 497 13px/1 var(--mono); color: var(--soft); }
.an-v-key span { display: inline-flex; align-items: center; gap: 8px; }
.an-v-key i { width: 12px; height: 12px; border-radius: 4px; }
.an-v-key i.t { height: 2px; border-radius: 1px; background: #737373; }
.an-v-key i.ch { background: #a3a3a3; }
.an-v-key i.ca { background: var(--ink); }
.an-v-plot { position: relative; flex: 1; min-height: 0; border-bottom: 1px solid var(--line); }
.an-v-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.an-v-plot path { fill: none; stroke: light-dark(#737373, var(--text-tertiary)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-v-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(8px, 1vw, 12px); align-items: end; }
.an-rb { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
.an-rb i { display: block; border-radius: 6px; transform-origin: 50% 100%; }
.an-rb i.ch { background: #a3a3a3; }
.an-rb i.ca { background: var(--ink); }
/* ---------- if you sell something ---------- */
.an-h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 497; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.an-sell-g { align-items: center; row-gap: 44px; }
.an-sell-obj { grid-column: 1 / span 7; }
.an-sell-t { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 17px; }
.an-sell-l { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.an-sell-l li { display: flex; flex-direction: column; gap: 6px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.an-sell-l p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--soft); }
.an-shop { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 27px; }
.an-shop-h { display: flex; align-items: center; justify-content: space-between; }
.an-shop-h p { margin: 0; font-size: 17px; font-weight: 497; letter-spacing: -.01em; }
.an-shop-k { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.an-shop-k > div { padding: 24px; border-radius: 16px; background: light-dark(#f5f5f5, var(--muted)); display: flex; flex-direction: column; gap: 10px; }
.an-shop-k p { margin: 0; font-size: 14px; color: var(--soft); }
.an-shop-k b { font-size: 64px; line-height: 1; font-weight: 220; letter-spacing: -.04em; color: var(--ink); }
.an-shop-k > div > span { font: 497 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
.js .an-shop .an-m > span { transform: translate3d(0, 105%, 0); transition: transform .5s var(--e-in); transition-delay: calc(.15s + var(--an-i, 0) * 60ms); }
.an-shop[data-in] .an-m > span { transform: none; }
.an-shop-s { margin: 0; }
.an-shop ul { list-style: none; margin: -10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 17px; }
.an-shop li { display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr) 40px; align-items: center; gap: 16px; font-size: 16px; }
.an-shop li i { height: 8px; border-radius: 999px; background: light-dark(#ededed, var(--secondary)); overflow: hidden; }
.an-shop li i b { display: block; height: 100%; border-radius: 999px; background: var(--ink); transform: scaleX(var(--an-w)); transform-origin: 0 50%; }
.js .an-shop li i b { transform: scaleX(0); transition: transform .5s var(--e-in); transition-delay: calc(.25s + var(--an-i) * 60ms); }
.js .an-shop[data-in] li i b { transform: scaleX(var(--an-w)); }
.an-shop li em { font-style: normal; font-weight: 497; text-align: right; }
/* ---------- the dark room (graphite #171717; text #fafafa, white 78%, #a3a3a3) ---------- */
.an-ai-g { align-items: center; row-gap: 44px; }
.an-ai-t { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 17px; }
.an-ai-t .kn-headline { color: #fafafa; }
.an-ai-l { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.an-ai-l li { display: flex; flex-direction: column; gap: 6px; padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.an-ai-l b { font-size: 17px; font-weight: 497; letter-spacing: -.01em; color: #fafafa; }
.an-ai-l span { font-size: 16px; line-height: 1.5; color: #a3a3a3; max-width: 52ch; }
.an-ai-o { grid-column: 7 / -1; }
.an-ai-p { padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: #0a0a0a; display: flex; flex-direction: column; gap: 17px; }
.an-ai-ph { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 497; color: #fafafa; }
.an-ai-ph i::after { animation-iteration-count: 3; }
.an-anom { padding: 20px; border-radius: 16px; background: #171717; display: flex; flex-direction: column; gap: 14px; }
.an-anom-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.an-anom-h b { font-size: 16px; font-weight: 497; color: #fafafa; }
.an-flag { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fafafa; font: 497 13px/1 var(--mono); }
.an-anom-plot { position: relative; height: 96px; }
.an-anom-plot svg { width: 100%; height: 100%; overflow: visible; }
.an-anom-plot path { fill: none; stroke: #fafafa; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; }
.js .an-anom-plot path { stroke-dashoffset: 1; }
.js .an-ai-p[data-in] .an-anom-plot path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--e-in) .2s; }
.an-spike { position: absolute; left: 58%; top: 20%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fafafa; }
.an-spike::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); }
.js .an-spike { opacity: 0; transform: scale(.4); transition: opacity .3s var(--e-out) 1.2s, transform .4s var(--e-in) 1.2s; }
.js .an-ai-p[data-in] .an-spike { opacity: 1; transform: none; }
.an-anom-f { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.an-anom-f p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.an-anom-f .an-conf { font-family: var(--mono); color: #a3a3a3; }
.an-ai-s { margin: 4px 0 0; }
.an-ins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.an-ins li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.an-ins b { font-size: 16px; font-weight: 497; color: #fafafa; }
.an-ins span { font-size: 14px; color: #a3a3a3; }
.an-rec { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.an-rec-t { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
/* a demo control, not an ask: an outline that gains a tick when applied (status by shape, the width never moves) */
.an-apply { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fafafa; font: 497 16px/1 var(--sans); cursor: pointer; transition: border-color .15s var(--e-out), transform .15s var(--e-out); }
.an-apply svg { flex: none; transform: scale(0); transition: transform .3s var(--e-in); }
@media (hover: hover), (pointer: none) { .an-apply:hover { border-color: rgba(255, 255, 255, .55); } }
.an-apply:active { transform: scale(.97); transition-duration: 90ms; }
.an-apply.done { border-color: #fafafa; }
.an-apply.done svg { transform: none; }
/* ---------- add the script ---------- */
.an-add-g { align-items: center; row-gap: 44px; }
.an-add-t { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 27px; }
.an-add-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 17px; }
.an-add-l li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.an-add-l li > span { font: 497 13px/1.6 var(--mono); color: var(--faint); }
.an-add-l b { display: block; font-size: 17px; font-weight: 497; letter-spacing: -.01em; margin-bottom: 4px; }
.an-add-l p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--soft); }
.an-nocard { margin: -12px 0 0; font: 497 13px/1.4 var(--mono); color: var(--faint); }
/* "A script, then an API" as a text disclosure, not a third pill */
.an-disc { margin-top: -8px; padding-top: 17px; border-top: 1px solid var(--line); }
.an-disc .kfs-open { min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; gap: 10px; font-size: 16px; }
.an-disc .kfs-open svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; border: 1px solid var(--line); box-sizing: border-box; transition: transform .35s var(--e-move), background-color .15s var(--e-out), color .15s var(--e-out), border-color .15s var(--e-out); }
@media (hover: hover), (pointer: none) {
.an-disc .kfs-open:hover { background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.an-disc .kfs-open:hover svg { background: var(--ink); border-color: var(--ink); color: var(--x-on-ink); }
}
.an-disc .kfs-open:active { transform: translateY(1px); }
.an-add-o { grid-column: 7 / -1; }
.an-script { display: flex; flex-direction: column; gap: 12px; }
/* the code and its line numbers share one plate: the figure gives its caption and pre to this grid */
.an-script-code { display: grid; grid-template-columns: auto minmax(0, 1fr); background: #0a0a0a; border-radius: 16px; overflow: hidden; }
.an-script-code .x-codeblock { display: contents; }
.an-script-code .x-codeblock-h { grid-column: 1 / -1; grid-row: 1; }
.an-script-code pre { grid-column: 2; grid-row: 2; padding-left: 12px; }
.an-gut { grid-column: 1; grid-row: 2; margin: 0; padding: 16px 0 16px 20px; list-style: none; font: 400 13.5px/1.65 var(--mono); color: rgba(255, 255, 255, .55); text-align: right; user-select: none; -webkit-user-select: none; }
.an-npm { display: flex; flex-direction: row-reverse; align-items: stretch; }
.an-npm .x-codeblock-h { border-bottom: 0; border-left: 1px solid rgba(255, 255, 255, .1); padding: 6px 8px; }
.an-npm .x-codeblock-h > span:empty { display: none; }
.an-npm pre { flex: 1; min-width: 0; display: flex; align-items: center; padding: 14px 20px; }
/* the API drawer */
.an-api { display: flex; flex-direction: column; gap: 27px; }
.an-code { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.an-code [role='tabpanel'] { width: 100%; }
.an-code .x-codeblock pre { max-height: 46svh; }
.an-code-note { margin: 10px 0 0; font: 497 13px/1.4 var(--mono); color: var(--soft); }
.an-code-note a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.an-other { display: flex; flex-direction: column; align-items: flex-start; gap: 17px; padding: 27px 0 10px; }
.an-other[hidden] { display: none; }
.an-sign { list-style: none; margin: -17px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.an-sign li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 6px 27px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.an-sign b { font-size: 17px; font-weight: 497; }
.an-sign span { font-size: 16px; line-height: 1.5; color: var(--soft); }
/* ---------- security spec ---------- */
.an-spec .kfs-h { margin-bottom: clamp(32px, 4vw, 56px); }
/* rows keep to the gutter: the hover fill sits inside the row box, the words inset 16px within it */
.an-spec .kfs-row { padding: 28px 16px; transition: background-color .2s var(--e-out); }
@media (hover: hover), (pointer: none) { .an-spec .kfs-row:hover { background: var(--x-sunk); } }
.an-spec .kfs-row dd { min-width: 0; }
/* the features, drawn as the settings panel they would be: each one a switch that turns on when the panel is seen */
.kfs-row dd ul.an-feats { width: min(100%, 640px); gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--x-raised); }
.an-feats li { max-width: none !important; }
/* each feature is a real switch (role=switch, aria-checked): a press slides the thumb and plays the tick */
.an-feats button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: 400 16px/1.4 var(--sans); text-align: left; cursor: pointer; transition: background-color .2s var(--e-out), transform .1s var(--e-out); }
.an-feats button:active { transform: scale(.98); }
.an-feats button:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
.an-feats button[aria-checked='false'] .an-sw { background: light-dark(#d4d4d4, var(--secondary-hover)); transition-delay: 0s; }
.an-feats button[aria-checked='false'] .an-sw::after { transform: none; transition-delay: 0s; }
.an-feats button[aria-checked='false'] > span { color: var(--soft); }
.an-feats[data-touched] .an-sw, .an-feats[data-touched] .an-sw::after { transition-delay: 0s; }
.an-feats li { position: relative; }
.an-feats li + li::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line); transition: opacity .2s var(--e-out); }
@media (hover: hover), (pointer: none) { .an-feats button:hover { background: light-dark(#f5f5f5, var(--muted)); } .an-feats li:hover::before, .an-feats li:hover + li::before { opacity: 0; } }
.an-sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--ink); transition: background-color .3s var(--e-out); transition-delay: calc(.2s + var(--an-i) * 70ms); }
.an-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--x-raised); transform: translateX(16px); transition: transform .35s var(--e-in); transition-delay: calc(.2s + var(--an-i) * 70ms); }
.js .an-feats:not([data-in]) .an-sw { background: light-dark(#d4d4d4, var(--secondary-hover)); }
.js .an-feats:not([data-in]) .an-sw::after { transform: none; }
/* the audit: a report, as a document card */
.an-doc { display: flex; align-items: center; gap: 20px; padding: 16px 24px 16px 16px; border-radius: 16px; background: light-dark(#f5f5f5, var(--muted)); transition: transform .3s var(--e-move); }
@media (hover: hover), (pointer: none) { .an-spec .kfs-row:hover .an-doc { transform: translateY(-3px); } .an-spec .kfs-row:hover .an-doc-pg { transform: rotate(-3deg); } }
.an-doc-pg { flex: none; width: 64px; height: 80px; padding: 10px 10px 0; border-radius: 6px 14px 6px 6px; background: var(--x-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: transform .3s var(--e-move); }
.an-doc-pg svg { margin-bottom: 2px; }
.an-doc-pg span { display: block; height: 3px; border-radius: 2px; background: light-dark(#d4d4d4, var(--secondary-hover)); }
.an-doc-pg span:nth-child(3) { width: 70%; }
.an-doc-pg span:nth-child(5) { width: 50%; }
.an-doc p { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.4; color: var(--soft); }
.an-doc b { font-size: 17px; }
.an-commit { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.an-commit p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 62ch; }
/* ---------- community and resources (quiet room #f5f5f5: text #525252 or darker) ---------- */
.an-com { background: light-dark(#f5f5f5, var(--muted)); --faint: light-dark(#525252, var(--muted-foreground)); --quiet: light-dark(#525252, var(--muted-foreground)); }
.an-com-g { align-items: start; row-gap: 44px; }
.an-com-t { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; }
.an-com-t .kn-headline { max-width: 16ch; }
/* the repository as an object: a contribution grid that fills in week by week once seen; it lifts on hover */
.an-repo { width: 100%; margin: 10px 0 7px; padding: 20px; display: flex; flex-direction: column; gap: 17px; color: var(--ink); text-decoration: none; border-color: transparent; transition: translate .3s var(--e-move), border-color .2s var(--e-out); }
.an-repo-h { display: flex; align-items: center; gap: 10px; }
.an-repo-h b { font-size: 17px; font-weight: 497; letter-spacing: -.01em; margin-right: auto; }
.an-repo-h svg:last-child { width: 36px; height: 36px; padding: 10px; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s var(--e-move), background-color .15s var(--e-out), color .15s var(--e-out); }
.an-repo-g { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 3px; }
.an-repo-g > span { display: grid; gap: 3px; }
.an-repo-g i { aspect-ratio: 1; border-radius: 2px; background: light-dark(#ededed, var(--secondary)); transition: background-color .3s var(--e-out); transition-delay: calc(var(--an-c) * 30ms); }
.an-repo-g i[data-l='1'] { background: #a3a3a3; }
.an-repo-g i[data-l='2'] { background: #525252; }
.an-repo-g i[data-l='3'] { background: var(--ink); }
.js .an-repo-g:not([data-in]) i { background: light-dark(#ededed, var(--secondary)); }
@media (hover: hover), (pointer: none) {
.an-repo:hover { translate: 0 -4px; border-color: var(--ink); }
.an-repo:hover .an-repo-h svg:last-child { background: var(--ink); border-color: var(--ink); color: var(--x-on-ink); transform: rotate(-45deg); }
}
.an-repo:active { scale: .98; }
.an-repo:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; }
.an-res { grid-column: 7 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.an-res-p { margin: 0 0 17px; font-size: 16px; line-height: 1.55; color: var(--soft); max-width: 52ch; }
.an-res-l { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.an-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 24px; row-gap: 6px; padding: 24px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 90ms var(--e-out); }
.an-r b { font-size: 21px; font-weight: 497; letter-spacing: -.015em; transition: transform .3s var(--e-move); }
.an-r span { grid-row: 2; font-size: 16px; color: var(--soft); transition: transform .3s var(--e-move); }
.an-r svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; padding: 13px; border-radius: 50%; border: 1px solid var(--x-e10); transition: transform .3s var(--e-move), background-color .15s var(--e-out), color .15s var(--e-out), border-color .15s var(--e-out); }
@media (hover: hover), (pointer: none) {
.an-r:hover b, .an-r:hover span { transform: translateX(8px); }
.an-r:hover svg { background: var(--ink); border-color: var(--ink); color: var(--x-on-ink); transform: rotate(-45deg); }
}
.an-r:active { transform: scale(.97); }
.an-oss { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.an-oss .kn-lede { max-width: 48ch; }
.an-stats { list-style: none; margin: 0; padding: 24px 0; display: flex; flex-wrap: wrap; gap: 27px 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); width: 100%; }
.an-stats li { display: flex; flex-direction: column; gap: 8px; }
/* Hanzo prints these marks with no number in them, so they never get figure size: 26px, the headline step */
.an-stats b { font-size: 26px; line-height: 1; font-weight: 497; letter-spacing: -.02em; }
.an-stats b.none { color: light-dark(#737373, var(--text-tertiary)); }
.an-stats span { font: 606 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#737373, var(--text-tertiary)); }
.an-oss-p { margin: -10px 0 0; font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 62ch; }
/* ---------- close: centred, one action ---------- */
.an-close .knx-in { align-items: center; text-align: center; }
.an-close .knx-g { width: 100%; }
.an-close .knx-l { grid-column: 3 / span 8; align-items: center; }
.an-close .knx-tag { max-width: none; }
.an-close .knx-meta, .an-close .knx-acts, .an-close-l { justify-content: center; }
[data-off] .an-rt-h i::after, [data-off] .an-now::after, [data-off] .an-ai-ph i::after { animation-play-state: paused; }
/* phones and narrow tablets: the five reports become one snap rail (the next card peeks ~16%), and the question chips
one swipeable row, so the section is one screen instead of five stacked cards */
@media (max-width: 900px) {
.an-rep-grid { margin-inline: calc(-1 * var(--kn-g)); }
.an-rep-grid .kno-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 420px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--kn-g); padding: 4px var(--kn-g) 8px; scrollbar-width: none; }
.an-rep-grid .kno-grid::-webkit-scrollbar { display: none; }
.an-rep-grid .kno-grid > li:nth-child(n) { grid-column: auto; scroll-snap-align: start; }
.an-ask-q { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--kn-g)); padding: 2px var(--kn-g) 6px; scroll-snap-type: x proximity; scroll-padding-inline: var(--kn-g); scrollbar-width: none; }
.an-ask-q::-webkit-scrollbar { display: none; }
.an-ask-q { align-items: center; }
.an-ask-q button { flex: none; max-width: 78vw; scroll-snap-align: start; }
.an-art-rt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* opened on a phone: the rows start under the sheet's close button, so no referrer is ever covered */
.kno-art.big .an-art { padding-top: 76px; }
}
@media (max-width: 899px) {
.an-bar { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 12px 8px 8px; row-gap: 4px; }
.an-bar > span { font-size: 14px; white-space: nowrap; }
.an-bar > em { margin-left: 48px !important; }
.an-bar-k { flex-basis: 100%; margin: 0 0 4px 48px; text-align: left; font-size: 12px; }
.an-bar em, .an-shop-h em { font-size: 14px; }
.an-kpis { grid-template-columns: minmax(0, 1fr); }
.an-kpi { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 16px 17px; }
.an-kpi + .an-kpi { border-left: 0; border-top: 1px solid var(--line); }
.an-kpi b { font-size: 26px; order: 2; }
.an-kpi p { font-size: 14px; }
.an-kpi > span { order: 3; flex-basis: 100%; font-size: 14px; }
.an-main { grid-template-columns: minmax(0, 1fr); }
.an-live { padding: 17px; }
.an-live-h span:not(.an-at), .an-live-h em, .an-at { font-size: 14px; }
.an-chart { height: 170px; }
.an-axis { font-size: 14px; }
.an-axis span:nth-child(even) { visibility: hidden; }
.an-rt { border-left: 0; border-top: 1px solid var(--line); padding: 17px; }
.an-rt-win { max-height: 196px; }
.an-rt li span, .an-rt li b { font-size: 14px; }
.an-rep-ht, .an-ask { grid-column: 1 / -1; }
.an-rep-h { margin-bottom: 27px; }
.an-rep-grid .kno-card .kno-art { height: 220px; }
.an-art-rt span, .an-art-rt b, .an-art-e p, .an-a-bar em, .an-a-ends { font-size: 14px; }
.an-ch-head { display: flex; flex-direction: column; align-items: flex-start; gap: 17px; }
.an-sc { padding: 20px; gap: 16px; }
.an-fb em, .an-coh-l, .an-v-key { font-size: 14px; }
.an-fb em { white-space: nowrap; }
.an-cliff { display: none; }
.an-coh-r { grid-template-columns: 30px repeat(8, minmax(0, 1fr)); gap: 4px; }
.an-coh { gap: 4px; }
.an-coh i { border-radius: 4px; }
.an-sell-obj, .an-sell-t { grid-column: 1 / -1; }
.an-sell-t { order: -1; }
.an-shop { padding: 20px; gap: 21px; }
.an-shop-k { gap: 10px; }
.an-shop-k > div { padding: 16px; }
.an-shop-k b { font-size: 32px; }
.an-shop-k p, .an-shop-k > div > span { font-size: 14px; }
.an-shop li { grid-template-columns: minmax(0, 1fr) 36px; row-gap: 8px; }
.an-shop li i { grid-column: 1 / -1; grid-row: 2; }
.an-ai-t, .an-ai-o { grid-column: 1 / -1; }
.an-ai-p { padding: 17px; }
.an-anom { padding: 16px; }
.an-flag { font-size: 14px; }
.an-add-t, .an-add-o { grid-column: 1 / -1; }
.an-nocard, .an-code-note, .an-add-l li > span, .an .x-copy { font-size: 14px; }
.an .x-codeblock pre, .an-gut { font-size: 14px; }
.an .x-codeblock-h { font-size: 14px; }
.an-gut { padding-left: 14px; }
.an-sign li { grid-template-columns: minmax(0, 1fr); }
.an-feats { grid-template-columns: minmax(0, 1fr); }
.an-com-t, .an-res { grid-column: 1 / -1; position: static; }
.an-r { padding: 20px 0; }
.an-close .knx-l { grid-column: 1 / -1; }
.an-close-l > * { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
.an-line, .an-area, .an-now, .an-kpi .an-m > span { animation: none !important; }
.an-now::after, .an-rt-h i::after, .an-ai-ph i::after, .kno-art.big .an-art-rt i::after { animation: none; }
.an-rt li.new, .kno-art.big .an-art-rt p, .kno-art.big .an-j-hot, .kno-art.big .an-art-f i, .kno-art.big .an-art-e p, .kno-art.big .an-a-bar span { animation: none; }
.an-shop li i b, .an-shop .an-m > span, .an-ins li, .an-spike, .an-coh i::after, .an-anom-plot path, .an-sw, .an-sw::after, .an-repo-g i { transition: none !important; }
.kno-card:hover .an-art-rt p, .kno-card:hover .an-art-e p, .kno-card:hover .an-art-rt i::after, .kno-card:hover .an-j-hot, .kno-card:hover .an-art-j circle.hot, .kno-card:hover .an-art-f i, .kno-card:hover .an-a-bar span { animation: none; }
}
/* leaf spans inside bold labels (so each label is one text run): they take everything from their label */
.an span.lf { all: unset; display: inline; }
/* the install line draws its own "$ " (not text: never copied, never read) */
.an .an-npm .x-codeblock-l::before { content: '$ '; color: #6e6e73; user-select: none; -webkit-user-select: none; }
/* dark mode (docs/DARK-MODE.md): the deck's greys (components/v2/Keynote.css .kn) are light-only, so on this page they
resolve to Hanzo's dark tokens, and the page sits on Hanzo's background like live; the graphite room keeps its own */
html:not(.light) .an {
--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);
--ac: var(--text-tertiary); --ac-text: var(--muted-foreground); --ac-ink: var(--primary-foreground);
background: var(--bg);
}