Files

168 lines
16 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.
/* v2 family grammar (Families A: /benchmarks/* /oss/* /integrations/* /solutions/* /blockchain/* /legal/* /careers/*
/products/*). Every class is prefixed v2f- so it cannot collide with another chat's pages. Follows docs/build-notes/MASTER.md:
- Colour: 0 hues (Hanzo's live palette): paper #fff, quiet #f5f5f5, ink #0a0a0a, muted #525252, border black 10%,
graphite #171717 and black rooms. Colour arrives only through Hanzo's own media.
- Scale has rhythm: resting sizes follow live hanzo.ai (h1 52, section headings 26, figures 64; lede 20, body 16,
h3 17, captions 12–13). One big thing per screen; a thing grows past its rest only while it is the moment (FamGrow).
- Material: raise a surface or outline it, never both. Objects are outlined (1px black 10%), tiles are flat quiet fills;
only what floats (sheets) takes a shadow. Radii: tiles 24, art 20, chips 6, pills full.
- Space: section padding clamp(72px, 11vw, 188px), gutter clamp(16px, 4vw, 32px), container 1152, prose 768.
- Motion: press 90 ms, fast 150, base 300, slow 400, slower 500 (scene moves to 800); ease-emphasis for arrivals,
ease-in-out for things that move and stay; no springs, no overshoot. */
.v2f { --acc: #0a0a0a; --acc-ink: #fff; --acc-soft: #f5f5f5; --ink: #0a0a0a; --soft: #525252; --muted: #525252; --faint: #737373; --card: #f5f5f5;
--wrap2: 1152px; --gut: clamp(16px, 4vw, 32px); --silver: #d4d4d4;
--r-hero: 24px; --r-card: 24px; --r-art: 20px; --hair: rgba(0, 0, 0, .1);
--press: 90ms; --ui: 150ms; --base: 300ms; --reveal: 400ms; --slower: 500ms; --scene: 800ms;
--out: cubic-bezier(.16, 1, .3, 1); --inout: cubic-bezier(.4, 0, .2, 1); --ease-o: cubic-bezier(0, 0, .2, 1);
--float: 0 24px 60px -16px rgba(0, 0, 0, .18); --shadow: none;
position: relative; background: var(--x-raised); color: var(--ink); }
.v2f-wrap { width: min(100% - 2 * var(--gut), var(--wrap2)); margin-inline: auto; }
.v2f-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.v2f-sec { position: relative; padding: clamp(72px, 11vw, 188px) 0; }
.v2f-sec.tight { padding: clamp(44px, 6vw, 72px) 0; }
/* type: resting sizes of live hanzo.ai; at most three sizes among headline, lede and body in one view */
.v2f-display { margin: 0; font-size: clamp(40px, 3.6vw, 52px); font-weight: 497; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; max-width: 18ch; }
.v2f-display.mid, .v2f-display.small { font-size: clamp(36px, 3.1vw, 44px); }
/* an h1 that settles arrives big (CSS, first paint) and shrinks to its 52px rest as you scroll (FamLines) */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
.v2f-display[data-settle] { font-size: clamp(52px, 4.9vw, 72px); }
.v2f-display.mid[data-settle], .v2f-display.small[data-settle] { font-size: clamp(44px, 4.3vw, 64px); }
}
.v2f-head { margin: 0; font-size: 26px; font-weight: 497; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; max-width: 24ch; }
.v2f-title { margin: 0; font-size: 21px; font-weight: 497; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.v2f-lede { margin: 0; font-size: 20px; line-height: 1.45; letter-spacing: -.01em; color: var(--soft); max-width: 44ch; text-wrap: pretty; }
.v2f-body { font-size: 16px; line-height: 1.65; color: var(--soft); max-width: 68ch; text-wrap: pretty; }
.v2f-body p { margin: 0 0 1em; } .v2f-body p:last-child { margin-bottom: 0; }
.v2f-body strong, .v2f-body b { color: var(--ink); font-weight: 606; }
.v2f-body a, .v2f a.v2f-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(0, 0, 0, .35); text-underline-offset: 3px; transition: text-decoration-color var(--ui) var(--ease-o); }
@media (hover: hover) { .v2f-body a:hover, .v2f a.v2f-link:hover { text-decoration-color: var(--ink); } }
/* a small mono caption: for meta rows, table heads and figure labels, never directly above an h1 or h2 */
.v2f-kick { margin: 0; font: 606 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.v2f-kick.acc { color: var(--ink); }
.v2f-num { font-family: var(--sans); font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; font-weight: 220; letter-spacing: -.04em; line-height: .95; }
/* a figure at rest: 64px (FamGrow lifts it past that while it is the moment) */
.v2f-fig { font-size: 64px; }
/* material: outlined objects, flat quiet tiles, hairline rows; no box plus shadow */
.v2f-obj { position: relative; border-radius: var(--r-hero); background: var(--x-raised); border: 1px solid var(--hair); box-shadow: none; }
.v2f-card { position: relative; border-radius: var(--r-card); background: var(--card); }
.v2f-hair { border: 0; border-top: 1px solid var(--hair); margin: 0; }
/* dark rooms (FamRoom): graphite or black, white text ranks #fafafa / white 78% / white 55% */
.v2f-room { position: relative; color: #fafafa; }
.v2f-room.graphite { background: #171717; }
.v2f-room.black { background: #000; }
/* kinetic type: words rise out of their own masks, once (FamLines) */
.v2f-lines .v2f-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin: 0 -.02em -.14em; }
.v2f-lines .v2f-w > span { display: inline-block; }
.v2f-lines[data-play='load'] .v2f-w > span,
.v2f-lines[data-in] .v2f-w > span { animation: v2f-rise 700ms cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--d, 0ms) + var(--i) * 60ms); }
.v2f-lines[data-wait] .v2f-w > span { transform: translateY(105%); }
@keyframes v2f-rise { from { transform: translateY(105%); } to { transform: none; } }
/* buttons: one solid per screen (ink), the rest outlined or text links; press answers with scale .98, hover with a
border and a nudged arrow, never a fade */
.v2f-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .14); background: var(--x-raised); color: var(--ink); font: 606 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation; transition: transform 150ms var(--ease-o), border-color var(--ui) var(--ease-o), background-color var(--ui) var(--ease-o); }
@media (hover: hover) { .v2f-btn:hover { border-color: rgba(0, 0, 0, .4); } .v2f-btn.solid:hover, .v2f-btn.acc:hover { background: #262626; border-color: #262626; } }
.v2f-btn:active { transform: scale(.97); transition-duration: var(--press); }
.v2f-btn svg { transition: transform var(--ui) var(--out); }
@media (hover: hover) { .v2f-btn:hover svg { transform: translateX(3px); } }
.v2f-btn.solid { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); }
.v2f-btn.acc { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
/* spec drawer (FamDrawer) */
.v2f-spec-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; max-width: 100%; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .14); background: var(--x-raised); color: var(--ink); font: 400 15px/1.4 var(--sans); text-align: left; border-radius: 24px; cursor: pointer; touch-action: manipulation; transition: border-color var(--ui) var(--out), transform var(--press) var(--out); }
.v2f-spec-btn > span { min-width: 0; color: var(--soft); }
@media (hover: hover) { .v2f-spec-btn:hover { border-color: rgba(0, 0, 0, .4); } .v2f-spec-btn:hover > span { color: var(--ink); } }
.v2f-spec-btn:active { transform: scale(.97); }
.v2f-spec-btn i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--x-on-ink); font: 400 20px/1 var(--sans); font-style: normal; transition: transform var(--reveal) var(--out); }
@media (hover: hover) { .v2f-spec-btn:hover i { transform: rotate(90deg); } }
.v2f-sheet { position: fixed; inset: 0; z-index: 960; visibility: hidden; pointer-events: none; transition: visibility 0s .5s; }
.v2f-sheet[data-open] { visibility: visible; pointer-events: auto; transition: none; }
.v2f-sheet-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .4s var(--out); cursor: pointer; }
.v2f-sheet[data-open] .v2f-sheet-scrim { opacity: 1; }
.v2f-sheet-p { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(760px, calc(100vw - 24px)); display: flex; flex-direction: column; border-radius: var(--r-hero); background: var(--x-raised); box-shadow: var(--float); transform: translateX(calc(100% + 24px)); transition: transform var(--slower) var(--inout); }
.v2f-sheet[data-open] .v2f-sheet-p { transform: none; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
.v2f-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 16px 32px; border-bottom: 1px solid var(--hair); }
.v2f-sheet-h h2 { margin: 0; font-size: 21px; font-weight: 497; letter-spacing: -.015em; }
.v2f-sheet-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); background: var(--x-raised); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.v2f-sheet-b { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 28px 32px 40px; }
/* sticky chapters (FamChapters): one DOM; on desktop every text shares one cell and every picture another, so one
comes in as the last goes out; on phones the same chapters simply stack */
.v2f-ch { position: relative; height: calc(var(--n) * 100svh); }
.v2f-ch-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 32px; overflow: hidden; }
.v2f-ch-g { align-items: center; }
.v2f-ch-i { display: contents; }
.v2f-ch-t { grid-column: 1 / span 5; grid-row: 1; align-self: center; transition: opacity var(--base) var(--ease-o), transform var(--slower) var(--out); }
/* hidden states only once scripts run (html.js, set before first paint): JS off reads every chapter */
html.js .v2f-ch-t:not([data-on]) { opacity: 0; transform: translateY(var(--dy, 48px)); pointer-events: none; }
.v2f-ch-t[data-on] { transition-delay: .12s; }
.v2f-ch-v { grid-column: 7 / span 6; grid-row: 1; position: relative; min-width: 0; height: min(70svh, 660px); clip-path: inset(0 0 0 0 round var(--r-hero)); transition: clip-path .9s cubic-bezier(.76, 0, .24, 1); }
html.js .v2f-ch-v:not([data-on]) { clip-path: inset(var(--cy, 100% 0 0 0) round var(--r-hero)); pointer-events: none; }
/* JS off: the chapters read as a plain story, one after another (the phone layout) */
html:not(.js) .v2f-ch { height: auto; }
html:not(.js) .v2f-ch-pin { position: static; height: auto; display: block; overflow: visible; padding: 96px 0; }
html:not(.js) .v2f-ch-g { display: flex; flex-direction: column; align-items: stretch; gap: 96px; }
html:not(.js) .v2f-ch-i { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gut); align-items: center; }
html:not(.js) .v2f-ch-t, html:not(.js) .v2f-ch-v { grid-column: auto; grid-row: auto; min-width: 0; }
html:not(.js) .v2f-ch-v { height: auto; min-height: 320px; }
html:not(.js) .v2f-ch-nav { display: none; }
.v2f-ch-v[data-on] { z-index: 1; }
.v2f-ch-nav { width: min(100% - 2 * var(--gut), var(--wrap2)); margin-inline: auto; display: flex; gap: 6px; }
.v2f-ch-nav button { position: relative; height: 44px; min-width: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.v2f-ch-nav button i { display: block; width: 28px; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, .12); overflow: hidden; }
.v2f-ch-nav button i b { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--out); }
.v2f-ch-nav button[aria-current='step'] i b, .v2f-ch-nav button.past i b { transform: none; }
/* closing sibling cards that open into their page (FamNext) */
.v2f-next { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 24px; scrollbar-width: none; }
.v2f-next::-webkit-scrollbar { display: none; }
.v2f-next.drag { cursor: grab; scroll-snap-type: none; }
.v2f-next.drag.held { cursor: grabbing; }
.v2f-next.drag.held .v2f-next-c { pointer-events: none; }
.v2f-next-c { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 340px; padding: 32px; border-radius: var(--r-hero); background: var(--card); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; -webkit-user-drag: none; transition: transform var(--reveal) var(--out), background-color var(--ui) var(--out); }
@media (hover: hover) { .v2f-next-c:hover { background: #ededed; } }
.v2f-next-c:active { transform: scale(.97); }
.v2f-next-c .v2f-next-s { position: absolute; inset: 0; z-index: -1; color: rgba(0, 0, 0, .3); }
.v2f-next-p { display: block; margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--soft); max-width: 34ch; opacity: 0; transform: translateY(8px); transition: opacity var(--ui) var(--out), transform var(--reveal) var(--out); }
@media (hover: hover) { .v2f-next-c:hover .v2f-next-p, .v2f-next-c:focus-visible .v2f-next-p { opacity: 1; transform: none; } }
@media (hover: none) { .v2f-next-p { opacity: 1; transform: none; } }
.v2f-next-c .v2f-next-s canvas { width: 100%; height: 100%; display: block; }
.v2f-next-t { margin: 0; font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.15; max-width: 16ch; text-wrap: balance; }
.v2f-next-m { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--soft); }
.v2f-next-go { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); background: none; color: var(--ink); display: grid; place-items: center; transition: transform var(--reveal) var(--out); }
@media (hover: hover) { .v2f-next-c:hover .v2f-next-go { transform: rotate(-45deg); } }
@media (max-width: 900px) {
.v2f-grid { column-gap: 16px; }
.v2f-display, .v2f-display.mid, .v2f-display.small { font-size: 40px; }
.v2f-head { font-size: 24px; }
.v2f-title { font-size: 20px; }
.v2f-lede { font-size: 18px; }
.v2f-body { font-size: 16px; }
.v2f-fig { font-size: 52px; }
.v2f-sheet-p { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88svh; border-radius: 24px 24px 0 0; transform: translateY(100%); }
.v2f-sheet-h { padding: 14px 16px 12px 20px; }
.v2f-sheet-b { padding: 20px 20px calc(32px + env(safe-area-inset-bottom)); }
/* chapters become a plain vertical read on phones: every chapter, then its picture */
.v2f-ch { height: auto; }
.v2f-ch-pin { position: static; height: auto; display: block; overflow: visible; }
.v2f-ch-g { display: flex; flex-direction: column; align-items: stretch; gap: 96px; }
.v2f-ch-i { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.v2f-ch-t, .v2f-ch-v { min-width: 0; max-width: 100%; }
.v2f-ch-t, .v2f-ch-v { opacity: 1 !important; transform: none !important; clip-path: none !important; pointer-events: auto !important; }
.v2f-ch-v { height: auto; }
.v2f-ch-nav { display: none; }
html:not(.js) .v2f-ch-i { display: flex; flex-direction: column; gap: 32px; }
html:not(.js) .v2f-ch-pin { padding: 0; }
.v2f-next { grid-auto-columns: 82%; gap: 12px; }
.v2f-next-c { min-height: 260px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
.v2f-lines .v2f-w > span { animation: none !important; transform: none !important; }
.v2f-ch-t, .v2f-ch-v, .v2f-sheet-p, .v2f-sheet-scrim, .v2f-next-c { transition: none !important; }
}