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_01P5YBdwj33XByFVTvu9bfci
96 lines
10 KiB
CSS
96 lines
10 KiB
CSS
/* The creative family's v2 body (cr-): headline, capability chapters, where it fits (tile grid), the studio map,
|
|
the preview, each model's studio scene and live glyph */
|
|
.cr-studio { margin: 0; min-width: 0; }
|
|
.cr-engine { margin: 0; padding: 14px 22px; border-top: 1px solid rgba(255, 255, 255, .08); color: #a3a3a3; }
|
|
.cr-scene .cr-studio { max-width: 1040px; margin-inline: auto; }
|
|
|
|
/* capabilities: a title card, then the pinned chapters on the model's own film */
|
|
.cr-caps-h { font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.2; color: #0a0a0a; }
|
|
.lv-ch-top > .cr-caps-side { margin: 6px 0 0; }
|
|
.cr-caps:not([data-live]) .lv-ch-top { margin: 0 0 8px; }
|
|
.cr-art { position: absolute; inset: 0; overflow: hidden; background: #000; }
|
|
.cr-art img, .cr-art video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: translate(var(--x), var(--y)) scale(var(--z)); }
|
|
.cr-art > .cr-g { position: absolute; left: 24px; bottom: 24px; width: 40px; height: 40px; background: rgba(255, 255, 255, .14); }
|
|
|
|
/* where it fits: three hairline rows beside one picture of the model at work (8 and 5 of 13 columns) */
|
|
.cr-fits-in { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 27px; align-items: center; }
|
|
.cr-fits-l { grid-column: 1 / 9; }
|
|
.cr-fits-art { grid-column: 9 / 14; }
|
|
.cr-fits-in.flip .cr-fits-l { grid-column: 6 / 14; grid-row: 1; }
|
|
.cr-fits-in.flip .cr-fits-art { grid-column: 1 / 6; grid-row: 1; }
|
|
.cr-fits-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(0, 0, 0, .1); }
|
|
.cr-fits-list li { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: 'n t' 'n x' 'n k'; gap: 6.5px 17px; padding: 27px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
|
|
.cr-fit-n { grid-area: n; font: 606 12px/2 var(--mono); letter-spacing: .14em; color: #737373; }
|
|
.cr-fits-list h3 { grid-area: t; margin: 0; font-size: 21px; font-weight: 497; letter-spacing: -.015em; line-height: 1.25; color: #0a0a0a; }
|
|
.cr-fit-x { grid-area: x; margin: 0; max-width: 58ch; font-size: 16px; line-height: 1.6; color: #525252; }
|
|
.cr-fit-k { grid-area: k; margin: 4px 0 0; font: 606 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #737373; }
|
|
.cr-fits-art { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: #000; }
|
|
.cr-fits-art img, .cr-fits-art video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--fpos, 50% 50%); transform: translate(var(--x), var(--y)) scale(var(--z)); }
|
|
|
|
/* the studio map */
|
|
.cr-map-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 32px; padding: 4px; border-radius: 999px; background: var(--card); width: fit-content; max-width: 100%; }
|
|
.cr-tab { position: relative; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font: 500 15px var(--sans); cursor: pointer; isolation: isolate; transition: color .25s; }
|
|
.cr-tab:hover { color: var(--ink); }
|
|
.cr-tab[aria-selected='true'] { color: #fff; }
|
|
.cr-tab-ink { position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: var(--ac-ink); }
|
|
.cr-map-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
|
|
/* each tile is Hanzo's black model card (docs/build-notes/refs/hanzo-model-cards/SPEC.md): #000, 20px radius, title and arrow top
|
|
left at 21px, the line under it, the tag pill at the foot, the film over its poster on hover; unused fields dim the
|
|
picture, never the card */
|
|
.cr-mc { position: relative; display: block; height: 220px; overflow: hidden; border-radius: 20px; background: #000; color: #fff; text-decoration: none; isolation: isolate; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
|
|
.cr-mc:active { transform: scale(.98); --mc-p: .98; }
|
|
.cr-mc:focus-visible { outline: 2px solid var(--focus, #0a0a0a); outline-offset: 3px; }
|
|
.cr-tile[data-on] .cr-mc::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); pointer-events: none; }
|
|
.cr-mc[aria-current='page']::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9); pointer-events: none; }
|
|
.cr-mc-media { position: absolute; inset: 0; z-index: -1; }
|
|
.cr-mc-media img, .cr-mc-media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; background: #000; }
|
|
.cr-mc-film { opacity: 0; transition: opacity .6s ease; }
|
|
.cr-mc-film.on { opacity: 1; }
|
|
.cr-mc-t { position: absolute; left: 21px; right: 21px; top: 21px; font-size: 22px; font-weight: 500; letter-spacing: -.44px; line-height: 28px; }
|
|
.cr-mc-d { position: absolute; left: 21px; right: 21px; top: 57px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .8); }
|
|
.cr-mc-pill { position: absolute; left: 21px; bottom: 21px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font: 400 10px/14px var(--mono); letter-spacing: .8px; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
|
|
|
|
@media (max-width: 1100px) and (min-width: 901px) { .cr-map-grid { grid-template-columns: repeat(3, 1fr); } }
|
|
|
|
/* glyphs: five tiny parts, one loop per medium (transform/opacity only; [data-off] pauses them) */
|
|
.cr-band-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 10.5px 27px; margin: 17px 0 0; }
|
|
.cr-band-note a { color: #fafafa; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
|
|
.cr-band-note a svg { transition: transform .2s var(--ease); }
|
|
@media (hover: hover) { .cr-band-note a:hover svg { transform: translateX(4px); } }
|
|
.cr-band-note a:active { transform: translateY(1px); }
|
|
.cr-g { position: relative; display: block; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ink); overflow: hidden; }
|
|
.cr-g i { position: absolute; display: block; background: #f5f5f5; }
|
|
.cr-g-iro i { width: 6px; height: 6px; border-radius: 1px; animation: cr-flick 2.2s steps(4, end) infinite; animation-delay: calc(var(--i) * -.37s); }
|
|
.cr-g-iro i:nth-child(1) { left: 9px; top: 9px; } .cr-g-iro i:nth-child(2) { left: 25px; top: 9px; animation-duration: 1.7s; } .cr-g-iro i:nth-child(3) { left: 17px; top: 17px; animation-duration: 2.6s; } .cr-g-iro i:nth-child(4) { left: 9px; top: 25px; animation-duration: 1.9s; } .cr-g-iro i:nth-child(5) { left: 25px; top: 25px; animation-duration: 2.4s; }
|
|
@keyframes cr-flick { 0% { opacity: .15; } 50% { opacity: 1; } 100% { opacity: .35; } }
|
|
.cr-g-koma i { top: 12px; width: 12px; height: 16px; border-radius: 2px; left: 0; animation: cr-reel 2.4s linear infinite; animation-delay: calc(var(--i) * -.3s); }
|
|
.cr-g-koma i:nth-child(2) { animation-delay: calc(var(--i) * -.3s - .6s); } .cr-g-koma i:nth-child(3) { animation-delay: calc(var(--i) * -.3s - 1.2s); } .cr-g-koma i:nth-child(4) { animation-delay: calc(var(--i) * -.3s - 1.8s); } .cr-g-koma i:nth-child(5) { display: none; }
|
|
@keyframes cr-reel { from { transform: translateX(-14px); } to { transform: translateX(42px); } }
|
|
.cr-g-oto i, .cr-g-koe i { bottom: 10px; width: 4px; height: 20px; border-radius: 2px; transform-origin: 50% 100%; animation: cr-meter .9s var(--ease) infinite alternate; }
|
|
.cr-g-oto i:nth-child(1), .cr-g-koe i:nth-child(1) { left: 8px; animation-delay: calc(var(--i) * -.13s); } .cr-g-oto i:nth-child(2), .cr-g-koe i:nth-child(2) { left: 13px; animation-delay: calc(var(--i) * -.13s - .3s); } .cr-g-oto i:nth-child(3), .cr-g-koe i:nth-child(3) { left: 18px; animation-delay: calc(var(--i) * -.13s - .55s); } .cr-g-oto i:nth-child(4), .cr-g-koe i:nth-child(4) { left: 23px; animation-delay: calc(var(--i) * -.13s - .2s); } .cr-g-oto i:nth-child(5), .cr-g-koe i:nth-child(5) { left: 28px; animation-delay: calc(var(--i) * -.13s - .7s); }
|
|
@keyframes cr-meter { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
|
|
.cr-g-koe i { bottom: 10px; top: 10px; height: auto; transform-origin: 50% 50%; animation-name: cr-voice; animation-duration: 1.3s; }
|
|
@keyframes cr-voice { from { transform: scaleY(.12); } to { transform: scaleY(.9); } }
|
|
.cr-g-uta i { width: 8px; height: 5px; border-radius: 2px; animation: cr-note 1.6s steps(4, end) infinite; animation-delay: calc(var(--i) * -.2s); }
|
|
.cr-g-uta i:nth-child(1) { left: 6px; top: 26px; } .cr-g-uta i:nth-child(2) { left: 16px; top: 18px; animation-delay: calc(var(--i) * -.2s - .4s); } .cr-g-uta i:nth-child(3) { left: 26px; top: 10px; animation-delay: calc(var(--i) * -.2s - .8s); } .cr-g-uta i:nth-child(4) { left: 16px; top: 30px; animation-delay: calc(var(--i) * -.2s - 1.2s); } .cr-g-uta i:nth-child(5) { display: none; }
|
|
@keyframes cr-note { 0% { opacity: .2; transform: translateY(3px); } 25% { opacity: 1; transform: none; } 100% { opacity: .2; } }
|
|
.cr-g-mori i { left: 11px; top: 11px; width: 18px; height: 18px; background: transparent; border: 1.5px solid #f5f5f5; border-radius: 2px; animation: cr-turn 6s linear infinite; animation-delay: calc(var(--i) * -.8s); }
|
|
.cr-g-mori i:nth-child(2) { transform: rotate(45deg); opacity: .4; animation-direction: reverse; } .cr-g-mori i:nth-child(3) { left: 18px; top: 18px; width: 4px; height: 4px; border: 0; background: #f5f5f5; animation: none; } .cr-g-mori i:nth-child(n+4) { display: none; }
|
|
@keyframes cr-turn { to { transform: rotate(360deg); } }
|
|
|
|
@media (max-width: 900px) {
|
|
.cr-fits-in, .cr-fits-in.flip { grid-template-columns: 1fr; gap: 44px; }
|
|
.cr-fits-l, .cr-fits-art, .cr-fits-in.flip .cr-fits-l, .cr-fits-in.flip .cr-fits-art { grid-column: 1; grid-row: auto; }
|
|
.cr-fits-art { aspect-ratio: 4 / 3.6; }
|
|
.cr-fits-list li { grid-template-columns: 36px 1fr; padding: 22px 0; }
|
|
.cr-map-tabs { border-radius: 24px; }
|
|
.cr-tab { padding: 0 14px; font-size: 14px; }
|
|
.cr-map-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
|
|
.cr-mc { height: 220px; }
|
|
.cr-mc-t, .cr-mc-d, .cr-mc-pill { left: 16px; right: 16px; }
|
|
.cr-mc-t { top: 16px; }
|
|
.cr-mc-d { top: 52px; font-size: 14px; line-height: 19px; }
|
|
.cr-mc-pill { right: auto; bottom: 16px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) { .cr-g i { animation: none !important; opacity: 1; } }
|