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_01DqUybEmuoZFyA7BwdtdyiE
41 lines
2.6 KiB
CSS
41 lines
2.6 KiB
CSS
/* KeynoteStage (Cloud 1 chat): see KeynoteStage.jsx.
|
||
The h1 baseline sits near 38% of the screen; h1, lede and the ask fit the first screen at 1470×801 and 375×812, with
|
||
the product object starting under them as the one big thing. */
|
||
.kns { position: relative; padding: clamp(32px, calc(38svh - 128px), 200px) 0 clamp(72px, 11vw, 188px); }
|
||
.kns-g { row-gap: 44px; }
|
||
.kns-t { grid-column: 1 / span 7; align-self: end; display: flex; flex-direction: column; gap: 17px; }
|
||
.kns-r { grid-column: 8 / span 5; align-self: end; display: flex; flex-direction: column; gap: 17px; }
|
||
.kns-obj-wrap { grid-column: 1 / -1; position: relative; }
|
||
.kns-obj { transform-origin: 50% 0; }
|
||
.kns-acts .x-arrow { min-height: 44px; }
|
||
.kns-meta { display: flex; align-items: center; gap: 12px; }
|
||
.kns-meta-t { display: flex; flex-direction: column; gap: 4px; font: 500 13px/1.45 var(--mono); color: var(--quiet); letter-spacing: .02em; }
|
||
.kns-meta-t a { color: var(--body); }
|
||
|
||
/* the first screen arrives by CSS at first paint (html.js is set before paint); JS off, it simply stands */
|
||
.js .kns-in { animation: kns-in .5s var(--e-in) both; animation-delay: var(--d, 0s); }
|
||
.js .kns-obj-in { animation: kns-rise .9s var(--e-in) .18s both; }
|
||
@keyframes kns-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
|
||
@keyframes kns-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
|
||
/* paused: every CSS loop inside the object holds its frame (JS loops read useStagePause) */
|
||
.kns[data-paused] .kns-obj *, .kns[data-paused] .kns-obj *::before, .kns[data-paused] .kns-obj *::after { animation-play-state: paused !important; }
|
||
|
||
.kns.side .kns-g { row-gap: 27px; align-items: center; }
|
||
.kns.side .kns-t { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
|
||
.kns.side .kns-r { grid-column: 1 / span 5; grid-row: 2; align-self: start; }
|
||
.kns.side .kns-obj-wrap { grid-column: 6 / -1; grid-row: 1 / span 2; margin-right: calc((100vw - min(100vw - 2 * var(--kn-g), 1152px)) / -2); }
|
||
.kns.side .kns-obj { transform-origin: 0 50%; }
|
||
.kns.side .kn-lede { max-width: 30ch; }
|
||
|
||
@media (max-width: 899px) {
|
||
.kns { padding: 24px 0 72px; }
|
||
.kns-g { row-gap: 20px; }
|
||
.kns-t, .kns-r, .kns.side .kns-t, .kns.side .kns-r { grid-column: 1 / -1; grid-row: auto; padding: 0; }
|
||
.kns-r { gap: 17px; }
|
||
.kns-obj-wrap, .kns.side .kns-obj-wrap { grid-column: 1 / -1; grid-row: auto; margin: 10px 0 0; }
|
||
.kns.side .kns-obj { transform-origin: 50% 0; }
|
||
.kns-acts > * { flex: 1 1 auto; }
|
||
.kns-acts .x-btn { width: 100%; }
|
||
.kns-meta-t { font-size: 14px; }
|
||
}
|