mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
- order: hero and map, the product directory, the planes, capabilities, One API, the loop, open, the figures, the Band - the stack rests slightly open; on arrival each plate slides out and names itself once (under 5 s) - the map no longer closes into a blank screen; the directory follows it directly - the kernel's four targets live in layer 11's sheet; the five tiles are five rows and one stage that walks by itself, with a pause - the ring gets a pause; the facts are one big figure with the measurements beside it; the fine print folds - labels under headings become captions under their objects; commands read command first and wrap on phones - the sheet starts below the site header, so its close button is always clickable Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DqUybC36ncJibdZBGwqLx8
52 lines
3.8 KiB
CSS
52 lines
3.8 KiB
CSS
/* PinChapters (v2): sticky chapters. Desktop pins; phones and reduced motion read as a plain story. */
|
|
.pc {
|
|
/* Hanzo's deck (MASTER 3.1): the only colour, radius and timing values this file uses */
|
|
--k-white: #ffffff; --k-quiet: #f5f5f5; --k-card: #f2f2f2; --k-muted: #ededed; --k-silver: #e4e4e7; --k-track: #d4d4d4;
|
|
--k-ink: #0a0a0a; --k-body: #525252; --k-dim: #737373; --k-mid: #404040; --k-dark: #262626; --k-graphite: #171717; --k-black: #000000;
|
|
--k-on: #fafafa; --k-on-2: rgba(255, 255, 255, .78); --k-on-3: rgba(255, 255, 255, .55); --k-on-4: #a3a3a3;
|
|
--k-line: rgba(0, 0, 0, .1); --k-line-d: rgba(255, 255, 255, .1);
|
|
--k-sheen: linear-gradient(135deg, #f6f6f6 0%, #e9e9e9 45%, #f6f6f6 70%, #e9e9e9 100%);
|
|
--k-float: 0 24px 60px -16px rgba(0, 0, 0, .18);
|
|
--k-press: 90ms; --k-fast: 150ms; --k-base: 300ms; --k-slow: 400ms; --k-slower: 500ms;
|
|
--k-out: cubic-bezier(0, 0, .2, 1); --k-io: cubic-bezier(.4, 0, .2, 1); --k-em: cubic-bezier(.16, 1, .3, 1);
|
|
--pc-per: 90svh; --pc-acc: var(--k-ink); position: relative; height: calc(100svh + var(--pc-n) * var(--pc-per)); }
|
|
.pc-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: clip; }
|
|
.pc-grid {
|
|
display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto; column-gap: 24px; align-items: center;
|
|
width: min(100% - 2 * clamp(16px, 4vw, 32px), 1152px); margin-inline: auto; padding-top: 64px; height: min(760px, calc(100svh - 96px));
|
|
}
|
|
.pc-idx { grid-column: 1 / 6; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 2px; align-self: end; } /* the index sits under the words, never above a heading */
|
|
.pc-idx button {
|
|
position: relative; display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 0 14px 0 0; border: 0; background: none;
|
|
font: 500 15px/1 var(--sans); color: var(--k-body); cursor: pointer; transition: color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms;
|
|
}
|
|
.pc-idx button.on { color: var(--k-ink); }
|
|
.pc-idx button:active { transform: scale(.97); }
|
|
@media (hover: hover) { .pc-idx button:hover { color: var(--k-ink); } }
|
|
.pc-n { font: 500 13px/1 var(--mono); letter-spacing: .08em; }
|
|
.pc-bar { position: absolute; left: 0; right: 14px; bottom: 6px; height: 2px; border-radius: 6px; background: rgba(0, 0, 0, .1); overflow: hidden; }
|
|
.pc-bar b { position: absolute; inset: 0; background: var(--pc-acc); transform-origin: 0 50%; }
|
|
.pc-copy {
|
|
grid-column: 1 / 6; grid-row: 1; align-self: center; opacity: 0; transform: translateY(28px); pointer-events: none;
|
|
transition: opacity .35s ease, transform .6s var(--k-em);
|
|
}
|
|
.pc-copy[data-past='true'] { transform: translateY(-28px); }
|
|
.pc-copy[data-on='true'] { opacity: 1; transform: none; pointer-events: auto; transition: opacity .6s .12s ease, transform .9s .08s var(--k-em); }
|
|
.pc-vis {
|
|
grid-column: 7 / 13; grid-row: 1 / 3; align-self: center; min-width: 0;
|
|
clip-path: inset(100% 0 0 0 round 28px); transition: clip-path .9s var(--k-em);
|
|
}
|
|
.pc-vis[data-past='true'] { clip-path: inset(0 0 100% 0 round 24px); }
|
|
.pc-vis[data-on='true'] { clip-path: inset(0 0 0 0 round 24px); }
|
|
|
|
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
|
|
.pc { height: auto; }
|
|
.pc-stage { position: static; height: auto; display: block; overflow: visible; }
|
|
.pc-grid { display: flex; flex-direction: column; height: auto; padding-top: 0; gap: 0; width: min(100% - 40px, 1440px); }
|
|
.pc-idx { display: none; }
|
|
.pc-copy, .pc-copy[data-past='true'] { order: calc(var(--i) * 2); opacity: 1; transform: none; pointer-events: auto; transition: none; padding-top: 96px; }
|
|
.pc-copy:first-of-type { padding-top: 0; }
|
|
.pc-vis, .pc-vis[data-past='true'] { order: calc(var(--i) * 2 + 1); clip-path: none; transition: none; margin-top: 40px; }
|
|
}
|
|
@media (max-width: 899px) { .pc-n { font-size: 14px; } }
|