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
46 lines
3.7 KiB
CSS
46 lines
3.7 KiB
CSS
/* Hanzo's black model cards (mc-), measured from live hanzo.ai: docs/build-notes/refs/hanzo-model-cards/SPEC.md */
|
|
.mc { background: var(--x-raised); }
|
|
.mc-wrap { width: min(100% - 48px, 1201px); margin-inline: auto; }
|
|
.mc-h { margin: 0; font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
|
|
.mc-sub { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: light-dark(#525252, var(--muted-foreground)); }
|
|
.mc-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 2fr repeat(4, 1fr); grid-template-rows: 220px 220px; gap: 12px; }
|
|
.mc-cell { min-width: 0; }
|
|
.mc-cell.big { grid-row: span 2; }
|
|
.mc-card { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 20px; background: #000; color: #fff; text-decoration: none; cursor: pointer; transition: transform .3s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; isolation: isolate; }
|
|
.mc-card:focus-visible { outline: 2px solid var(--focus, #0a0a0a); outline-offset: 3px; }
|
|
.mc-card:active { transform: scale(.98); --mc-p: .98; }
|
|
.mc-media { position: absolute; inset: 0; z-index: -1; }
|
|
.mc-media img, .mc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
|
|
.mc-film { opacity: 0; transition: opacity .6s ease; }
|
|
.mc-film.on { opacity: 1; }
|
|
.mc-top { position: absolute; left: 21px; right: 21px; top: 21px; display: flex; flex-direction: column; align-items: flex-start; }
|
|
.mc-t { font-size: 22px; font-weight: 500; letter-spacing: -.44px; line-height: 28px; color: #fff; }
|
|
.mc-arr { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
|
|
.mc-d { margin-top: 8px; max-width: 150px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .8); }
|
|
.mc-tags { position: absolute; left: 21px; right: 21px; bottom: 21px; display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.mc-pill { display: inline-block; 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); }
|
|
.mc-flag { margin-bottom: 22px; }
|
|
.mc-cell.big .mc-t { font-size: 44px; letter-spacing: -.88px; line-height: 48px; }
|
|
.mc-cell.big .mc-d { margin-top: 18px; max-width: 160px; }
|
|
.mc-card[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; }
|
|
@media (hover: hover) { .mc-card:hover .mc-arr { transform: translateX(4px); } }
|
|
.mc-links { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0 0; }
|
|
.mc-links .x-arrow { font-size: 14px; min-height: 44px; }
|
|
|
|
/* the exact measured grid (SPEC.md: 385px and four 192px columns, 220px rows, 12px gaps) wherever it fits */
|
|
@media (min-width: 1250px) { .mc-grid { grid-template-columns: 385px repeat(4, 192px); justify-content: start; } }
|
|
@media (max-width: 1100px) {
|
|
/* Enso leads on its own row; that row is as tall as its card, so the cards under it never ride up over it */
|
|
.mc-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 340px; grid-auto-rows: 220px; }
|
|
.mc-cell.big { grid-column: 1 / -1; grid-row: auto; height: auto; }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.mc-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 360px; grid-auto-rows: 220px; gap: 10px; }
|
|
.mc-top, .mc-tags { left: 16px; right: 16px; }
|
|
.mc-top { top: 16px; }
|
|
.mc-tags { bottom: 16px; }
|
|
.mc-d { font-size: 14px; line-height: 19px; }
|
|
.mc-links { flex-direction: column; gap: 0; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) { .mc-card { transition: none; } .mc-film { transition: none; } }
|