mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 01:07:08 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
137 lines
11 KiB
CSS
137 lines
11 KiB
CSS
/* Mori (mr-): the cube on the stage, then a full-bleed viewport (the page's one dark room) with its words laid over it */
|
|
.mr-v2 { width: min(44%, 560px); }
|
|
.mr-edges line { stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
|
|
.mr-room { background: #000; color: #f5f5f5; }
|
|
.mr-sh { max-width: 520px; pointer-events: auto; }
|
|
.mr-sh .lv-kick { color: #f5f5f5; }
|
|
.mr-sh .lv-p { margin-top: 20px; color: #a3a3a3; }
|
|
.mr-stage { position: relative; }
|
|
.mr-view { position: relative; height: min(92svh, 900px); min-height: 560px; overflow: hidden; background: radial-gradient(ellipse at 50% 50%, #171717, #000 62%); }
|
|
.mr-bar { position: absolute; inset: 0 0 auto 0; z-index: 2; background: rgba(0, 0, 0, .5); }
|
|
.mr-cv { position: absolute; inset: 44px 0 0 0; width: 100%; height: calc(100% - 44px); display: block; cursor: grab; touch-action: pan-y; }
|
|
.mr-cv:active { cursor: grabbing; }
|
|
.mr-hud { position: absolute; top: 66px; z-index: 2; display: grid; gap: 6px; pointer-events: none; }
|
|
.mr-hud p { margin: 0; }
|
|
.mr-tl { left: 24px; }
|
|
.mr-tr { right: 24px; text-align: right; max-width: 46%; }
|
|
.mr-spin { display: flex; align-items: center; gap: 8px; color: #f5f5f5; }
|
|
.mr-spin i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #f5f5f5; border-top-color: transparent; }
|
|
.mr-modes { position: absolute; right: 24px; bottom: 28px; z-index: 2; }
|
|
.mr-modes .mb-chip { background: rgba(0, 0, 0, .55); }
|
|
.mr-modes .mb-chip[aria-checked='true'] { background: #f5f5f5; }
|
|
.mr-headwrap { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vh, 64px); z-index: 2; pointer-events: none; }
|
|
.mr-below { padding: 28px 0 clamp(72px, 9vw, 120px); }
|
|
.mr-specs { border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
|
|
.mr-specs .mb-specs { border-top: 0; }
|
|
.mr-below .mb-cap { color: #737373; }
|
|
@media (max-width: 900px) {
|
|
.mr-v2 { width: auto; }
|
|
.mr-view { height: 74svh; min-height: 480px; }
|
|
.mr-hud { top: 58px; }
|
|
.mr-tl { left: 14px; right: 14px; }
|
|
.mr-tr { top: auto; bottom: 84px; left: 14px; right: 14px; text-align: left; max-width: none; }
|
|
.mr-modes { left: 14px; right: 14px; bottom: 18px; }
|
|
.mr-headwrap { position: static; padding-top: 36px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) { .mr-cv { cursor: default; } .mr-shrink { transform: none !important; border-radius: 0 !important; } .mr-card-art { transition: none; } }
|
|
|
|
/* Mori's own ask is the one solid fill while it is on screen, at every width (the header steps back to an outline
|
|
then: Ask.jsx on desktop, usePhoneAsk in Mori.jsx on phones): white on the film, ink beside the settled cube; hover
|
|
deepens the fill, press sinks 1px */
|
|
.lv-name-ask [data-cta='mori.first'].x-btn { background: #fafafa; border-color: #fafafa; color: #0a0a0a; }
|
|
[data-cta='mori.hero'].x-btn { background: #0a0a0a; border-color: #0a0a0a; color: #fafafa; }
|
|
@media (hover: hover) {
|
|
.lv-name-ask [data-cta='mori.first'].x-btn:hover { background: #e4e4e7; border-color: #e4e4e7; }
|
|
[data-cta='mori.hero'].x-btn:hover { background: #262626; border-color: #262626; }
|
|
[data-cta='mori.hero-design']:hover svg { transform: translateX(4px); }
|
|
}
|
|
[data-cta='mori.hero-design'] svg { transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
[data-cta='mori.first'].x-btn:active, [data-cta='mori.hero'].x-btn:active { transform: translateY(1px) scale(.98); }
|
|
|
|
/* the Band's two closing links read as one pair: same size, no underline, each with an arrow that moves on hover */
|
|
main:has([data-hero='mori']) .cr-band-note a { font-size: 15px; line-height: 1.4; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
|
|
main:has([data-hero='mori']) .cr-band-note a:not(.x-arrow)::after { content: '→'; display: inline-block; transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
main:has([data-hero='mori']) .cr-band-note a svg { transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) {
|
|
main:has([data-hero='mori']) .cr-band-note a:hover svg, main:has([data-hero='mori']) .cr-band-note a:not(.x-arrow):hover::after { transform: translateX(4px); }
|
|
}
|
|
main:has([data-hero='mori']) .cr-band-note a:active { transform: translateY(1px); }
|
|
|
|
/* through the settle (desktop), the headline's lede, ask and crumb come in early (Mori.jsx sets data-mid), so no
|
|
screen between the name leaving and the headline cutting in is film alone */
|
|
.lv-stage[data-hero='mori'] .lv-name, .lv-stage[data-hero='mori'] .lv-scrim { transition: opacity .3s cubic-bezier(0, 0, .2, 1); }
|
|
.lv-stage[data-hero='mori'][data-mid='name'] :is(.lv-name, .lv-scrim) { opacity: 1 !important; }
|
|
.lv-stage[data-hero='mori'][data-mid='name'] .lv-name { transform: none !important; }
|
|
.lv-stage[data-hero='mori'][data-mid='name'] .lv-name-ask { visibility: visible; }
|
|
.lv-stage[data-hero='mori'][data-mid='head'] .lv-head > * { opacity: 1; transform: none; }
|
|
.lv-stage[data-hero='mori'][data-mid='head'] .lv-head { pointer-events: auto; }
|
|
|
|
/* motion map (MoriMotion.jsx). 1 shrink-to-card: the room is a card on the way in and out */
|
|
.mr-shrink { overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
|
|
.mr-px-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
|
|
|
|
/* 2 side-carousel: the capabilities on a snapping track, a card and a peek */
|
|
.mr-caps { overflow: hidden; }
|
|
.mr-caps-sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 17px; margin: 0 0 27px; }
|
|
.mr-caps-sh .lv-side { margin: 6px 0 0; }
|
|
.mr-caps-nav { display: flex; align-items: center; gap: 10.5px; }
|
|
.mr-caps-n { font: 606 13px/1 var(--mono); letter-spacing: .14em; color: #737373; min-width: 7ch; text-align: center; white-space: nowrap; }
|
|
.mr-caps-b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .14); background: #fff; color: #0a0a0a; cursor: pointer; transition: background-color .15s cubic-bezier(0, 0, .2, 1), transform .09s; }
|
|
.mr-caps-b:disabled { color: #a3a3a3; cursor: default; }
|
|
.mr-caps-b:not(:disabled):active { transform: scale(.97); }
|
|
@media (hover: hover) { .mr-caps-b:not(:disabled):hover { background: #0a0a0a; color: #fafafa; border-color: #0a0a0a; } }
|
|
.mr-track { list-style: none; margin: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(16px, calc((100% - var(--wrap, 1152px)) / 2)) 8px; scroll-padding-inline: max(16px, calc((100% - var(--wrap, 1152px)) / 2)); cursor: grab; outline-offset: -2px; }
|
|
.mr-track::-webkit-scrollbar { display: none; }
|
|
.mr-track[data-drag] { cursor: grabbing; scroll-snap-type: none; user-select: none; }
|
|
.mr-card { flex: 0 0 min(560px, 44%); scroll-snap-align: start; display: grid; gap: 10.5px; align-content: start; }
|
|
.mr-card-art { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #000; }
|
|
.mr-card-art .mr-art { position: absolute; inset: 0; }
|
|
.mr-card h3 { margin: 17px 0 0; font-size: 21px; font-weight: 497; letter-spacing: -.015em; line-height: 1.25; color: #0a0a0a; text-wrap: balance; }
|
|
.mr-card p { margin: 0; max-width: 58ch; font-size: 16px; line-height: 1.6; color: #525252; text-wrap: pretty; }
|
|
.mr-card:not([data-on]) .mr-card-art { transform: scale(.97); }
|
|
.mr-card-art { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
|
|
@media (max-width: 899px) {
|
|
.mr-card { flex-basis: 84%; }
|
|
.mr-card p { font-size: 15px; }
|
|
}
|
|
|
|
/* the drawn objects (MoriArt.jsx): each canvas fills its chapter's black pane or the fits frame */
|
|
.mr-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
|
|
.mr-fits-art { background: #000; }
|
|
/* the tail closes up: the fits, the studio map and the viewport room follow each other without a dead white screen */
|
|
main:has([data-hero='mori']) .cr-fits { padding-bottom: clamp(44px, 6vw, 72px); }
|
|
main:has([data-hero='mori']) .cr-map { padding-top: clamp(44px, 6vw, 72px); }
|
|
/* type floor on this page: the mono labels rest at 13px, not 12 (the model-card pills keep SPEC.md's 11px) */
|
|
main:has([data-hero='mori']) :is(.lv-crumb, .lv-side, .cr-fit-n, .cr-fit-k, .lv-ch-rail button) { font-size: 13px; }
|
|
|
|
/* Hanzo's model cards under 1100px: the flagship cell is 340/360px tall but the grid's rows are 220px, so it ran under
|
|
the next row (shared ModelCards.css, requested in docs/build-notes/requests/mori.md); here its row is given its own height */
|
|
@media (max-width: 1100px) { main:has([data-hero=mori]) .mc-grid { grid-template-rows: 340px; } }
|
|
@media (max-width: 640px) { main:has([data-hero=mori]) .mc-grid { grid-template-rows: 360px; } }
|
|
|
|
/* dark (docs/DARK-MODE.md): live hanzo.ai/mori in dark, by role, in Hanzo's own tokens. The film, the viewport room and
|
|
the black art panes are black in both modes and stay. The white rooms take Hanzo's page background; headings its
|
|
foreground, body its muted foreground, mono labels its tertiary text, hairlines its border; the ink ask is Hanzo's
|
|
primary (light fill, dark type). Launch.css, Creative.css and ModelCards.css are shared and state light greys as fixed
|
|
values, so this page restates them under its own root. */
|
|
html:not(.light) main:has([data-hero='mori']) {
|
|
--ac: var(--foreground); --ac-ink: var(--primary); --ac-soft: var(--x-fill); --ac-line: var(--border-control);
|
|
& .mc { background: var(--bg); }
|
|
& .lv-stage[data-hero='mori'] { background: radial-gradient(60% 70% at 50% 0%, rgb(229 229 229 / .09), transparent 70%) var(--bg); }
|
|
& :is(.lv-lines, .lv-h, .lv-ch-h, .cr-caps-h, .cr-fits-list h3, .mr-card h3, .lv-stats .x-stat-v, .lv-stats .x-stat-l) { color: var(--foreground); }
|
|
& :is(.lv-lines .lv-ln + .lv-ln, .lv-lede, .lv-p, .lv-ch-b, .lv-stats .x-stat-n, .cr-fit-x, .mr-card p, .mc-sub) { color: var(--muted-foreground); }
|
|
& :is(.lv-crumb, .lv-side, .cr-fit-n, .cr-fit-k, .lv-ch-rail button, .mr-caps-n) { color: var(--faint); }
|
|
& :is(.lv-stats, .cr-fits-list, .cr-fits-list li) { border-color: var(--border); }
|
|
& .lv-stats > .x-stat + .x-stat { border-color: var(--border); }
|
|
& .lv-crumb span + span::before { color: var(--faint); }
|
|
& .lv-ch-rail::before { background: var(--border); }
|
|
& .cr-tab[aria-selected='true'] { color: var(--primary-foreground); }
|
|
& .mr-caps-b { background: var(--x-raised); border-color: var(--border-control); color: var(--foreground); }
|
|
& .mr-caps-b:disabled { color: var(--neutral-600); }
|
|
& [data-cta='mori.hero'].x-btn { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
|
|
}
|
|
@media (hover: hover) {
|
|
html:not(.light) main:has([data-hero='mori']) .mr-caps-b:not(:disabled):hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
|
|
html:not(.light) main:has([data-hero='mori']) [data-cta='mori.hero'].x-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
|
|
}
|